* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

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

/* Header with Glassmorphism Effect - Logo Left, Button Right */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo left, button right */
  padding: 5px 25px;
  
  /* Glassmorphism - Semi-transparent dark */
  background: rgba(11, 16, 32, 0.9); /* Slightly more opaque for better contrast */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  /* Border */
  
  /* Sticky positioning */
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 50px;
}

/* Logo - Bigger size */
.header-logo {
  height: 100px; /* Increased from 60px */
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

/* Next Batch Button inside header - Right side */
.header .batch-btn {
  position: static; /* Remove fixed positioning */
  top: auto;
  right: auto;
  margin: 0;
  background: #ff5c5c;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 92, 92, 0.3);
}

.header .batch-btn:hover {
  background: #ff4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 92, 92, 0.4);
}

/* Remove the old fixed button from body */
body > .batch-btn {
  display: none;
}

/* Vision */
/* =======================
   VISION (REFINED)
======================= */
.vision {
  padding: 70px 20px 80px; /* Reduced top padding since header is fixed */
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.vision h1 {
  margin-bottom: 40px;
  font-size: 36px;
}

/* Highlighted core belief */
.vision-quote {
  max-width: 820px;
  margin: 0 auto 50px;
  padding: 28px 32px;

  font-size: 20px;
  font-weight: 600;
  line-height: 1.7;

  color: #ffffff;

  background: linear-gradient(
    180deg,
    rgba(59, 130, 246, 0.12),
    rgba(59, 130, 246, 0.04)
  );

  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.35);
}

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

.vision-text p {
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 26px;
}


/* Journey */
.journey {
  padding: 80px 0;
}

.journey h2 {
  text-align: center;
  margin-bottom: 60px;
}

/* 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: #3b82f6;
}

.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: #11172f;
  padding: 20px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  display: block;
  transition: 0.3s;
}

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

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

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

/* Wrapper */
.id-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* 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: scroll;   /* IMPORTANT */
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.id-scroll.dragging {
  cursor: grabbing;
}

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

/* Track */
.id-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

/* ID Card */
/* ID Card Container */
.id-card {
  min-width: 220px;
  height: 300px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.05)
  );

  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px;
  overflow: hidden;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* IMAGE INSIDE CARD */
.id-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;   /* ?? KEY FIX */
  object-position: center;

  border-radius: 12px;
  background: #0b1020;
}


.id-card:hover {
  transform: scale(1.15) translateY(-8px);
  box-shadow:
    0 15px 35px rgba(0,255,255,0.25),
    0 0 25px rgba(59,130,246,0.6);
  z-index: 10;
}
.id-card:hover img {
  transform: scale(1.05);
}

/* 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;
}

.id-card input {
  display: none;
}

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

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

/* Card faces */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.05)
  );

  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

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

/* IMAGE */
.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #0b1020;
  pointer-events: none;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  /* Header Mobile */
  .header {
    padding: 8px 20px;
    flex-direction: row; /* Stack vertically on mobile */
    gap: 15px;
    min-height: 70px;
    justify-content: space-between; /* Logo left, button right */
    align-items: center;
  }
  
  .header-logo {
    height: 70px; /* Slightly smaller on mobile but still prominent */
    max-width: 200px; 
  }
  
  .header .batch-btn {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap; /* Prevent button text from wrapping */
    flex-shrink: 0;
  }

  /* Vision Mobile */
  .vision {
    padding: 40px 15px 60px; /* Adjusted for stacked header */
  }

  .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: block;
    padding: 16px;
    border-radius: 12px;
  }

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

  .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;
  }
  
}

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

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

  .header {
      min-height: 60px;
    }
   
  .header .batch-btn {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .header-logo {
    height: 50px;
    max-width: 160px;
  }
}
