/* ===========================
   VidhyaSethu — style.css
   =========================== */

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --blue: #185FA5;
  --blue-dark: #0e3f72;
  --blue-light: #dbeafe;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --bg: #f7fbff;
  --white: #ffffff;
  --border: #e2e8f0;
  --gold: #C89B3C;
  --teal: #1A7A5E;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); overflow-x: hidden; }

.container { width: 90%; max-width: 1200px; margin: auto; }

/* ---- NAV ---- */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex; justify-content: space-between;
  align-items: center; padding: 16px 0;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 48px; height: 48px;
  background: var(--blue); color: white;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; font-size: 22px;
  box-shadow: 0 6px 20px rgba(24,95,165,0.3);
  flex-shrink: 0;
}
.logo h1 { font-size: 26px; color: var(--ink); }
.logo span { color: var(--blue); }
.logo p { font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; transition: color 0.2s; font-size: 0.9rem; }
.nav-links a:hover { color: var(--blue); }

.hamburger {
  display: none; background: none; border: 1px solid var(--border);
  font-size: 1.3rem; padding: 6px 12px; border-radius: 8px;
  cursor: pointer; color: var(--ink);
}

.mobile-nav {
  display: none; list-style: none;
  padding: 12px 0 16px; border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav li a {
  display: block; padding: 10px 8px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  border-radius: 8px; transition: background 0.2s;
}
.mobile-nav li a:hover { background: var(--blue-light); color: var(--blue); }

/* ---- BUTTONS ---- */
.btn {
  background: var(--blue); color: white;
  padding: 12px 24px; border-radius: 12px; border: none;
  cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: all 0.25s;
  box-shadow: 0 6px 18px rgba(24,95,165,0.25);
}
.btn:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 10px 25px rgba(24,95,165,0.35); }

.btn-outline {
  border: 2px solid var(--border); background: white; color: var(--ink);
  padding: 12px 24px; border-radius: 12px; font-weight: 600;
  cursor: pointer; font-size: 0.9rem; transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ---- HERO ---- */
.hero-section { padding: 30px 0 60px; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}
.badge {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  padding: 9px 18px; border-radius: 999px; font-weight: 600;
  margin-bottom: 24px; font-size: 13px;
}
.hero-text { max-width: 800px; }
.hero-text h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.1; color: var(--ink); margin-bottom: 20px; }
.hero-text h2 span { color: var(--blue); }
.hero-text p { color: var(--muted); font-size: 17px; line-height: 1.8; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---- SECTIONS ---- */
section { padding: 90px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.section-title h2 { font-size: clamp(28px, 4vw, 42px); color: var(--ink); margin-bottom: 12px; }
.section-title p { color: var(--muted); max-width: 680px; margin: auto; line-height: 1.8; }

/* ---- FEATURES ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-box {
  background: white; border-radius: 24px; padding: 32px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.05);
  transition: all 0.3s; border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.feature-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.feature-box:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(24,95,165,0.1); }
.feature-box:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 46px; margin-bottom: 16px; display: block; }
.feature-box h3 { margin-bottom: 10px; color: var(--ink); font-size: 1rem; }
.feature-box p { color: var(--muted); line-height: 1.7; font-size: 0.88rem; }

/* ---- MODULES ---- */
.modules { background: var(--ink); color: white; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.module-box {
  background: rgba(255,255,255,0.07); padding: 22px 16px;
  text-align: center; border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.module-box:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.module-box span { font-size: 1.8rem; }
.module-box strong { font-size: 0.85rem; font-weight: 500; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 50px; align-items: start; }
.verse {
  background: white; padding: 24px;
  border-left: 4px solid var(--blue); border-radius: 16px;
  margin-top: 22px; box-shadow: 0 8px 22px rgba(15,23,42,0.06);
  font-style: italic; color: var(--ink-soft); line-height: 1.7;
}
.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-card {
  background: white; padding: 28px 22px;
  border-radius: 22px; text-align: center;
  box-shadow: 0 8px 26px rgba(15,23,42,0.06);
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(24,95,165,0.1); }
.about-icon { font-size: 2rem; margin-bottom: 12px; }
.about-card h3 { color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.about-card p { color: var(--muted); font-size: 0.83rem; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { background: #f0f7ff; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: white; padding: 30px; border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before { content: '"'; font-size: 5rem; color: var(--blue-light); position: absolute; top: 10px; right: 20px; line-height: 1; font-family: serif; }
.testimonial-card p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 20px; font-size: 0.92rem; font-style: italic; }
.testimonial-author strong { display: block; color: var(--ink); font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--muted); }

/* ---- CTA ---- */
.cta { background: var(--blue); color: white; text-align: center; }
.cta-cross { font-size: 1.8rem; margin-bottom: 1rem; opacity: 0.6; }
.cta h2 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 16px; }
.cta > .container > p { color: #bfdbfe; margin-bottom: 36px; font-size: 17px; line-height: 1.8; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 680px; margin: 0 auto 16px; }
.cta-form input {
  flex: 1; min-width: 180px; padding: 13px 18px;
  border-radius: 12px; border: none; font-size: 0.9rem;
  outline: none; background: rgba(255,255,255,0.15);
  color: white; border: 1px solid rgba(255,255,255,0.25);
}
.cta-form input::placeholder { color: rgba(255,255,255,0.6); }
.cta-form input:focus { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); }
.cta-btn { background: white !important; color: var(--blue) !important; box-shadow: 0 6px 18px rgba(0,0,0,0.15) !important; }
.cta-btn:hover { background: #f0f7ff !important; }
.cta-note { font-size: 13px; color: #bfdbfe; min-height: 20px; }

/* ---- FOOTER ---- */
footer { background: var(--ink); color: #cbd5e1; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
footer h3 { font-size: 22px; color: white; margin-bottom: 16px; }
footer h4 { color: white; margin-bottom: 16px; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
footer p { line-height: 1.8; font-size: 0.88rem; }
footer a { display: block; color: #94a3b8; text-decoration: none; font-size: 0.88rem; margin-bottom: 8px; transition: color 0.2s; }
footer a:hover { color: #185FA5; }
.footer-verse { font-style: italic; font-size: 0.82rem; color: #475569; margin-top: 16px; border-left: 3px solid #185FA5; padding-left: 12px; line-height: 1.6; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; margin-top: 50px; color: #475569; font-size: 0.82rem; }

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { padding: 40px 0; }
  section { padding: 60px 0; }

  /* Ensure header elements wrap correctly and request demo button is hidden on very small screens or placed in menu */
  nav > .btn {
      display: none;
  }
}


@media (max-width: 600px) {
  .about-cards { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input { min-width: unset; }

  .hero-text h2 {
    font-size: 32px;
  }

  .section-title h2 {
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  .logo h1 {
    font-size: 20px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons button {
    width: 100%;
  }
}