/* ============================================================
   GLOBAL CSS — Saaradaa Learknowations Pvt. Ltd.
   Theme: Royal Blue (#2957A4) + Amber (#F5A623) from Logo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Lato:wght@300;400;700;900&display=swap');

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Logo Colors */
  --royal-blue: #2957A4;
  --royal-dark: #1d3f7a;
  --royal-deeper: #142b56;
  --amber: #F5A623;
  --amber-light: #f7bc56;
  --amber-dark: #d48e15;

  /* Navy (dark backgrounds) */
  --navy: #0f1729;
  --navy-light: #1a2744;
  --navy-medium: #243556;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f7f8fc;
  --gray-50: #f2f4f8;
  --gray-100: #e8ecf2;
  --gray-200: #d1d8e4;
  --gray-300: #b0bbc8;
  --gray-500: #6b7a8d;
  --gray-600: #4a5568;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: 80px 5%;
  --section-pad-mobile: 50px 4%;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 0.9, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.18);
  --glow-blue: 0 0 30px rgba(41, 87, 164, 0.25);
  --glow-amber: 0 0 30px rgba(245, 166, 35, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

/* ── Reset & Base ──────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--off-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--royal-deeper);
}

/* ── Section Title Utility ─────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--royal-deeper);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--royal-blue));
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Container ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.35s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(41, 87, 164, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(41, 87, 164, 0.45);
  background: linear-gradient(135deg, #3368c0, var(--royal-blue));
}

.btn-secondary {
  background: transparent;
  color: var(--royal-blue);
  border-color: var(--royal-blue);
}

.btn-secondary:hover {
  background: var(--royal-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
  font-weight: 700;
}

.btn-amber:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.45);
  background: linear-gradient(135deg, #f7bc56, var(--amber));
}

/* ══════════════════════════════════════════════════════
   SCROLLING TEXT BANNER
   ══════════════════════════════════════════════════════ */
.scrolling-text-container {
  background-color: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1001;
  transition: transform 0.4s ease, opacity 0.4s ease;
  /* Above navbar */
}

.thinklets-link {
  text-decoration: none;
  display: inline-block;
  width: 100%;
  max-width: 1400px;
}

.scrolling-text-box {
  background-color: transparent;
  border: none;
  overflow: hidden;
  white-space: nowrap;
  width: 95%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 6px 0;
  position: relative;
}

.new-badge {
  z-index: 1000;
  background: var(--amber);
  color: var(--royal-deeper);
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-left: 12px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.4);
  flex-shrink: 0;
}

.scrolling-text {
  display: inline-block;
  padding-left: 100%;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  animation: scroll 15s linear infinite;
}

.scrolling-text-box:hover .scrolling-text {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-160%);
  }
}

@keyframes rainbowShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.3);
  }

  50% {
    box-shadow: 0 0 18px rgba(245, 166, 35, 0.7);
  }
}

@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 600px) {
  .scrolling-text {
    font-size: 0.9rem;
  }

  .new-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .scrolling-text-box {
    width: 98%;
    border-radius: 15px;
  }
}

/* ══════════════════════════════════════════════════════
   NAVBAR — Bold, Visible, Professional
   ══════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: all 0.4s var(--ease-out);
  background: linear-gradient(180deg, rgba(15, 23, 41, 0.95) 0%, rgba(15, 23, 41, 0.8) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Only offset navbar when the scrolling banner is present (home page) */
body.has-banner .site-nav {
  top: 48px;
}

.site-nav.scrolled,
body.has-banner .site-nav.scrolled {
  top: 0;
  /* Snap to top when scrolled */
  background: rgba(15, 23, 41, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  height: 66px;
}

/* Hide the thinklets banner when scrolled for a clean look */
body.has-banner.scrolled-past-banner .scrolling-text-container {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-brand img {
  height: 46px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(245, 166, 35, 0.4));
  background: white;
  border-radius: 8px;
  padding: 3px;
}

.nav-brand img:hover {
  transform: scale(1.08);
}

.nav-brand span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .nav-brand span {
    display: none;
    /* Hide text on very small screens to avoid cramping */
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(245, 166, 35, 0.15);
}

.nav-links a.active {
  color: var(--amber);
  background: rgba(245, 166, 35, 0.12);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--amber);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 50%;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5.5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5.5px);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-medium) 100%);
    padding: 100px 30px 40px;
    gap: 20px;
    /* Increased gap for neat spacing */
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.4s var(--ease-out);
    align-items: flex-start;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a {
    width: 100%;
    display: block;
    padding: 18px 20px;
    /* Larger hit area */
    font-size: 1.25rem;
    /* Larger text */
    font-weight: 700;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-left-color: var(--amber);
    background: rgba(245, 166, 35, 0.1);
    transform: translateX(4px);
  }

  .nav-links a::after {
    display: none;
    /* Hide bottom border on mobile */
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.show {
    display: block;
  }
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand img {
  height: 55px;
  margin-bottom: 16px;
  background: white;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.3);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--amber);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Utility Classes ───────────────────────────────── */
.text-center {
  text-align: center;
}

.text-amber {
  color: var(--amber);
}

.text-blue {
  color: var(--royal-blue);
}

.bg-white {
  background: var(--white);
}

.bg-offwhite {
  background: var(--off-white);
}

.bg-navy {
  background: var(--navy);
}