/* ===== AURELIUS MOTORSPORTS — Cyber Purple Theme ===== */
:root {
    --bg: #050505;
    --carbon-1: #0a0a0a;
    --carbon-2: #121212;
    --purple: #9258a6;
    --purple-light: #b06cc8;
    --purple-vivid: #cf7cf0;
    --orange: #00f0ff;
    --glow: rgba(146, 88, 166, 0.65);
    --dim: rgba(146, 88, 166, 0.15);
    --text: #ffffff;
    --text-muted: #b0a6a9;
    --panel-bg: rgba(15, 10, 10, 0.85);
    --panel-border: rgba(146, 88, 166, 0.35);
    --panel-shine: rgba(255, 255, 255, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

body {
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
}

/* ===== CARBON FIBRE BACKGROUND ===== */
.carbon-overlay {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
            transparent 1px, transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
            transparent 1px, transparent 2px
        ),
        repeating-linear-gradient(
            45deg,
            transparent 0px, transparent 4px,
            rgba(255,255,255,0.008) 4px, rgba(255,255,255,0.008) 5px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px, transparent 4px,
            rgba(255,255,255,0.008) 4px, rgba(255,255,255,0.008) 5px
        );
    background-size: 4px 4px, 4px 4px, 8px 8px, 8px 8px;
}

/* ===== GLOW ORBS ===== */
.glow-orb {
    position: fixed; border-radius: 50%; pointer-events: none;
    filter: blur(100px); z-index: -2;
}
.glow-orb--1 { width: 40vw; height: 40vw; background: var(--glow); top: -10vh; left: -10vw; opacity: .65; animation: floatOrb 12s ease-in-out infinite; }
.glow-orb--2 { width: 30vw; height: 30vw; background: rgba(146,88,166,.35); bottom: 10vh; right: -5vw; opacity: .5; animation: floatOrb 15s ease-in-out infinite reverse; }
.glow-orb--3 { width: 25vw; height: 25vw; background: rgba(176,108,200,.25); top: 50%; left: 40%; opacity: .4; animation: floatOrb 18s ease-in-out infinite 3s; }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ===== SCANLINES ===== */
.scanlines {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .03;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255,255,255,.5) 2px, rgba(255,255,255,.5) 3px);
}

/* ===== WEBGL CANVAS ===== */
#webgl-canvas { position: fixed; inset: 0; z-index: -4; width: 100%; height: 100%; opacity: .6; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
    width: min(1200px, 94vw); height: 90px; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(10,8,9,.7);
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);
    transition: all .3s ease;
}
.navbar.scrolled {
    background: rgba(10,8,9,.92);
    border-color: rgba(146,88,166,.5);
    box-shadow: 0 8px 40px rgba(146,88,166,.2), 0 0 80px rgba(146,88,166,.08);
}
.navbar__brand { display: flex; align-items: center; }
.navbar__logo { height: 70px; width: auto; transition: transform .3s ease; border: none !important; box-shadow: none !important; outline: none !important; clip-path: inset(1px); }
.navbar__logo:hover { transform: scale(1.08); }

.navbar__links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    font-family: "Orbitron", sans-serif;
    font-size: .7rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--text-muted);
    position: relative; padding: .4rem 0;
    transition: color .25s ease;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    transition: width .3s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.navbar__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 1px solid var(--panel-border);
    border-radius: 8px; padding: 8px; cursor: pointer;
}
.navbar__toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--text); transition: .3s ease;
}

/* ===== SECTIONS ===== */
main { width: min(1200px, 92vw); margin: 0 auto; padding-top: 6rem; }
.section { padding: 5rem 0; }

.section__header { margin-bottom: 3rem; }
.section__title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800; text-transform: uppercase;
    letter-spacing: .05em;
    background: linear-gradient(135deg, var(--text) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__title-line {
    width: 60px; height: 3px; margin-top: .8rem;
    background: linear-gradient(90deg, var(--purple), transparent);
    border-radius: 2px;
}
.tag {
    font-family: "Orbitron", sans-serif;
    font-size: .65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .25em;
    color: var(--purple-light); margin-bottom: .6rem;
}

/* ===== CARBON CARD ===== */
.carbon-card {
    position: relative;
    background:
        linear-gradient(135deg, rgba(146,88,166,.08) 0%, var(--panel-bg) 50%, rgba(18,14,16,.9) 100%);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.carbon-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .3;
    background:
        repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(255,255,255,.02) 2px, rgba(255,255,255,.02) 3px),
        repeating-linear-gradient(-45deg, transparent 0px, transparent 2px, rgba(255,255,255,.02) 2px, rgba(255,255,255,.02) 3px);
}
.carbon-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}
.carbon-card:hover {
    border-color: rgba(146,88,166,.5);
    box-shadow: 0 0 40px rgba(146,88,166,.12), 0 20px 60px rgba(0,0,0,.4);
    transform: translateY(-4px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 7rem; /* Added extra top padding to clear nav */
    padding-bottom: 2rem; /* Buffer to prevent overlapping */
}

.hero__logo-showcase {
    position: relative; margin-bottom: 2rem;
}
.hero__logo {
    width: clamp(200px, 30vw, 380px);
    height: auto;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    clip-path: inset(2px);
    animation: logoPulse 4s ease-in-out infinite;
}
.hero__logo-glow {
    position: absolute; inset: -30%; border-radius: 50%;
    background: radial-gradient(circle, rgba(146,88,166,.35) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none; z-index: -1;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
@keyframes glowPulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero__content { max-width: 750px; margin-bottom: 3rem; }
.hero__title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900; text-transform: uppercase;
    line-height: 1.05; letter-spacing: .03em;
    margin-bottom: 1.2rem;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
    background: linear-gradient(135deg, var(--purple-vivid) 0%, var(--purple-light) 40%, var(--purple) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle {
    color: var(--text-muted); font-size: clamp(.95rem, 1.4vw, 1.1rem);
    max-width: 55ch; margin: 0 auto 2rem; line-height: 1.7;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.8rem; border-radius: 999px;
    font-family: "Orbitron", sans-serif;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    transition: all .3s ease; cursor: pointer; border: none;
    position: relative; overflow: hidden;
}
.btn--primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 60%, var(--purple-vivid) 100%);
    color: #fff;
    box-shadow: 0 4px 25px rgba(146,88,166,.35);
}
.btn--primary:hover {
    box-shadow: 0 8px 40px rgba(146,88,166,.55);
    transform: translateY(-2px) scale(1.02);
}
.btn--outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--panel-border);
}
.btn--outline:hover {
    border-color: var(--purple-light);
    background: rgba(146,88,166,.1);
    transform: translateY(-2px);
}

/* ===== STATS ===== */
.hero__stats { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 700px; }
.stat-card {
    flex: 1; min-width: 180px; padding: 1.2rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(16px);
    text-align: left;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.stat-card:hover {
    border-color: rgba(146,88,166,.5);
    box-shadow: 0 0 25px rgba(146,88,166,.1);
}
.stat-card__value {
    font-family: "Orbitron", sans-serif;
    font-size: 1.5rem; font-weight: 800; color: var(--purple-vivid);
}
.stat-card__label {
    font-size: .7rem; text-transform: uppercase;
    letter-spacing: .12em; color: var(--text-muted); margin: .3rem 0 .6rem;
}
.stat-card__bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.stat-card__bar-fill {
    height: 100%; width: var(--fill);
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border-radius: 2px;
    animation: barGrow 2s ease-out forwards;
    transform-origin: left;
}
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: relative; margin-top: 3rem; left: 0; transform: translateX(0);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    opacity: .4; animation: fadeFloat 3s ease-in-out infinite;
}
.scroll-indicator__mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--purple-light);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-indicator__wheel {
    width: 3px; height: 8px;
    background: var(--purple-light);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}
.scroll-indicator span {
    font-family: "Orbitron", sans-serif;
    font-size: .55rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--text-muted);
}
@keyframes scrollWheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes fadeFloat { 0%, 100% { opacity: .4; transform: translateY(0); } 50% { opacity: .6; transform: translateY(-5px); } }

/* ===== ABOUT ===== */
.about-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }
.about-main { padding: 2rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 1rem; font-size: .95rem; }
.pillars-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.pillar-card { padding: 1.5rem; }
.pillar-card__icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(146,88,166,.15);
    border: 1px solid rgba(146,88,166,.3);
    color: var(--purple-light);
    margin-bottom: .8rem;
}
.pillar-card h3 {
    font-family: "Orbitron", sans-serif;
    font-size: .85rem; font-weight: 700; margin-bottom: .4rem;
    color: var(--text);
}
.pillar-card p { font-size: .85rem; color: var(--text-muted); }

/* ===== TEAM ===== */
.team-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.team-card {
    padding: 1.8rem 1.5rem; text-align: center;
    position: relative;
}
.team-card__glow {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
    opacity: 0; transition: opacity .4s ease;
}
.team-card:hover .team-card__glow { opacity: 1; }
.team-card__avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    background: transparent;
    border: 2px solid rgba(146,88,166,.5);
    box-shadow: 0 0 20px rgba(146,88,166,.2);
    overflow: hidden;
}
.team-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card__avatar span {
    font-family: "Orbitron", sans-serif;
    font-size: .9rem; font-weight: 800; color: #fff;
}
.team-card h3 {
    font-family: "Orbitron", sans-serif;
    font-size: .95rem; font-weight: 700; margin-bottom: .3rem;
}
.team-card__role {
    font-size: .65rem; text-transform: uppercase;
    letter-spacing: .15em; color: var(--purple-light);
    margin-bottom: .8rem;
}
.team-card__desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.team-card__line {
    width: 40px; height: 2px; margin: 1rem auto 0;
    background: linear-gradient(90deg, var(--purple), transparent);
    border-radius: 1px;
}

/* ===== CAR SECTION ===== */
.car-layout { display: grid; gap: 1.5rem; grid-template-columns: 1.1fr .9fr; }
.car-specs, .car-timeline { padding: 2rem; }
.car-specs h3, .car-timeline h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--text), var(--purple-light));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spec-list { display: flex; flex-direction: column; gap: 1.2rem; }
.spec-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem;
    background: rgba(146,88,166,.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(146,88,166,.1);
    transition: border-color .3s ease, background .3s ease;
}
.spec-item:hover { border-color: rgba(146,88,166,.3); background: rgba(146,88,166,.08); }
.spec-item__marker {
    width: 8px; height: 8px; min-width: 8px;
    border-radius: 50%; margin-top: .5rem;
    background: var(--purple-light);
    box-shadow: 0 0 10px rgba(146,88,166,.4);
}
.spec-item strong {
    font-family: "Orbitron", sans-serif;
    font-size: .82rem; font-weight: 600; display: block; margin-bottom: .3rem;
}
.spec-item p { font-size: .85rem; color: var(--text-muted); }

/* ===== TIMELINE ===== */
.timeline { display: flex; flex-direction: column; gap: 0; padding-left: 1rem; }
.timeline__item {
    display: flex; gap: 1.2rem; position: relative;
    padding-bottom: 1.5rem;
}
.timeline__dot {
    width: 12px; height: 12px; min-width: 12px;
    border-radius: 50%; margin-top: .3rem;
    background: var(--purple);
    border: 2px solid var(--purple-light);
    box-shadow: 0 0 12px rgba(146,88,166,.4);
    z-index: 1;
}
.timeline__connector {
    position: absolute; left: 5px; top: 14px;
    width: 2px; height: calc(100% - 8px);
    background: linear-gradient(180deg, var(--purple-light), transparent);
}
.timeline__item:last-child .timeline__connector { display: none; }
.timeline__content strong {
    font-family: "Orbitron", sans-serif;
    font-size: .7rem; text-transform: uppercase;
    letter-spacing: .12em; color: var(--purple-light);
    display: block; margin-bottom: .2rem;
}
.timeline__content p { font-size: .85rem; color: var(--text-muted); }

/* ===== SPONSORS ===== */
.sponsors-intro { color: var(--text-muted); max-width: 55ch; margin-bottom: 2rem; font-size: .95rem; }
.sponsors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sponsor-card {
    padding: 2.5rem 2rem; text-align: center;
    position: relative;
}
.sponsor-card__badge {
    font-family: "Orbitron", sans-serif;
    font-size: .6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .2em;
    color: var(--purple-light);
    margin-bottom: .8rem;
}
.sponsor-card__logo {
    max-width: 220px;
    max-height: 140px;
    margin: 0 auto 1.2rem auto;
    display: block;
    object-fit: contain;
}
.sponsor-card__name {
    font-family: "Orbitron", sans-serif;
    font-size: 1.3rem; font-weight: 800;
    background: linear-gradient(135deg, var(--text) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sponsor-card__glow {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
    opacity: 0; transition: opacity .4s ease;
}
.sponsor-card:hover .sponsor-card__glow { opacity: 1; }

/* ===== FOOTER ===== */
.footer {
    width: min(1200px, 92vw); margin: 2rem auto 0;
    padding: 2rem 0;
}
.footer__line { height: 1px; background: linear-gradient(90deg, transparent, var(--panel-border), transparent); margin-bottom: 1.5rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__logo { height: 32px; width: auto; opacity: .7; }
.footer__brand span { font-family: "Orbitron", sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.footer__school { font-size: .8rem; color: var(--text-muted); }
.footer__copy { font-size: .75rem; color: rgba(255,255,255,.3); }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--purple), var(--purple-light)); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1060px) {
    .about-layout, .car-layout, .sponsors-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .navbar { height: 76px; border-radius: 16px; padding: 0 1rem; }
    .navbar__logo { height: 50px; }
    .navbar__toggle { display: flex; }
    .navbar__links {
        position: absolute; top: calc(100% + .5rem);
        right: 0; left: 0;
        background: rgba(10,8,9,.95);
        border: 1px solid var(--panel-border);
        border-radius: 16px;
        backdrop-filter: blur(20px);
        padding: 1rem;
        flex-direction: column; align-items: flex-start; gap: .8rem;
        display: none;
    }
    body.menu-open .navbar__links { display: flex; }
    .hero__title { font-size: clamp(2rem, 10vw, 3.5rem); }
    .hero__logo { width: clamp(160px, 50vw, 280px); }
    .hero__stats { flex-direction: column; }
    .stat-card { min-width: unset; }
    .team-grid, .pillars-grid { grid-template-columns: 1fr; }
    .section { padding: 3rem 0; }
}
