/* ============================================================
   Reasonicle | Dartmouth Green Theme
   ============================================================ */

:root {
  /* === BLUE PALETTE === */
  --dartmouth: #2563eb; /* primary vivid blue */
  --dartmouth-dark: #1d4ed8; /* darker blue */
  --dartmouth-deeper: #1e3a8a; /* deep navy */
  --dartmouth-light: #60a5fa; /* lighter sky blue */
  --dartmouth-pale: rgba(37, 99, 235, 0.1);

  /* Background */
  --bg-body: #f8faff; /* very light blue tint */
  --bg-card: #ffffff;
  --bg-dark: #0f172a; /* deep navy dark */
  --bg-dark-card: #1e293b; /* slate dark card */
  --bg-dark-elevated: #263348; /* slightly lighter card inside dark */

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  --text-muted-dark: #cbd5e1; /* muted text for dark section backgrounds */

  /* Accents */
  --brand-accent: #f97316; /* orange contrast accent */
  --brand-gold: #fbbf24; /* warm highlight */

  /* Gradients */
  --grad-primary: linear-gradient(
    135deg,
    var(--dartmouth),
    var(--dartmouth-light)
  );
  --grad-accent: linear-gradient(
    135deg,
    var(--dartmouth-dark),
    var(--brand-accent)
  );
  --grad-text: linear-gradient(90deg, var(--dartmouth), #8b5cf6);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 10px 30px rgba(37, 99, 235, 0.14);
  --shadow-lg: 0 20px 50px rgba(37, 99, 235, 0.18);
  --shadow-glow: 0 0 28px rgba(37, 99, 235, 0.45);

  /* Font */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-norm: 0.35s var(--ease);
  --t-slow: 0.6s var(--ease);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.4); /* soft blue */
  border: 3px solid var(--bg-body);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--dartmouth); /* vibrant blue on hover */
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.65;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--t-norm);
}
ul {
  list-style: none;
}

/* ---- Layout ---- */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}
.section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}
.mt-4 {
  margin-top: 2rem;
}

/* ---- Canvas Background ---- */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ---- Typography helpers ---- */
.highlight-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dartmouth);
  border: 1px solid var(--dartmouth);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.section-eyebrow.light {
  color: var(--dartmouth-light);
  border-color: var(--dartmouth-light);
}
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 5rem;
}
.section-title {
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
}
.text-white {
  color: var(--text-white) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-norm);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: var(--t-fast);
}
.btn:hover::before {
  opacity: 1;
}
.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 12px;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--dartmouth);
}
.btn-ghost:hover {
  background: var(--dartmouth-pale);
  border-color: var(--dartmouth);
}
.btn-dark {
  background: var(--bg-dark);
  color: #fff;
  border: none;
}
.btn-dark:hover {
  background: var(--dartmouth-darker, #001f10);
}
.shadow-glow {
  box-shadow: var(--shadow-glow);
}

/* ---- Stat card text on dark bg ---- */
.stat-card.glass-card h3,
.stat-card.glass-card h4 {
  color: var(--text-primary);
}
.stat-card.glass-card p {
  color: var(--text-secondary);
}
/* Active (gradient bg) stat card — all text must be white */
.stat-card-active,
.stat-card-active h3,
.stat-card-active h4,
.stat-card-active p,
.stat-card-active .stat-icon {
  color: #fff !important;
}
.stat-card-active .social-mini a {
  color: rgba(255, 255, 255, 0.85);
}
.stat-card-active .pulse-ring-container {
  color: #fff;
}
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--t-norm);
}
.navbar.scrolled {
  background: rgba(245, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-img {
  height: 38px;
  border-radius: 0;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dartmouth);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dartmouth);
  transition: var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--dartmouth);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--t-norm);
}
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  padding: 140px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.hero-glow-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}
.orb-left {
  background: rgba(37, 99, 235, 0.25);
  top: -200px;
  left: -200px;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-right {
  background: rgba(249, 115, 22, 0.12);
  bottom: -200px;
  right: -200px;
  animation: orbFloat 16s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(80px, 80px);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dartmouth-pale);
  color: var(--dartmouth);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
}
.pulse-badge {
  animation: pulseBadge 2.5s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}
.hero-title {
  font-size: 5.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}
.text-loop-wrapper {
  overflow: hidden;
  display: inline-block;
}
.text-loop {
  color: var(--dartmouth);
  display: inline-block;
  /* Keyframes (slideWords) removed so JS can control the animation exclusively */
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 90%;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-meta-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--dartmouth-pale);
  color: var(--dartmouth-dark);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Hero Card Stack */
.hero-card-stack {
  position: relative;
  height: 480px;
}
.hcard {
  position: absolute;
  border-radius: 24px;
  transition: var(--t-norm);
}
.hcard-back {
  width: 85%;
  height: 85%;
  bottom: 0;
  right: 0;
  background: var(--dartmouth-pale);
  border: 2px dashed var(--dartmouth-light);
}
.hcard-mid {
  width: 90%;
  height: 90%;
  bottom: 5%;
  left: 5%;
  background: rgba(37, 99, 235, 0.06);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.hcard-front {
  width: 88%;
  min-height: 78%;
  top: 5%;
  right: 0;
  z-index: 3;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
}
.hcard-front:hover {
  transform: rotate(-1deg) scale(1.02);
}
.hcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
  background: var(--dartmouth-deeper);
}
.hcard-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 29, 18, 0.9), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hcard-live-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}
.hcard-waves {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 35px;
}
.hcard-waves span {
  width: 5px;
  border-radius: 3px;
  background: var(--dartmouth-light);
  animation: barWave 1.2s ease-in-out infinite;
}
.hcard-waves span:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}
.hcard-waves span:nth-child(2) {
  height: 70%;
  animation-delay: 0.1s;
}
.hcard-waves span:nth-child(3) {
  height: 100%;
  animation-delay: 0.2s;
}
.hcard-waves span:nth-child(4) {
  height: 55%;
  animation-delay: 0.3s;
}
.hcard-waves span:nth-child(5) {
  height: 80%;
  animation-delay: 0.4s;
}
.hcard-waves span:nth-child(6) {
  height: 30%;
  animation-delay: 0.5s;
}
.hcard-waves span:nth-child(7) {
  height: 65%;
  animation-delay: 0.6s;
}
.hcard-waves span:nth-child(8) {
  height: 45%;
  animation-delay: 0.7s;
}
.hcard-waves span:nth-child(9) {
  height: 20%;
  animation-delay: 0.8s;
}
@keyframes barWave {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Floating animations */
.floating-fast {
  animation: floatFast 4s ease-in-out infinite alternate;
}
.floating-mid {
  animation: floatFast 6s ease-in-out infinite alternate-reverse;
}
.floating-slow {
  animation: floatFast 8s ease-in-out infinite alternate;
}
@keyframes floatFast {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-14px);
  }
}
.float-anim {
  animation: floatFast 6s ease-in-out infinite alternate;
}

/* Scroll Indicator */
.scroll-indicator {
  text-align: center;
  margin-top: 4rem;
  animation: fadeInUp 1s 2s both;
}
.scroll-indicator p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 1px;
}
.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  margin: 0 auto;
  position: relative;
}
.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--dartmouth);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(16px);
    opacity: 0;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-bar {
  background: var(--dartmouth);
  overflow: hidden;
  padding: 0.9rem 0;
  position: relative;
  z-index: 3;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 20s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 3rem;
  white-space: nowrap;
}
.ticker-item i {
  color: var(--brand-gold);
}
@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-card-main {
  border-radius: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
  background: var(--bg-dark-card);
}
.about-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  border-radius: 24px;
}
/* About floating tags — force dark text since bg is white */
.about-floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.875rem;
  color: var(--text-primary); /* force dark text */
}
.about-floating-tag strong {
  color: var(--text-primary);
  display: block;
  font-weight: 700;
}
.about-floating-tag p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin: 0;
}
.tag-1 {
  top: 1.5rem;
  left: -1.5rem;
  animation: tagBob 5s ease-in-out infinite alternate;
}
.tag-2 {
  bottom: 1.5rem;
  right: -1.5rem;
  animation: tagBob 5s ease-in-out infinite 2s alternate-reverse;
}
@keyframes tagBob {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

.about-right h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.about-right p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.about-right em {
  color: var(--dartmouth);
  font-style: normal;
  font-weight: 600;
}
.stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}
.stat-block h4 {
  font-size: 2.5rem;
  color: var(--dartmouth);
  line-height: 1;
}
.stat-block h4 span {
  font-size: 1.25rem;
}
.stat-block p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.divider-v {
  width: 1px;
  height: 50px;
  background: rgba(37, 99, 235, 0.15);
}

/* ============================================================
   MISSION
   ============================================================ */
.mission-section {
  background: var(--bg-dark);
}
.mv-banner {
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-dark-card);
  padding: 5rem;
}
.mv-content {
  max-width: 600px;
  margin-bottom: 4rem;
}
.mv-content h2 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.mv-content h2 em {
  color: var(--dartmouth-light);
  font-style: normal;
}
.mv-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.mv-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mv-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--t-norm);
}
.mv-card:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--dartmouth);
  transform: translateY(-6px);
}
.mv-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--dartmouth-pale);
  color: var(--dartmouth-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
/* Mission cards — text clearly white on dark bg */
.mv-card h4 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.mv-card p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: var(--t-norm);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transition: var(--t-norm);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--dartmouth);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card-featured {
  background: var(--grad-primary);
  color: #fff;
  border: none;
}
.service-card-featured .service-link {
  color: rgba(255, 255, 255, 0.8);
}
.service-card-featured p {
  color: rgba(255, 255, 255, 0.8);
}
.service-card-featured .service-icon-wrap {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--dartmouth-pale);
  color: var(--dartmouth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
  transition: var(--t-norm);
}
.service-card:hover .service-icon-wrap {
  transform: rotate(5deg) scale(1.1);
}
/* Service cards — base state (white bg) */
.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
/* Featured card (gradient bg) — text must be white */
.service-card-featured,
.service-card-featured h4 {
  color: #fff !important;
}
.service-card-featured p {
  color: rgba(255, 255, 255, 0.9) !important;
}
.service-card-featured .service-link {
  color: rgba(255, 255, 255, 0.9);
}
.service-card-featured .service-icon-wrap {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.service-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dartmouth);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.service-link i {
  transition: transform var(--t-fast);
}
.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ============================================================
   HOW IT WORKS (dark section)
   ============================================================ */
.dark-section {
  background: var(--bg-dark);
}
.steps-timeline {
  position: relative;
  padding: 2rem 0;
}
.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
}
.step-num-wrap {
  display: flex;
  justify-content: center;
}
.step-num {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(96, 165, 250, 0.15);
  line-height: 1;
  min-width: 90px;
  text-align: center;
}
.step-content {
  padding: 0.5rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.step-item:last-child .step-content {
  border-bottom: none;
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--dartmouth-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
}
/* Step text — against dark section bg */
.step-content h4 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.step-content p {
  color: var(--text-muted-dark);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.75;
}

/* ============================================================
   ENGAGEMENT
   ============================================================ */
.engagement-section {
  padding: 80px 0 80px;
  position: relative;
  z-index: 2;
}
.engagement-card {
  background: var(--bg-dark-card);
  border-radius: 28px;
  padding: 5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.engagement-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
  pointer-events: none;
}
.engagement-content {
  flex: 1;
}
/* Engagement card text — dark bg, needs bright text */
.engagement-content h2 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.engagement-content > p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.75;
}

.engagement-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.social-pills {
  display: flex;
  gap: 0.75rem;
}
.social-pill {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--t-fast);
}
.social-pill:hover {
  background: var(--dartmouth);
  border-color: var(--dartmouth);
}
.engagement-visual {
  width: 35%;
  flex-shrink: 0;
}
.engagement-visual img {
  border-radius: 20px;
  width: 100%;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--bg-body);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testi-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(37, 99, 235, 0.08);
  transition: var(--t-norm);
  position: relative;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
/* Testimonial cards — base (white bg) */
.testi-card p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 2rem;
}
/* Dark testimonial card */
.testi-card-dark {
  background: var(--bg-dark-card);
  border-color: rgba(37, 99, 235, 0.2);
}
.testi-card-dark p {
  color: var(--text-muted-dark) !important;
}
.testi-card-dark strong {
  color: #fff !important;
}
.testi-card-dark span {
  color: var(--text-muted-dark) !important;
}

.testi-quote {
  font-size: 2rem;
  color: var(--dartmouth-pale);
  margin-bottom: 1.25rem;
  background: var(--dartmouth-pale);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dartmouth);
}
.testi-card-dark .testi-quote {
  background: rgba(37, 99, 235, 0.15);
  color: var(--dartmouth-light);
}
.testi-card p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 2rem;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.av-1 {
  background: linear-gradient(135deg, var(--dartmouth), var(--dartmouth-light));
}
.av-2 {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-gold));
}
.av-3 {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}
.testi-author strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}
.testi-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   PLATFORMS
   ============================================================ */
.platforms-section {
  padding: 60px 0;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  position: relative;
  z-index: 2;
}
.platforms-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.logos-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.platform-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.1rem;
  filter: grayscale(1);
  opacity: 0.5;
  transition: var(--t-norm);
}
.platform-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--dartmouth);
}
.platform-logo i {
  font-size: 1.8rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--bg-dark);
}
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  background: var(--bg-dark-card);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
/* Contact info on dark panel */
.contact-info {
  padding: 4rem;
}
.contact-info h2 {
  font-size: 3rem;
  color: #fff;
}
.contact-info > p {
  color: var(--text-muted-dark);
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.contact-item strong {
  color: #fff;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
  font-weight: 700;
}
.contact-item p {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
  margin: 0;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--t-fast);
}
.contact-item:hover {
  transform: translateX(4px);
}
.contact-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--dartmouth-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item strong {
  color: #fff;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
.contact-form-box {
  padding: 4rem;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
}
.contact-form-box form {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}
.contact-form-box .form-group:last-of-type {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--t-fast);
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.form-control option {
  background: var(--bg-dark-card);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.5rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--dartmouth-light);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea.form-control {
  flex: 1;
  min-height: 160px;
  resize: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0 /* Compacted padding from 5rem */;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr; /* 3 cols instead of 4 */
  gap: 2.5rem; /* Reduced gap */
  padding-bottom: 2rem;
}
/* Footer brand */
.footer-brand p {
  color: var(--text-muted-dark);
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.footer-social a:hover {
  background: var(--dartmouth);
  color: #fff;
}
/* Footer columns */
.footer-col h4 {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-col a {
  color: var(--text-muted-dark);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--dartmouth-light);
}

/* Footer bottom text */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0; /* Compacted */
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted-dark);
  font-size: 0.85rem;
}

/* Footer Credit Redesign */
.footer-copyright {
  opacity: 0.8;
}
.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.06);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: var(--shadow-sm);
}
.footer-credit i {
  color: #f43f5e; /* Vibrant red heart */
  animation: heartbeat 1.5s infinite;
}
.footer-credit a {
  color: var(--dartmouth-light);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: var(--t-fast);
}
.footer-credit a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.2);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-title {
    font-size: 4rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 250, 247, 0.97);
    backdrop-filter: blur(16px);
    padding: 2rem 5%;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid rgba(0, 112, 60, 0.1);
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mv-banner {
    padding: 3rem 2rem; /* Reduce massive padding early on tablet/mobile */
  }
  .mv-content {
    margin-bottom: 2rem;
  }
  .mv-content h2 {
    font-size: 2.8rem;
  }
  .hero-container,
  .about-grid,
  .mv-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mv-cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-card-stack {
    height: 400px; /* Provide enough height for mobile image */
  }
  .hcard-img,
  .about-card-img {
    min-height: 350px; /* Keep images large on mobile */
  }
  .engagement-visual {
    display: none !important; /* Hide image on phone */
  }
  .engagement-card {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem; /* Reduce the huge desktop gap */
    text-align: center; /* Center content on mobile for better look */
  }
  .engagement-content h2 {
    font-size: 2.5rem;
  }

  .engagement-actions {
    display: flex;
    flex-direction: column;
}

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info,
  .contact-form-box {
    padding: 2rem;
  }
  .service-card,
  .mv-card,
  .testi-card {
    padding: 1.75rem; /* Use less padding so cards are full width */
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .mv-content h2,
  .engagement-content h2 {
    font-size: 2.2rem;
  }
  .mv-banner {
    padding: 2.5rem 1.5rem;
  }
  .engagement-card {
    padding: 2.5rem 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}
