/*
 ============================================
   MEPHAM ROBOTICS - ENHANCED DESIGN SYSTEM
 ============================================
*/

/* --- CSS VARIABLES --- */
:root {
    /* Colors */
    --maroon-dark: #800000;
    --maroon-light: #944547;
    --maroon-accent: #b35d5f;
    --accent-gold: #ffd700;
    --accent-light: #f1f1f1;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #fafafa;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-display: 'Balsamiq Sans', cursive;
    --font-body: 'Balsamiq Sans', cursive;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-brutal: 6px 6px 0px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    position: relative;
}

/* --- ANIMATED BACKGROUND ELEMENTS --- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(148, 69, 71, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* --- IMPROVED MENU TOGGLE --- */
.menu-toggle {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 2000;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: var(--text-dark);
    border: 3px solid var(--text-dark);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-brutal);
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-toggle:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px rgba(0, 0, 0, 0.25);
}

.menu-toggle:active {
    transform: translate(0, 0);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

/* --- ENHANCED SIDE NAVIGATION --- */
.sidenav {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 320px;
    position: fixed;
    z-index: 1500;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, var(--maroon-dark) 0%, #5a0000 100%);
    overflow-x: hidden;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 100px;
    transform: translateX(-100%);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.sidenav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.3;
}

.sidenav.active {
    transform: translateX(0);
}

.sidenav a,
.dropdown-btn {
    padding: 18px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--accent-light);
    display: block;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.sidenav a::before,
.dropdown-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 215, 0, 0.1);
    transition: width var(--transition-base);
}

.sidenav a:hover,
.dropdown-btn:hover {
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    padding-left: 35px;
}

.sidenav a:hover::before,
.dropdown-btn:hover::before {
    width: 100%;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: var(--accent-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
    color: var(--accent-gold);
}

/* --- DROPDOWN IMPROVEMENTS --- */
.dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    position: relative;
}

.dropdown-btn::after {
    content: '▾';
    position: absolute;
    right: 30px;
    transition: transform var(--transition-base);
    font-size: 1.2rem;
}

.dropdown-btn.active::after {
    transform: rotate(180deg);
}

.dropdown-container {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-container.active {
    max-height: 500px;
}

.dropdown-container a {
    font-size: 1.05rem;
    padding-left: 50px;
    opacity: 0.9;
}

/* --- OVERLAY ENHANCEMENT --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* --- SECTION STYLING --- */
section {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    display: block;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-display);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--maroon-light);
    position: relative;
    display: block;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* --- HERO SECTION --- */
.hero-image {
    width: 100%;
    min-height: 80vh;
    /* Standardized min-height */
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.7) 0%, rgba(90, 0, 0, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(148, 69, 71, 0.2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    padding: var(--spacing-md);
}

.hero-image h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1s ease-out;
}

.hero-image p {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: slideInRight 1s ease-out 0.3s forwards;
    color: white;
    /* Ensure text is visible over the gradient */
}

/* Hero CTA buttons */
.hero-cta {
    display: inline-flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.6s forwards;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4e 100%);
    color: var(--text-dark);
    border: 3px solid var(--text-dark);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.cta-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffed4e 0%, var(--accent-gold) 100%);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 3px solid white;
    box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.2);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
}

.scroll-indicator::before {
    content: '↓';
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(180deg, var(--maroon-dark) 0%, #5a0000 100%);
    color: white;
    text-align: center;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
}

/* --- AWARD CONTAINER --- */
.award-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.award-box {
    background: linear-gradient(135deg, var(--maroon-dark) 0%, #6a0000 100%);
    border: 3px solid var(--text-dark);
    border-radius: 16px;
    padding: 24px 16px;
    position: relative;
    min-height: 90px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.award-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.award-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.award-box:hover::before {
    opacity: 1;
}

.award-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.award-icon {
    width: 64px;
    /* Increased size */
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    background: rgba(255, 255, 255, 0.1);
    /* Subtle plate */
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.award-box:hover .award-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.award-title {
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 600;
    text-align: left;
}

.award-count {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-light);
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

/* Special Award Borders */
.border-gold {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), var(--shadow-md);
}

.border-purple {
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), var(--shadow-md);
}

.border-red {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3), var(--shadow-md);
}

.border-green {
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), var(--shadow-md);
}

.border-blue {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), var(--shadow-md);
}

.border-yellow {
    border-color: #eab308;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.3), var(--shadow-md);
}

.border-grey {
    border-color: #94a3b8;
    box-shadow: 0 0 20px rgba(148, 163, 184, 0.3), var(--shadow-md);
}

/* --- ANIMATIONS --- */

/* Fade In Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(120deg,
            var(--maroon-light) 25%,
            #ffb4b6 50%,
            var(--maroon-light) 75%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-effect 3s linear infinite;
}

.bg-shimmer {
    position: relative;
    overflow: hidden;
}

.bg-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 70%);
    animation: shimmer-slide 3s linear infinite;
}

@keyframes shimmer-effect {
    to {
        background-position: 200% center;
    }
}

@keyframes shimmer-slide {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

/* Ripple Effect */
.ripple {
    display: inline-block;
    animation: ripple-effect 2s ease-in-out infinite;
}

@keyframes ripple-effect {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(2deg);
    }

    66% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .menu-toggle {
        top: 16px;
        left: 16px;
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .sidenav {
        width: 280px;
    }

    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

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

    .award-box {
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .award-content {
        gap: 12px;
    }

    .award-icon {
        width: 32px;
        height: 32px;
    }

    .award-title {
        font-size: 0.95rem;
    }
}

/* --- UTILITY CLASSES --- */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* --- GLASS MORPHISM UTILITY --- */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- GRADIENT TEXT UTILITY --- */
.gradient-text {
    background: linear-gradient(135deg, var(--maroon-light), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ENHANCED FEATURES - NEW ADDITIONS
   ============================================ */



/* --- PHOTO CAROUSEL --- */
.photo-carousel-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 5rem 2rem;
    overflow: hidden;
    position: relative;
}

.photo-carousel-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.photo-carousel-section h2::after {
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scrollCarousel 30s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex-shrink: 0;
    width: 350px;
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel-item:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.carousel-item:hover::after {
    opacity: 1;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Carousel navigation dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--accent-gold);
    border-color: white;
    transform: scale(1.2);
}



/* --- ANIMATED STAT COUNTER --- */
.stat-number {
    display: inline-block;
}

.stat-number.counting {
    animation: countPulse 0.3s ease-out;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}











@keyframes backgroundPulse {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}



/* --- TOAST NOTIFICATIONS --- */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon-light) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 3px solid var(--text-dark);
    box-shadow: var(--shadow-brutal);
    font-family: var(--font-display);
    font-weight: 700;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* --- RESPONSIVE CAROUSEL --- */
@media (max-width: 768px) {
    .carousel-item {
        width: 280px;
        height: 200px;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 80px;
        right: 16px;
    }
}

/* ============================================
   NEW PAGE COMPONENTS
   ============================================ */

/* --- TIMELINE COMPONENT --- */
.history-timeline {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #ececec 100%);
}

.history-timeline h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-vertical {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--maroon-dark), var(--accent-gold));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 3px solid #1a1a1a;
    box-shadow: 8px 8px 0px rgba(148, 69, 71, 0.2);
    max-width: 350px;
    position: relative;
    margin-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 30px;
}

.timeline-dot {
    position: absolute;
    right: calc(50% - 12px);
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    border: 4px solid var(--maroon-dark);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: calc(50% - 12px);
    right: auto;
}

.timeline-year {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: var(--maroon-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- FAQ ACCORDION --- */
.faq-section {
    padding: 4rem 2rem;
    background: white;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 3px solid #1a1a1a;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 6px 6px 0px rgba(148, 69, 71, 0.15);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px rgba(148, 69, 71, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(148, 69, 71, 0.05);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--maroon-dark);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
}

/* --- DONATION TIERS --- */
.donation-tiers {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #ececec 100%);
}

.donation-tiers h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tier-card {
    background: white;
    border-radius: 20px;
    border: 3px solid #1a1a1a;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
}

.tier-card.bronze::before {
    background: linear-gradient(90deg, #cd7f32, #b87333);
}

.tier-card.silver::before {
    background: linear-gradient(90deg, #c0c0c0, #a8a8a8);
}

.tier-card.gold::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.tier-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 0px rgba(148, 69, 71, 0.2);
}

.tier-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tier-name {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: var(--maroon-dark);
    margin-bottom: 0.5rem;
}

.tier-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.tier-benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.tier-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.tier-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

/* --- SKILLS SHOWCASE --- */
.skills-section {
    padding: 4rem 2rem;
    background: white;
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-item {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f8f8, white);
    border-radius: 16px;
    border: 3px solid #1a1a1a;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 8px 8px 0px rgba(148, 69, 71, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.skill-name {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #333;
    font-weight: 700;
}

/* --- ROBOT SPECS TABLE --- */
.robot-specs {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.robot-specs h2 {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.specs-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.spec-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.spec-label {
    color: var(--accent-gold);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.spec-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- PROGRESS BARS --- */
.goals-section {
    padding: 4rem 2rem;
    background: white;
}

.goals-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.goals-container {
    max-width: 700px;
    margin: 0 auto;
}

.goal-item {
    margin-bottom: 2rem;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.goal-name {
    font-weight: 700;
    color: #333;
}

.goal-percent {
    font-family: 'Space Mono', monospace;
    color: var(--maroon-dark);
}

.progress-bar {
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #1a1a1a;
}

.timeline-card .timeline-content {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--maroon-dark), var(--accent-gold));
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* --- MAP PLACEHOLDER --- */
.map-section {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #ececec 100%);
}

.map-container {
    max-width: 1190px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    border: 3px solid #1a1a1a;
    overflow: hidden;
    box-shadow: 10px 10px 0px rgba(148, 69, 71, 0.2);
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.map-embed {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

.map-placeholder .map-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-embed {
    width: 100%;
    height: 300px;
    border: none;
}

/* --- SOCIAL LINKS --- */
.social-section {
    padding: 3rem 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 8px 8px 0px rgba(148, 69, 71, 0.2);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-color: #dc2743;
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-link.youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.social-link.email:hover {
    background: var(--maroon-dark);
    color: white;
    border-color: var(--maroon-dark);
}

/* --- MEETING SCHEDULE --- */
.meeting-schedule {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon-light));
    padding: 2rem;
    border-radius: 16px;
    border: 3px solid #1a1a1a;
    color: white;
    text-align: center;
    margin: 2rem auto;
    max-width: 500px;
}

.meeting-schedule h3 {
    font-family: 'Space Mono', monospace;
    margin-bottom: 1rem;
}

.next-meeting {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.meeting-details {
    opacity: 0.9;
}

/* --- FILTER TABS --- */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 3px solid #1a1a1a;
    border-radius: 30px;
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--maroon-dark);
    color: white;
    transform: scale(1.05);
}

/* --- SPONSOR SHOWCASE --- */
.sponsors-section {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}

.sponsors-section h2 {
    margin-bottom: 3rem;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.sponsor-logo {
    width: 120px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- IMPACT STATS --- */
.impact-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon-light));
}

.impact-section h2 {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.impact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.impact-amount {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-desc {
    color: white;
    font-size: 1rem;
}

/* --- ROBOT SHOWCASE --- */
.robot-showcase {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    text-align: center;
}

.robot-showcase h2 {
    color: white;
    margin-bottom: 2rem;
}

.robot-image-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.robot-image {
    width: 100%;
    border-radius: 20px;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.robot-image:hover {
    transform: scale(1.02) rotateY(5deg);
}

.robot-name {
    color: var(--accent-gold);
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.robot-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* --- DOWNLOAD BUTTON --- */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold), #ffed4e);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 12px;
    border: 3px solid #1a1a1a;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px rgba(0, 0, 0, 0.25);
}

.download-icon {
    font-size: 1.2rem;
}

/* --- RESPONSIVE FOR NEW COMPONENTS --- */
@media (max-width: 768px) {
    .timeline-vertical::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 8px;
        right: auto;
    }
}

/* --- PREMIUM COUNTDOWN --- */
.countdown-section {
    padding: 6rem 2rem;
    background: radial-gradient(circle at top right, #3a0000 0%, #000 80%);
    text-align: center;
    color: white;
    border-bottom: 4px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    min-width: 150px;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.countdown-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: #ffd700;
    box-shadow: 0 20px 50px rgba(128, 0, 0, 0.3);
}

.countdown-number {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.countdown-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.countdown-event {
    font-size: 1.1rem;
    color: #ffd700;
    font-family: 'Space Mono', monospace;
    margin-top: 2rem;
    opacity: 0.8;
}

/* --- PREMIUM NEWSLETTER --- */
.newsletter-section {
    padding: 6rem 2rem;
    background: var(--bg-light);
    border-top: 1px solid #e0e0e0;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 4rem;
    border-radius: 32px;
    border: 3px solid #1a1a1a;
    box-shadow: 20px 20px 0px rgba(128, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.newsletter-container:hover {
    transform: scale(1.02);
}

.newsletter-container h3 {
    font-size: 2.5rem;
    color: var(--maroon-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.newsletter-form {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--maroon-dark);
    outline: none;
}

.newsletter-form button {
    padding: 1.2rem 2.5rem;
    background: var(--maroon-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-form button:hover {
    background: var(--maroon-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* --- PREMIUM RESOURCES --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.resource-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.resource-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(128, 0, 0, 0.05) 50%);
}

.resource-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 35px 70px rgba(128, 0, 0, 0.1);
    border-color: #800000;
}

.resource-icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.resource-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: 'Space Mono', monospace;
    font-weight: 800;
    text-align: center;
}

.resource-links {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.resource-card {
    text-align: center;
}

.resource-links li {
    margin-bottom: 1.2rem;
}

.resource-links a {
    color: #555;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    font-size: 1.05rem;
}

.resource-links a:hover {
    color: #800000;
    transform: translateX(10px);
}

.resource-links a::before {
    content: '→';
    color: #ffd700;
    font-weight: 900;
}

/* UI Components for Portal */
.system-status {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.95);
    color: #ffd700;
    padding: 0.8rem 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    z-index: 1001;
    /* Above hero but below menu-toggle/sidenav */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.logout-link {
    margin-top: auto !important;
    color: #ff4d4d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem !important;
    font-size: 0.85rem !important;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-link:hover {
    opacity: 1;
    color: #ff1a1a !important;
}


/* --- SPONSOR MARQUEE --- */
.sponsor-marquee-section {
    padding: 2rem 0;
    background: #000;
    overflow: hidden;
    white-space: nowrap;
    border-top: 4px solid var(--maroon-dark);
    border-bottom: 4px solid var(--maroon-dark);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.sponsor-item {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    margin: 0 2rem;
    font-weight: bold;
}

.sponsor-primary {
    color: #333;
}

.sponsor-secondary {
    color: #444;
}

/* --- 3D VIEWER CONTAINER --- */
.viewer-3d-container {
    max-width: 800px;
    margin: 0 auto;
    background: #e0e0e0;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 3px solid #1a1a1a;
    position: relative;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
}

.viewer-label {
    color: #666;
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
}

.viewer-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.viewer-btn {
    background: var(--maroon-dark);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.viewer-btn:hover {
    background: var(--maroon-light);
}

/* --- LIVE MATCH RESULTS --- */
.live-results-section {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.results-table-container {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    border: 3px solid #1a1a1a;
    border-radius: 12px;
    box-shadow: 10px 10px 0px rgba(128, 0, 0, 0.2);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Space Mono', monospace;
}

.results-table th {
    background: var(--maroon-dark);
    color: white;
    padding: 1rem;
    text-align: center;
}

.results-table th:first-child {
    text-align: left;
}

.results-table th:last-child {
    text-align: right;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table tr:nth-child(even) {
    background: #f9f9f9;
}

.alliance-red {
    color: #dc2626;
    font-weight: bold;
}

.alliance-blue {
    color: #2563eb;
    font-weight: bold;
}

.match-score {
    font-weight: 700;
    text-align: right;
}

.match-status-live {
    color: green;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .specs-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .tier-card {
        margin-bottom: 1rem;
    }
}

/* --- ABOUT PAGE --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--maroon-light);
    font-weight: 700;
}

.about-image-container {
    text-align: center;
    position: relative;
}

.animated-cube-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.animated-cube-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 3px solid var(--text-dark);
    box-shadow: 8px 8px 0px rgba(148, 69, 71, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mission-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(148, 69, 71, 0.3);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.5rem;
    font-family: 'Space Mono', monospace;
    color: var(--maroon-light);
    margin-bottom: 1rem;
}

.mission-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    border: 3px solid var(--text-dark);
    border-left: 8px solid var(--maroon-dark);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-gold);
}

.value-item h4 {
    font-size: 1.3rem;
    font-family: 'Space Mono', monospace;
    color: var(--maroon-dark);
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }
}

/* --- WHAT WE DO PAGE --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 3px solid var(--text-dark);
    box-shadow: 10px 10px 0px rgba(148, 69, 71, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--maroon-dark), var(--accent-gold), var(--maroon-dark));
    background-size: 200% 100%;
    animation: gradient-slide 3s linear infinite;
}

.feature-card:hover {
    transform: translate(-5px, -5px) scale(1.05);
    box-shadow: 15px 15px 0px rgba(148, 69, 71, 0.3);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* --- DONATE PAGE --- */
.donation-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    border: 3px solid var(--text-dark);
    box-shadow: 12px 12px 0px rgba(148, 69, 71, 0.2);
}

.donation-container h2 {
    color: var(--maroon-dark);
    margin-bottom: 1rem;
}

.givebutter-container {
    margin-top: 2rem;
    min-height: 400px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* --- CONTACT PAGE --- */
.contact-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: radial-gradient(circle at top right, rgba(148, 69, 71, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.05), transparent 40%),
        var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    border: 3px solid var(--text-dark);
    box-shadow: 10px 10px 0px rgba(148, 69, 71, 0.2);
}

.content-container h1 {
    font-size: 3rem;
    font-family: 'Space Mono', monospace;
    color: var(--maroon-dark);
    margin-bottom: 2rem;
}

.submit-btn {
    font-family: 'Space Mono', monospace;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon-light));
    color: #fff;
    border: 3px solid var(--text-dark);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--maroon-light), var(--maroon-accent));
}

.contact-details {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-socials a img {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.contact-socials a img:hover {
    transform: translate(-3px, -3px);
}

.detail-item {
    padding: 1.5rem;
    background: rgba(148, 69, 71, 0.03);
    border-radius: 16px;
    border: 1px dashed rgba(148, 69, 71, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item h4 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item p {
    margin: 0;
    font-family: var(--font-display);
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--maroon-dark);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: #fdfdfd;
    border: 3px solid var(--text-dark);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--maroon-dark);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(148, 69, 71, 0.2);
    background: #fff;
}

/* --- SCHEDULE SECTION --- */
.schedule-section {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.meeting-schedule {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 3px solid var(--text-dark);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 10px 10px 0px var(--maroon-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.meeting-schedule:hover {
    transform: scale(1.02);
    box-shadow: 15px 15px 0px var(--maroon-light);
}

.schedule-header {
    background: var(--maroon-dark);
    color: white;
    padding: 1.5rem;
    border-bottom: 3px solid var(--text-dark);
}

.schedule-header h3 {
    margin: 0;
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
}

.schedule-body {
    padding: 2.5rem;
}

.next-meeting {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--maroon-dark);
    margin-bottom: 0.5rem;
}

.meeting-details {
    font-family: 'Space Mono', monospace;
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-socials {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.logout-link {
    margin-top: auto !important;
    color: #ff4d4d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem !important;
    font-size: 0.85rem !important;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- PROCESS SECTION --- */
.process-section {
    padding: 8rem 2rem;
    background: #fff;
    position: relative;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    background: #fff;
    padding: 4rem 2rem 2.5rem;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.process-step:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(128, 0, 0, 0.08);
    border-color: var(--maroon-dark);
}

.step-number {
    position: absolute;
    top: -30px;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Space Mono', monospace;
    border: 4px solid white;
    box-shadow: 0 8px 16px rgba(128, 0, 0, 0.2);
}

.process-step h4 {
    font-size: 1.6rem;
    font-family: 'Space Mono', monospace;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.process-step p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

.detail-item {
    margin-bottom: 2rem;
}

.detail-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-family: 'Space Mono', monospace;
    color: var(--maroon-dark);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f8f8;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background: var(--maroon-dark);
    border-color: var(--maroon-dark);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.2);
}

.social-links a:hover img {
    filter: brightness(0) invert(1);
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* --- TEAM PAGES --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border: 3px solid var(--text-dark);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 10px 10px 0px rgba(148, 69, 71, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translate(-10px, -10px) rotate(-1deg);
    box-shadow: 20px 20px 0px rgba(148, 69, 71, 0.3);
}

.team-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid var(--maroon-dark);
    margin-bottom: 2rem;
    object-fit: cover;
    background: #f8f8f8;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-card:hover .team-img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-gold);
}

.team-card h3 {
    color: var(--maroon-dark);
    font-family: 'Space Mono', monospace;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.team-card p {
    font-style: italic;
    color: #666;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
    --bg-light: #121212;
    --text-dark: #e0e0e0;
    --text-light: #aaa;
}

[data-theme="dark"] body {
    background-color: #121212;
    color: #e0e0e0;
}

[data-theme="dark"] body::before {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
}

[data-theme="dark"] section {
    color: #e0e0e0;
}

[data-theme="dark"] h2 {
    color: #d4a0a1;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .mission-card,
[data-theme="dark"] .value-item,
[data-theme="dark"] .tier-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .process-step,
[data-theme="dark"] .team-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .content-container,
[data-theme="dark"] .donation-container,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .meeting-schedule,
[data-theme="dark"] .newsletter-container {
    background: #1e1e1e;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .mission-card h3,
[data-theme="dark"] .value-item h4,
[data-theme="dark"] .faq-question,
[data-theme="dark"] .process-step h4,
[data-theme="dark"] .team-card h3,
[data-theme="dark"] .timeline-content h3,
[data-theme="dark"] .timeline-year,
[data-theme="dark"] .detail-item h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .mission-card p,
[data-theme="dark"] .faq-answer p,
[data-theme="dark"] .process-step p,
[data-theme="dark"] .team-card p,
[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .about-text {
    color: #bbb;
}

[data-theme="dark"] .history-timeline,
[data-theme="dark"] .donation-tiers,
[data-theme="dark"] .map-section,
[data-theme="dark"] .faq-section {
    background: #181818;
}

[data-theme="dark"] .skill-item {
    background: #1e1e1e;
    border-color: #444;
}

[data-theme="dark"] .skill-name {
    color: #e0e0e0;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #2a2a2a;
    border-color: #555;
    color: #e0e0e0;
}

[data-theme="dark"] .form-group label {
    color: #d4a0a1;
}

[data-theme="dark"] .filter-tab {
    background: #1e1e1e;
    border-color: #555;
    color: #e0e0e0;
}

[data-theme="dark"] .sponsor-logo {
    background: #2a2a2a;
    color: #777;
}

[data-theme="dark"] .detail-item {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

[data-theme="dark"] .newsletter-form input {
    background: #2a2a2a;
    border-color: #555;
    color: #e0e0e0;
}

[data-theme="dark"] .breadcrumb {
    background: #1e1e1e;
}

[data-theme="dark"] .breadcrumb a {
    color: #d4a0a1;
}

[data-theme="dark"] .breadcrumb span {
    color: #aaa;
}




/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    max-width: 1200px;
    margin: 1rem auto 0;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--maroon-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #999;
    margin: 0 0.25rem;
}

.breadcrumb .current {
    color: #999;
    font-weight: 700;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 5000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-container {
    width: 90%;
    max-width: 700px;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    font-size: 1.3rem;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.search-input-wrapper input:focus {
    border-color: var(--accent-gold);
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.search-results {
    margin-top: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 transparent;
}

.search-result-item {
    display: block;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.search-result-item .result-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--accent-gold);
}

.search-result-item .result-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5001;
}

.search-close:hover {
    color: var(--accent-gold);
}

.search-no-results {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    font-style: italic;
}

/* --- SEARCH BUTTON IN NAV --- */
.nav-search-btn {
    padding: 18px 30px;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--accent-light);
    display: block;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    font-family: var(--font-body);
    cursor: pointer;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
}

.nav-search-btn:hover {
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    padding-left: 35px;
}

/* ============================================
   FOOTER NEWSLETTER
   ============================================ */
.footer-newsletter {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.footer-newsletter h4 {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--accent-gold);
}

.footer-newsletter p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.footer-newsletter-form input:focus {
    border-color: var(--accent-gold);
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--accent-gold);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.footer-newsletter-form button:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .footer-newsletter-form {
        flex-direction: column;
    }

    .theme-toggle {
        bottom: 74px;
        right: 16px;
    }

    .a11y-toggle {
        bottom: 130px;
        right: 16px;
    }

    .a11y-panel {
        right: 16px;
        bottom: 186px;
    }
}

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #2a0000 0%, #000 100%);
    color: white;
    padding: 2rem;
}

.error-content {
    max-width: 600px;
}

.error-emoji {
    font-size: 8rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}

.error-code {
    font-family: 'Space Mono', monospace;
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.error-submessage {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Generic content page */
.content-page {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 2.5rem;
    font-family: 'Space Mono', monospace;
    color: var(--maroon-dark);
    margin-bottom: 2rem;
    text-align: center;
}

[data-theme="dark"] .content-page h1 {
    color: #d4a0a1;
}

.content-page h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
}

.content-page h2::after {
    display: none;
}

.content-page p,
.content-page li {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

[data-theme="dark"] .content-page p,
[data-theme="dark"] .content-page li {
    color: #bbb;
}

.content-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-page ul li {
    margin-bottom: 0.5rem;
}

/* Glossary page */
.glossary-search {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.glossary-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 3px solid #1a1a1a;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

[data-theme="dark"] .glossary-search input {
    background: #2a2a2a;
    border-color: #555;
    color: #e0e0e0;
}

.glossary-search .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
    pointer-events: none;
}

.glossary-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.glossary-alpha-nav a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--maroon-dark);
    background: #f0f0f0;
    border: 2px solid transparent;
    transition: all 0.2s;
}

[data-theme="dark"] .glossary-alpha-nav a {
    background: #2a2a2a;
    color: #d4a0a1;
}

.glossary-alpha-nav a:hover {
    background: var(--maroon-dark);
    color: white;
    transform: scale(1.1);
}

.glossary-section {
    margin-bottom: 2rem;
}

.glossary-section h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.8rem;
    color: var(--maroon-dark);
    border-bottom: 3px solid var(--accent-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .glossary-section h3 {
    color: #d4a0a1;
    border-bottom-color: rgba(255, 215, 0, 0.4);
}

.glossary-term {
    padding: 1rem;
    border-left: 4px solid var(--maroon-dark);
    margin-bottom: 1rem;
    background: rgba(148, 69, 71, 0.03);
    border-radius: 0 8px 8px 0;
    transition: all 0.2s;
}

[data-theme="dark"] .glossary-term {
    background: rgba(255, 215, 0, 0.03);
    border-left-color: var(--accent-gold);
}

.glossary-term:hover {
    background: rgba(148, 69, 71, 0.08);
    transform: translateX(5px);
}

.glossary-term dt {
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: var(--maroon-dark);
    margin-bottom: 0.3rem;
}

[data-theme="dark"] .glossary-term dt {
    color: var(--accent-gold);
}

.glossary-term dd {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .glossary-term dd {
    color: #bbb;
}

/* Quiz page */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-progress {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--maroon-dark), var(--accent-gold));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.quiz-question-card {
    background: white;
    border: 3px solid #1a1a1a;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 8px 8px 0px rgba(148, 69, 71, 0.15);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .quiz-question-card {
    background: #1e1e1e;
    border-color: #444;
}

.quiz-question-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.quiz-question-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 1rem 1.5rem;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    background: white;
    text-align: left;
    font-family: var(--font-body);
}

[data-theme="dark"] .quiz-option {
    background: #2a2a2a;
    border-color: #555;
    color: #e0e0e0;
}

.quiz-option:hover {
    border-color: var(--maroon-dark);
    background: rgba(148, 69, 71, 0.05);
    transform: translateX(5px);
}

.quiz-option.selected {
    border-color: var(--maroon-dark);
    background: rgba(148, 69, 71, 0.1);
    font-weight: 700;
}

.quiz-option.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.quiz-option.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.quiz-btn {
    padding: 0.8rem 2rem;
    border: 3px solid #1a1a1a;
    border-radius: 10px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-btn-primary {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon-light));
    color: white;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.quiz-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.25);
}

.quiz-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.quiz-results {
    text-align: center;
    padding: 3rem;
}

.quiz-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    border: 6px solid;
}

.quiz-score-circle.pass {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.quiz-score-circle.fail {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Branding page color swatches */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.color-swatch {
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #1a1a1a;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.color-swatch:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px rgba(0, 0, 0, 0.15);
}

.color-preview {
    height: 100px;
}

.color-info {
    padding: 1rem;
    background: white;
}

[data-theme="dark"] .color-info {
    background: #1e1e1e;
}

.color-info .color-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.color-info .color-hex {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #999;
}

/* Font specimen */
.font-specimen {
    padding: 2rem;
    border: 3px solid #1a1a1a;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    background: white;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .font-specimen {
    background: #1e1e1e;
    border-color: #444;
}

.font-specimen h4 {
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
    color: var(--maroon-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.font-specimen .specimen-text {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.font-specimen .specimen-meta {
    font-size: 0.8rem;
    color: #999;
    font-family: 'Space Mono', monospace;
}

/* Sub-team section */
.subteam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subteam-card {
    background: white;
    border: 3px solid #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 8px 8px 0px rgba(148, 69, 71, 0.15);
    transition: all 0.3s ease;
}

[data-theme="dark"] .subteam-card {
    background: #1e1e1e;
    border-color: #444;
}

.subteam-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(148, 69, 71, 0.2);
}

.subteam-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.subteam-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: var(--maroon-dark);
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .subteam-card h3 {
    color: #d4a0a1;
}

.subteam-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

[data-theme="dark"] .subteam-card p {
    color: #bbb;
}

/* D&I Statement */
.di-statement {
    background: linear-gradient(135deg, rgba(148, 69, 71, 0.05), rgba(255, 215, 0, 0.05));
    border: 3px solid #1a1a1a;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 8px 8px 0px rgba(148, 69, 71, 0.1);
}

[data-theme="dark"] .di-statement {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(148, 69, 71, 0.05));
    border-color: #444;
}

.di-statement .di-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.di-statement h3 {
    font-family: 'Space Mono', monospace;
    color: var(--maroon-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .di-statement h3 {
    color: #d4a0a1;
}

.di-statement p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

[data-theme="dark"] .di-statement p {
    color: #bbb;
}

/* Sponsor inquiry form */
.sponsor-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border: 3px solid #1a1a1a;
    border-radius: 20px;
    box-shadow: 10px 10px 0px rgba(148, 69, 71, 0.15);
}

[data-theme="dark"] .sponsor-form {
    background: #1e1e1e;
    border-color: #444;
}

.sponsor-form h3 {
    font-family: 'Space Mono', monospace;
    color: var(--maroon-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

[data-theme="dark"] .sponsor-form h3 {
    color: #d4a0a1;
}



[data-theme="dark"] .tool-item {
    background: #1e1e1e;
    border-color: #444;
}

.tool-item:hover {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 8px 8px 0px rgba(148, 69, 71, 0.15);
}

.tool-item .tool-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.tool-item .tool-name {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--maroon-dark);
}

[data-theme="dark"] .tool-item .tool-name {
    color: #e0e0e0;
}

/* Centered Content Page Wrapper */
.content-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 60vh;
    width: 100%;
}

@media (max-width: 768px) {
    .content-page {
        padding: 1rem;
    }
}

/* Safety section */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.safety-card {
    background: white;
    border: 3px solid #1a1a1a;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-top: 6px solid #22c55e;
}

[data-theme="dark"] .safety-card {
    background: #1e1e1e;
    border-color: #444;
    border-top-color: #22c55e;
}

.safety-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px rgba(34, 197, 94, 0.15);
}

.safety-card .safety-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.safety-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

[data-theme="dark"] .safety-card h3 {
    color: #e0e0e0;
}

.safety-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

[data-theme="dark"] .safety-card p {
    color: #bbb;
}