/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overscroll-behavior: none; /* Prevent pull-to-refresh on Android Chrome */
}

/* Fallback for browsers that don't support scroll-snap (older Android browsers) */
@supports not (scroll-snap-type: y mandatory) {
    html {
        scroll-snap-type: none;
    }
    
    .section {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    overscroll-behavior: none; /* Prevent pull-to-refresh on Android Chrome */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
    /* Safe area insets for notched Android devices */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Fallback for browsers that don't support safe-area-inset */
@supports not (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Prevent auto-zoom on input focus (Android Chrome behavior) - minimum 16px font size */
input, select, textarea {
    font-size: 16px; /* Minimum size to prevent auto-zoom on Android */
}

/* ===== CSS CUSTOM PROPERTIES (VARIABLES) ===== */
/* Site-wide responsive design system - scales from mobile to 4K */
:root {
    /* Container widths - fluid scaling from mobile to ultra-wide */
    --container-max-width: clamp(1200px, 90vw, 2000px);
    --container-max-width-narrow: clamp(1000px, 85vw, 1400px);
    --container-max-width-wide: clamp(1400px, 92vw, 2200px);
    
    /* Card sizes - scales from mobile (180px) to 4K (280px+) */
    --card-size-base: clamp(180px, 12vw, 280px);
    --card-size-small: clamp(150px, 10vw, 220px);
    --card-size-large: clamp(200px, 14vw, 320px);
    
    /* Spacing scale - fluid gaps and padding that scale with viewport */
    --spacing-xs: clamp(8px, 0.8vw, 12px);
    --spacing-sm: clamp(15px, 1.5vw, 25px);
    --spacing-md: clamp(30px, 3vw, 50px);
    --spacing-lg: clamp(60px, 6vw, 100px);
    --spacing-xl: clamp(80px, 8vw, 150px);
    
    /* Grid gaps - responsive spacing between grid items */
    --grid-gap-sm: clamp(15px, 1.5vw, 20px);
    --grid-gap-md: clamp(20px, 2vw, 30px);
    --grid-gap-lg: clamp(30px, 3vw, 50px);
    
    /* Section gaps - spacing between major sections/elements */
    --section-gap-sm: clamp(40px, 4vw, 60px);
    --section-gap-md: clamp(60px, 6vw, 100px);
    --section-gap-lg: clamp(80px, 8vw, 150px);
    
    /* Typography scale - fluid font sizes (can be used later) */
    --font-size-xs: clamp(0.75rem, 1vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 1.2vw, 1rem);
    --font-size-base: clamp(1rem, 1.5vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 2vw, 1.5rem);
    --font-size-xl: clamp(1.5rem, 3vw, 2rem);
    --font-size-2xl: clamp(2rem, 4vw, 3.5rem);
    --font-size-3xl: clamp(2.5rem, 5vw, 4rem);
}

/* Global touch-action for all interactive elements (Android optimization) */
a, button, .nav-dot, .scroll-indicator, .member-card, .contact-item, .contact-link, .gallery-scroll-btn, .close-btn, .album-card {
    touch-action: manipulation; /* Remove 300ms tap delay on Android */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
}

/* ===== GLOBAL BREAKPOINT SYSTEM ===== */
/* Mobile-first responsive design - scales from mobile to 4K/ultra-wide */
/* 
 * Breakpoint Strategy:
 * - Mobile: < 768px (default, no media query needed)
 * - Tablet: 768px - 1199px
 * - Desktop: 1200px - 1919px
 * - Large Desktop (Full HD+): 1920px - 2559px
 * - 2K/4K Displays: 2560px - 3439px
 * - Ultra-wide Monitors: 3440px+
 */

/* ===== TABLET AND UP (768px+) ===== */
@media (min-width: 768px) {
    /* Tablet-specific adjustments */
}

/* ===== DESKTOP AND UP (1200px+) ===== */
@media (min-width: 1200px) {
    /* Desktop-specific adjustments */
}

/* ===== LARGE DESKTOP / FULL HD+ (1920px+) ===== */
@media (min-width: 1920px) {
    /* Large desktop optimizations */
}

/* ===== 2K / 4K DISPLAYS (2560px+) ===== */
@media (min-width: 2560px) {
    /* 4K display optimizations - prevent excessive whitespace */
    :root {
        /* Increase container max-widths for 4K */
        --container-max-width: clamp(1600px, 85vw, 2400px);
        --container-max-width-narrow: clamp(1400px, 80vw, 1800px);
        --container-max-width-wide: clamp(1800px, 88vw, 2600px);
        
        /* Increase card sizes for better visibility on 4K */
        --card-size-base: clamp(220px, 10vw, 320px);
        --card-size-small: clamp(180px, 8vw, 260px);
        --card-size-large: clamp(250px, 12vw, 380px);
        
        /* Increase spacing for better visual balance on large screens */
        --spacing-md: clamp(40px, 2.5vw, 70px);
        --spacing-lg: clamp(80px, 5vw, 130px);
        --spacing-xl: clamp(100px, 6vw, 180px);
        
        --grid-gap-md: clamp(25px, 1.5vw, 40px);
        --grid-gap-lg: clamp(40px, 2.5vw, 70px);
        
        --section-gap-md: clamp(80px, 5vw, 130px);
        --section-gap-lg: clamp(100px, 6vw, 180px);
    }
}

/* ===== ULTRA-WIDE MONITORS (3440px+) ===== */
@media (min-width: 3440px) {
    /* Ultra-wide monitor optimizations - prevent over-stretching */
    :root {
        /* Cap container widths to prevent excessive stretching */
        --container-max-width: 2400px;
        --container-max-width-narrow: 1800px;
        --container-max-width-wide: 2600px;
        
        /* Cap card sizes for optimal viewing distance */
        --card-size-base: 320px;
        --card-size-small: 260px;
        --card-size-large: 380px;
        
        /* Cap spacing to maintain visual balance */
        --spacing-md: 70px;
        --spacing-lg: 130px;
        --spacing-xl: 180px;
        
        --grid-gap-md: 40px;
        --grid-gap-lg: 70px;
        
        --section-gap-md: 130px;
        --section-gap-lg: 180px;
    }
}

/* ===== CONTAINER QUERIES SETUP ===== */
/* Enable container queries on main section containers for component-level responsiveness */
/* Modern browsers (iOS 16+, Chrome 105+, Firefox 110+) */
.about-container,
.committee-container,
.rides-events-container,
.riders-container,
.welcome-content {
    container-type: inline-size;
    container-name: section-container;
}

/* Fallback for browsers that don't support container queries */
@supports not (container-type: inline-size) {
    /* Container queries not supported - will use media queries instead */
    /* This ensures older browsers (iOS <16) still work properly */
}

/* ===== SECTION STYLING ===== */
.section {
    width: 100vw;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh; /* Dynamic viewport height - fixes Android address bar issue */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: layout style paint; /* CSS containment for better rendering performance */
}

/* Fallback for browsers that don't support dvh */
@supports not (height: 100dvh) {
    .section {
        height: 100vh;
    }
}

/* ===== NAVIGATION DOTS ===== */
.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    touch-action: manipulation; /* Remove 300ms tap delay on Android */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
}

.nav-dot:hover,
.nav-dot.active {
    background: #ff6b35;
    border-color: #ff6b35;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

/* ===== SECTION 1: WELCOME ===== */
.welcome-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    flex-direction: column;
}

.welcome-section {
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap-lg);
    align-items: center;
    max-width: var(--container-max-width); /* Fluid: 1200px → 2000px (4K: 1600px → 2400px) */
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 120px;
}

.main-logo {
    width: 450px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.5));
    animation: logoFloat 3s ease-in-out infinite;
    will-change: transform; /* Performance optimization for animated elements */
}

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

.welcome-text {
    text-align: left;
    margin-left: -50px; /* Move text left (increase negative value to move more left, decrease to move right) */
}

.welcome-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 8px;
    color: #ff6b35;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.wrc-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem; /* Reduced from 6rem */
    font-weight: 900;
    letter-spacing: 5px;
    color: #ffffff;
    margin: 10px 0;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 30px rgba(255, 107, 53, 0.5); }
    to { text-shadow: 0 0 40px rgba(255, 107, 53, 0.8), 0 0 60px rgba(255, 107, 53, 0.4); }
}

.club-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #cccccc;
    margin: 15px 0;
    text-transform: uppercase;
}

.divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
    margin: 20px 0;
}

/* About section divider - matches "We keep it simple:" text width */
.about-divider {
    width: auto;
    min-width: 180px;
    max-width: 220px;
    display: inline-block;
    margin-top: 8px; /* Reduced from default 20px to bring closer to text */
    margin-bottom: 20px;
}

/* About section highlight - orange and bold */
.about-highlight {
    color: #ff6b35;
    font-weight: 600;
}

/* About section hashtags - orange color */
.about-hashtag {
    color: #ff6b35;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #888888;
    margin-top: 20px;
}

/* WRC highlight - bold and attention-catching with heartbeat pulse */
.tagline .wrc-highlight {
    display: inline-block;
    font-weight: 900;
    color: #ff6b35;
    text-shadow: 
        0 0 10px rgba(255, 107, 53, 0.8),
        0 0 20px rgba(255, 107, 53, 0.6),
        0 0 30px rgba(255, 107, 53, 0.4);
    animation: heartbeat 1.5s ease-in-out infinite;
    letter-spacing: 4px;
    will-change: text-shadow; /* Performance optimization for animated elements */
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
    touch-action: manipulation; /* Remove 300ms tap delay on Android */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
    will-change: transform; /* Performance optimization for animated elements */
}

/* Move "Back to Top" higher in section 6 (Join Us) to avoid footer overlap */
#section6 .scroll-indicator {
    bottom: 40px;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
    animation: none;
}

.scroll-indicator:hover span {
    color: #ff6b35;
}

.scroll-indicator:hover .scroll-arrow::before {
    background: #ff8c5a;
}

.scroll-indicator:hover .scroll-arrow::after {
    border-top-color: #ff8c5a;
}

.scroll-indicator:hover .scroll-arrow-up::before {
    background: #ff8c5a;
}

.scroll-indicator:hover .scroll-arrow-up::after {
    border-bottom-color: #ff8c5a;
}

.scroll-indicator span {
    display: block;
    font-size: 0.65rem;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
}

/* Back to Top: Arrow above text */
.scroll-indicator .scroll-arrow-up {
    margin-bottom: 8px;
}

.scroll-indicator .scroll-arrow-up + span {
    margin-bottom: 0;
    margin-top: 0;
}

.scroll-arrow {
    width: 18px;
    height: 22px;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s ease;
}

/* Vertical line for down arrow */
.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 14px;
    background: #ff6b35;
    transition: background 0.3s ease;
}

/* Arrow head pointing down */
.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid #ff6b35;
    transition: border-top-color 0.3s ease;
}

/* Hide down arrow styles when up arrow class is present - Solid arrow only (no tail) */
.scroll-arrow.scroll-arrow-up::before {
    display: none; /* Remove the tail/line */
}

.scroll-arrow.scroll-arrow-up::after {
    content: '';
    position: absolute;
    top: 50%; /* Center vertically */
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid #ff6b35; /* Arrowhead pointing up */
    border-top: none;
    transition: border-bottom-color 0.3s ease;
}

.scroll-arrow-up {
    transform: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== SECTION 2: ABOUT US ===== */
.about-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.about-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--section-gap-md); /* Fluid spacing */
    align-items: center;
    max-width: var(--container-max-width-narrow); /* Fluid: 1000px → 1400px (4K: 1400px → 1800px) */
    width: 100%;
    padding: 0;
    margin: 0 auto; /* Center the container */
}

.section-title-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.section-title-left h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-3xl); /* Fluid: 2.5rem → 4rem */
    font-weight: 700;
    letter-spacing: 5px;
    color: #ff6b35;
    text-transform: uppercase;
    margin: 0;
    margin-left: clamp(10px, 1vw, 20px); /* Fluid margin */
}

.logo-sidebar {
    display: none;
}

.sidebar-logo {
    display: none;
}

.sidebar-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}

/* Keep "We keep it simple:" text on one line */
.about-content p:first-child {
    white-space: nowrap;
}

/* Prevent excessive wrapping in about paragraphs */
.about-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: pre-line;
}

/* Keep emoji with preceding text */
.about-text p {
    word-spacing: normal;
}

.about-section .section-title {
    display: none;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: var(--font-size-3xl); /* Fluid: 2.5rem → 4rem */
    font-weight: 900;
    letter-spacing: 3px;
    color: #ff6b35;
    margin-bottom: var(--spacing-md); /* Fluid spacing */
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: #ff6b35;
}

.about-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: left; /* Changed from justify to left */
    white-space: pre-line;
    max-width: 100%;
}

.about-text p {
    margin-bottom: 20px;
}

/* Make NOTES statements smaller */
.about-text p.notes-bullet {
    font-size: 0.95rem;
}

/* ===== SECTION 3: COMMITTEE ===== */
.committee-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    overflow: visible;
}

/* ===== SECTION 4: WRC RIDERS ===== */
.riders-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    overflow: visible;
}

.riders-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--section-gap-lg); /* Fluid spacing */
    align-items: center;
    max-width: var(--container-max-width-wide); /* Fluid: 1400px → 2200px (4K: 1800px → 2600px) */
    width: 100%;
    height: 100%;
    padding: var(--spacing-md) 0 var(--spacing-xl) 0;
    overflow: visible;
    box-sizing: border-box;
    margin: 0 auto;
}

.riders-content {
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: visible;
}

#riders-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    touch-action: none;
    overflow: visible;
    padding-left: 50px;
}

#riders-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b35;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    z-index: 10;
    pointer-events: none;
}

.committee-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--section-gap-md); /* Fluid spacing */
    align-items: center;
    max-width: var(--container-max-width); /* Fluid: 1200px → 2000px (4K: 1600px → 2400px) */
    width: 100%;
    height: 100%;
    padding: var(--spacing-md) 0 var(--spacing-xl) 0;
    overflow-y: auto;
    overflow-x: visible;
    box-sizing: border-box;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.committee-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.section-title-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.section-title-left h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-3xl); /* Fluid: 2.5rem → 4rem (scales with viewport) */
    font-weight: 700;
    letter-spacing: 5px;
    color: #ff6b35;
    text-transform: uppercase;
    margin: 0;
    padding-left: clamp(60px, 6vw, 120px); /* Fluid padding */
}

.committee-container .section-title {
    display: none;
}


/* ===== COMMITTEE MEMBERS GRID (Method 11: Image Overlay with Expand) ===== */
.members-grid {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap-sm);
    width: 100%;
    padding-left: 200px; /* Increase this value to move cards right */
}

.members-row {
    display: grid;
    gap: var(--grid-gap-sm);
    width: 100%;
}

/* Base: Mobile-first - single column */
.members-row-first {
    grid-template-columns: 1fr;
}

.members-row-first .member-card {
    grid-column: span 1;
}

.members-row-second {
    grid-template-columns: 1fr;
}

.members-row-third {
    grid-template-columns: 1fr;
}

.members-row-third .member-card {
    grid-column: span 1;
}

/* Container Query: When container is wide enough, use multi-column layout */
/* Modern browsers (iOS 16+, Chrome 105+) */
@container section-container (min-width: 600px) {
    .members-row-first {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-row-first .member-card {
        grid-column: span 1;
    }
    
    .members-row-second {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-row-third {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-row-third .member-card {
        grid-column: span 1;
    }
}

@container section-container (min-width: 900px) {
    .members-row-first {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .members-row-first .member-card {
        grid-column: span 2;
    }
    
    .members-row-first .member-card:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .members-row-first .member-card:nth-child(2) {
        grid-column: 3 / 5;
    }
    
    .members-row-second {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .members-row-third {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .members-row-third .member-card {
        grid-column: span 2;
    }
    
    .members-row-third .member-card:nth-child(1) {
        grid-column: 1 / 3;
    }
    
    .members-row-third .member-card:nth-child(2) {
        grid-column: 3 / 5;
    }
}

/* Fallback: Media queries for browsers without container query support (iOS <16) */
@supports not (container-type: inline-size) {
    @media (min-width: 768px) {
        .members-row-first {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .members-row-first .member-card {
            grid-column: span 1;
        }
        
        .members-row-second {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .members-row-third {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .members-row-third .member-card {
            grid-column: span 1;
        }
    }
    
    @media (min-width: 1200px) {
        .members-row-first {
            grid-template-columns: repeat(4, 1fr);
        }
        
        .members-row-first .member-card {
            grid-column: span 2;
        }
        
        .members-row-first .member-card:nth-child(1) {
            grid-column: 1 / 3;
        }
        
        .members-row-first .member-card:nth-child(2) {
            grid-column: 3 / 5;
        }
        
        .members-row-second {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .members-row-third {
            grid-template-columns: repeat(4, 1fr);
        }
        
        .members-row-third .member-card {
            grid-column: span 2;
        }
        
        .members-row-third .member-card:nth-child(1) {
            grid-column: 1 / 3;
        }
        
        .members-row-third .member-card:nth-child(2) {
            grid-column: 3 / 5;
        }
    }
}

.member-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden; /* Keep hidden for image clipping */
    border-radius: 15px;
    cursor: pointer;
    touch-action: manipulation; /* Remove 300ms tap delay on Android */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
    background: #1a1a1a;
    border-bottom: 4px solid #ff6b35;
    width: var(--card-size-base); /* Fluid sizing: 180px (mobile) → 280px (4K) */
    max-width: 100%; /* Prevent overflow on small screens */
    margin: 0 auto;
    /* Enable hardware acceleration for smoother rendering */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform: perspective(1000px) rotateY(var(--rotate-y, 0deg)) rotateX(var(--rotate-x, 0deg)) scale(1);
    /* Outer orange glow effect (matching 3D sphere) */
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.3)) drop-shadow(0 0 30px rgba(255, 107, 53, 0.2)) drop-shadow(0 0 45px rgba(255, 107, 53, 0.1));
}

.member-card:hover {
    transform: perspective(1000px) rotateY(var(--rotate-y, 0deg)) rotateX(var(--rotate-x, 0deg)) scale(1.02);
}

/* Cursor-following radial gradient glow effect (subtle, smaller radius) */
.member-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 107, 53, 0.15) 0%, 
        transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
    border-radius: 15px;
}

.member-card:hover::before {
    opacity: 1;
}

.member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.member-card:hover img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 107, 53, 0.95) 0%, rgba(255, 107, 53, 0.7) 50%, transparent 100%);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 3; /* Above the glow effect */
}

.member-card:hover .member-overlay {
    transform: translateY(0);
}

.member-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: bold;
}

.member-details {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.6;
}

/* ===== POPUP MODAL ===== */
.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh; /* Dynamic viewport height - fixes Android address bar issue */
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
    z-index: 9999; /* Behind popup card but above everything else */
    cursor: pointer; /* Show pointer cursor to indicate it's clickable */
}

/* Fallback for browsers that don't support dvh */
@supports not (height: 100dvh) {
    .popup-backdrop {
        height: 100vh;
    }
}

.popup-backdrop.active {
    display: block;
    opacity: 1;
}

.popup-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 500px;
    aspect-ratio: 1;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 3px solid #ff6b35;
    pointer-events: none;
    overflow: hidden; /* Keep hidden for content clipping */
    /* Outer orange glow effect (matching 3D sphere) */
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.3)) drop-shadow(0 0 30px rgba(255, 107, 53, 0.2)) drop-shadow(0 0 45px rgba(255, 107, 53, 0.1));
}

.popup-expanded.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Fixed perspective container - following GitHub tutorial approach */
.popup-expanded .parallax-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* Fixed perspective in CSS (not in transform) - following GitHub tutorial */
    perspective: 1000px;
    overflow: hidden;
    border-radius: 20px;
}

/* Parallax container - rotates based on mouse position */
.popup-expanded .parallax-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Preserve 3D context - critical for depth effect */
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
    /* Smooth transitions for entering/exiting hover */
    transition: transform 0.2s ease-out;
}

/* Single image with parallax depth effect - no duplication */
.popup-expanded .parallax-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    will-change: transform;
    /* Preserve 3D context for image */
    transform-style: preserve-3d;
    /* Base transform - image will translateZ forward on hover */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    /* Smooth transitions */
    transition: transform 0.2s ease-out;
}

/* Cursor-following radial gradient glow effect (subtle, smaller radius) */
.popup-expanded::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 107, 53, 0.15) 0%, 
        transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 3;
    border-radius: 20px;
}

.popup-expanded:hover::before {
    opacity: 1;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .popup-expanded .parallax-container,
    .popup-expanded .parallax-layer {
        transform: none !important;
        transition: none !important;
    }
}

.popup-expanded .popup-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 107, 53, 0.95) 0%, rgba(255, 107, 53, 0.7) 50%, transparent 100%);
    padding: 25px;
    z-index: 2;
}

.popup-expanded .member-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.popup-expanded .member-details {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ===== SECTION 4: RIDES & EVENTS ===== */
.rides-events-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.rides-events-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--section-gap-lg); /* Fluid spacing */
    align-items: center;
    max-width: var(--container-max-width); /* Fluid: 1200px → 2000px (4K: 1600px → 2400px) */
    width: 100%;
    height: 100%;
    padding: var(--spacing-sm) 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Instruction text positioning in content areas - already handled by absolute positioning */

.rides-events-titles {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center titles vertically */
    align-items: flex-start;
    gap: var(--spacing-sm); /* Fluid spacing */
    height: 100%;
    position: relative;
}

.rides-events-titles h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-3xl); /* Fluid: 2.5rem → 4rem */
    font-weight: 700;
    letter-spacing: 5px;
    color: #ff6b35;
    text-transform: uppercase;
    margin: 0;
    position: relative;
}

.rides-events-divider {
    width: 100px;
    height: 2px;
    background: #ff6b35;
    margin: 5px 0;
    align-self: flex-start;
}

.rides-events-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.gallery-section {
    position: relative;
    width: 100%;
    height: calc(50% - 15px);
    min-height: 400px;
    overflow: visible; /* Allow glow to extend beyond section */
    margin-bottom: var(--spacing-md); /* Fluid spacing */
    /* Add padding to prevent glow clipping */
    padding: 0 var(--spacing-xs);
    box-sizing: border-box;
}

.gallery-scroll-container {
    position: relative;
    display: flex;
    align-items: center; /* Center align: latest album and old albums at same vertical level */
    gap: var(--grid-gap-md); /* Fluid gap */
    height: 100%;
    width: 100%;
    /* Add padding to prevent glow clipping on edges */
    padding: 0 var(--spacing-sm);
    box-sizing: border-box;
    /* Allow glow to extend beyond container */
    overflow: visible;
}

/* Latest album - static, large, centered */
.latest-album-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    /* Add padding to prevent glow clipping on left edge */
    padding-left: 30px;
    padding-right: 10px;
    /* Allow glow to extend beyond container */
    overflow: visible;
}

.gallery-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center; /* Center old albums vertically with latest album */
    scrollbar-width: none; /* Firefox - hide scrollbar */
    -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
    scroll-behavior: smooth; /* Smooth scrolling */
    /* Add padding to prevent glow clipping */
    padding: 0 15px;
    box-sizing: border-box;
    /* Mask edges to prevent sharp cuts - smoother gradient */
    mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 10px), transparent 100%);
}

.gallery-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera - hide scrollbar */
}

.magnetic-grid {
    display: flex;
    flex-direction: row;
    gap: 20px;
    height: fit-content;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center; /* Center old albums vertically with latest album */
    contain: layout style; /* CSS containment for better rendering performance */
    overflow-x: visible;
    width: max-content; /* Allow horizontal scrolling */
    /* Ensure smooth edges */
    padding: 0 10px; /* Add padding to prevent edge clipping */
}

/* ===== MAGNETIC GALLERY CARDS ===== */
.magnetic-card {
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: #1a1a1a;
    border: none; /* No border - only orange glow from filter */
    /* Smooth edges - prevent clipping and improve rendering */
    will-change: transform;
    backface-visibility: hidden;
    /* Enable hardware acceleration for smoother rendering */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Latest album - larger size, static (reduced proportionally) */
.magnetic-card.latest {
    width: 300px;
    height: 375px;
    aspect-ratio: auto;
    /* Subtle, close glow - reduced intensity and spread */
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.3)) 
            drop-shadow(0 0 16px rgba(255, 107, 53, 0.2));
    box-shadow: none; /* Remove box-shadow, using filter instead for smoother effect */
}

/* Old albums - sized to show exactly 3 albums completely visible between arrows */
.magnetic-grid .magnetic-card {
    width: 210px; /* Further reduced: 210px * 3 + 20px * 2 gaps = 670px total (ensures all 3 fully visible) */
    height: 262.5px; /* Maintain 4:5 aspect ratio (210 * 1.25) */
    aspect-ratio: auto;
    flex-shrink: 0;
    /* Subtle, close glow - reduced intensity and spread */
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.25)) 
            drop-shadow(0 0 12px rgba(255, 107, 53, 0.15));
    box-shadow: none; /* Remove box-shadow, using filter instead for smoother effect */
}

.magnetic-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 107, 53, 0.3) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.magnetic-card:hover::after {
    opacity: 1;
}

.magnetic-card img,
.magnetic-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-card:hover img,
.magnetic-card:hover video {
    transform: scale(1.1);
}

.gallery-scroll-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
    border-radius: 50%;
    touch-action: manipulation; /* Remove 300ms tap delay on Android */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
    color: #ff6b35;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

/* Both arrows align to center with albums (parent container uses align-items: center) */
.gallery-scroll-btn.gallery-scroll-left,
.gallery-scroll-btn.gallery-scroll-right {
    align-self: center; /* Center align with the albums */
}

.gallery-scroll-btn:hover {
    background: rgba(255, 107, 53, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.gallery-scroll-btn:active {
    transform: scale(0.95);
}

.album-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    width: 100%;
    max-height: 100%;
}

.albums-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
}

.albums-container {
    display: flex;
    gap: 30px;
    height: fit-content;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
    align-items: center;
}

.album-scroll-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
    border-radius: 50%;
    color: #ff6b35;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.album-scroll-btn:hover {
    background: rgba(255, 107, 53, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.album-scroll-btn:active {
    transform: scale(0.95);
}

/* ===== ALBUM CARDS ===== */
.album-card {
    position: relative;
    width: 380px;
    height: 480px;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3), 0 0 60px rgba(255, 107, 53, 0.1);
    flex-shrink: 0;
    background: #1a1a1a;
}

.album-card.latest {
    width: 450px;
    height: 550px;
    max-height: calc(100vh - 100px);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.5), 0 0 100px rgba(255, 107, 53, 0.2);
    border-radius: 0;
}

.album-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 107, 53, 0.3) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
    border-radius: 0;
}

.album-card:hover::before {
    opacity: 1;
}

.album-card:hover {
    transform: perspective(1000px) rotateY(var(--rotate-y, 0deg)) rotateX(var(--rotate-x, 0deg)) scale(1.02);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.6), 0 0 80px rgba(255, 107, 53, 0.3);
}

/* Album preview grid for images inside card */
.album-preview-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    background: #0a0a0a;
    border-radius: 0;
}

.album-preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.album-preview-item img,
.album-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.album-preview-item.has-more::after {
    content: attr(data-more);
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    font-family: 'Orbitron', sans-serif;
}

/* Card content - always visible gradient overlay */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 107, 53, 0.15) 0%, rgba(255, 107, 53, 0.08) 40%, transparent 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    transform: translateY(0);
    border-radius: 0;
}

.card-content .album-destination {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700; /* Bold for destination */
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.card-content .album-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 400; /* Normal weight for date */
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.latest-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6b35;
    color: #0a0a0a;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 3;
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    animation: float 3s ease-in-out infinite;
    font-family: 'Orbitron', sans-serif;
}

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

.latest-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6b35;
    color: #0a0a0a;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 3;
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    animation: float 3s ease-in-out infinite;
}

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

/* ===== MAGNETIC CURSOR ALBUM VIEWER ===== */
/* Modern photo viewer with magnetic cursor effect, thumbnail strip, and smooth transitions */

/* Main viewer container - translucent background with blur effect */
.photo-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: none; /* Hide default cursor when viewer is active */
}

.photo-viewer.active {
    display: flex;
}

/* Custom cursor that follows mouse movement (orange circle) */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2001;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
}

.custom-cursor::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 50%;
}

/* Main viewer container - holds the image/video */
.viewer-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: calc(80vh - 120px); /* Leave space for thumbnail strip */
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* Wrapper for the main image/video */
.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main image styling - magnetic effect applied via transform */
.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(255, 107, 53, 0.4);
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Main video styling */
.image-wrapper video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(255, 107, 53, 0.4);
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    user-select: none;
}

/* Navigation zones - clickable left/right areas for previous/next */
.nav-zones {
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.nav-zone-left {
    left: 0;
}

.nav-zone-right {
    right: 0;
}

.nav-zones:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* Counter showing current media number (top center) */
.counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    color: #ff6b35;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    z-index: 10;
}

/* Close button (top right) */
.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 107, 53, 0.3);
    border: 2px solid #ff6b35;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    touch-action: manipulation; /* Remove 300ms tap delay on Android */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 107, 53, 0.6);
    transform: scale(1.1);
}

/* Thumbnail strip container */
.thumbnail-strip-container {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thumbnail strip - scrollable horizontal strip at bottom */
.thumbnail-strip {
    height: 100px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.5) transparent;
    width: 100%;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 3px;
}

/* Thumbnail wrapper - contains all thumbnails */
.thumbnail-wrapper {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    height: 100%;
    justify-content: center;
}

/* Individual thumbnail */
.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* Active thumbnail (currently displayed media) */
.thumbnail.active {
    border-color: #ff6b35;
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide custom cursor on mobile devices */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }

    .photo-viewer {
        cursor: default;
    }
}

.column-title {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #ff6b35;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTION 5: JOIN US ===== */
.join-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.join-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px; /* Space between JOIN US and content */
    align-items: center;
    max-width: var(--container-max-width-narrow); /* Fluid: 1000px → 1400px */
    margin: 0 auto; /* Center the container */
    width: 100%;
}

.join-container .section-title {
    display: none; /* Hide default title */
}

.join-title-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.join-title-left h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-3xl); /* Fluid: 2.5rem → 4rem */
    font-weight: 700;
    letter-spacing: 5px;
    color: #ff6b35;
    text-transform: uppercase;
    margin: 0;
}

.join-content {
    margin-top: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 500px; /* Fixed width to make all boxes uniform */
    max-width: 500px; /* Ensure it doesn't exceed this width */
    justify-content: center;
    box-sizing: border-box;
    touch-action: manipulation; /* Remove 300ms tap delay on Android */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
}

.contact-item:hover {
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.contact-icon {
    width: 30px;
    height: 30px;
    stroke-width: 2;
    color: #ff6b35;
    flex-shrink: 0;
}

.contact-link,
.contact-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    touch-action: manipulation; /* Remove 300ms tap delay on Android */
    -webkit-tap-highlight-color: transparent; /* Remove blue highlight on Android */
}

.contact-link:hover {
    color: #ff6b35;
}

/* ===== MODAL OVERLAY ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.2);
}

.modal-close:hover {
    background: rgba(255, 107, 53, 0.5);
    transform: rotate(90deg);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Old modal styles removed - replaced with magnetic cursor viewer styles above */

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .members-row-first {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-row-first .member-card {
        grid-column: span 1;
    }
    
    .members-row-first .member-card:nth-child(1) {
        grid-column: 1;
    }
    
    .members-row-first .member-card:nth-child(2) {
        grid-column: 2;
    }
    
    .members-row-second {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .members-row-third {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-row-third .member-card {
        grid-column: span 1;
    }
    
    .members-row-third .member-card:nth-child(1) {
        grid-column: 1;
    }
    
    .members-row-third .member-card:nth-child(2) {
        grid-column: 2;
    }
    
    .rides-events-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-dots {
        right: 15px;
    }
    
    .main-logo {
        width: 450px;
    }
    
    .wrc-title {
        font-size: 4rem;
    }
    
    .about-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .logo-sidebar {
        flex: 0 0 auto;
    }
    
    .sidebar-logo {
        width: 150px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .members-row-first {
        grid-template-columns: 1fr;
    }
    
    .members-row-first .member-card {
        grid-column: 1;
    }
    
    .members-row-second {
        grid-template-columns: 1fr;
    }
    
    .members-row-third {
        grid-template-columns: 1fr;
    }
    
    .members-row-third .member-card {
        grid-column: 1;
    }
    
    .popup-expanded {
        width: 90%;
        max-width: 400px;
        aspect-ratio: 1;
    }
    
    .contact-item {
        min-width: auto;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator span {
        font-size: 0.8rem;
    }
    
    .scroll-arrow {
        height: 25px;
    }
    
    .committee-container {
        padding: 30px 15px 80px 15px;
    }
    
    .members-grid {
        gap: 20px;
    }
    
    .rides-events-container {
        padding: 30px 15px 80px 15px;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .wrc-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .column-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1;
    padding: 15px 20px;
    text-align: center;
    z-index: 10;
}

.footer-text {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.heart-beat {
    display: inline-block;
    color: #ff6b35;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin: 0 4px;
    will-change: transform; /* Performance optimization for animated elements */
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    /* Beat 1 - W */
    10% {
        transform: scale(1.2);
    }
    15% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1);
    }
    /* Beat 2 - R */
    30% {
        transform: scale(1.2);
    }
    35% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(1);
    }
    /* Beat 3 - C */
    50% {
        transform: scale(1.2);
    }
    55% {
        transform: scale(1.1);
    }
    60% {
        transform: scale(1);
    }
    /* Rest period before next cycle */
    60%, 100% {
        transform: scale(1);
    }
}

.footer-link {
    color: #ff6b35;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

/* Footer responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 12px 15px;
    }
    
    .footer-text {
        font-size: 0.65rem;
    }
}

/* ===== STAGGERED SCROLL ANIMATION ===== */
/* Left sections scroll first, right sections follow after delay */
.scroll-left-section {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

.scroll-right-section {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    will-change: transform, opacity;
    transition-delay: 0.2s; /* 200ms delay */
}

/* Scroll animation states - scrolling down */
.scroll-left-section.scrolling-down {
    transform: translateY(-80px);
    opacity: 0;
}

.scroll-right-section.scrolling-down {
    transform: translateY(-80px);
    opacity: 0;
    transition-delay: 0.2s; /* 200ms delay after left */
}

/* Scroll animation states - scrolling up */
.scroll-left-section.scrolling-up {
    transform: translateY(80px);
    opacity: 0;
}

.scroll-right-section.scrolling-up {
    transform: translateY(80px);
    opacity: 0;
    transition-delay: 0.2s; /* 200ms delay after left */
}

/* Reset transform when section is in view */
.scroll-left-section.in-view,
.scroll-right-section.in-view {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0s;
}

