/* General Reset & Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #030303; 
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    background: transparent !important;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Image Layer */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* keep car in view */
}

/* 
    Overlay fix: Very distinct smooth gradient.
    Top is mostly transparent so the bridge lights show perfectly.
    Bottom becomes completely black (#030303) so it merges into the sections naturally. 
*/
.hero-bg .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(3, 3, 3, 0.45) 0%, 
        rgba(3, 3, 3, 0.6) 50%, 
        rgb(3, 3, 3) 100%
    );
    z-index: -1;
}

/* Navbar - Completely borderless and clean until scroll */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(3, 3, 3, 0.98);
    padding: 20px 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* very subtle */
}

.logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Premium Minimal Buttons */
.button {
    padding: 12px 28px;
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 2px;
    color: #030303;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.button:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.button-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
}

.button-outline:hover {
    background: #ffffff;
    color: #030303;
    border-color: #ffffff;
}

.discord-btn {
    background: #ff2a2a; /* Sharp racing red */
    border-color: #ff2a2a;
    color: #ffffff;
}

.discord-btn:hover {
    background: transparent;
    color: #ff2a2a;
    border-color: #ff2a2a;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 40px;
}

.hero-content {
    max-width: 1000px;
    /* Removed the dark background box completely. Just clean text on the gradient shadow. */
    padding: 0;
    margin-top: -80px; 
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.9);
    color: #ffffff;
    text-transform: uppercase;
}

.hero .subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Section Styling */
.features-section, .team-section {
    padding: 120px 60px;
    background: #030303; /* Matches bottom of the gradient overlay */
    position: relative;
    z-index: 5; /* Keep above fixed background */
}

.team-section {
    background: #050505; 
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-header.align-left {
    text-align: left;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: #ffffff;
    text-transform: uppercase;
}

.section-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-header.align-left p {
    margin: 0;
}

/* Grids - Very Minimal and Open */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px 60px;
}

.card {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle minimal line on top. No confining boxes. */
    padding: 30px 0;
    transition: all 0.3s ease;
}

.card:hover {
    border-top-color: #ffffff;
    transform: translateY(-5px);
}

.card-icon {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* Team Grid - Clean typographic cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-left-color: #ff2a2a;
    background: rgba(255, 255, 255, 0.01);
}

.team-card.developer {
    grid-column: span 4;
    border-left: 2px solid #ff2a2a; /* Emphasis on Dev */
    margin-bottom: 20px;
}

.team-card .role {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.team-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
    text-transform: uppercase;
}

.team-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    line-height: 1.6;
}

/* Footer Section */
.footer {
    background: #020202;
    padding: 120px 60px 40px;
    text-align: center;
}

.footer-cta {
    margin-bottom: 100px;
}

.footer-cta h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 40px;
    font-size: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.discord-btn-large {
    padding: 16px 48px;
    font-size: 13px;
    letter-spacing: 3px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 600;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    visibility: hidden;
}

.fade-up {
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Minimal Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #030303;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 40px; }
    .features-section, .team-section, .footer { padding: 80px 30px; }
    .team-grid { grid-template-columns: 1fr; }
    .team-card.developer { grid-column: span 1; }
}
