:root {
  --ink-100: rgba(255, 255, 255, 0.9);
  --ink-70: rgba(255, 255, 255, 0.7);
  --panel: rgba(17, 23, 47, 0.85);
  --panel-border: rgba(255, 255, 255, 0.1);
  --accent: #ff5c5c;
  --accent-blue: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3,
.hero-eyebrow {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: #0b1020;
  color: white;
  overflow-x: hidden;
}

/* Reveal Animations (JS-gated so content never disappears) */
body.js .reveal,
body.js .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

body.js .reveal.is-visible,
body.js .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.reveal-item:nth-child(1) {
  transition-delay: 0.02s;
}

.timeline-item.reveal-item:nth-child(2) {
  transition-delay: 0.05s;
}

.timeline-item.reveal-item:nth-child(3) {
  transition-delay: 0.08s;
}

.timeline-item.reveal-item:nth-child(4) {
  transition-delay: 0.11s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-item {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

body.home {
  background: #0b1020;
}


/* =======================
   HERO
======================= */
.hero {
  position: relative;
  padding: 110px 20px 60px;
  overflow: hidden;
  background: #0b1020;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

@keyframes heroGradientMove {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  25% {
    transform: translate3d(2%, -1%, 0) scale(1.05);
  }
  50% {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
  75% {
    transform: translate3d(-1%, 3%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-2%, -1%, 0) scale(1.06);
  }
}

body.home .hero {
  position: relative;
  z-index: 1;
  overflow: visible;
}

body.home .vision {
  position: relative;
  z-index: 2;
}

body.home .journey,
body.home .id-section,
body.home .site-footer {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: 56px;
  line-height: 1.15;
  margin: 20px 0 24px;
  letter-spacing: -0.8px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 13px;
  color: #3b82f6;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 32px 0 32px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: -1;
}

.hero-btn--primary {
  background: linear-gradient(135deg, #ff5c5c, #ff7070);
  color: #fff;
  box-shadow: 0 12px 32px rgba(255, 92, 92, 0.4);
}

.hero-btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(255, 92, 92, 0.5);
}

.hero-btn--ghost {
  border: 2px solid rgba(59, 130, 246, 0.6);
  color: #fff;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(8px);
}

.hero-btn--ghost:hover {
  transform: translateY(-4px);
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.3);
}

.hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 12px;
}

.hero-pills--compact span {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 8px 16px;
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-pills span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

/* Floating pill nav */
.header {
  position: sticky;
  top: 16px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.nav-shell {
  width: min(1100px, 100% - 40px);
  padding: 10px 24px;
  border-radius: 999px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 60px rgba(2, 6, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-hero-cta {
  padding: 8px 16px;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.features {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 150px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
  .nav-shell {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
  }
  .nav-links {
    display: none;
  }
  .nav-hero-cta {
    width: auto;
    white-space: nowrap;
  }
}

/* Vision */
/* =======================
   VISION (REFINED)
======================= */
.vision {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 60px auto 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
  display: grid;
  gap: 28px;
}

body.home .vision,
body.home .journey,
body.home .site-footer {
  position: relative;
  z-index: 2;
}

.vision h1 {
  margin-bottom: 8px;
  font-size: 48px;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.vision h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* Highlighted core belief */
.vision-quote {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.8;
  color: #ffffff;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
}

/* Supporting explanation */
.vision-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.vision-text p {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}


/* Journey */
.journey {
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.journey h2 {
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: -0.5px;
  font-size: 48px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.journey h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* Timeline */
.timeline {
  position: relative;
  width: 80%;
  margin: auto;
  max-width: 1000px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.2));
}

.timeline-item {
  width: 50%;
  padding: 20px 40px;
  position: relative;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #ff5c5c;
  border-radius: 50%;
}

.timeline-item.left::before {
  right: -7px;
}

.timeline-item.right::before {
  left: -7px;
}

/* Timeline Card */
.content {
  background: rgba(17, 23, 47, 0.92);
  padding: 20px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-symbol {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.content-symbol img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.content-text h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.content-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.content-arrow {
  font-size: 22px;
  transition: transform 0.2s ease;
}

.content:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.timeline-item.right .content:hover .content-arrow {
  transform: translateX(4px);
}

.timeline-item.left .content:hover .content-arrow {
  transform: rotate(180deg) translateX(-4px);
}

.content-arrow--left {
  transform: rotate(180deg);
}

.timeline-item.left .content {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-item.left .content-info {
  flex-direction: row-reverse;
}

/* ID Section */
.id-section {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #050914, #020617);
}

.id-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}

.id-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 92, 92, 0.9), rgba(139, 92, 246, 0.9));
}

/* Wrapper */
.id-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.id-row {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 20px 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
}

.id-row::before,
.id-row::after {
  display: none;
}

/* Arrows */
.arrow {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 28px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  z-index: 5;
}

.arrow:hover {
  background: rgba(255,255,255,0.25);
}

/* Scroll Container */
.id-scroll {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: visible;
  cursor: grab;
  scrollbar-width: none;
  padding-bottom: 0;
  will-change: scroll-position;
  width: 100%;
  flex: 1;
  min-height: 280px;
}

.id-scroll.dragging {
  cursor: grabbing;
  will-change: auto;
}

.id-scroll::-webkit-scrollbar {
  display: none;
}

/* Track */
.id-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-bottom: 2px;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}

/* ID Card */
/* ID Card Container */
.id-card {
  min-width: 220px;
  height: 300px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  transition: box-shadow 0.2s ease-out;
  will-change: box-shadow;
}

/* IMAGE INSIDE CARD */
.id-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #0b1020;
  display: block;
}

.id-card:hover {
  box-shadow:
    0 10px 30px rgba(59, 130, 246, 0.3),
    0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 10;
}

/* Hover scroll zones */
.hover-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: auto;
  z-index: 3;
}

.hover-left {
  left: 0;
}

.hover-right {
  right: 0;
}

/* FLIP CARD CORE */
.id-card {
  min-width: 220px;
  height: 320px;
  perspective: 1200px;
  position: relative;
}

.id-card input {
  display: none;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Flip on click */
.id-card input:checked + .card-inner {
  transform: rotateY(180deg);
}

/* Card faces */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #0b1020;
  border-radius: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* BACK SIDE */
.card-face.back {
  transform: rotateY(180deg);
}

/* IMAGE */
.card-face picture {
  width: 100%;
  height: 100%;
  display: block;
}

.card-face picture img,
.card-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.site-footer {
  position: relative;
  margin-top: 120px;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, rgba(15, 15, 16, 0.95), rgba(15, 15, 16, 0.98));
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  max-width: 100%;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section h3 {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, #f59e0b, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  letter-spacing: -0.5px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 8px 0 0 0;
}

.footer-phone {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 500;
}

.footer-section p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-weight: 300;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  font-weight: 400;
  padding: 4px 0;
}

.footer-links a:hover {
  color: #f59e0b;
  transform: translateX(4px);
}

.footer-social-link {
  color: #f59e0b !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-social-link:hover {
  color: #fb923c !important;
  transform: translateX(4px);
}

.footer-divider {
  max-width: 1100px;
  margin: 40px auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
}

.footer-credit {
  max-width: 1100px;
  margin: 30px auto 0;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 13px;
  padding: 0 20px;
}

.jump-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  z-index: 999;
  font-weight: bold;
}

.jump-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.jump-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.jump-to-top:active {
  transform: translateY(-2px);
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  /* Header Mobile */
  .header {
    padding: 0 6px;
  }

  .nav-shell {
    width: 100%;
    max-width: none;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-hero-cta {
    width: auto;
    text-align: center;
    white-space: nowrap;
  }

  /* Hero Mobile */
  .hero {
    padding: 72px 16px 36px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 15.5px;
  }

  .hero-actions {
    margin: 18px 0 18px;
  }

  body.home .hero {
    position: relative;
    min-height: auto;
  }

  body.home .vision {
    margin-top: 0;
  }

  .vision {
    padding: 60px 20px 64px;
    border-radius: 22px;
  }

  .vision h1 {
    font-size: 28px;
  }


  /* Vision Mobile */
  .vision {
    padding: 52px 18px 58px;
  }

  .vision h1 {
    font-size: 26px;
  }

  .vision-quote {
    font-size: 16px;
    padding: 18px;
  }

  /* Timeline Mobile */
  .timeline {
    width: 100%;
    padding-left: 30px;
  }

  /* vertical line */
  .timeline::before {
    left: 37px;
  }

  /* each item */
  .timeline-item {
    width: 100%;
    padding: 10px 10px 20px 40px;
    left: 0 !important;
    text-align: left;
  }

  /* dots - FIXED: Changed from left: 5px to left: 12px */
  .timeline-item::before {
    left: 0.5px; /* CHANGED THIS LINE - was 5px */
    top: 50%;
    transform: translateY(-50%);
    right: auto !important; /* Added to override desktop styles */
    margin-bottom: 20px;
  }

  /* card */
  .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    align-items: flex-start;
  }

  .content-arrow {
    align-self: flex-end;
  }

  /* force text alignment like your reference */
  .content h3,
  .content p {
    text-align: left;
  }

  .timeline-item.left .content,
  .timeline-item.right .content {
    flex-direction: column;
    text-align: left;
  }

  .timeline-item.left .content-info,
  .timeline-item.right .content-info {
    flex-direction: row;
    text-align: left;
  }

  .content-arrow--left {
    transform: none;
  }

  .timeline-item.left .content:hover .content-arrow,
  .timeline-item.right .content:hover .content-arrow {
    transform: none;
  }

  .timeline-item.left::before,
    .timeline-item.right::before {
      left: 0.5px !important; /* Force same position */
      right: auto !important;
    }

  /* ID Cards Mobile */
  .id-card {
    min-width: 160px;
    height: 240px;
  }

  .id-track {
    gap: 14px;
  }

  /* Hover zones on mobile */
  .hover-zone {
    display: none;
  }
}

@media (max-width: 480px) {
  .content h3 {
    font-size: 18px;
  }

  .content p {
    font-size: 13px;
  }

  body.home .vision {
    margin-top: 0;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero {
    padding: 64px 14px 32px;
  }
  
}

@media (max-width: 480px) {
  /* For very small screens */
  .header {
    padding: 0 6px;
    gap: 12px;
    min-height: 76px;
  }
  
  .header-logo {
    height: 30px;
    max-width: 180px;
  }
  
  .header .batch-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
}

@media (max-width: 375px) {
  /* For iPhone SE/small phones */

  .header {
    min-height: 72px;
  }

  .header .batch-btn,
  .nav-hero-cta {
    font-size: 11px;
    padding: 6px 10px;
  }

  .header-logo {
    height: 26px;
    max-width: 160px;
  }

  .hero-subtitle-main {
    font-size: 18px;
  }
}

/* ===== OPTIMIZED CARD MODAL STYLES ===== */
.card-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  will-change: opacity;
}

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

/* Modal overlay - removed backdrop-filter for performance */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  z-index: 1;
  will-change: opacity;
}

.modal-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
}

.modal-card-wrapper {
  width: 100%;
  max-width: 500px;
  max-height: 100%;
  aspect-ratio: 3.5 / 4.5;
  perspective: 1200px;
  cursor: pointer;
  will-change: transform;
}

.modal-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  will-change: transform;
}

.modal-card-wrapper.flipped .modal-card-inner {
  transform: rotateY(180deg);
}

/* Card faces - simplified styling */
.card-face.modal-front,
.card-face.modal-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-face.modal-front {
  background: #0b1020;
  z-index: 2;
}

.card-face.modal-back {
  background: #0b1020;
  transform: rotateY(180deg);
  z-index: 1;
}

.card-face.modal-front img,
.card-face.modal-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0b1020;
}

/* Close button - simplified */
.modal-close {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  will-change: background;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-container {
    padding: 30px 15px;
  }

  .modal-card-wrapper {
    max-width: 90vw;
  }

  .modal-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .modal-container {
    padding: 20px 12px;
  }

  .modal-card-wrapper {
    max-width: 95vw;
    aspect-ratio: 3 / 4;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

/* Hint text for double-click */
.id-card .card-inner {
  position: relative;
}

.id-card .card-inner::after {
  content: 'Double-click to expand';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
}

.id-card:hover .card-inner::after {
  opacity: 1;
}

/* ===== STUDENTS PAGE STYLES ===== */
.students-page {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(700px 400px at 10% 80%, rgba(139, 92, 246, 0.1), transparent 60%),
    #020617;
}

.students-hero {
  padding: 120px 20px 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.06));
}

.students-hero .hero-copy h1 {
  font-size: 56px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.students-hero .hero-copy .hero-eyebrow {
  color: #3b82f6;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
}

.students-hero .hero-copy .hero-subtitle {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.8;
}

/* Students Carousel Section */
.students-section {
  padding: 80px 20px;
}

.students-container {
  width: 100%;
}

.students-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}

.carousel-row {
  margin-bottom: 16px;
}

/* Carousel styling */
.students-section .id-row {
  position: relative;
  height: auto;
  margin: 0 auto;
}

.students-section .id-scroll {
  height: 280px;
  cursor: grab;
  overflow: hidden;
}

.students-section .id-track {
  height: 100%;
}

.students-section .id-card {
  min-width: 220px;
  height: 300px;
  perspective: 1200px;
}

.students-section .card-inner {
  transition: transform 0.6s ease;
  will-change: transform;
}

.students-section .id-card input:checked + .card-inner {
  transform: rotateY(180deg);
}

/* Add active nav styling */
.nav-links a.active {
  color: #3b82f6;
  font-weight: 600;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 4px;
}

/* Responsive carousel */
@media (max-width: 1024px) {
  .students-section .id-card {
    min-width: 190px;
    height: 270px;
  }

  .students-section .id-scroll {
    height: 290px;
  }

  .students-hero .hero-copy h1 {
    font-size: 36px;
  }

  .carousel-row {
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .students-section .id-card {
    min-width: 160px;
    height: 240px;
  }

  .students-section .id-scroll {
    height: 260px;
  }

  .students-hero .hero-copy h1 {
    font-size: 28px;
  }

  .students-hero .hero-copy .hero-eyebrow {
    font-size: 14px;
  }

  .students-hero {
    padding: 60px 20px 40px;
  }

  .students-section {
    padding: 50px 15px;
  }

  .row-label {
    font-size: 16px;
  }

  .carousel-row {
    margin-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .students-section .id-card {
    min-width: 140px;
    height: 200px;
  }

  .students-section .id-scroll {
    height: 220px;
  }

  .students-hero .hero-copy h1 {
    font-size: 24px;
  }

  .students-hero .hero-copy .hero-subtitle {
    font-size: 14px;
  }

  .students-section {
    padding: 30px 10px;
  }

  .row-label {
    font-size: 14px;
  }

  .carousel-row {
    margin-bottom: 40px;
  }
}

/* ===== NEW HERO STYLING ===== */
.hero-subtitle-main {
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 12px 0 16px;
  letter-spacing: 0.5px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top::after {
  content: '↑';
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* ===== MAP JOURNEY SECTION ===== */

@keyframes pinPop {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 0; }
  65%  { transform: translate(-50%,-50%) scale(1.18); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}

@keyframes pinRing {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

@keyframes pinFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

@keyframes routeFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.journey {
  padding: 90px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.journey-header h2 {
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 8px 0 12px;
  letter-spacing: -0.5px;
}

.journey-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* ── Map wrapper: pins sit here, allows overflow ── */
.journey-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 720;
}

/* ── Map background canvas ── */
.journey-map {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    radial-gradient(ellipse 60% 50% at 25% 30%, rgba(139,92,246,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 75% 70%, rgba(59,130,246,0.07) 0%, transparent 70%),
    #080b1e;
}

/* Subtle grid texture */
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* SVG road */
.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: routeFade 1s ease 0.3s both;
}

/* ── Pin markers ── */
.mpin {
  position: absolute;
  z-index: 10;
  animation: pinFloat 3.2s ease-in-out infinite;
  text-decoration: none;
  cursor: pointer;
}

/* Circle dot */
.mpin-dot {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c, #8b5cf6);
  border: 3px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: pinPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s;
}

.mpin:hover {
  animation-play-state: paused;
}

.mpin-dot:hover {
  transform: translate(-50%,-50%) scale(1.18);
  border-color: rgba(255,255,255,0.6);
}

/* Pulsing ring behind dot */
.mpin-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--c, #8b5cf6);
  z-index: -1;
  animation: pinRing 2.4s ease-out infinite;
}

.mpin-dot img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.mpin-emoji {
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Info label card */
.mpin-label {
  position: absolute;
  pointer-events: auto;
  top: 0;
  transform: translateY(-50%);
  background: rgba(8,10,30,0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  width: 148px;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.mpin:hover .mpin-label {
  border-color: var(--c, #8b5cf6);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

/* Card appears to the RIGHT of the dot */
.mpin-label--right {
  left: calc(23px + 14px); /* half dot + gap */
  border-left: 3px solid var(--c, #8b5cf6);
}

/* Card appears to the LEFT of the dot */
.mpin-label--left {
  right: calc(23px + 14px);
  text-align: right;
  border-right: 3px solid var(--c, #8b5cf6);
}

.mpin-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c, #8b5cf6);
  margin-bottom: 3px;
}

.mpin-label strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.mpin-label p {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  line-height: 1.45;
}

/* Staggered pin pop-in + float offsets — pins float at different phases */
.mpin:nth-child(3) { animation-delay: 0.7s; }
.mpin:nth-child(4) { animation-delay: -0.8s; }
.mpin:nth-child(5) { animation-delay: -1.6s; }
.mpin:nth-child(6) { animation-delay: -2.4s; }
.mpin:nth-child(7) { animation-delay: -0.3s; }
.mpin:nth-child(8) { animation-delay: 0.4s; }
.mpin:nth-child(9) { animation-delay: -1.1s; }
.mpin:nth-child(10) { animation-delay: -1.9s; }

.mpin:nth-child(3) .mpin-dot  { animation-delay: 0.6s; }
.mpin:nth-child(4) .mpin-dot  { animation-delay: 1.0s; }
.mpin:nth-child(5) .mpin-dot  { animation-delay: 1.4s; }
.mpin:nth-child(6) .mpin-dot  { animation-delay: 1.8s; }
.mpin:nth-child(7) .mpin-dot  { animation-delay: 2.2s; }
.mpin:nth-child(8) .mpin-dot  { animation-delay: 2.6s; }
.mpin:nth-child(9) .mpin-dot  { animation-delay: 3.0s; }
.mpin:nth-child(10) .mpin-dot { animation-delay: 3.4s; }

.mpin:nth-child(3) .mpin-dot::after  { animation-delay: 0.6s; }
.mpin:nth-child(4) .mpin-dot::after  { animation-delay: 1.0s; }
.mpin:nth-child(5) .mpin-dot::after  { animation-delay: 1.4s; }
.mpin:nth-child(6) .mpin-dot::after  { animation-delay: 1.8s; }
.mpin:nth-child(7) .mpin-dot::after  { animation-delay: 2.2s; }
.mpin:nth-child(8) .mpin-dot::after  { animation-delay: 2.6s; }
.mpin:nth-child(9) .mpin-dot::after  { animation-delay: 3.0s; }
.mpin:nth-child(10) .mpin-dot::after { animation-delay: 3.4s; }

/* Mobile fallback — vertical list */
@media (max-width: 768px) {
  .journey {
    padding: 60px 20px;
  }

  .journey-header h2 {
    font-size: 28px;
    margin-bottom: 0;
  }

  .journey-map-wrap {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
  }

  .journey-map { display: none; }

  .mpin {
    position: static;
    animation: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: rgba(12,14,35,0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--c, #8b5cf6);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
  }

  .mpin-dot {
    position: static;
    transform: none;
    animation: none;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
  }

  .mpin-dot::after { display: none; }
  .mpin-dot:hover { transform: none; }

  .mpin-label {
    position: static;
    transform: none;
    width: auto;
    flex: 1;
    background: none;
    border: none !important;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    text-align: left;
  }

  .mpin-label--left {
    text-align: left;
    right: auto;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 40px 20px 80px;
    margin-top: 80px;
  }

  .footer-content {
    gap: 32px;
  }

  .footer-section h3 {
    font-size: 22px;
  }

  .footer-divider {
    margin: 30px auto 0;
  }

  .footer-credit {
    margin: 24px auto 0;
    font-size: 12px;
  }

  .jump-to-top {
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* ── Journey Card Grid ── */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 0;
}

.jcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 16px 20px;
  background: rgba(12, 14, 35, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--c, #8b5cf6);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.jcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: var(--c, #8b5cf6);
  border-top-color: var(--c, #8b5cf6);
}

.jcard-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 18px rgba(0,0,0,0.3);
}

.jcard-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.jcard-text {
  flex: 1;
}

.jcard-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--c, #8b5cf6);
  margin-bottom: 5px;
}

.jcard-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.3;
}

.jcard-text p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.48);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .journey-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jcard {
    flex-direction: row;
    text-align: left;
    padding: 16px;
  }

  .jcard-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .jcard-icon img {
    width: 20px;
    height: 20px;
  }

  .jcard-text strong {
    font-size: 14px;
  }
}

/* ===== SQUARE ID CARDS WITH HORIZONTAL SCROLL ===== */
.id-card {
  min-width: 240px;
  height: 240px;
  width: 240px;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: #0f0f10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.id-card img,
.id-card picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.id-card input {
  display: none;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  cursor: pointer;
  perspective: 1200px;
}

.id-card input:checked + .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #0f0f10;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.card-face.back {
  transform: rotateY(180deg);
}

.card-face picture,
.card-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  background: #0f0f10;
}

.students-section .id-card {
  min-width: 240px;
  height: 240px;
  width: 240px;
  max-width: 240px;
  overflow: visible;
}

/* ===== HORIZONTAL SCROLL ANIMATIONS FOR INFINITE LOOP ===== */
@keyframes scrollLeftInfinite {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scrollRightInfinite {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}

.id-scroll {
  cursor: grab;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.students-section .id-scroll {
  overflow: hidden;
}

.id-scroll::-webkit-scrollbar {
  display: none;
}

.id-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.id-scroll.dragging .id-track {
  animation-play-state: paused !important;
}

.students-section .id-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-bottom: 2px;
}

.students-section .id-card {
  min-width: 220px;
  height: 280px;
  width: 220px;
  flex-shrink: 0;
  overflow: visible;
  border-radius: 32px;
  box-shadow:
    0 0 0 2px rgba(139, 92, 246, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.students-section .id-card:hover {
  box-shadow:
    0 0 0 2px rgba(245, 158, 11, 0.6),
    0 12px 36px rgba(139, 92, 246, 0.35);
  transform: translateY(-4px) scale(1.02);
}

.students-section .card-face {
  border-radius: 32px;
}

@media (max-width: 1024px) {
  .students-section .id-card {
    min-width: 185px;
    height: 240px;
    width: 185px;
  }
}

@media (max-width: 768px) {
  .students-section .id-card {
    min-width: 150px;
    height: 195px;
    width: 150px;
  }
}

/* ===== PROJECTS PAGE BUTTON STYLING ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 146, 60, 0.08));
  color: #f59e0b;
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 50px;
  border: 2px solid rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
}

.back-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  transform: translateX(-6px);
}

.hero-btn--primary {
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
}

.hero-btn--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(34, 197, 94, 0.5);
}

/* ───────────────────────────────────────────
    RESPONSIVE PHOTO GRID
    • Auto-fit columns: min 240px, max 1fr
    • Swap the min value to taste (200–320px)
    • Gap is adjustable via --grid-gap
    ─────────────────────────────────────────── */
.photo-grid {
  --grid-gap: 12px;
  --col-size: 140px;

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--col-size), var(--col-size)));
  justify-content: center;
  gap: var(--grid-gap);
  list-style: none;
}

.photo-grid__item {
  overflow: hidden;
  border-radius: 6px;
  background: #e7e5e4;       /* placeholder colour while loading */
  aspect-ratio: 1 / 1;       /* square cells — change to 4/3, 3/2, 16/9 etc. */
  border: 2px solid #d6d3d1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.photo-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* fills the cell without distortion */
}

/* ───────────────────────────────────────────
    BATCH SECTION
   ─────────────────────────────────────────── */
.batch-section {
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.batch-shell {
  max-width: 960px;
  margin: 0 auto;
}

.batch-title {
  font-size: 36px;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  color: #fff;
}

.batch-subtitle {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
  margin: 32px 0 16px;
  text-align: left;
}

.batch-subtitle:first-of-type {
  margin-top: 0;
}

@media (max-width: 768px) {
  .batch-section { padding: 48px 16px 40px; }
  .batch-title  { font-size: 26px; }
  .batch-subtitle { font-size: 18px; }
  .photo-grid { --col-size: 110px; --grid-gap: 8px; }
  .vision { margin: 32px auto 32px; padding: 48px 20px; }
}

@media (max-width: 480px) {
  .photo-grid { --col-size: 90px; --grid-gap: 6px; }
  .vision { margin: 24px auto 24px; padding: 36px 16px; }
}

/* ===== LIGHTBOX MOBILE FIXES ===== */
@media (max-width: 768px) {
  .lightbox-inner {
    gap: 10px;
  }

  .lightbox-arrow {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .lightbox-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .lightbox-inner {
    gap: 6px;
  }
}

/* ===== GALLERY GRID MOBILE FIX ===== */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 14px !important;
  }

  .gallery-grid img {
    height: 160px !important;
  }
}

/* ===== ID CARD MOBILE SIZE ===== */
@media (max-width: 480px) {
  .id-card {
    min-width: 180px;
    width: 180px;
    max-width: 180px;
    height: 180px;
  }
}