/* ===============================================
   CSS VARIABLES & ROOT STYLES
   Variables used throughout the site for consistent theming
   =============================================== */
   :root {
    --primary-color: #ff0000;
    --secondary-color: #e6e6e6;
    --dark-color: #111111;
    --light-color: #f9f9f9;
    --text-color: #ffffff;
    --heading-color: #ffffff;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --heading-font: 'Teko', sans-serif;
    --body-font: 'Rajdhani', sans-serif;
  }
  
  /* ===============================================
     GLOBAL RESET & BASE STYLES
     Browser default reset and foundational styling
   =============================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--body-font);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--dark-color);
    overflow-x: hidden;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  section {
    padding: 100px 0;
    position: relative;
  }
  
  /* ===============================================
     VIDEO LANDING PAGE
     Full-screen video hero with overlay content
   =============================================== */
  .video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
  }
  
  .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  #bgVideo {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    filter: grayscale(100%);
  }
  
  .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }
  
  .video-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: absolute;
      bottom: 0;
      padding-bottom: 10vh;
  }
  
  .scroll-down {
    color: white;
    font-size: 2rem;
    margin-top: 40px;
    animation: bounce 2s infinite;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-10px); }
  }
  
  
  /* ===============================================
     BUTTONS
     Global button styling with hover animations
   =============================================== */
  .btn {
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: 2px;
    display: inline-block;
    padding: 12px 35px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
  }
  
  .primary-btn {
    background: var(--primary-color);
    color: white;
  }
  
  .primary-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: scale(1.05);
  }
  
  
  /* ===============================================
     HEADER & NAVIGATION
     Fixed header that changes style on scroll
   =============================================== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
  }
  
  header.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .logo-img {
      height: 60px;
      width: auto;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
  }
  
  .nav-links li {
    margin: 0 18px;
  }
  
  .nav-links a {
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-family: var(--heading-font);
    text-transform: uppercase;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: var(--primary-color);
  }
  
  .nav-key {
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    transition: var(--transition);
  }
  
  .nav-links a:hover .nav-key {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .nav-extra .shop-icon {
      color: var(--heading-color);
      font-size: 1.5rem;
      transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .nav-extra .shop-icon:hover {
      color: var(--primary-color);
      transform: scale(1.1);
  }
  
  .burger { display: none; } /* Add mobile styles if needed */
  
  /* ===============================================
     ABOUT SECTION
     Information about the team with two-column layout
   =============================================== */
  .section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--heading-color);
    position: relative;
    letter-spacing: 1px;
    font-family: var(--heading-font);
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
  }
  
  /* In style.css - Replace the old styles for these elements */
  /* Two-column layout for about section - image on left, text on right */
  .about-content {
    display: flex;
    align-items: center; /* This vertically aligns the image and text block */
    gap: 60px; /* Increased the gap slightly for better visual separation */
  }
  
  /* --- THIS IS THE KEY FIX --- */
  .about-image {
      flex: 0 0 50%; /* Tells the image container: don't grow, don't shrink, and start at 40% width */
      max-width: 50%; /* A fallback to ensure it never exceeds this width */
  }
  
  .about-text {
      flex: 0 0 80%; /* Tells the text container: don't grow, don't shrink, and start at 55% width */
      max-width: 80%;
  }
  /* --- END OF FIX --- */
  
  
  .about-image img {
    width: 100%; /* Make the image fill its container */
    height: auto;
    border-radius: 8px; /* Optional: Adds slightly rounded corners for a softer look */
  }
  
  .about-text h3 {
      font-size: 2.2rem;
      margin-bottom: 25px;
      color: var(--heading-color);
      font-family: var(--heading-font);
  }
  
  .about-intro {
      font-size: 1.15rem;
      font-weight: 600;
      line-height: 1.6;
      margin-bottom: 30px;
  }
  
  .about-volets {
      margin-bottom: 30px;
      padding-left: 30px; /* Increased padding for more breathing room */
      border-left: 4px solid var(--primary-color);
  }
  
  .about-volets h4 {
      font-family: var(--heading-font);
      font-size: 1.5rem;
      text-transform: uppercase;
      color: var(--primary-color);
      letter-spacing: 1.5px;
      margin-top: 20px;
      margin-bottom: 10px;
  }
  
  .about-volets p,
  .about-vision p {
      color: #ccc;
      line-height: 1.7;
      margin-bottom: 15px;
      font-size: 1.05rem; /* Slightly increased font size for readability */
  }
  
  
  /* ===============================================
     TEAM SECTION (NEW DESIGN)
     =============================================== */
  .team {
    background-color: var(--dark-color);
    padding: 100px 0;
    overflow: hidden;
    margin-top: 40px ;
    margin-bottom: 40px;
  }
  
  .section-title-new {
      text-align: center;
      margin-bottom: 60px;
  }
  
  .section-title-new h3 {
      font-family: var(--heading-font);
      font-size: 2rem;
      letter-spacing: 5px;
      color: #aaa;
      margin-bottom: 10px;
  }
  
  .title-logo {
      max-width: 300px;
  }
  
  .team-carousel-container {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 500px; /* Give the container a fixed height */
  }
  
  .team-carousel {
      display: flex;
      align-items: center;
      width: 100%;
      height: 100%;
      transform-style: preserve-3d;
      perspective: 1500px;
      transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  
  .team-member {
      flex: 0 0 20%; /* Each member takes up 20% of the width (for 5 members) */
      position: relative;
      cursor: pointer;
      transition: var(--transition);
      filter: grayscale(100%);
      opacity: 0.4;
      transform: scale(0.85);
      text-align: center;
  }
  
  .team-member.active {
      filter: none;
      opacity: 1;
      transform: scale(1.1);
  }
  
  .team-member.adjacent {
      opacity: 0.6;
      transform: scale(0.95);
  }
  
  .member-photo {
      width: 80%;
      max-width: 280px;
      height: auto;
      object-fit: cover;
      transition: transform 0.3s ease;
  }
  
  .team-member:hover .member-photo {
      transform: scale(1.05);
  }
  
  .member-name {
      position: absolute;
      top: 50%;
      left: 10px;
      transform: translateY(-50%) rotate(180deg);
      writing-mode: vertical-rl;
      font-family: var(--heading-font);
      font-size: 1.8rem;
      letter-spacing: 3px;
      color: white;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
      opacity: 0;
      transition: opacity 0.3s ease;
  }
  
  .team-member.active .member-name {
      opacity: 1;
  }
  
  .member-info {
      margin-top: 15px;
  }
  
  .member-role {
      font-family: var(--heading-font);
      font-size: 1.4rem;
      color: #ccc;
      text-transform: uppercase;
  }
  
  .indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #555;
      margin: 10px auto 0;
      transition: background-color 0.3s ease;
  }
  
  .team-member.active .indicator {
      background-color: var(--primary-color);
  }
  
  .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: transparent;
      border: 2px solid #555;
      color: #fff;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 10;
      transition: var(--transition);
  }
  
  .carousel-btn:hover {
      border-color: var(--primary-color);
      color: var(--primary-color);
      transform: translateY(-50%) scale(1.1);
  }
  
  .prev-btn {
      left: 20px;
  }
  
  .next-btn {
      right: 20px;
  }

  /* ===============================================
   ROSTERS SECTION
   Interactive parallelogram tiles with hover expansion
   =============================================== */

/* Create a wider container specifically for the roster section */
.rosters .container {
    width: 96%; /* Increased from 90% to reduce left/right margins */
    max-width: 1600px; /* Increased from 1400px */
}

.roster-tiles {
    --gap: 8px;
    --speed: 0.6s;
    --easing: cubic-bezier(.22,.61,.36,1);
    --article-width: 480;
    --items: 6;  /* Already updated for 6 tiles */
  
    display: grid;
    grid-template-columns: 16fr repeat(calc(var(--items) - 1), 1fr);
    gap: var(--gap);
    list-style: none;
    padding: 0;
    margin: 2rem auto;
  
    /* make it span wider screens */
    width: 100%;
    max-width: 1600px; /* Increased from 1400px to match container */   
    height: clamp(480px, 52dvh, 580px); /* Increased from 420px/45dvh/520px for taller tiles */
  
    transition: grid-template-columns var(--speed) var(--easing);
  }
  
  .roster-tiles > li {
    position: relative;
    overflow: hidden;
    min-width: 80px;
    border: 1px solid #ccc;
    background: #111;
    border-radius: 0; /* was 8px */
    transform: skewX(-14deg);
    transform-origin: left center;
    isolation: isolate;
  }
  
  .roster-tiles article {
    width: calc(var(--article-width) * 1px);
    height: 100%;
    position: absolute;
    inset: 0;
    transform: skewX(14deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: var(--light-color);
  }
  
  .roster-tiles article h3 {
    position: absolute;
    top: 1rem;
    left: 1rem;
    transform: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
    margin-left: 50px;
  }
  
  .roster-tiles article p { font-size: 1.2rem; opacity: 0; transition: opacity var(--speed) var(--easing); }
  .roster-tiles article a { position: absolute; bottom: 1rem; color: var(--light-color); text-decoration: none; }
  .roster-tiles article a span { border-bottom: 2px solid var(--light-color); }
  
  .roster-tiles article img {
    position: absolute; 
    inset: 0; 
    /* Increased both width and height */
    width: 170%; 
    height: 170%;
    /* Adjusted positioning to center the image both horizontally and vertically */
    left: -35%; 
    top: -35%;
    /* Changed to contain to ensure the entire image is visible */
    object-fit: contain;
    transform: skewX(-14deg) scale(1.02);
    transition: filter var(--speed) var(--easing), transform var(--speed) var(--easing);
    z-index: -1;
  }
  
  .roster-tiles [data-active="true"] article img { 
    filter: grayscale(0) brightness(1); 
    /* Maintain the unzoom effect while ensuring the image is fully visible */
    transform: skewX(-14deg) scale(0.6); 
  }
  
  /* Mobile adjustments for non-skewed view */
  @media (max-width: 820px) {
    .roster-tiles { grid-template-columns: 1fr; height: auto; }
    .roster-tiles > li { transform: none; }
    .roster-tiles article { transform: none; position: relative; height: 240px; } /* Increased from 220px */
    .roster-tiles article h3 { rotate: 0deg; position: static; margin-bottom: .5rem; }
    
    /* Fix images on mobile where skew isn't applied */
    .roster-tiles article img { 
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      /* Changed to cover for mobile since there's no skew */
      object-fit: cover;
      transform: none; 
    }
    
    /* Adjust mobile active image */
    .roster-tiles [data-active="true"] article img { 
      transform: scale(0.8);
      /* Center the image on mobile */
      object-position: center;
    }
  }
  
  /* --- prevent text/button overlap --- */
  .roster-tiles article{
    /* leave room for the button area */
    padding: 1rem clamp(12px, 2.2cqi, 20px) 3.25rem;
  }
  
  /* paragraph spacing & width */
  .roster-tiles article p{
    margin: 0 0 .75rem;
    max-width: 46ch;
    line-height: 1.35;
    /* clamp lines so it never runs into the button */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* keep button in its own layer */
  .roster-tiles article a{
    position: absolute;
    left: clamp(12px, 2.2cqi, 20px);
    bottom: 1rem;
    line-height: 1;
  }
  
  /* when not active, fully disable interaction so hidden content can't be hovered */
  .roster-tiles li:not([data-active="true"]) article :is(p, a){
    pointer-events: none;
  }
  
  /* optional: darken the bottom a bit for readability */
  .roster-tiles > li::after{
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,.35), transparent);
    z-index: 0;
  }
  .roster-tiles article{ z-index: 1; } /* keep text above the gradient */
  
  /* mobile: keep everything in flow to avoid collisions */
  @media (max-width: 820px){
    .roster-tiles article{
      padding: 1rem;
    }
    .roster-tiles article a{
      position: static;
      display: inline-block;
      margin-top: .5rem;
    }
    .roster-tiles article p{
      -webkit-line-clamp: 4;
    }
  }
  
  /* ===============================================
   END OF ROSTERS SECTION
   =============================================== */
  
  /* ===============================================
   RESPONSIVE DESIGN IMPROVEMENTS
   Media queries for different screen sizes
   =============================================== */
  
  /* Large screens (992px and below) - reduced spacing and text size */
@media (max-width: 992px) {
  section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2.4rem;
  }
}

/* About section responsive */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .about-image,
  .about-text {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .about-text h3 {
    font-size: 2rem;
    text-align: center;
  }
  
  .about-volets {
    padding-left: 20px;
  }
}

/* Team section responsive */
@media (max-width: 768px) {
  .team-carousel-container {
    height: auto;
    padding: 20px 0;
  }
  
  .team-carousel {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    transform: none !important; /* Prevent any horizontal movement */
    perspective: none;
    transition: none;
  }
  
  .team-member {
    flex: 0 0 100%;
    margin-bottom: 30px;
    transform: none !important; /* Remove all scaling */
    opacity: 1 !important; /* Make all members fully visible */
    filter: none !important; /* Remove grayscale effect */
    transition: none; /* Remove transitions */
  }
  
  .carousel-btn {
    display: none; /* Hide carousel buttons on mobile */
  }
  
  .member-name {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    opacity: 1;
    margin-top: 10px;
    text-shadow: none;
    font-size: 1.5rem;
  }
  
  .member-photo {
    width: 60%; /* Slightly smaller photos on mobile */
    max-width: 200px;
    transition: none; /* Remove hover effects */
  }
  
  .team-member:hover .member-photo {
    transform: none; /* Remove hover scale effect */
  }
}

/* Mobile navigation */
.burger {
  cursor: pointer;
}

.line1, .line2, .line3 {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.4s;
}

/* Mobile menu styles */
.nav-active {
  transform: translateX(0%);
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    top: 80px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 999;
  }
  
  .nav-links li {
    opacity: 0;
    margin: 15px 0;
  }
  
  /* Animation for burger menu */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .toggle .line2 {
    opacity: 0;
  }
  
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
