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

:root {
  --primary: #038bde;
  --primary-hover: #0273b8;
  --primary-light: #f0f9ff;
  --primary-rgb: 3, 139, 222;
  --bg-main: #ffffff;
  --bg-sec: #fafafa;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #363535;
  --text-muted: #475569;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Custom text selection highlight */
::selection {
  background-color: rgba(var(--primary-rgb), 0.2);
  color: inherit;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-main);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-sec);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.9);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 1024px) {
  .nav-menu {
    gap: 20px;
  }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  background: var(--primary);
  color: #fff;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(0, 98, 255, 0.2);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  height: 24px;
  justify-content: center;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-main);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px;
    gap: 28px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

  .mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 80% 20%, rgba(0, 98, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(0, 98, 255, 0.02) 0%, transparent 40%);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }
}

/* Large Background Name */
.hero-bg-text {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  color: #f1f5f9;
  opacity: 0.6;
}

.hero-bg-text svg text {
  fill: currentColor;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  align-items: center;
  gap: 24px;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .hero-tag {
    align-self: center;
  }
}

.hero-title {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.hero-title span {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.hero-left .cta-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 20px -5px rgba(0, 98, 255, 0.25);
  transition: var(--transition);
}

.hero-left .cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(0, 98, 255, 0.35);
}

@media (max-width: 1024px) {
  .hero-left .cta-btn {
    align-self: center;
  }
}

.hero-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 550px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: -80px;
  z-index: 2;
}

@media (max-width: 1024px) {
  .hero-image-wrapper {
    margin-bottom: 0;
    max-width: 425px;
  }
}

.hero-portrait {
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.12));
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 40px;
}

@media (max-width: 1024px) {
  .hero-right {
    padding-left: 0;
  }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .hero-desc {
    max-width: 600px;
    margin: 0 auto;
  }
}

.hero-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.badge-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.badge-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.badge-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Credibility Matrix Section */
.credibility-section {
  background: var(--bg-sec);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.grid-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .grid-matrix {
    grid-template-columns: 1fr;
  }
}

.matrix-item {
  background: var(--bg-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.matrix-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.matrix-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.matrix-number {
  color: var(--primary);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.matrix-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.matrix-desc {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
}

/* Section Header */
.section-header {
  max-width: 650px;
  margin-bottom: 50px;
}

.section-header .section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-header .section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--text-main);
}

.section-header .section-title span {
  color: var(--primary);
}

.section-header .section-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Pillars Section */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 98, 255, 0.2);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.pillar-icon-box svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.pillar-angle {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pillar-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.pillar-copy {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 12px;
}

.pillar-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.pillar-card:hover .pillar-link svg {
  transform: translateX(4px);
}

/* Institutional Validation (Marquee) */
.validation-section {
  background: var(--bg-sec);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 80px 0;
}

.validation-header {
  text-align: center;
  margin-bottom: 40px;
}

.validation-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.validation-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  padding: 16px 0; /* vertical padding for hover scale space */
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 60px; /* spacious logo gaps */
  min-width: 100%;
  animation: scroll-left 35s linear infinite; /* slower scroll is smoother */
}

.marquee-row.reverse .marquee-content {
  animation: scroll-right 35s linear infinite;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.45;
  padding: 8px 12px; /* bounding box spacing buffer to prevent overlapping */
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.logo-item img {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

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

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

/* Sandbox Section */
.sandbox-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   Bento Grid — Sandbox & Publications Section
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
  margin-top: 8px;
}

/* Featured card spans both columns */
.bento-featured {
  grid-column: 1 / -1;
  min-height: 220px;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  border-radius: inherit;
}

.bento-content {
  position: relative;
  z-index: 1;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.bento-tag-dark {
  color: var(--primary);
}

.bento-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.bento-excerpt {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.2s ease;
}

.bento-featured:hover .bento-arrow {
  background: rgba(255,255,255,0.3);
}

/* Small cards */
.bento-card.bento-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 140px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card.bento-sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(3,139,222,0.1);
  border-color: rgba(3,139,222,0.25);
}

/* Accent variant — light blue tint background */
.bento-card.bento-accent {
  background: rgba(3,139,222,0.06);
  border-color: rgba(3,139,222,0.15);
}

.bento-sm-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-sm-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-arrow-dark {
  width: 30px;
  height: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  align-self: flex-end;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bento-card.bento-sm:hover .bento-arrow-dark {
  background: rgba(3,139,222,0.08);
  border-color: rgba(3,139,222,0.3);
  color: var(--primary);
}

/* Mobile: stack featured over 2-col grid */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .bento-featured {
    min-height: 180px;
  }

  .bento-title {
    font-size: 15px;
  }

  .bento-sm-title {
    font-size: 13px;
  }
}

.sandbox-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .sandbox-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
}

.sandbox-item:hover {
  transform: translateX(4px);
  border-color: rgba(0, 98, 255, 0.2);
  box-shadow: var(--shadow-md);
}

.sandbox-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sandbox-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sandbox-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sandbox-time {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.sandbox-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.sandbox-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.sandbox-icon svg {
  width: 20px;
  height: 20px;
}

.sandbox-item:hover .sandbox-icon {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Consultation Form Section */
.consultation-section {
  background: radial-gradient(circle at 10% 20%, rgba(0, 98, 255, 0.02) 0%, transparent 40%),
              var(--bg-sec);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.consultation-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .consultation-wrapper {
    padding: 32px 24px;
  }
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-sec);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-main);
  box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

.error-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  font-weight: 600;
  display: none;
}

.form-group.invalid .form-control {
  border-color: #ef4444;
}

.form-group.invalid .error-message {
  display: block;
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 20px -5px rgba(0, 98, 255, 0.2);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 15px 25px -5px rgba(0, 98, 255, 0.3);
}

/* Form Success State */
.form-success-container {
  display: none;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.success-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

/* Footer */
footer {
  padding: 60px 0 120px 0; /* Add bottom padding for mobile sticky footer */
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

@media (min-width: 769px) {
  footer {
    padding: 60px 0;
  }
}

.footer-logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 12px;
  display: inline-block;
}

.footer-logo span {
  color: var(--primary);
}

.footer-copyright {
  margin-top: 16px;
  font-size: 13px;
}

/* Mobile Sticky Bottom Navigation Pill */
.mobile-sticky-footer {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  width: calc(100% - 48px);
  background: rgba(220, 222, 225, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 14px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              border-color 0.3s ease, 
              opacity 0.3s ease;
}

.mobile-sticky-footer:active {
  transform: scale(0.98);
}

/* Active Dark Theme for overlays on dark sections */
.mobile-sticky-footer.dark-nav {
  background: rgba(30, 30, 30, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.mobile-sticky-footer.dark-nav .logo-dark {
  color: #ffffff !important;
}

.mobile-sticky-footer.dark-nav .sticky-nav-links a {
  color: #e4e4e7 !important;
}

.mobile-sticky-footer.dark-nav .sticky-nav-links .nav-divider {
  color: rgba(255, 255, 255, 0.2) !important;
}

.mobile-linkedin-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: none; /* hidden on desktop */
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(3, 139, 222, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s ease, 
              opacity 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: pulse-blue 2s infinite;
}

.mobile-linkedin-btn:active {
  transform: scale(0.92);
}

.mobile-linkedin-btn svg {
  width: 18px;
  height: 18px;
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(3, 139, 222, 0.5), 0 10px 30px rgba(3, 139, 222, 0.3);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(3, 139, 222, 0), 0 10px 30px rgba(3, 139, 222, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(3, 139, 222, 0), 0 10px 30px rgba(3, 139, 222, 0.3);
  }
}

@media (max-width: 768px) {
  .mobile-sticky-footer {
    display: flex;
    right: 84px !important;
    width: auto !important;
  }
  
  .mobile-linkedin-btn {
    display: flex;
  }
}

.sticky-logo {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.2px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.sticky-logo .logo-blue {
  color: var(--primary);
  font-weight: 800;
}

.sticky-logo .logo-dark {
  color: #363535;
  font-size: 9px;
  font-weight: 600;
}

.sticky-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sticky-nav-links a {
  color: #363535;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sticky-nav-links a:hover {
  color: var(--primary);
}

.sticky-nav-links .nav-divider {
  color: rgba(54, 53, 53, 0.3);
  font-weight: 300;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Portrait Overlay & Fullscreen Layout Overrides */
@media (max-width: 768px) {
  /* Hide standard mobile navigation toggle */
  .mobile-nav-toggle {
    display: none !important;
  }

  /* Hide top header completely on mobile to remove the blue Rupam logo */
  header {
    display: none !important;
  }

  /* Full viewport screen height layout for hero section on mobile */
  .hero-section {
    height: 100vh;
    min-height: 600px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #ffffff;
  }

  /* Overlay elements */
  .hero-grid {
    display: block !important; /* Disable grid structure to overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  /* RUPAM background text positioned exactly at the top, spanning edge to edge */
  .hero-bg-text {
    top: 5% !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    color: #e6e8eb !important;
    opacity: 0.95 !important;
    z-index: 1 !important;
  }

  /* Portrait container absolute behind text, filling the container */
  .hero-center {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    pointer-events: none;
  }

  .hero-image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    background: radial-gradient(circle at 50% 50%, rgba(3, 139, 222, 0.3) 0%, transparent 65%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    overflow: visible !important;
  }

  .hero-portrait {
    width: 120vw !important;
    max-width: 120vw !important;
    height: 82vh !important;
    object-fit: cover !important;
    object-position: center bottom !important;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15)) !important;
    margin-bottom: 0 !important;
    display: block !important;
  }

  /* Title box absolute positioned at the bottom left over portrait's chest */
  .hero-left {
    position: absolute !important;
    bottom: 120px !important; /* spacing above the floating nav pill */
    left: 24px !important;
    right: 24px !important;
    z-index: 3 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    pointer-events: auto;
  }

  /* White text for visibility on dark shirt */
  .hero-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  }

  /* Highlighter background blocks exactly matching mockup */
  .hero-title span {
    display: inline !important;
    background-color: var(--primary) !important;
    color: #ffffff !important;
    padding: 3px 8px !important;
    box-decoration-break: clone !important;
    -webkit-box-decoration-break: clone !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 4px 10px rgba(3, 139, 222, 0.2) !important;
  }

  /* Hide CTA and right content from hero on mobile screen */
  .hero-left .cta-btn {
    display: none !important;
  }

  .hero-right {
    display: none !important;
  }

  /* Mobile line breaks */
  .mobile-br {
    display: inline !important;
  }
}

/* CSS Scroll Snapping for Mobile Viewports */
@media (max-width: 768px) {
  html, body {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100%;
  }

  section, footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto; /* Allow scrolling inside section if content overflows */
    padding: 60px 24px !important;
  }

  section .container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .section-header {
    margin-bottom: 24px !important;
  }

  /* Asymmetric Grid Matrix for Mobile View (exactly matching mockup layout) */
  .grid-matrix {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 16px !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .matrix-item {
    background: #f0f2f5 !important; /* light gray card background matching mockup */
    border-radius: 16px !important;
    border: none !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Stagger delays for entrance animations */
  .section-tag.fade-in-up {
    transition-delay: 0s !important;
  }
  .section-title.fade-in-up {
    transition-delay: 0.1s !important;
  }
  .section-desc.fade-in-up {
    transition-delay: 0.2s !important;
  }
  
  .matrix-item:nth-child(1).fade-in-up {
    transition-delay: 0.35s !important;
  }
  .matrix-item:nth-child(3).fade-in-up { /* Left Column Top (95k+) */
    transition-delay: 0.45s !important;
  }
  .matrix-item:nth-child(4).fade-in-up { /* Left Column Bottom (Top-Tier) */
    transition-delay: 0.55s !important;
  }
  .matrix-item:nth-child(2).fade-in-up { /* Right Column Tall (500+) */
    transition-delay: 0.65s !important;
  }

  /* Card 1: 4 AI Patents (Spans full width, horizontal layout) */
  .matrix-item:nth-child(1) {
    grid-area: 1 / 1 / 2 / 3 !important; /* Row 1, Col 1-3 */
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    gap: 0 20px !important;
  }

  .matrix-item:nth-child(1) .matrix-header {
    display: contents !important; /* Flattens to layout grid items directly */
  }

  .matrix-item:nth-child(1) .matrix-number {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    font-size: 80px !important;
    font-weight: 900 !important;
    color: var(--primary) !important;
    line-height: 1 !important;
    align-self: center !important;
  }

  .matrix-item:nth-child(1) .matrix-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    margin-bottom: 2px !important;
    display: block !important;
  }

  .matrix-item:nth-child(1) .matrix-desc {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  /* Card 2, 3, 4: Vertical layouts */
  .matrix-item:not(:nth-child(1)) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .matrix-item:not(:nth-child(1)) .matrix-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .matrix-item:not(:nth-child(1)) .matrix-number {
    font-size: 38px !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    line-height: 1 !important;
    display: block !important;
  }

  .matrix-item:not(:nth-child(1)) .matrix-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    display: block !important;
  }

  .matrix-item:not(:nth-child(1)) .matrix-desc {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: var(--text-muted) !important;
  }

  /* Specific positioning/sizing overrides */
  .matrix-item:nth-child(3) {
    grid-area: 2 / 1 / 3 / 2 !important; /* Row 2, Col 1 */
  }

  .matrix-item:nth-child(4) {
    grid-area: 3 / 1 / 4 / 2 !important; /* Row 3, Col 1 */
  }

  .matrix-item:nth-child(2) {
    grid-area: 2 / 2 / 4 / 3 !important; /* Row 2-4, Col 2 (Spans 2 rows) */
  }

  .matrix-item:nth-child(4) .matrix-number {
    font-size: 20px !important; /* shrink "Top-Tier" text to fit layout perfectly */
    letter-spacing: -0.2px !important;
    text-transform: uppercase !important;
  }

  /* Global subtle blue highlight background for all content sections on mobile */
  section:not(.hero-section) {
    background: radial-gradient(circle at 85% 15%, rgba(3, 139, 222, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 15% 85%, rgba(3, 139, 222, 0.03) 0%, transparent 60%),
                #ffffff !important;
    border: none !important;
  }

  /* Asymmetric Grid layout for Pillars (3rd Section) on mobile */
  .pillars-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .pillar-card {
    background: #f0f2f5 !important; /* light gray card background matching mockup styling */
    border-radius: 16px !important;
    border: none !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  /* Pillar Card staggered animation delays */
  .pillar-card:nth-child(1).fade-in-up {
    transition-delay: 0.35s !important;
  }
  .pillar-card:nth-child(2).fade-in-up {
    transition-delay: 0.45s !important;
  }
  .pillar-card:nth-child(3).fade-in-up {
    transition-delay: 0.55s !important;
  }

  /* Pillar 1: Spans full width */
  .pillar-card:nth-child(1) {
    grid-column: span 2 !important;
  }

  .pillar-angle {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .pillar-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    line-height: 1.3 !important;
  }

  .pillar-copy {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: var(--text-muted) !important;
  }

  .pillar-link {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 4px !important;
  }

  .pillar-link svg {
    width: 12px !important;
    height: 12px !important;
  }
}
}

/* ==========================================================================
   Detail Drawer Modal (Mockup UI Bottom Sheet & Side-Sheet)
   ========================================================================== */
.detail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.detail-drawer {
  position: fixed;
  background: #ffffff;
  z-index: 10001;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop: Slide-in Side-Sheet from Right */
@media (min-width: 769px) {
  .detail-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: 460px;
    height: 100%;
    transform: translateX(100%);
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
  }
  
  .detail-modal-overlay.active .detail-drawer {
    transform: translateX(0) !important;
  }
}

/* Mobile: Full-Screen slide-up Page view */
@media (max-width: 768px) {
  .detail-drawer {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    transform: translateY(100%);
  }
  
  .detail-modal-overlay.active .detail-drawer {
    transform: translateY(0) !important;
  }
}

/* Drawer Internal Elements */
.drawer-header-actions {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 10005;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  color: #363535;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.back-btn svg {
  stroke-width: 3px;
}

.fav-btn {
  color: #cbd5e1; /* Default grey heart */
}

.fav-btn.active {
  color: #ef4444; /* Active red heart */
  background: #fee2e2;
}

.drawer-scroll-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;      /* hard clip — prevents fan cards bleeding outside the modal left/right bounds */
  display: flex;
  flex-direction: column;
}

.drawer-hero-banner {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
}

.drawer-sheet {
  background: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  margin-top: -24px;
  position: relative;
  z-index: 10002;
  padding: 24px 20px 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-handle-bar {
  display: none !important;
}

[data-card-id] {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-card-id]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(3, 139, 222, 0.1) !important;
}

.drawer-main-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;      /* establish stacking context */
  z-index: 20001;          /* above the white shield (20000) so text is always visible */
  background: #ffffff;     /* opaque white so cards cannot bleed through */
}

.drawer-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.drawer-title {
  font-size: 22px;
  font-weight: 850;
  color: #363535;
  letter-spacing: -0.4px;
  margin: 0;
}

.drawer-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.drawer-badge svg {
  width: 12px;
  height: 12px;
  color: #eab308;
}

.drawer-subtitle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.location-icon {
  width: 13px;
  height: 13px;
  color: var(--primary);
}

.drawer-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

.drawer-readmore-link {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  align-self: flex-start;
  margin-top: 4px;
}

/* Related Items section styling */
.drawer-related-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.drawer-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;      /* establish stacking context */
  z-index: 20001;          /* above the white shield (20000) so title is always readable */
  background: #ffffff;     /* solid white backing so cards behind it are fully hidden */
  padding-bottom: 6px;     /* slight breathing room before the fade starts */
}

.drawer-section-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: #363535;
  margin: 0;
}

.see-all-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.drawer-horizontal-scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 4px 2px;
}

/* Mini Horizontal Card Elements */
.mini-card {
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 8px;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(3, 139, 222, 0.08);
}

.mini-card-banner {
  width: 100%;
  height: 90px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.mini-card-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini-card-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #363535;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-card-meta {
  font-size: 10px;
  color: #64748b;
}

.mini-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.mini-card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #363535;
}

.mini-card-rating svg {
  width: 10px;
  height: 10px;
  color: #eab308;
}

.mini-card-action {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #363535;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mini-card-action:hover {
  background: var(--primary);
}

.mini-card-action svg {
  width: 10px;
  height: 10px;
  stroke-width: 3px;
}

/* ==========================================================================
   Responsive Hamburger Menu & Bottom Drawer Menu
   ========================================================================== */
.sticky-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.sticky-hamburger-btn .hamburger-line {
  width: 100%;
  height: 2px;
  background-color: #363535;
  border-radius: 1px;
  transition: background-color 0.3s ease;
}

/* Dark theme toggle compatibility */
.mobile-sticky-footer.dark-nav .sticky-hamburger-btn .hamburger-line {
  background-color: #ffffff;
}

/* Mobile Nav Drawer Overlay styles */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10008;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px 20px 36px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10009;
}

.mobile-nav-overlay.active .mobile-nav-sheet {
  transform: translateY(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.nav-menu-title {
  font-size: 13px;
  font-weight: 800;
  color: #363535;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.close-menu-btn {
  font-size: 28px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  line-height: 0.8;
  padding: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  background: #f8fafc;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.mobile-nav-item:active {
  transform: scale(0.98);
  background: #f1f5f9;
}

.mobile-nav-item .item-title {
  font-size: 14px;
  font-weight: 850;
  color: #363535;
}

.mobile-nav-item .item-desc {
  font-size: 11px;
  color: #64748b;
}

/* Breakpoint for hamburger transition to avoid menu-island text overlap */
@media (max-width: 540px) {
  .sticky-nav-links {
    display: none !important;
  }
  
  .sticky-hamburger-btn {
    display: flex !important;
  }
}

/* Mobile validation header spacing fix */
@media (max-width: 768px) {
  .validation-header {
    margin-bottom: 32px !important;
  }
  
  .marquee-container {
    margin-top: 16px !important;
  }

  /* Compact Sandbox Cards layout for mobile viewport compliance */
  .sandbox-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .sandbox-item {
    position: relative !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 14px 16px !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }

  .sandbox-left {
    padding-right: 40px !important;
    gap: 6px !important;
  }

  .sandbox-meta {
    gap: 12px !important;
  }

  .sandbox-tag {
    font-size: 9px !important;
  }

  .sandbox-time {
    font-size: 10px !important;
  }

  .sandbox-title {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
  }

  .sandbox-icon {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
  }

  .sandbox-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Spacing adjustments for credibility section to prevent bottom sticky nav overlap */
  .credibility-section {
    padding: 50px 24px 90px !important;
  }
  
  .grid-matrix {
    gap: 10px !important;
  }
  
  .matrix-item {
    padding: 16px 14px !important;
    gap: 6px !important;
  }
}

/* ==========================================================================
   Left Anchored Fan Style 10 Stop Island Design
   ========================================================================== */
.fan-carousel-mode {
  position: relative !important;
  height: 850px !important;
  width: 100% !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.fan-card {
  position: absolute !important;
  /* left, top, width, height, transform-origin set dynamically in index.js via FAN_CONFIG */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-radius: 24px !important;
  width: 240px;            /* NO !important — JS inline style overrides this via FAN_CONFIG.cardWidth */
  height: 52px;            /* NO !important — JS inline style overrides this via FAN_CONFIG.cardHeight */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
  opacity: 0 !important;
  margin: 0 !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease !important;
}

/* Fan activated state */
.fan-card.fan-activated {
  opacity: 1 !important;
}

/* Hide the invisible scroll capture zone’s scrollbar across all browsers */
#fan-scroll-zone {
  scrollbar-width: none !important;        /* Firefox */
  -ms-overflow-style: none !important;     /* IE / Edge legacy */
}
#fan-scroll-zone::-webkit-scrollbar {
  display: none !important;                /* Chrome, Safari, Opera */
}

/* Theme 1: Accent Blue background, Light blue text */
.fan-card.dark-theme {
  background: var(--primary) !important; /* accent blue: #038bde */
  color: #e0f2fe !important; /* very light blue tint */
}

/* Theme 2: Light blue background (10% tint), Accent blue text */
.fan-card.light-theme {
  background: rgba(3, 139, 222, 0.1) !important; /* 10% accent blue tint */
  color: var(--primary) !important; /* accent blue text: #038bde */
}

.fan-card-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  white-space: normal !important;  /* allow text to wrap */
  word-break: break-word !important;
  flex: 1 !important;              /* take remaining width beside image */
  padding-right: 10px !important;
}

.fan-card-img {
  /* Width & height are set dynamically from FAN_CONFIG.logoWidth / logoHeight in index.js */
  border-radius: 8px !important;   /* Rectangle with soft corners — not a circle */
  object-fit: contain !important;  /* SVG logos show in full without cropping */
  background: transparent !important;
  border: none !important;         /* No border on SVG logos — they are already styled */
  flex-shrink: 0 !important;       /* prevent image squishing when name text is long */
}
