@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Poppins:wght@300;400;500&display=swap');


:root {
  --bg: #0a0a0f;
  --card: #1a1a28;
  --card2: #12121e;
  --accent: #6c63ff;
  --accent2: #ff6584;
  --accent3: #43e97b;
  --gold: #ffd700;
  --text: #f0f0f8;
  --muted: #9090aa;
  --border: rgba(108,99,255,0.2);
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}


*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }


body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}


a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--accent3); border-radius: 4px; }


/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 56px;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}


.nav-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
}
.nav-logo span { color: var(--accent3); }


.nav-right a {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.nav-right a:hover { color: var(--accent3); }


/* ===== HERO ===== */
.cricket-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 40px 60px;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(67,233,123,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(108,99,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}


.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}


.hero-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent3);
  margin-bottom: 16px;
  text-transform: uppercase;
}


.hero-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 10vw, 120px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: 2px;
}


.hero-title span {
  background: linear-gradient(90deg, var(--accent3), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.85;
}


/* Animated cricket ball */
.cricket-ball {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e63946, #9b1d1d);
  bottom: 60px;
  right: 80px;
  box-shadow: 0 0 40px rgba(230,57,70,0.4);
  animation: ballFloat 4s ease-in-out infinite;
  z-index: 1;
}


.ball-seam {
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}


@keyframes ballFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}


/* ===== TRAITS ===== */
.traits-section {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  padding: 0 60px 80px;
  max-width: 1300px;
  margin: 0 auto;
}


.trait-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}


.trait-card.visible {
  opacity: 1;
  transform: translateY(0);
}


.trait-card:hover {
  border-color: var(--accent3);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(67,233,123,0.12);
}


.trait-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}


.trait-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent3);
  margin-bottom: 12px;
}


.trait-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}


/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 60px;
  text-align: center;
}


.section-title span {
  background: linear-gradient(90deg, var(--accent3), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===== TIMELINE ===== */
.timeline-section {
  padding: 80px 60px;
  max-width: 1100px;
  margin: 0 auto;
}


.timeline {
  position: relative;
  padding: 0 0 0 0;
}


.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent3), var(--accent), transparent);
  transform: translateX(-50%);
}


.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 60px;
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s ease;
}


.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
  transform: translateX(40px);
}


.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}


.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent3);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 20px rgba(67,233,123,0.6);
  animation: dotPulse 2s ease-in-out infinite;
}


@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 20px rgba(67,233,123,0.6); }
  50% { box-shadow: 0 0 35px rgba(67,233,123,1); }
}


.timeline-year {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(28px);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent3);
  white-space: nowrap;
}


.timeline-item.right .timeline-year {
  transform: translateX(calc(-100% - 28px));
}


.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 420px;
  transition: all 0.3s;
}


.timeline-card:hover {
  border-color: var(--accent3);
  box-shadow: 0 8px 32px rgba(67,233,123,0.1);
}


.timeline-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}


.timeline-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}


.timeline-card strong { color: var(--text); }


/* Highlight card */
.highlight-card {
  border-color: var(--gold) !important;
  box-shadow: 0 0 30px rgba(255,215,0,0.15);
  position: relative;
}


.winner-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold), #ffaa00);
  color: #0a0a0f;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 10px;
}


/* Media row: Improved for split-screen flexibility */
.media-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  width: 100%;
  flex-wrap: nowrap; /* Keeps them side-by-side until the screen is very small */
}


.media-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}


/* THE FIX: Use aspect-ratio instead of fixed height */
.media-box img,
.timeline-video {
  width: 100%;
  /* This creates a perfect landscape box that scales with the window size */
  aspect-ratio: 16 / 10;
 
  /* 'cover' fills the box. If you find important parts of a specific
     photo are still cut, you can change this to 'revert' or 'contain'
     for that specific image only. */
  object-fit: cover;
 
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #000;
  transition: transform 0.3s ease;
}


/* Split-screen & Mobile optimization */
@media (max-width: 768px) {
  .media-row {
    flex-direction: column; /* Stacks them so they have more room */
    gap: 15px;
  }
 
  .media-box img,
  .timeline-video {
    aspect-ratio: 16 / 9; /* Slightly wider for mobile/stacked view */
  }
}


/* ===== BPL SECTION ===== */
.bpl-section {
  padding: 80px 60px;
  max-width: 1300px;
  margin: 0 auto;
}


.bpl-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: -40px;
  margin-bottom: 56px;
  line-height: 1.8;
}


.bpl-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 32px;
}


.bpl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}


.bpl-card.visible {
  opacity: 1;
  transform: translateY(0);
}


.bpl-card:hover {
  border-color: var(--accent2);
  box-shadow: 0 12px 48px rgba(255,101,132,0.15);
}


.bpl-year {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  padding: 20px 24px 0;
}


.bpl-badge {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  padding: 8px 24px 16px;
}


.bpl-media {
  width: 100%;
  height: 240px;
  overflow: hidden;
}


.bpl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}


.bpl-card:hover .bpl-media img { transform: scale(1.05); }


.bpl-story {
  padding: 20px 24px 28px;
}


.bpl-story p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}


.bpl-story strong { color: var(--text); }


.bpl-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--accent2);
  border-left: 3px solid var(--accent2);
  padding-left: 14px;
  line-height: 1.6;
}


/* ===== DEEPER SECTION ===== */
.deeper-section {
  padding: 80px 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(67,233,123,0.05), rgba(108,99,255,0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}


.deeper-content h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}


.deeper-content p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.8;
}


.btn-deeper {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent3), var(--accent));
  color: #0a0a0f;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 44px;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 28px rgba(67,233,123,0.35);
}


.btn-deeper:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(67,233,123,0.55);
}


/* ===== FOOTER ===== */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}


.footer a { color: var(--accent3); }
.footer a:hover { color: var(--text); }


/* ===== AOS ANIMATION ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cricket-hero { padding: 60px 20px 40px; }
  .hero-title { font-size: clamp(36px, 8vw, 64px); }
  .section-title { font-size: clamp(28px, 6vw, 48px); }
  .traits-section { grid-template-columns: 1fr; padding: 0 20px 60px; }
  .timeline-section { padding: 60px 20px; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item.right {
    justify-content: flex-start;
    padding: 0 0 0 50px;
    transform: translateX(-20px);
  }
  .timeline-dot { left: 20px; }
  .timeline-year { left: 20px; transform: translateX(28px); }
  .timeline-item.right .timeline-year { transform: translateX(28px); }
  .timeline-card { max-width: 100%; }
  .bpl-section { padding: 60px 20px; }
  .bpl-grid { grid-template-columns: 1fr; }
  .deeper-section { padding: 60px 20px; }
  .footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px 20px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 32px; }
  .section-title { font-size: 26px; }
  .timeline-item, .timeline-item.right { padding: 0 0 0 40px; }
  .timeline-card { padding: 20px; }
}


/* ===== EXTRA TIMELINE CARD STYLES ===== */


.dot-gold {
  background: var(--gold) !important;
  box-shadow: 0 0 20px rgba(255,215,0,0.7) !important;
}


.dot-silver {
  background: #c0c0c0 !important;
  box-shadow: 0 0 20px rgba(192,192,192,0.7) !important;
}


.dot-fire {
  background: var(--accent2) !important;
  box-shadow: 0 0 20px rgba(255,101,132,0.7) !important;
}


.motm-card {
  border-color: var(--gold) !important;
  box-shadow: 0 0 30px rgba(255,215,0,0.15);
}


.motm-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold), #ffaa00);
  color: #0a0a0f;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 10px;
}


.runner-badge {
  display: inline-block;
  background: linear-gradient(90deg, #c0c0c0, #a0a0a0);
  color: #0a0a0f;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 10px;
}


.comeback-card {
  border-color: var(--accent2) !important;
  box-shadow: 0 0 30px rgba(255,101,132,0.15);
}


.comeback-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent2), #ff3366);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 10px;
}


.timeline-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--accent2);
  border-left: 3px solid var(--accent2);
  padding-left: 14px;
  margin-top: 14px;
  line-height: 1.6;
}


.motm-card .timeline-quote {
  color: var(--gold);
  border-left-color: var(--gold);
}


.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(8px);
  justify-content: center; align-items: center;
}
.lightbox.active { display: flex; }
.lightbox-content-wrapper img, .lightbox-content-wrapper video {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 12px;
  border: 1px solid rgba(67, 233, 123, 0.4);
}
.lightbox-close {
  position: absolute; top: 30px; right: 40px;
  color: #fff; font-size: 45px; cursor: pointer;
}
.media-box img, .timeline-video { cursor: zoom-in; }




/* Better Image Proportion */
.media-box img {
    width: 100%;
    height: auto; /* Allows the image to dictate its own height */
    max-height: 300px; /* Limits giant images from breaking the layout */
    object-fit: contain; /* Shows the ENTIRE image without cropping */
    background: #000; /* Adds black bars if the image is weirdly shaped */
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}


/* Video Styling */
.video-box {
    position: relative;
    overflow: hidden;
}


.timeline-video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--accent3);
    cursor: pointer;
}


.video-ctrl-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(67, 233, 123, 0.8);
    border: none;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.3s;
    z-index: 5;
}


.video-box:hover .video-ctrl-btn {
    opacity: 1;
}
/* Better Image Proportion */
.media-box img {
    width: 100%;
    height: auto; /* Allows the image to dictate its own height */
    max-height: 300px; /* Limits giant images from breaking the layout */
    object-fit: contain; /* Shows the ENTIRE image without cropping */
    background: #000; /* Adds black bars if the image is weirdly shaped */
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}


/* Video Styling */
.video-box {
    position: relative;
    overflow: hidden;
}


.timeline-video {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--accent3);
    cursor: pointer;
}


.video-ctrl-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(67, 233, 123, 0.8);
    border: none;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.3s;
    z-index: 5;
}


.video-box:hover .video-ctrl-btn {
    opacity: 1;
}


/* Fix for Black Spaces */
.media-box img,
.timeline-video {
  width: 100%;
  height: 200px; /* Adjust height to match your card design */
  object-fit: cover; /* This removes the black bars by filling the space */
  display: block;
  border-radius: 8px;
}


/* Ensure the video box doesn't have a black background showing */
.video-box {
  background: none !important;
  overflow: hidden;
}


/* Maintain aspect ratio in the popup so it doesn't crop when zoomed */
.lightbox-content-wrapper img,
.lightbox-content-wrapper video {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain; /* Keep contain ONLY for the popup so you see the full image */
}
/* ============================================================
   FINAL RESOLUTION: NO CROPPING & FULL SCREEN ZOOM
   ============================================================ */


/* 1. TIMELINE MEDIA: Edge-to-edge with no black bars */
.media-box img,
.timeline-video {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important; /* Fills the container completely */
    object-position: center !important;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    cursor: zoom-in !important;
    display: block !important;
}


/* 2. LIGHTBOX (ZOOM): Fixes the "small image" issue */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0;
    width: 100vw !important; /* Force full screen width */
    height: 100vh !important; /* Force full screen height */
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
}


.lightbox.active {
    display: flex !important;
}


/* Ensure the zoomed content is actually large */
.lightbox-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.lightbox-content-wrapper img,
.lightbox-content-wrapper video {
    max-width: 95vw !important; /* Use 95% of screen width */
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Show the WHOLE image when zoomed */
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}


/* 3. CLOSE BUTTON */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100001;
}

/* ==========================================
   FINAL CONSOLIDATED MEDIA & LIGHTBOX 
   ========================================== */

/* 1. THE MEDIA ROW - Edge-to-edge container */
.media-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    width: 100%;
}

/* 2. TIMELINE IMAGES & VIDEOS - No empty space, no cropping */
.media-box img, 
.timeline-video {
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    max-height: 400px !important;
    /* 'cover' removes the black bars by filling the entire box */
    object-fit: cover !important; 
    object-position: center;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    display: block !important;
    cursor: zoom-in;
    background: none !important;
}

/* 3. LIGHTBOX (ZOOM) - Full screen resolution */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    top: 0; left: 0; 
    width: 100vw !important; 
    height: 100vh !important; 
    background-color: rgba(0, 0, 0, 0.98); 
    backdrop-filter: blur(15px);
    justify-content: center; 
    align-items: center;
}

.lightbox.active { display: flex !important; }

/* Forces zoomed content to be large and clear */
.lightbox-content-wrapper img, 
.lightbox-content-wrapper video {
    max-width: 95vw !important; 
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    /* Shows the WHOLE media when zoomed */
    object-fit: contain !important; 
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute; 
    top: 25px; 
    right: 35px;
    color: #fff; 
    font-size: 50px; 
    cursor: pointer;
}


