/* ===============================
   TEAMMAIN ORGANIZED CSS
   Main styles for Texcelerators Robotics Club
   ===============================
   
   TABLE OF CONTENTS:
   1. CSS Variables & Base Styles
   2. Font Definitions
   3. Global Styles
   4. Navigation Header & Navbar
   5. Sidebar Navigation
   6. Main Content Layout
   7. Responsive Design
   8. Utility Classes
   =============================== */

/* ===============================
   1. CSS VARIABLES & BASE STYLES
   =============================== */

   :root {
    /* Primary Color Palette */
    --primary: #2563eb;         /* Enhanced blue */
    --secondary: #10b981;       /* Richer green */
    --accent: #f43f5e;          /* Vibrant rose */
    --dark: #1e293b;            /* Slate dark */
    --light: #f8fafc;           /* Slate lightest */
    --neutral: #94a3b8;         /* Slate medium */
    --background: #0f172a;      /* Deeper dark blue background */
    --foreground: #f1f5f9;      /* Light slate foreground */
    --muted: #1F2937;           /* Slate muted */
    --muted-foreground: #cbd5e1; /* Lighter slate for subtle text */
    
    /* Additional Accent Colors */
    --purple: #8b5cf6;
    --amber: #f59e0b;
    --cyan: #06b6d4;
    --emerald: #10b981;
  
    /* Layout Variables */
    --sidebar-width-collapsed: 80px;
    --sidebar-width-expanded: 280px;
    --navbar-height: 120px;
    --transition-duration: 0.3s;
  }
  
  /* ===============================
     2. FONT DEFINITIONS
     =============================== */
  
  @font-face {
    font-family: 'Equinox';
    src: url('Assets/fonts/Equinox\ Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
  }
  
  .font-addition {
    font-family: 'Equinox', sans-serif;
  }
  
  .font-heading {
    font-family: 'Space Grotesk', sans-serif;
  }
  
  .font-body {
    font-family: 'Outfit', sans-serif;
  }
  
  .font-tech {
    font-family: 'Audiowide', cursive;
  }
  
  /* ===============================
     3. GLOBAL STYLES
     =============================== */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    padding-top: var(--navbar-height);
  }
  
  .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* ===============================
     4. NAVIGATION HEADER & NAVBAR
     =============================== */
  
  #main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform var(--transition-duration) ease;
  }
  
  .navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    height: var(--navbar-height);
  }
  
  .navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Logo styling */
  .logo-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
  }
  
  
  .logo-image img,
  .sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
  }
  
  /* Navbar text styling */
  .navbar-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .logo-text {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Equinox', sans-serif;
    margin: 0;
  }
  
  .logo-text span {
    color: var(--primary);
  }
  
  .tagline {
    font-size: 1rem;
    font-family: 'Equinox', sans-serif;
    font-weight: 400;
    color: rgba(148, 163, 184, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
  }
  
  /* Mobile navigation */
  .mobile-center {
    display: none;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-start;
    padding-left: 1rem;
  }
  
  .mobile-college-logo,
  .mobile-club-logo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .mobile-college-logo img,
  .mobile-club-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
  }
  
  .mobile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mobile-title {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Equinox', sans-serif;
    color: var(--foreground);
  }
  
  .mobile-subtitle {
    font-size: 0.7rem;
    font-family: 'Outfit', sans-serif;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
  }
  
  /* Hamburger menu */
  .hamburger-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: -7rem;
  }
  
  .hamburger-btn {
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.3);
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
  }
  
  .hamburger-btn:hover {
    background-color: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
    transform: scale(1.05);
  }
  
  .hamburger-line {
    width: 30px;
    height: 4px;
    background-color: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .hamburger-btn:hover .hamburger-line {
    background-color: var(--primary);
  }
  
  /* Hamburger animation states */
  .hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  
  .hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
  
  /* Dropdown navigation menu */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-duration) ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(30, 41, 59, 0.2));
    transform: translateY(-20px);
    opacity: 0;
  }
  
  .nav-link:hover {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
  }
  
  .nav-link.active {
    background: linear-gradient(145deg, var(--primary), var(--purple));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  }
  
  .nav-link i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: color 0.3s ease;
  }
  
  .nav-link:hover i,
  .nav-link.active i {
    color: white;
  }
  
  .nav-link span {
    font-weight: 500;
    font-size: 1rem;
  }
  

    /* College Logo Styling (Left Side) */
.navbar-text.left-text img {
  height: 220px; /* Adjust height as needed */
  width: auto; /* Maintain aspect ratio */
  max-width: 500px; /* Maximum width to prevent overflow */
  object-fit: contain;
  margin-left: -6.5rem; /* Keeps the Banner towards the left */
}



/* Responsive adjustments for the left college logo */
@media (max-width: 1200px) {
  .navbar-text.left-text img {
    height: 50px;
    max-width: 250px;
  }
}

@media (max-width: 992px) {
  .navbar-text.left-text img {
    height: 45px;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .navbar-text.left-text {
    display: none; /* Hide on mobile as it's in mobile-center */
  }
}
  
  /* College Logo Styling */
.navbar-text.right-text img {
  height: 150px; /* Adjust height as needed */
  width: auto; /* Maintain aspect ratio */
  max-width: 350px; /* Maximum width to prevent overflow */
  object-fit: contain;

}



/* Responsive adjustments for the college logo */
@media (max-width: 1200px) {
  .navbar-text.right-text img {
    height: 50px;
    max-width: 250px;
  }
}

@media (max-width: 992px) {
  .navbar-text.right-text img {
    height: 45px;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .navbar-text.right-text {
    display: none; /* Hide on mobile as it's in mobile-center */
  }
}

  /* ===============================
     5. SIDEBAR NAVIGATION
     =============================== */
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width-collapsed);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    z-index: 1001;
    transform: translateX(-100%);
    opacity: 0;
    transition: all var(--transition-duration) ease;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
  }
  
  .sidebar.active {
    transform: translateX(0);
    opacity: 1;
  }
  
  .sidebar:hover {
    width: var(--sidebar-width-expanded);
  }
  
  .sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 0;
  }
  
  .sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    gap: 1rem;
  }
  
  .sidebar-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: -7px;
  }

  /* Clickable sidebar logo link — preserves layout, adds pointer */
  .sidebar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .sidebar-logo-link:hover {
    opacity: 0.8;
    transform: scale(1.08);
  }

  .sidebar-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
  }
  
  .sidebar-brand {
    display: flex;
    flex-direction: column;
    font-family: 'Equinox', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
    white-space: nowrap;
    min-width: 0;
  }
  
  .sidebar:hover .sidebar-brand {
    opacity: 1;
  }
  
  .sidebar-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--foreground);
  }
  
  .sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -2px;
  }
  
  .sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 1rem;
    overflow: visible;
  }
  
  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--muted-foreground);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    width: 100%;
  }
  
  .sidebar-link:hover {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.1));
    color: var(--foreground);
    transform: translateX(5px);
  }
  
  .sidebar-link.active {
    background: linear-gradient(145deg, var(--primary), var(--purple));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  }
  
  .sidebar-link i {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
  }
  
  .sidebar-link span {
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
    white-space: nowrap;
    font-weight: 500;
    min-width: 0;
  }
  
  .sidebar:hover .sidebar-link span {
    opacity: 1;
  }
  
  /* ===============================
     6. MAIN CONTENT LAYOUT
     =============================== */
  
  body.sidebar-active #main-content {
    margin-left: var(--sidebar-width-collapsed);
    transition: margin-left var(--transition-duration) ease;
  }
  
  /* Hide navbar when sidebar is active */
  body.sidebar-active #main-header {
    transform: translateY(-100%);
  }
  
  /* ===============================
     7. RESPONSIVE DESIGN
     =============================== */
  
  @media (max-width: 768px) {
    .navbar-container {
      padding: 1rem;
    }
    
    .navbar-text,
    .navbar-logo {
      display: none;
    }
    
    .mobile-center {
      display: flex;
    }
    
    .sidebar {
      display: none;
    }
  }
  
  /* ===============================
     8. UTILITY CLASSES
     =============================== */
  
  /* Animations */
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
  }
  
  .pulse-hover:hover {
    animation: pulse 0.5s ease-in-out;
  }
  
  /* Gradient text effect */
  .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }
  
  /* Force visibility utilities */
  .force-visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Container utilities */
  .text-center {
    text-align: center;
  }
  
  .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Spacing utilities */
  .mb-2 { margin-bottom: 0.5rem; }
  .mb-4 { margin-bottom: 1rem; }
  .mb-8 { margin-bottom: 2rem; }
  .mt-2 { margin-top: 0.5rem; }
  .mt-4 { margin-top: 1rem; }
  .mt-8 { margin-top: 2rem; }
  
  .p-2 { padding: 0.5rem; }
  .p-4 { padding: 1rem; }
  .p-8 { padding: 2rem; }
  
  /* Color utilities */
  .text-primary { color: var(--primary); }
  .text-secondary { color: var(--secondary); }
  .text-muted { color: var(--muted-foreground); }
  .bg-primary { background-color: var(--primary); }
  .bg-secondary { background-color: var(--secondary); }
  .bg-muted { background-color: var(--muted); }

  /* ===============================
   FOOTER SECTION
   =============================== */

.footer {
    background-color: var(--dark);
    padding: 3rem 0 1rem;
    color: var(--foreground);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    overflow: hidden;
  }
  
  .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 25%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 75%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }

  /* Clickable footer logo link — preserves layout, adds pointer */
  .footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .footer-logo-link:hover {
    opacity: 0.8;
    transform: scale(1.08);
  }
  
  .footer-logo-image {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 0.75rem;
    border-radius: 0.375rem;
  }
  
  .footer-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .footer-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
  }
  
  .footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  
  .footer-section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
  }
  
  .footer-section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 3px;
  }
  
  .footer-links {
    list-style: none;
  }
  
  .footer-link-item {
    margin-bottom: 0.5rem;
  }
  
  .footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
  }
  
  .footer-link:hover {
    color: var(--primary);
    transform: translateX(6px);
  }
  
  .footer-link::before {
    content: '→';
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary);
  }
  
  .footer-link:hover::before {
    opacity: 1;
    left: -12px;
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
  }
  
  .contact-icon {
    color: var(--primary);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: rgba(37, 99, 235, 0.2);
  }
  
  .contact-text {
    color: var(--muted-foreground);
  }
  
  .contact-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .contact-link:hover {
    color: var(--primary);
  }
  
  .follow-section {
    margin-top: 1.5rem;
  }
  
  .follow-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
  }
  
  .follow-links {
    display: flex;
    gap: 0.75rem;
  }
  
  .follow-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .follow-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
  }
  
  /* Join Team Section */
  .team-join {
    padding: 5rem 0;
    background-color: var(--muted);
  }
  
  .join-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  
  @media (min-width: 1024px) {
    .join-content {
      flex-direction: row;
      align-items: center;
    }
    
    .join-text {
      flex: 1;
    }
    
    .join-image {
      flex: 1;
    }
  }
  
  .join-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
  }
  
  .join-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--muted-foreground);
  }
  
  .join-benefits {
    list-style: none;
    margin-bottom: 2rem;
  }
  
  .join-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
  }
  
  .join-benefits li i {
    color: var(--secondary);
  }
  
  .join-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  .join-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
  }
  
  .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  }

/* ===============================
   TEAM PAGE ORGANIZED STYLES
   ===============================
   
   TABLE OF CONTENTS:
   1. Loader Animation
   2. Hero Section  
   3. Robot Assistant
   4. Common Team Section Styles
   5. Mentor Section (Single Centered Card)
   6. Leadership Section (Multiple Cards)
   7. Core Team Section (Multiple Cards)
   8. Junior Members Section (Multiple Cards)
   9. Responsive Design
   10. Animations & Effects
   =============================== */

  /* ===============================
     2. HERO SECTION
     =============================== */
  
  .team-hero {
    padding: 10rem 0 15rem;
    position: relative;
    overflow: hidden;
    background: transparent;
  }
  
  .team-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 0;
  }
  
  .team-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .team-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
  }
  
  .team-hero-subtitle {
    font-size: 1.25rem;
    max-width: 36rem;
    margin: 0 auto;
    color: var(--muted-foreground);
  }
  
  .team-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
  }
  
/* ===============================
   3. ROBOT ASSISTANT & BACK TO TOP
   =============================== */

   .robot-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: right 0.3s ease;
  }
  

  
  .robot-assistant-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .robot-assistant-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
  }
  
  .robot-assistant-icon i {
    font-size: 30px;
    color: white;
  }
  
  .robot-assistant-dialog {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: var(--muted);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  
  .robot-assistant-dialog.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
  }
  
  .robot-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: rgba(37, 99, 235, 0.1);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }
  
  .robot-assistant-title {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .robot-assistant-avatar {
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .robot-assistant-avatar i {
    font-size: 16px;
    color: white;
  }
  
  .robot-assistant-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--foreground);
  }
  
  .robot-assistant-close {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--neutral);
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .robot-assistant-close:hover {
    color: var(--foreground);
  }
  
  .robot-assistant-body {
    padding: 20px;
  }
  
  .robot-assistant-body p {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .robot-assistant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .robot-option {
    background-color: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .robot-option:hover {
    background-color: var(--primary);
    color: white;
  }
  
  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }
  
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background-color: var(--emerald);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  }
  
  .back-to-top i {
    font-size: 20px;
  }
  

  
  /* Mobile adjustments */
  @media (max-width: 768px) {
    .robot-assistant {
      bottom: 20px;
      right: 20px;
    }
    
    .back-to-top {
      bottom: 90px;
      right: 20px;
      width: 45px;
      height: 45px;
    }
    
    .robot-assistant-dialog {
      width: 280px;
    }
    
    /* No sidebar movement on mobile */
    body.sidebar-active .robot-assistant,
    body.sidebar-active .back-to-top {
      right: 20px;
    }
  }

  /* Category Header Styling */
.category-header {
  text-align: center;
  margin-bottom: 2rem;
 margin-top: 3rem;
}

.category-description {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .category-description {
    font-size: 1rem;
    padding: 0 1rem;
    max-width: 100%;
  }
} 
 


/* ===== SVPCET BANNER SPECIFIC STYLING ===== */


  /* ===============================
     4. COMMON TEAM SECTION STYLES
     =============================== */
  
  /* All team sections share these base styles */
  .team-mentor,
  .team-leadership,
  .team-core,
  .team-junior {
    padding: 5rem 0;
    background-color: var(--background);
  }
  
  .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--foreground);
  }
  
  .section-title span {
    color: var(--primary);
  }
  
  /* Standard grid layout for multiple cards */
  .team-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 2rem;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Base team card styles */
  .team-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), #1F2937, rgba(15, 23, 42, 0.8));
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
  }
  
  .team-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio */
    position: relative;
    overflow: hidden;
  }
  
  .team-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .team-card:hover .team-image-container img {
    transform: scale(1.05);
  }
  
  .team-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    font-family: 'Space Grotesk', sans-serif;
  }
  
  .team-position {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .team-class {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .team-bio {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
    margin-bottom: 1.25rem;
    flex-grow: 1;
  }
  
  .tech-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  
  .tech-tag {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
  }
  
  .team-card:hover .tech-tag {
    background-color: var(--primary);
    color: white;
  }
  
  .team-social {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
  }
  
  .team-social-link {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .team-social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
  }
  
  /* ===============================
     5. MENTOR SECTION (Single Card)
     =============================== */
  
  .team-mentor {
    background-color: var(--background);
  }
  
  /* Center the mentor card */
  .mentor-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .mentor-card {
    max-width: 400px;
    width: 100%;
  }
  
   /* ===============================
     6. ALUMNI SECTION (Multiple Cards)
     =============================== */
  
     /* Alumni Section Specific Styles */
/* ===============================
   Alumni Section Styles
   =============================== */

   .team-alumni {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--background), var(--muted), var(--background));
    position: relative;
    overflow: hidden;
  }
  
  .team-alumni::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  }
  
  .team-alumni::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  }
  
  /* Alumni badge that appears on the image */
  .alumni-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--amber), var(--primary));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
    z-index: 5;
  }
  
  .alumni-badge i {
    font-size: 0.9rem;
  }
  
  /* Current position line for alumni */
  .team-current {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
  }
  
  /* Enhanced hover effects for alumni cards */
  .team-alumni .team-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(148, 163, 184, 0.1);
  }
  
  .team-alumni .team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(148, 163, 184, 0.2);
  }
  
  /* Add subtle pattern in the background */
  .team-alumni {
    background-image: 
      radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px;
    background-position: 0 0, 10px 10px;
  }
  
  /* Animation for alumni section entry */
  @keyframes fadeSlideUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .team-alumni .animate-on-scroll.visible {
    animation: fadeSlideUp 0.8s ease forwards;
  }



  /* ===============================
     7. LEADERSHIP SECTION (Multiple Cards)
     =============================== */
  
  .team-leadership {
    background-color: rgba(30, 41, 59, 0.5);
  }
  
  /* ===============================
     8. CORE TEAM SECTION (Multiple Cards)
     =============================== */
  
  .team-core {
    background-color: var(--background);
  }
  
  /* ===============================
     9. JUNIOR MEMBERS SECTION (Multiple Cards)
     =============================== */
  
  .team-junior {
    background-color: rgba(30, 41, 59, 0.3);
  }
  
  /* ===============================
     10. RESPONSIVE DESIGN
     =============================== */
  
  /* Tablet screens */
  @media (min-width: 768px) {
    .team-hero-title {
      font-size: 4rem;
    }
    
    .team-hero-subtitle {
      font-size: 1.5rem;
    }
    
    .team-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Desktop screens */
  @media (min-width: 1024px) {
    .team-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Large desktop screens */
  @media (min-width: 1280px) {
    .team-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* ===============================
     11. ANIMATIONS & EFFECTS
     =============================== */
  
  /* Scroll animations */
  .animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s ease;
  }
  
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Mouse trail effect */
  .trail-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: trailFade 0.6s ease-out forwards;
  }
  
  /* Glassy hover effect for cards */
  .team-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  /* Pulse hover effect */
  .pulse-hover:hover {
    animation: pulse 0.5s ease-in-out;
  }
  
  /* Keyframe animations */
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
  }
  
  @keyframes dotPulse {
    0% { 
      box-shadow: 0 0 10px var(--primary);
      transform: scale(1);
    }
    100% { 
      box-shadow: 0 0 20px var(--primary);
      transform: scale(1.2);
    }
  }
  
  @keyframes chipGlow {
    0% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.7); }
    100% { box-shadow: 0 0 25px rgba(37, 99, 235, 1); }
  }
  
  @keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
  }
  
  @keyframes trailFade {
    0% {
      opacity: 1;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(0);
    }
  }
  
  /* Force visibility for team sections */
  #mentor-section,
  #leadership-section,
  #core-section,
  #junior-section,
  #alumni-section {
    position: relative;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }


  /* ===== BEHIND THE SCENES SECTION ===== */

/* ===================================================
   BEHIND THE SCENES - CLEAN REBUILD
   =================================================== */
.bts-section {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    var(--background);
}

/* Filter bar */
.bts-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.bts-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.5);
  color: var(--muted-foreground);
  font-size: 0.88rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bts-filter:hover,
.bts-filter.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(139, 92, 246, 0.14));
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--foreground);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

/* Grid */
.bts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.bts-card-wide {
  grid-column: span 2;
}

/* Base card */
.bts-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: linear-gradient(145deg, rgba(20, 30, 55, 0.9), rgba(15, 23, 42, 0.95));
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bts-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* Media pane */
.bts-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.bts-media img,
.bts-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.bts-card:hover .bts-media img,
.bts-card:hover .bts-media video {
  transform: scale(1.06);
}

/* Expand hint icon */
.bts-expand-hint {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.bts-card:hover .bts-expand-hint {
  opacity: 1;
  transform: scale(1);
}

/* Caption - always visible below image */
.bts-caption {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.bts-caption-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bts-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-family: 'Audiowide', cursive;
  letter-spacing: 0.5px;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.bts-tag.workshop   { background: rgba(244, 63, 94, 0.15);  color: #fda4af; border: 1px solid rgba(244,63,94,0.3); }
.bts-tag.testing    { background: rgba(245,158,11, 0.15);   color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.bts-tag.competition{ background: rgba(234,179,8, 0.15);    color: #fde047; border: 1px solid rgba(234,179,8,0.3); }
.bts-tag.debugging  { background: rgba(139,92,246, 0.15);   color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }

.bts-time {
  font-size: 0.7rem;
  color: rgba(148,163,184,0.55);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bts-time i { color: rgba(37,99,235,0.6); }

.bts-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
  margin: 0;
}

.bts-desc {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
}

/* "More Stories Coming" placeholder card */
.bts-card-coming {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.15);
  cursor: default;
  min-height: 260px;
  justify-content: center;
}

.bts-card-coming:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.2);
}

.bts-coming-inner {
  text-align: center;
  padding: 2.5rem 1.75rem;
  color: var(--muted-foreground);
}

.bts-coming-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(37, 99, 235, 0.5);
  margin: 0 auto 1.1rem;
}

.bts-coming-inner h4 {
  color: rgba(241, 245, 249, 0.6);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.bts-coming-inner p {
  font-size: 0.85rem;
  max-width: 240px;
  margin: 0 auto 1.2rem;
  line-height: 1.6;
}

.bts-coming-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bts-coming-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: rgba(147, 197, 253, 0.5);
}

/* Hidden state for filter */
.bts-card.bts-hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .bts-card-wide {
    grid-column: span 1;
  }

  .bts-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}
      /* Responsive adjustments */
      @media (max-width: 768px) {
        .robot-card-header {
          flex-direction: column;
          align-items: flex-start;
          gap: 0.5rem;
        }
  
        .robot-card-specs {
          flex-direction: column;
        }
  
        .technical-specs {
          grid-template-columns: 1fr;
        }
      }

      
.social-link {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-link::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.social-link:hover::after {
  opacity: 1;
}

      .bg-instagram {
        background-color: #c32aa3;
      }

/* ===================================================
   STORY MOMENT LIGHTBOX
   =================================================== */
.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.story-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.story-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 22, 0.92);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.story-lb-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 380px;
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  background: linear-gradient(145deg, rgba(20, 30, 55, 0.98), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-lightbox.open .story-lb-panel {
  transform: scale(1) translateY(0);
}

.story-lb-img-pane {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: #000;
}

.story-lb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.story-lightbox.open .story-lb-img {
  transform: scale(1.03);
}

.story-lb-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(15, 23, 42, 0.6) 100%);
  pointer-events: none;
}

.story-lb-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
  overflow-y: auto;
  border-left: 1px solid rgba(148, 163, 184, 0.1);
}

.story-lb-timestamp {
  font-family: 'Audiowide', cursive;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.story-lb-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  color: #f1f5f9;
  line-height: 1.3;
  margin: 0;
}

.story-lb-desc {
  font-size: 0.97rem;
  color: #cbd5e1;
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

.story-lb-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.story-lb-details .challenge-level,
.story-lb-details .team-count,
.story-lb-details .mood-indicator,
.story-lb-details .lesson-learned,
.story-lb-details .outcome {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.challenge-level.low {
  background: rgba(16, 185, 129, 0.2);
  color: var(--secondary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.challenge-level.medium {
  background: rgba(245, 158, 11, 0.2);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.challenge-level.high {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.team-count {
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.outcome.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--secondary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.outcome.celebration {
  background: rgba(245, 158, 11, 0.2);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.mood-indicator,
.lesson-learned {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.story-lb-counter {
  font-family: 'Audiowide', cursive;
  font-size: 0.65rem;
  color: rgba(148, 163, 184, 0.5);
  letter-spacing: 1px;
  text-align: right;
  margin-top: auto;
}

.story-lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
  color: rgba(241, 245, 249, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.story-lb-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: rotate(90deg);
}

.story-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
  color: rgba(241, 245, 249, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.story-lb-prev { left: 0.75rem; }
.story-lb-next { right: 0.75rem; }

.story-lb-arrow:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(37, 99, 235, 0.5);
  color: #93c5fd;
}

@media (max-width: 720px) {
  .story-lb-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 240px auto;
    max-height: 92vh;
  }

  .story-lb-img-overlay {
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.6) 100%);
  }

  .story-lb-info {
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 1.25rem;
  }

  .story-lb-prev { left: 0.5rem; top: 120px; }
  .story-lb-next { right: 0.5rem; top: 120px; }
}


/* ===================================================
   BTS LIGHTBOX — full-screen viewer for Behind the Scenes cards
   Supports images and videos. Matches Robowars lightbox style.
   =================================================== */

.story-moment { cursor: pointer; }
.bts-card:not(.bts-card-coming) { cursor: pointer; }

/* Full-screen backdrop */
.bts-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 8, 20, 0.97);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

.bts-lightbox-overlay.active {
  display: flex;
}

/* Inner wrapper — media + caption stacked */
.bts-lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 90vw;
  max-height: 90vh;
}

/* Media area */
.bts-lb-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image and video share identical visual treatment */
.bts-lb-media img,
.bts-lb-media video {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(37, 99, 235, 0.2);
  display: block;
}

/* One-liner caption below the media */
.bts-lb-caption {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  text-align: center;
  max-width: 75vw;
  line-height: 1.5;
  padding: 0 1rem;
}

/* Control buttons */
.bts-lb-close,
.bts-lb-prev,
.bts-lb-next {
  position: fixed;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--foreground);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.bts-lb-close:hover,
.bts-lb-prev:hover,
.bts-lb-next:hover {
  background: rgba(37, 99, 235, 0.4);
}

.bts-lb-close { top: 1.5rem;  right: 1.5rem; }
.bts-lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.bts-lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* Mobile adjustments */
@media (max-width: 600px) {
  .bts-lb-media img,
  .bts-lb-media video { max-width: 95vw; }
  .bts-lb-prev  { left: 0.5rem; }
  .bts-lb-next  { right: 0.5rem; }
  .bts-lb-caption { font-size: 0.82rem; }
}

.footer-credit {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-family: 'Outfit', sans-serif;
  white-space: pre-line; /* respects \n line breaks in the credit string */
  line-height: 1.7;
}