/* Custom Fonts */
@font-face {
    font-family: 'Aerospace';
    src: url('fonts/Aerospace.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'A4Speed';
    src: url('fonts/A4SPEED-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'SlamDunk';
    src: url('fonts/SlamDunk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Speedway';
    src: url('fonts/Speedway-1080.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'UnitedKingdom';
    src: url('fonts/United Kingdom DEMO.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-color: #e30613;
    --accent-glow: rgba(227, 6, 19, 0.4);
    --accent-bright: #ff2d3b;
    --gradient-accent: linear-gradient(135deg, #e30613 0%, #ff4444 100%);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-aerospace: 'Aerospace', sans-serif;
    --font-speed: 'A4Speed', sans-serif;
    --font-slamdunk: 'SlamDunk', sans-serif;
    --font-speedway: 'Speedway', sans-serif;
    --font-uk: 'UnitedKingdom', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition-speed: 0.3s;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

/* Custom Selection */
::selection {
    background: var(--accent-color);
    color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.accent {
    color: var(--accent-color);
    text-shadow: 0 0 40px var(--accent-glow);
}

/* Glowing Text Animation */
@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(227, 6, 19, 0.2);
    }

    50% {
        text-shadow: 0 0 50px var(--accent-color), 0 0 100px rgba(227, 6, 19, 0.4);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 4px 35px var(--accent-color), 0 0 60px var(--accent-glow);
    }
}

.btn-primary::before {
    background: #fff;
}

.btn-primary:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    animation: none;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: background 0.4s ease, -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
}

.logo span {
    color: var(--accent-color);
    animation: logoDot 2s ease-in-out infinite;
}

@keyframes logoDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

nav a.active {
    opacity: 1;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
    animation: navPulse 2s infinite ease-in-out;
}

nav a.active::after {
    width: 100%;
}

@keyframes navPulse {
    0% {
        opacity: 1;
        text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 5px var(--accent-glow), 0 0 10px var(--accent-glow);
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
    }
}

nav a:hover {
    opacity: 1;
}

nav a:hover::after {
    width: 100%;
}

/* ==================== */
/* iOS-Style Hamburger  */
/* ==================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.2s ease,
        width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

.mobile-menu-btn span:nth-child(2) {
    width: 16px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==================== */
/* Glassmorphic Mobile  */
/* Menu                 */
/* ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 5, 5, 0.92);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        visibility 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0;
    padding: 0;
}

.mobile-menu li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active li:nth-child(1) {
    transition-delay: 0.08s;
}

.mobile-menu.active li:nth-child(2) {
    transition-delay: 0.14s;
}

.mobile-menu.active li:nth-child(3) {
    transition-delay: 0.20s;
}

.mobile-menu.active li:nth-child(4) {
    transition-delay: 0.26s;
}

.mobile-menu.active li:nth-child(5) {
    transition-delay: 0.32s;
}

.mobile-menu.active li:nth-child(6) {
    transition-delay: 0.38s;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    padding: 18px 40px;
    position: relative;
    transition: color 0.3s ease;
}

.mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.mobile-menu a.active {
    color: var(--accent-color);
}

.mobile-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
    filter: contrast(1.2) saturate(1.3) brightness(0.7);
    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1) translateX(0);
    }

    50% {
        transform: scale(1.05) translateX(-1%);
    }

    100% {
        transform: scale(1.1) translateX(-2%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.3) 40%, rgba(5, 5, 5, 0.5) 100%),
        linear-gradient(to bottom, transparent 50%, var(--bg-color) 100%);
    z-index: -1;
}

/* Animated Speed Lines */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
            transparent,
            transparent 100px,
            rgba(227, 6, 19, 0.03) 100px,
            rgba(227, 6, 19, 0.03) 101px);
    animation: speedLinesMove 10s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes speedLinesMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100px);
    }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    /* Slightly wider for centered look */
    margin: 0 auto;
    /* Center the container itself */
    text-align: center;
    /* Center text */
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(48px, 10vw, 100px);
    line-height: 0.95;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero h1 .accent {
    animation: textGlow 3s ease-in-out infinite;
    display: inline-block;
}

.hero p {
    font-size: 20px;
    /* Slightly larger */
    color: #ffffff;
    /* White for better visibility */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Shadow for contrast */
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    /* Center buttons */
    animation: fadeInUp 1s ease-out 0.8s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 1s ease-out 1.2s both;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    writing-mode: vertical-lr;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    position: relative;
}

/* Cockpit Overlay */
.cockpit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647 !important;
    /* Above everything */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: transparent; */
    transition: opacity 1.5s ease;
}

.cockpit-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    /* Removed transform/filter on container to stop "absurd" movement */
}

/* Specific background animation */
.cockpit-overlay .cockpit-bg {
    transform: scale(1.1);
    /* Starts "wider" */
    transition: transform 1.5s ease-out, opacity 1.5s ease;
}

.cockpit-overlay.hidden .cockpit-bg {
    transform: scale(1.0);
    /* "Shrink a bit" on launch */
    opacity: 0;
}

.cockpit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/cockpit_pov.png');
    background-size: cover;
    background-position: center;
    /* filter: brightness(0.6); Removed to ensure visibility */
    z-index: 1;
}

/* Fallback if image missing */
/* Fallback removed to prevent black screen */
.cockpit-bg::before {
    display: none;
}


.cockpit-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    /* "10% blurry" */
    z-index: 2;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

/* Glass scratches/texture effect overlay */
.cockpit-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzUD0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuIiBvcGFjaXR5PSIwLjEiLz48L3N2Zz4=');
    opacity: 0.1;
    pointer-events: none;
}

.cockpit-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hud-grid {
    display: none;
    /* Removed the "squares" */
}

.hud-center {
    position: absolute;
    top: 50%;
    /* Centered */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hud-circle {
    display: none;
    /* Removed as requested */
}

.hud-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

@keyframes hudSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hud-text {
    font-family: var(--font-heading);
    font-size: 100px;
    /* Much bigger */
    font-weight: 800;
    letter-spacing: 15px;
    color: #ffffff;
    margin-top: 0;
    /* Centered since circle is gone */
    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 60px rgba(255, 255, 255, 0.4),
        0 0 100px rgba(227, 6, 19, 0.4);
    /* Hint of red glow outer */
    animation: textPulse 1.5s ease-in-out infinite alternate;
}

@keyframes textPulse {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
        opacity: 0.8;
    }

    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 0.8), 0 0 100px white;
        opacity: 1;
    }
}

/* Paddle */
.cockpit-paddle {
    position: absolute;
    right: 8vw;
    z-index: 4;
    background: none;
    border: none;
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.2s;
    outline: none;
}

.paddle-body {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid var(--accent-color);
    padding: 20px 40px;
    border-radius: 10px;
    /* Non-rounded corners for F1 feel */
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-align: right;
    box-shadow:
        0 0 20px rgba(227, 6, 19, 0.2),
        inset 0 0 20px rgba(227, 6, 19, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.paddle-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: paddleShine 3s infinite;
}

@keyframes paddleShine {

    0%,
    50% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.paddle-label {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.paddle-sub {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #aaa;
    margin-top: 5px;
}

.paddle-shifter {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 60px;
    background: #333;
    border-radius: 4px;
    z-index: -1;
    border-right: 2px solid #555;
}

.cockpit-paddle:hover .paddle-body {
    background: rgba(40, 40, 40, 0.95);
    box-shadow:
        0 0 30px rgba(227, 6, 19, 0.4),
        inset 0 0 20px rgba(227, 6, 19, 0.2);
    transform: translateX(-5px);
}

.cockpit-paddle:active {
    transform: scale(0.95);
}

.cockpit-paddle:active .paddle-body {
    background: var(--accent-color);
    color: black;
}

.cockpit-paddle:active .paddle-label {
    color: white;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    width: 5px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 3px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {

    0%,
    100% {
        top: 0;
        opacity: 1;
    }

    50% {
        top: 50px;
        opacity: 0.5;
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Sections General */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.section-title-small {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
}

/* Vision Section */
.vision-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Animated Background Grid */
.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(227, 6, 19, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 6, 19, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.vision-text {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 50px;
}

.vision-stats {
    display: flex;
    gap: 60px;
}

.stat {
    text-align: left;
    position: relative;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
    display: inline;
    text-shadow: 0 0 30px var(--accent-glow);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.vision-visual {
    display: grid;
    gap: 20px;
}

.vision-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.4s ease;
    box-shadow: 0 0 20px var(--accent-color);
}

.vision-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(227, 6, 19, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.vision-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(227, 6, 19, 0.3);
    transform: translateX(10px);
}

.vision-card:hover::before {
    height: 100%;
}

.card-icon {
    margin-bottom: 15px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

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

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

.vision-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.vision-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Project Section */
.project-section {
    background: var(--bg-color);
    position: relative;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: stretch;
}

.project-card {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.15) 0%, rgba(0, 0, 0, 0) 50%);
    border: 1px solid var(--border-subtle);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    box-shadow: 0 0 30px var(--accent-color);
}

/* Racing Stripe Animation */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.1), transparent);
    animation: racingStripe 4s ease-in-out infinite;
}

@keyframes racingStripe {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 150%;
    }
}

.project-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 15px;
    animation: labelBlink 2s ease-in-out infinite;
}

@keyframes labelBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.project-card h3 {
    font-size: 56px;
    margin-bottom: 20px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    background-size: 200% 100%;
}

@keyframes titleShimmer {
    0% {
        background-position: 0% 50%;
    }

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

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

.project-card-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.project-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.project-features li {
    font-size: 14px;
    color: var(--text-color);
    padding-left: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.project-features li:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.project-features li:hover::before {
    transform: translateX(3px);
}

.project-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    background: radial-gradient(ellipse at center, rgba(227, 6, 19, 0.2) 0%, transparent 70%);
    position: relative;
}

.car-silhouette {
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--accent-bright), var(--accent-color), transparent);
    clip-path: polygon(0% 50%, 15% 30%, 35% 20%, 55% 25%, 75% 20%, 100% 40%, 95% 60%, 80% 70%, 60% 75%, 40% 70%, 20% 75%, 5% 60%);
    animation: carGlow 3s ease-in-out infinite alternate, carMove 5s ease-in-out infinite;
}

@keyframes carGlow {
    from {
        filter: drop-shadow(0 0 20px var(--accent-glow)) brightness(1);
    }

    to {
        filter: drop-shadow(0 0 50px var(--accent-color)) brightness(1.2);
    }
}

@keyframes carMove {

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

    25% {
        transform: translateX(10px) rotate(0.5deg);
    }

    75% {
        transform: translateX(-10px) rotate(-0.5deg);
    }
}

/* Car Carousel - Seamless Infinite Scroll */
.car-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.car-track {
    display: flex;
    gap: 60px;
    animation: carScroll 12s linear infinite;
    width: max-content;
}

.car-item {
    height: 320px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.car-item:hover {
    transform: scale(1.05);
}

@keyframes carScroll {
    from {
        transform: translateX(0);
    }

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

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

/* Specs Section */
.specs-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.spec-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.spec-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.spec-item:hover::before {
    opacity: 1;
}

.spec-item:hover {
    border-color: rgba(227, 6, 19, 0.5);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    position: relative;
}

.spec-unit {
    font-size: 14px;
    color: var(--text-muted);
    margin: 10px 0;
}

.spec-label {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.specs-visual {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    pointer-events: none;
    z-index: 0;
}

.speed-lines {
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-glow) 20%,
            var(--accent-color) 50%,
            var(--accent-glow) 80%,
            transparent 100%);
    animation: speedPulse 2s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes speedPulse {
    0% {
        transform: translateX(-50%);
        opacity: 0.1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateX(0%);
        opacity: 0.1;
    }
}

/* Team Section */
.team-section {
    background: var(--bg-color);
    position: relative;
}

.team-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
}

.team-departments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.department {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.department::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--accent-glow) 60deg, transparent 120deg);
    opacity: 0;
    animation: rotateBorder 4s linear infinite paused;
}

.department:hover::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.department::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-color);
    z-index: 0;
}

.department>* {
    position: relative;
    z-index: 1;
}

.department:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

/* Department Header Row */
.department-header {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    padding: 10px 0;
}

.department-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 6, 19, 0.1);
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 12px;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.department:hover .department-icon {
    background: rgba(227, 6, 19, 0.2);
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.3);
}

.department-text {
    flex: 1;
    text-align: left;
}

.department-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.department-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.expand-indicator {
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.department:hover .expand-indicator {
    color: var(--accent-color);
}

.department.expanded .expand-indicator {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.department.expanded {
    overflow: visible;
    height: auto;
}

.department.expanded::before {
    display: none;
}

/* Hidden member grid by default */
.department[data-expandable] .member-grid {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: all 0.4s ease;
}

.department[data-expandable].expanded .member-grid {
    max-height: 2000px;
    opacity: 1;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

@keyframes iconPulse {

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

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

.department h3 {
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.department p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Department Members List */
.department-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.department-members span {
    font-size: 11px;
    padding: 6px 12px;
    background: rgba(227, 6, 19, 0.1);
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.department-members span:hover {
    background: rgba(227, 6, 19, 0.2);
    color: var(--accent-color);
    transform: scale(1.05);
}

/* Member Grid with Photos */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.member-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(227, 6, 19, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.3);
}

.member-photo {
    width: 100%;
    height: 250px;
    /* Taller for better visibility */
    object-fit: cover;
    display: block;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.member-card:hover .member-photo {
    filter: grayscale(0%);
}

.member-name {
    display: block;
    padding: 10px 6px;
    font-size: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.member-role {
    display: block;
    font-size: 9px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    margin-top: -6px;
}

/* Member Modal */
.member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.member-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 60px rgba(227, 6, 19, 0.3);
}

.member-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.modal-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 25px;
    text-align: center;
}

.modal-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.modal-role {
    display: block;
    color: var(--accent-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.modal-dept {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
}

/* Team Leadership Cards */
.team-leadership {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.leader-card {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(227, 6, 19, 0.3);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(227, 6, 19, 0.2);
}

.leader-photo {
    width: 100%;
    height: auto;
    max-height: 280px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 25px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.leader-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.leader-role {
    font-size: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.leader-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Car Image in Project Card */
.car-image {
    max-width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    animation: carFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

@keyframes carFloat {

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

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

/* Vision Faculty Text */
.vision-faculty {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 15px;
    margin-bottom: 30px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-color);
}

/* Sponsors Section */
.sponsors-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.sponsors-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.sponsors-track {
    display: flex;
    gap: 80px;
    animation: marquee 15s linear infinite;
    width: max-content;
}

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

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

.sponsor-item {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.5;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sponsor-item:hover {
    opacity: 1;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Contact Section */
.contact-section {
    background: var(--bg-color);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 400px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.contact-item a,
.contact-item span {
    font-size: 16px;
    color: var(--text-color);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-link {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    position: relative;
    padding-bottom: 5px;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-link:hover::after {
    width: 100%;
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(227, 6, 19, 0.05);
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.form-group select option {
    background: var(--bg-color);
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Custom Cursor Effect (optional) */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ============================================= */
/* RESPONSIVE BREAKPOINTS                        */
/* ============================================= */

/* --- Small Laptops (≤ 1024px) --- */
@media (max-width: 1024px) {

    .vision-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .project-card {
        padding: 35px;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-departments {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-leadership {
        gap: 30px;
    }

    section {
        padding: 90px 0;
    }

    .preview-section {
        padding: 80px 0;
    }
}

/* --- Tablets (≤ 768px) --- */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero h1 {
        font-size: clamp(36px, 8vw, 56px);
    }

    .hero p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    /* Sections */
    section {
        padding: 70px 0;
    }

    .section-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 40px;
    }

    /* Preview */
    .preview-section {
        padding: 60px 0;
    }

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

    .preview-card {
        padding: 30px;
    }

    /* Vision */
    .vision-stats {
        flex-direction: column;
        gap: 25px;
    }

    .vision-text {
        font-size: 1rem;
    }

    /* Specs */
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .spec-value {
        font-size: 48px;
    }

    .spec-item {
        padding: 30px 15px;
    }

    /* Project */
    .project-card h3 {
        font-size: 40px;
    }

    .project-features {
        grid-template-columns: 1fr;
    }

    .project-card-visual {
        min-height: 280px;
    }

    /* Team */
    .team-departments {
        grid-template-columns: 1fr;
    }

    .team-leadership {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 25px;
    }

    .member-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .member-photo {
        height: 200px;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    /* Page Hero (sub-pages) */
    .page-hero {
        padding: 140px 0 60px;
    }

    .page-hero h1 {
        font-size: clamp(32px, 7vw, 48px);
    }

    .page-hero p {
        font-size: 15px;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 400px;
    }

    .modal-photo {
        height: 280px;
    }

    /* Cockpit Overlay */
    .hud-text {
        font-size: 60px;
        letter-spacing: 8px;
    }

    .cockpit-paddle {
        right: auto;
        bottom: 15vh;
        left: 50%;
        transform: translateX(-50%);
    }

    .paddle-body {
        padding: 16px 30px;
        text-align: center;
    }

    /* Intro */
    .loader-tachometer {
        width: 220px;
        height: 220px;
    }

    .loader-speedometer {
        width: 100px;
        height: 100px;
    }

    .loader-speed-value {
        font-size: 32px;
    }

    /* Car Carousel */
    .car-item {
        height: 220px;
    }

    .car-track {
        gap: 30px;
    }

    /* Sponsors */
    .sponsors-section {
        padding: 50px 0;
    }

    .sponsor-item {
        font-size: 20px;
    }

    .sponsors-track {
        gap: 40px;
    }

    /* Advisor */
    .advisor-card {
        max-width: 320px;
        padding: 35px 25px;
    }

    .advisor-photo-frame {
        width: 150px;
        height: 150px;
    }

    /* Social Links */
    .social-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* --- Mobile (≤ 480px) --- */
@media (max-width: 480px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header */
    .logo {
        font-size: 18px;
        letter-spacing: 2px;
    }

    /* Hero */
    .hero {
        height: 100vh;
        height: 100dvh;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 44px);
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 14px;
        max-width: 90%;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .hero-buttons {
        max-width: 280px;
        gap: 12px;
    }

    .hero-buttons .btn {
        padding: 14px 24px;
        font-size: 13px;
        min-height: 48px;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: clamp(22px, 6vw, 30px);
        margin-bottom: 30px;
    }

    .section-title-small {
        font-size: 12px;
        margin-bottom: 25px;
    }

    /* Preview */
    .preview-section {
        padding: 40px 0;
    }

    .preview-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .preview-card {
        padding: 24px;
    }

    .preview-card h3 {
        font-size: 20px;
    }

    .preview-card p {
        font-size: 14px;
    }

    /* Stats Preview */
    .stats-preview {
        gap: 20px;
    }

    .stat-preview-item .value {
        font-size: 28px;
    }

    /* Vision */
    .vision-card {
        padding: 22px;
    }

    .vision-card h3 {
        font-size: 16px;
    }

    .vision-card p {
        font-size: 13px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-suffix {
        font-size: 36px;
    }

    /* Specs */
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .spec-value {
        font-size: 40px;
    }

    .spec-item {
        padding: 25px 15px;
    }

    /* Project */
    .project-card {
        padding: 25px 20px;
    }

    .project-card h3 {
        font-size: 32px;
    }

    .project-card-visual {
        min-height: 220px;
    }

    .project-card-content p {
        font-size: 14px;
    }

    /* Team */
    .team-intro {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .department {
        padding: 25px 18px;
        min-height: 0;
    }

    .department-header {
        gap: 14px;
    }

    .department-icon {
        width: 42px;
        height: 42px;
    }

    .department-text h3 {
        font-size: 14px;
    }

    .department-text p {
        font-size: 11px;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .member-photo {
        height: 160px;
    }

    .member-name {
        font-size: 10px;
        padding: 8px 4px;
    }

    .leader-card {
        padding: 30px 20px;
    }

    .leader-photo {
        max-height: 220px;
    }

    .leader-card h3 {
        font-size: 18px;
    }

    /* Contact */
    .contact-grid {
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .contact-form {
        gap: 18px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    .contact-item a,
    .contact-item span {
        font-size: 14px;
        word-break: break-word;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-link {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    /* Buttons */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
        font-size: 13px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        text-align: center;
    }

    .footer-links a {
        font-size: 12px;
    }

    /* Page Hero */
    .page-hero {
        padding: 110px 0 50px;
    }

    .page-hero h1 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .page-hero p {
        font-size: 14px;
    }

    .page-section {
        padding: 60px 0;
    }

    /* Modal */
    .modal-content {
        width: 92%;
        border-radius: 12px;
    }

    .modal-photo {
        height: 240px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-info h3 {
        font-size: 20px;
    }

    /* Cockpit Overlay */
    .hud-text {
        font-size: 40px;
        letter-spacing: 6px;
    }

    .paddle-body {
        padding: 14px 24px;
    }

    .paddle-label {
        font-size: 18px;
    }

    .paddle-sub {
        font-size: 9px;
    }

    /* Intro */
    .loader-tachometer {
        width: 180px;
        height: 180px;
    }

    .loader-speedometer {
        width: 80px;
        height: 80px;
    }

    .loader-speed-value {
        font-size: 28px;
    }

    .loader-speed-unit {
        font-size: 11px;
    }

    .loader-text {
        font-size: 11px;
    }

    .loader-speed-bar {
        width: 150px;
    }

    .intro-bracu {
        font-size: clamp(14px, 3vw, 20px);
    }

    .intro-logo-white,
    .intro-logo-red {
        font-size: clamp(28px, 10vw, 60px);
    }

    /* Car Carousel */
    .car-item {
        height: 160px;
    }

    .car-track {
        gap: 20px;
    }

    /* Mobile Menu font adjust */
    .mobile-menu a {
        font-size: 24px;
        padding: 14px 30px;
    }

    /* Sponsors */
    .sponsors-section {
        padding: 35px 0;
    }

    .sponsor-item {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .sponsors-track {
        gap: 25px;
    }

    .sponsor-item small {
        font-size: 8px;
        padding: 3px 6px;
    }

    /* Advisor */
    .advisor-card {
        max-width: 280px;
        padding: 25px 18px;
    }

    .advisor-photo-frame {
        width: 130px;
        height: 130px;
    }

    .advisor-name {
        font-size: 17px;
    }

    .advisor-role {
        font-size: 12px;
    }

    .advisor-affiliation {
        font-size: 12px;
    }

    /* Show advisor desc by default on mobile (hover doesn't work) */
    .advisor-desc {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 12px;
        font-size: 13px;
    }

    /* Vision Faculty */
    .vision-faculty {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* --- Hide cursor glow on touch-only devices --- */
@media (hover: none) and (pointer: coarse) {
    .cursor-glow {
        display: none !important;
    }

    /* Reduce heavy animations on mobile for performance */
    .hero-bg {
        animation-duration: 40s;
    }

    .cockpit-glass::after {
        display: none;
    }
}

/* ==================== */
/* ==================== */
/* F1 Intro Sequence    */
/* Clean & Minimal      */
/* ==================== */

.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.start-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.start-content {
    text-align: center;
    color: #fff;
    font-family: var(--font-aerospace);
}

.start-text {
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    animation: pulseText 2s infinite;
}

.start-sub {
    font-size: 14px;
    color: var(--accent-color);
    letter-spacing: 2px;
    opacity: 0.8;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s ease, background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-overlay.dark-bg {
    background: #0a0a0a;
}

.intro-overlay.fade-out {
    animation: cinematicExit 1.5s cubic-bezier(0.7, 0, 0.2, 1) forwards;
    pointer-events: none;
}

/* Cinematic Exit Animation - Racing Zoom */
@keyframes cinematicExit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    40% {
        opacity: 1;
        transform: scale(1.1);
        filter: blur(2px);
    }

    100% {
        opacity: 0;
        transform: scale(1.3);
        filter: blur(8px);
    }
}

/* Racing Stripes Sweep Overlay */
.intro-overlay::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: repeating-linear-gradient(-45deg,
            transparent,
            transparent 30px,
            rgba(227, 6, 19, 0.15) 30px,
            rgba(227, 6, 19, 0.15) 60px);
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 100;
}

.intro-overlay.fade-out::before {
    animation: stripeSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes stripeSweep {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50%);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(100%) translateY(100%);
    }
}

/* Speed Lines Flash on Exit */
.intro-overlay.fade-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(227, 6, 19, 0.3) 20%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(227, 6, 19, 0.3) 80%,
            transparent 100%);
    animation: lightFlash 0.8s ease-out forwards;
    z-index: 101;
}

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

    30% {
        opacity: 1;
    }

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

/* Racing Loading Indicator */
.intro-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-loader.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

/* Tachometer SVG */
.loader-tachometer {
    position: relative;
    width: 280px;
    /* Needs to be bigger for details */
    height: 280px;
}

.speedometer-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Yellow Gauge Styles */
:root {
    --gauge-color: #ff3333;
    /* Bright Neon Red */
}

@keyframes gaugePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 5px var(--gauge-color));
        opacity: 0.8;
    }

    50% {
        filter: drop-shadow(0 0 15px var(--gauge-color));
        opacity: 1;
    }
}

.gauge-tick-major {
    stroke: var(--gauge-color);
    stroke-width: 2;
    stroke-linecap: round;
    animation: gaugePulse 2s ease-in-out infinite;
}

.gauge-tick-minor {
    stroke: var(--gauge-color);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.6;
}

.gauge-label {
    fill: #ffffff;
    font-family: var(--font-aerospace);
    /* Or a cleaner font if preferred */
    font-size: 10px;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: middle;
}

.gauge-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
    stroke-linecap: round;
}

.gauge-progress-fg {
    fill: none;
    stroke: var(--gauge-color);
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.8));
    transition: stroke-dashoffset 0.1s linear;
    animation: gaugePulse 1.5s ease-in-out infinite alternate;
}

.meter-bg,
.meter-fg,
.meter-ticks {
    display: none;
}

/* Cleanup old */

/* Speedometer Display Update for Yellow Theme */
.loader-speedometer {
    position: absolute;
    top: 55%;
    /* Slight adjustment */
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    /* Inner circle bg */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.loader-speed-value {
    font-family: var(--font-aerospace);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loader-speed-unit {
    font-family: var(--font-body);
    /* Simple font for km/h */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    margin-top: 5px;
}

/* Loader Text */
.loader-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-aerospace);
    font-size: 14px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.loader-rpm {
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--accent-glow);
    }
}

.loader-dots span {
    animation: dotBlink 1.5s ease-in-out infinite;
    opacity: 0;
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotBlink {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Speed Bar */
.loader-speed-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-speed-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-bright));
    border-radius: 2px;
    animation: speedFill 6s ease-out forwards;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-glow);
}

@keyframes speedFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Video Background */
.intro-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.intro-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.1);
}

/* Dark overlay on video for better text visibility */
.intro-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Shake animation */
.intro-overlay.shake {
    animation: introShake 0.5s ease;
}

@keyframes introShake {

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

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

/* Wind particles container */
.intro-wind-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

/* Individual wind streak */
.wind-streak {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 2px;
    animation: windMove 0.8s linear forwards;
}

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

    10% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-120vw);
        opacity: 0;
    }
}

/* Racing Stripes */
.intro-stripes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    pointer-events: none;
    z-index: 1;
    transition: gap 0.8s ease;
}

.intro-stripes.engulf {
    gap: 0;
}

/* Glass/Blur Stripes (hidden initially) */
.stripe {
    width: 0;
    /* Hidden initially */
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    /* Reset transform */
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1), background 0.8s ease;
    position: relative;
    box-shadow: none;
    /* No shadow initially */
    opacity: 0;
    /* Fully invisible */
}

/* Remove slide animation since they are hidden */
.stripe-left,
.stripe-right {
    animation: none;
}

/* Engulf animation - stripes appear and expand */
.stripe.engulf {
    width: 60vw;
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* White inner stripes that appear after engulf */
.stripe::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background: #fff;
    transition: width 0.6s ease 0.5s;
}

.stripe-left::after {
    right: 30px;
}

.stripe-right::after {
    left: 30px;
}

.stripe.engulf::after {
    width: 40px;
}

@keyframes stripeSlide {
    0% {
        transform: translateY(-100%);
    }

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

.intro-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-logo {
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-bracu {
    font-family: var(--font-aerospace);
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: 5px;
    color: #fff;
    background: transparent;
    padding: 8px 18px;
    margin-bottom: 12px;
    display: inline-block;
    border: none;
    transition: color 0.8s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.intro-bracu.inverted {
    color: var(--accent-color);
    background: transparent;
    text-shadow: 0 0 30px var(--accent-glow);
}

.intro-main-text {
    display: flex;
    align-items: center;
}

.intro-logo-white {
    font-family: var(--font-uk);
    font-size: clamp(40px, 12vw, 100px);
    font-weight: 700;
    letter-spacing: 8px;
    color: #000;
    -webkit-text-stroke: 2px #fff;
    paint-order: stroke fill;
    transition: color 0.8s ease, -webkit-text-stroke 0.8s ease;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.intro-logo-white.inverted {
    color: #fff;
    -webkit-text-stroke: 2px #000;
}

.intro-logo-red {
    font-family: var(--font-uk);
    font-size: clamp(40px, 12vw, 100px);
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--accent-color);
    animation: arohiPulse 1.5s ease-in-out infinite;
}

@keyframes arohiPulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--accent-glow);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 30px var(--accent-color), 0 0 60px var(--accent-glow);
    }
}

@keyframes logoBlink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 40px var(--accent-glow);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 80px var(--accent-color);
    }
}

/* Elegant line under logo */
.intro-line {
    width: 0;
    height: 4px;
    background: var(--accent-color);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    position: relative;
    z-index: 10;
}

.intro-line.visible {
    width: 250px;
}

/* Partners Section */
.sponsors-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.sponsors-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.sponsors-track {
    display: flex;
    gap: 60px;
    animation: marquee 12s linear infinite;
    width: max-content;
    align-items: center;
}

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

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

.sponsor-item {
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sponsor-item:hover {
    color: var(--text-color);
}

.sponsor-item.featured {
    color: var(--accent-color);
    text-shadow: 0 0 30px var(--accent-glow);
}

.sponsor-item small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    /* White text for visibility */
    background: rgba(227, 6, 19, 0.2);
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid rgba(227, 6, 19, 0.3);
}

.sponsor-sep {
    color: var(--accent-color);
    font-size: 12px;
    opacity: 0.5;
}

/* ==================== */
/* Page Transitions     */
/* ==================== */

.page-content {
    min-height: 100vh;
}

.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-exit {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active Nav State */
nav ul li a.active,
.mobile-menu ul li a.active {
    color: var(--accent-color);
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ==================== */
/* Preview Cards (Home) */
/* ==================== */

.preview-section {
    padding: 100px 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(227, 6, 19, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.preview-card:hover::before {
    transform: scaleX(1);
}

.preview-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 6, 19, 0.1);
    border: 1px solid rgba(227, 6, 19, 0.3);
    margin-bottom: 25px;
    color: var(--accent-color);
}

.preview-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.preview-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
}

.preview-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.preview-card .btn-link:hover {
    gap: 12px;
}

.preview-card .btn-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.preview-card:hover .btn-link svg {
    transform: translateX(4px);
}

/* Page Hero (for sub-pages) */
.page-hero {
    padding: 180px 0 100px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(227, 6, 19, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.page-hero h1 span {
    color: var(--accent-color);
}

.page-hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
}

/* Page Section */
.page-section {
    padding: 100px 0;
}

.page-section.alt-bg {
    background: var(--bg-secondary);
}

/* Stats preview on home */
.stats-preview {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-preview-item {
    text-align: center;
}

.stat-preview-item .value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-preview-item .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Preview card responsive rules merged into main responsive block above */

/* ================================ */
/* Same-Page Flash Transition       */
/* ================================ */

.page-flash-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.page-flash-transition .flash-line {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: translateX(-100%);
    opacity: 0;
}

.page-flash-transition .flash-line-1 {
    width: 4px;
    left: 20%;
}

.page-flash-transition .flash-line-2 {
    width: 6px;
    left: 50%;
}

.page-flash-transition .flash-line-3 {
    width: 4px;
    left: 80%;
}

.page-flash-transition .flash-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Active state - trigger animations */
.page-flash-transition.active .flash-line-1 {
    animation: flashLine 0.5s ease-out forwards;
    animation-delay: 0s;
}

.page-flash-transition.active .flash-line-2 {
    animation: flashLine 0.5s ease-out forwards;
    animation-delay: 0.05s;
}

.page-flash-transition.active .flash-line-3 {
    animation: flashLine 0.5s ease-out forwards;
    animation-delay: 0.1s;
}

.page-flash-transition.active .flash-center {
    animation: flashPulse 0.6s ease-out forwards;
}

@keyframes flashLine {
    0% {
        transform: translateX(-100%) scaleY(1);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateX(100vw) scaleY(0.5);
        opacity: 0;
    }
}

@keyframes flashPulse {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        width: 200vmax;
        height: 200vmax;
        opacity: 0;
    }
}

.page-flash-transition.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Content pulse effect */
.page-pulse {
    animation: contentPulse 0.6s ease-out;
}

@keyframes contentPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    25% {
        opacity: 0.8;
        transform: scale(0.99);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.01);
    }

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

/* ==================== */
/* Lenis Smooth Scroll  */
/* ==================== */

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ==================== */
/* Faculty Advisor Card */
/* ==================== */

.advisor-section {
    padding-bottom: 0;
}

.advisor-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    perspective: 1000px;
}

.advisor-card {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(227, 6, 19, 0.2);
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.advisor-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.advisor-card:hover {
    border-color: rgba(227, 6, 19, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(227, 6, 19, 0.15);
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
}

.advisor-card:hover::before {
    height: 6px;
    box-shadow: 0 0 20px var(--accent-glow);
}

.advisor-photo-frame {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    /* Rounded circle as per "rounded" suggestion usually implies circle for avatars, but user said "boxes are a bit rounded". Let's stick to rounded rect for card, maybe rounded rect for photo too? User said "boxes are rounded". */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 20px rgba(227, 6, 19, 0.3),
        inset 0 0 20px rgba(227, 6, 19, 0.2);
    background: #0a1628;
    transition: all 0.5s ease;
}

.advisor-card:hover .advisor-photo-frame {
    border-color: var(--accent-bright);
    box-shadow: 0 0 30px rgba(227, 6, 19, 0.5);
    transform: scale(1.05);
}

.advisor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.advisor-card:hover .advisor-photo {
    transform: scale(1.1);
}

.advisor-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.advisor-card:hover .advisor-name {
    color: var(--accent-bright);
    text-shadow: 0 0 10px rgba(227, 6, 19, 0.5);
}

.advisor-role {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.advisor-affiliation {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 5px;
}

.advisor-desc {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    letter-spacing: 0.3px;

    /* Hide by default */
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    margin-top: 0;
}

.advisor-card:hover .advisor-desc {
    max-height: 200px;
    /* Arbitrary large enough height */
    opacity: 1;
    transform: translateY(0);
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

/* Advisor responsive rules merged into main responsive block above */

/* ==================== */
/* Social Links         */
/* ==================== */

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(227, 6, 19, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Social links responsive rules merged into main responsive block above */

/* Mobile Fix for Intro Logo Clipping */
@media (max-width: 480px) {

    .intro-logo-white,
    .intro-logo-red {
        font-size: clamp(24px, 10vw, 40px) !important;
        letter-spacing: 2px !important;
        -webkit-text-stroke: 1px #fff;
    }

    .intro-logo-white.inverted {
        -webkit-text-stroke: 1px #000;
    }

    .intro-main-text {
        text-align: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .intro-bracu {
        font-size: 16px !important;
        letter-spacing: 3px !important;
        margin-bottom: 5px;
        padding: 4px 12px;
    }
}