/* style.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa; /* Light background */
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    opacity: 0; /* For fade-in */
    transform: translateY(20px); /* For fade-in */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007BFF; /* Primary blue */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007BFF;
}

/* Hero Section */
.hero {
    text-align: center;
    background-color: #e9ecef;
    animation: fadeIn 1s ease-in; /* Fade-in on load */
}

.hero-heading {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-subheading {
    font-size: 24px;
    margin-bottom: 20px;
}

.hero-paragraph {
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons .btn {
    margin: 0 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px; /* Rounded corners */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s; /* Hover transitions */
    cursor: pointer;
}

.primary-btn {
    background-color: #007BFF;
    color: #fff;
}

.primary-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.secondary-btn {
    background-color: #6c757d;
    color: #fff;
}

.secondary-btn:hover {
    background-color: #5a6268;
    transform: scale(1.05);
}

/* Forms */
.form-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px; /* Rounded */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    max-width: 500px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.helper-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

/* Browse Books */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.book-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s; /* Hover lift */
    text-align: center;
}

.book-card:hover {
    transform: translateY(-5px);
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 10px;
}

.available { background-color: #28a745; color: #fff; }
.requested { background-color: #ffc107; color: #333; }
.delivered { background-color: #6c757d; color: #fff; }

/* Impact */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.impact-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.impact-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.impact-number {
    font-size: 36px;
    font-weight: bold;
    color: #007BFF;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-heading {
        font-size: 36px;
    }

    .hero-subheading {
        font-size: 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        margin: 10px 0;
    }
}
.book-card h3 {
  margin-bottom: 8px;
  color: #007BFF;
}

.book-card p {
  font-size: 14px;
  margin: 4px 0;
}

/* ===========================
   HERO LANDING
=========================== */

.hero-landing {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e4ed8, #2563eb);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  background: rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #facc15;
}

.hero-desc {
  max-width: 500px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stats div {
  text-align: left;
}

.hero-stats strong {
  font-size: 28px;
  display: block;
}

.hero-stats span {
  font-size: 14px;
  opacity: 0.8;
}

/* RIGHT SIDE ANIMATION */

.hero-visual {
  position: relative;
  height: 300px;
}

.card {
  position: absolute;
  width: 110px;
  height: 140px;
  border-radius: 12px;
  opacity: 0.9;
  animation: float 6s infinite ease-in-out;
}

.c1 {
  background: #facc15;
  left: 40px;
  animation-delay: 0s;
}

.c2 {
  background: #fff;
  left: 160px;
  top: 40px;
  animation-delay: 1s;
}

.c3 {
  background: #facc15;
  left: 280px;
  animation-delay: 2s;
}

.arc {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 100px;
  border-top: 3px solid rgba(255,255,255,0.4);
  border-radius: 50%;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

.scroll-indicator {
  text-align: center;
  margin-top: 40px;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }
}
/* Navbar Search */
.nav-search {
  display: flex;
  gap: 10px;
}

.nav-search input {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
  min-width: 220px;
}

.nav-search button {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #007BFF;
  color: #fff;
  cursor: pointer;
}

.nav-search button:hover {
  background: #0056b3;
}
/* NAV SEARCH */
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.state-search {
  display: flex;
  gap: 10px;
}

.state-search input {
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  min-width: 220px;
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-heading span {
  color: #facc15;
}

.badge {
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
}

.scroll-hint {
  margin-top: 40px;
  opacity: 0.7;
}

/* LOCK SCROLL */

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================= HERO LANDING ================= */

.hero-landing {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e4ed8, #2563eb);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  background: rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #facc15;
}

.hero-desc {
  max-width: 520px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.donate-btn {
  background: #f59e0b;
  color: #fff;
}

.ngo-btn {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stats strong {
  font-size: 28px;
  display: block;
}

.hero-stats span {
  font-size: 14px;
  opacity: 0.8;
}

/* ================= VISUAL ================= */

.hero-visual {
  position: relative;
  height: 320px;
}

.card {
  position: absolute;
  width: 120px;
  height: 150px;
  border-radius: 14px;
  opacity: 0.9;
  animation: float 6s infinite ease-in-out;
}

.c1 {
  background: #facc15;
  left: 40px;
}

.c2 {
  background: #ffffff;
  left: 170px;
  top: 40px;
}

.c3 {
  background: #facc15;
  left: 300px;
}

.arc {
  position: absolute;
  bottom: -30px;
  width: 100%;
  height: 120px;
  border-top: 3px solid rgba(255,255,255,0.4);
  border-radius: 50%;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
  100% { transform: translateY(0); }
}

/* ================= NAV ================= */

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pill {
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
}

.pill span {
  opacity: 0.7;
  margin-left: 8px;
}

.scroll-indicator {
  text-align: center;
  margin-top: 40px;
  opacity: 0.8;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 40px;
  }
}
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ai-card {
  background: linear-gradient(145deg, #0f172a, #020617);
  color: #e5e7eb;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(59,130,246,0.25);
  position: relative;
  overflow: hidden;
}
 .ai-card * {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.upload-placeholder {
  z-index: 5;
  position: relative;
  pointer-events: auto;
}

.ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59,130,246,0.25), transparent 60%);
  pointer-events: none; /* 🔑 ALLOWS CLICKS THROUGH */
}



.ai-card h3 {
  margin-top: 0;
}

.muted {
  color: #94a3b8;
  font-size: 14px;
}

.upload-box {
  display: block;
  margin: 20px 0;
}

.upload-placeholder {
  border: 2px dashed #3b82f6;
  padding: 48px 30px;
  text-align: center;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.35s ease;
  background: rgba(59,130,246,0.05);
}

.upload-placeholder:hover {
  border-color: #facc15;
  background: rgba(250,204,21,0.08);
  transform: scale(1.02);
}
.upload-placeholder strong {
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

.upload-placeholder span {
  font-size: 14px;
  color: #94a3b8;
}
.ai-primary-btn {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border: none;
  padding: 14px 26px;
  border-radius: 14px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(59,130,246,0.4);
  transition: all 0.3s ease;
}

.ai-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(59,130,246,0.6);
}

.detected div {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 12px 16px;
  border-radius: 14px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.detected div span {
  color: #facc15;
  font-weight: 600;
}

input, select, textarea {
  background: #020617;
  color: white;
  border: 1px solid #334155;
  padding: 12px 14px;
  border-radius: 12px;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}

.condition-group {
  display: flex;
  gap: 12px;
}

.condition-card {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  background: #020617;
  border: 1px solid #334155;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.condition-card:hover {
  border-color: #facc15;
}

.condition-card.active {
  background: rgba(250,204,21,0.15);
  border-color: #facc15;
}


.chat-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat {
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 80%;
}

.chat.user {
  background: #f59e0b;
  align-self: flex-end;
  color: black;
}

.chat.bot {
  background: #334155;
}

.outline-btn {
  background: transparent;
  border: 1px solid #3b82f6;
  color: white;
  padding: 10px;
  border-radius: 10px;
}

.powered {
  margin-top: 16px;
  font-size: 13px;
  color: #cbd5f5;
}
body {
  overflow: auto;
}

main, section {
  position: relative;
}

@media (max-width: 768px) {
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .ai-card {
    padding: 22px;
  }
 

  .upload-placeholder {
    padding: 32px 20px;
  }
}
.empty-state {
  text-align: center;
  margin-top: 30px;
}

.empty-state p {
  color: #6b7280;
  margin-bottom: 20px;
}

.donate-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #111;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.4);
  transition: all 0.2s ease;
}

.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(251, 191, 36, 0.6);
}
