/* ===== BASE ===== */
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; }

/* ===== NAVBAR ===== */
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #2C374F;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover { color: #0098FD; background: #EBF5FF; }
.nav-dropdown { min-width: 180px; }
.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #2C374F;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.dropdown-item:hover { background: #EBF5FF; color: #0098FD; }
#navbar { 
  background: transparent; 
  border-bottom: 1px solid transparent;
}
#navbar.navbar-scrolled { 
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: #1863DC;
  color: white;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover {
  background: #0051C7;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(24, 99, 220, 0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #1D263A;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid #E5EEF8;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
}
.btn-outline:hover {
  background: #f8fafc;
  border-color: #1863DC;
  color: #1863DC;
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-block;
  background: #1863DC;
  color: white;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-secondary:hover { background: #0051C7; transform: translateY(-1px); }



/* ===== HERO ===== */
.hero-section {
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding-top: 88px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(0, 152, 253, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(24, 99, 220, 0.05) 0%, transparent 50%);
  z-index: -1;
}
.hex-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-rule='evenodd' stroke='%230098FD' stroke-width='0.5' fill='none' opacity='0.03'/%3E%3C/svg%3E");
  z-index: -1;
}
/* ─── Hero grid layout ─── */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  height: calc(100dvh - 72px);
  min-height: 620px; /* Minimum height before scrolling starts */
}

/* RIGHT column image wrapper */
.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center,
    rgba(0, 152, 253, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-image-container img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 90%;
  max-height: 60dvh; /* Crucial: Shrinks image to fit screen height */
  margin: 0 auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 152, 253, 0.12));
}

/* ── Tablet 768–1023px ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    padding: 3rem 0;
    gap: 1.5rem;
    min-height: calc(100vh - 88px);
  }
  .hero-image-container {
    min-height: 300px;
  }
}

/* ── Mobile <768px: single column, image below ── */
@media (max-width: 1023px) {
  .hero-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100dvh - 88px);
    padding: 2rem 0;
    gap: 2rem;
    text-align: center;
  }
  .hero-image-container {
    order: -1; /* Image on Top for Mobile/Tablet */
    min-height: 200px;
  }
  .hero-image-container img {
    width: 70% !important;
    max-width: 320px;
  }
}

/* ── Large screens ≥1280px ── */
@media (min-width: 1280px) {
  .hero-container {
    padding: 5rem 0;
    gap: 4rem;
  }
}

/* ── Short-viewport tweaks ── */
@media (max-height: 750px) and (min-width: 768px) {
  .hero-container {
    min-height: unset;
    padding: 2rem 0;
  }
  .hero-image-container {
    max-height: 65vh;
  }
}
.text-gradient {
  background: linear-gradient(to right, #0098FD, #1863DC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-size: clamp(1.75rem, 5.5vh, 2.8rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero-subtitle {
  font-size: 0.95rem;
  color: #637381;
  line-height: 1.5;
  max-width: 480px;
}

.trust-badge {
  background: white;
  border: 1px solid #E5EEF8;
  color: #2C374F;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hero-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(0, 152, 253, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.hero-card-right { border-color: rgba(24, 99, 220, 0.15); }
.partner-logo { font-size: 13px; font-weight: 600; color: #2C374F; }

/* ===== STATS ===== */
.hero-stats {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1rem 1.75rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.hero-stats::-webkit-scrollbar { display: none; } /* Hide scrollbar for Chrome/Safari */

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  position: relative;
  flex-shrink: 0;
}
.hero-stat-item:not(:last-child)::after {
  content: "";
  height: 20px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-left: 0.75rem;
}
.hero-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 152, 253, 0.1), rgba(24, 99, 220, 0.1));
  color: #1863DC;
  border-radius: 10px;
  flex-shrink: 0;
}
.hero-stat-content {
  display: flex;
  flex-direction: column;
}
.hero-stat-number {
  font-size: 20px;
  font-weight: 900;
  color: #1D263A;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #475569; /* Darker slate for contrast accessibility */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  white-space: nowrap;
}
.nav-link:focus-visible, 
.btn-primary:focus-visible, 
.btn-outline:focus-visible,
.product-card:focus-visible {
  outline: 2px solid #0098FD;
  outline-offset: 4px;
}
@media (max-width: 640px) {
  .hero-stats { 
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: 20px;
  }
  .hero-stat-icon { width: 32px; height: 32px; }
  .hero-stat-number { font-size: 17px; }
  .hero-stat-label { font-size: 9px; }
  .hero-stat-item { gap: 0.625rem; }
  .hero-stat-item:not(:last-child)::after { margin-left: 0.5rem; }
}

.stat-item { }
.stat-number { font-size: 28px; font-weight: 800; color: #0098FD; }
.stat-label { font-size: 12px; color: #8899AA; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== SECTIONS ===== */
.section-padding { padding: 80px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: #EBF5FF;
  color: #0098FD;
  font-size: 15px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.8px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #1D263A; margin: 12px 0 16px; line-height: 1.2; }
.section-subtitle { color: #637381; font-size: 16px; line-height: 1.7; }

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: white;
  border: 2px solid rgba(0, 152, 253, 0.12);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: #0098FD;
  box-shadow: 0 12px 40px rgba(0, 152, 253, 0.12);
  transform: translateY(-4px);
}
.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.feature-li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2C374F;
}
.feature-li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #0098FD;
  flex-shrink: 0;
}
.feature-li.indigo::before { background: #1863DC; }

/* ===== WHY CARDS ===== */
.why-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #F0F0F0;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.why-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: #0098FD;
}
.why-icon { font-size: 28px; margin-bottom: 12px; }
.why-title { font-size: 16px; font-weight: 700; color: #1D263A; margin-bottom: 4px; }
.why-subtitle { font-size: 13px; font-weight: 500; color: #0098FD; margin-bottom: 8px; }
.why-desc { font-size: 14px; color: #637381; line-height: 1.6; }

/* ===== CHANNEL CARDS ===== */
.channel-card {
  background: white;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: block;
}
.channel-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-3px); border-color: #0098FD; }
.channel-icon { font-size: 32px; margin-bottom: 12px; }
.channel-title { font-size: 16px; font-weight: 700; color: #1D263A; margin-bottom: 8px; }
.channel-desc { font-size: 13px; color: #637381; margin-bottom: 12px; line-height: 1.5; }
.channel-link { font-size: 13px; font-weight: 700; color: #0098FD; }

/* ===== FEATURE BLOCKS ===== */
.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #F8FBFF;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #E8F2FF;
}
.feature-block.dark {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.feature-block-icon {
  width: 36px; height: 36px;
  background: #0098FD;
  color: white;
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-block-icon.indigo { background: #1863DC; }
.feature-block-icon.blue { background: #0098FD; }

/* ===== METRIC BOXES ===== */
.metric-box {
  background: #F8FBFF;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid #E8F2FF;
}
.metric-box.dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.metric-val { font-size: 22px; font-weight: 800; color: #0098FD; line-height: 1; }
.metric-label { font-size: 11px; color: #637381; margin-top: 4px; line-height: 1.3; }

/* ===== DEMAND BADGES ===== */
.demand-badge {
  background: #EBF5FF;
  color: #0098FD;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== FORMAT CARDS ===== */
.format-card {
  background: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1D263A;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.format-card:hover { border-color: #0098FD; box-shadow: 0 4px 16px rgba(0, 152, 253, 0.1); }

/* ===== GEO BADGES ===== */
.geo-badge {
  background: rgba(0, 152, 253, 0.15);
  color: #7DD3FC;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== CTV FORMAT CARDS ===== */
.ctv-format-card {
  background: white;
  border: 1px solid #F0F0F0;
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.ctv-format-card:hover { border-color: #0098FD; box-shadow: 0 4px 16px rgba(0, 152, 253, 0.1); }

/* ===== ABOUT ===== */
.about-card {
  background: #F8FBFF;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #E8F2FF;
}
.journey-timeline { space-y: 12px; }
.journey-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
}
.journey-year { font-weight: 700; color: #0098FD; font-size: 13px; min-width: 70px; }
.journey-text { font-size: 14px; color: #637381; }
.scale-card {
  background: #F8FBFF;
  border: 1px solid #E8F2FF;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.media-partner {
  display: block;
  background: white;
  border: 1px solid #F0F0F0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #2C374F;
  text-align: center;
}

/* ===== TECHNOLOGY ===== */
.tech-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.tech-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(0, 152, 253, 0.4); }
.tech-icon { font-size: 32px; margin-bottom: 14px; }
.tech-title { font-size: 16px; font-weight: 700; color: white; margin-bottom: 12px; }
.tech-list { list-style: none; padding: 0; space-y: 8px; }
.tech-list li {
  font-size: 13px;
  color: #94A3B8;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-list li::before { content: '→'; color: #0098FD; font-weight: 700; }

/* ===== TRUST CARDS ===== */
.trust-card {
  background: white;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.trust-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #0098FD; transform: translateY(-3px); }
.trust-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: white;
  font-weight: 900;
  font-size: 18px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.trust-logo.nasscom { background: linear-gradient(135deg, #E74C3C, #C0392B); }
.trust-logo.iab { background: linear-gradient(135deg, #2C374F, #1D263A); font-size: 14px; }
.trust-logo.coppa { background: linear-gradient(135deg, #27AE60, #2ECC71); }
.trust-logo-svg {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #EAEAEA;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.agency-badge {
  background: #F8FBFF;
  border: 1px solid #E8F2FF;
  color: #2C374F;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.agency-badge:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); border-color: #C5D9F0; }

/* ===== CHECK ICON ===== */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: #EBF5FF;
  color: #0098FD;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== CONTACT ===== */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #F0F0F0;
}
.contact-icon { font-size: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #2C374F; margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E8EEF4;
  border-radius: 10px;
  font-size: 14px;
  color: #1D263A;
  background: #FAFBFC;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}
.form-input:focus { border-color: #0098FD; box-shadow: 0 0 0 3px rgba(0, 152, 253, 0.1); }
textarea.form-input { resize: vertical; }

/* ===== FOOTER ===== */
.footer-link { color: #8899AA; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: #0098FD; }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}
.social-icon:hover { background: #0098FD; }

/* ===== CONTACT SOCIAL BUTTONS ===== */
.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EBF5FF;
  color: #0098FD;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.contact-social-btn:hover { background: #0098FD; color: white; }
.contact-info-item { text-decoration: none; display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .section-padding { padding: 56px 0; }
  .stat-number { font-size: 22px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-hidden { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-visible { opacity: 1; transform: translateY(0); }

.stagger-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--delay) * 100ms);
}
.reveal-visible .stagger-reveal,
.stagger-reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; animation-fill-mode: forwards; }



/* Container for all strips */
.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.marquee-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.marquee-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280; /* Text-gray-500 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* The scrolling viewport */
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  padding: 20px 0; /* Add padding to prevent cropping */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

/* The moving track */
.marquee-content {
  flex-shrink: 0;
  display: flex;
  align-items: center; /* Center images vertically */
  justify-content: space-around;
  gap: 2rem;
  min-width: 100%;
  animation: scroll-left 30s linear infinite;
}

/* Animation for reverse direction */
.marquee-content.reverse {
  animation: scroll-right 30s linear infinite;
}

/* Pause animation on hover */
.marquee:hover .marquee-content {
  animation-play-state: paused;
}

/* Individual Logo Styling */
.marquee-content img {
  width: 140px;
  height: 60px;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
}

.marquee-content img:hover {
  transform: scale(1.1);
}

/* Keyframes */
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ===== FLIP CARDS ===== */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 380px; /* Increased to cover space better */
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px; /* Reduced padding */
  border: 1px solid #f0f0f0;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.flip-card-back {
  background: #f8fbff;
  color: #1D263A;
  transform: rotateY(180deg);
  text-align: center; /* Centered for better aesthetics in small frame */
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: #0098FD;
}

.flip-card-img {
  width: 100%;
  max-width: 280px; /* Increased for better coverage */
  height: 220px; /* Increased for better coverage */
  object-fit: contain;
  margin-bottom: 20px;
}

.flip-card-title {
  font-size: 17px; /* Slightly refined */
  font-weight: 800;
  color: #1D263A;
  margin-bottom: 6px;
}

.flip-card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #0098FD;
  line-height: 1.4;
}

.flip-card-desc {
  font-size: 15px; /* Increased for better readability */
  color: #637381;
  line-height: 1.6;
  width: 100%;
  margin: 0 auto;
}