/* Vanilla CSS Implementation for Maximum Control */
:root {
    --bg-dark: #000000;
    --surface: #131313;
    --surface-elevated: #1f1f1f;
    --surface-highest: #353535;
    --race-red: #E31B23;
    --race-red-hover: #b9151c;
    --text-main: #ffffff;
    --text-muted: #b4b5b5;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --glow-red: rgba(227, 27, 35, 0.4);
    --border-machined: #333333;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Spacing */
    --gutter: 24px;
    --stack-md: 16px;
    --stack-lg: 32px;
    --stack-xl: 64px;
}

/* Base Resets */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
    font-family: var(--font-body); 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
    position: relative;
    width: 100%;
    font-size: 16px;
}
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
button { font-family: inherit; cursor: pointer; border: none; transition: var(--transition-smooth); }
input, select { font-family: inherit; }

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); text-transform: uppercase; line-height: 1.2; }
.text-accent { color: var(--race-red); }
.text-muted { color: var(--text-muted); }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.italic { font-style: italic; }

.font-display-lg { font-size: 4rem; font-weight: 900; letter-spacing: 0.05em; }
.font-headline-lg { font-size: 2.5rem; font-weight: 800; letter-spacing: 0.02em; }
.font-headline-md { font-size: 1.5rem; font-weight: 700; }
.font-body-lg { font-size: 1.125rem; font-weight: 500; }
.font-label-lg { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.font-label-sm { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* Buttons */
.btn-primary {
    background: var(--race-red);
    color: white;
    padding: 16px 40px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover {
    background: var(--race-red-hover);
    box-shadow: 0 0 20px rgba(227, 27, 35, 0.6);
}
.btn-primary:active {
    transform: scale(0.95);
}

/* Header Layout */
header { 
    position: sticky; top: 0; z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-machined);
    height: 100px; display: flex; align-items: center; justify-content: center;
}
.header-container {
    width: 100%; max-width: 1280px; padding: 0 var(--gutter);
    display: flex; justify-content: space-between; align-items: center;
}
.logo { height: 64px; }
.logo img { height: 100%; object-fit: contain; font-weight: 900; font-style: italic; transition: filter 0.3s ease; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { 
    font-size: 14px; font-weight: 700; letter-spacing: 0.1em; 
    color: var(--text-main); transition: var(--transition-smooth);
    text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { 
    color: var(--race-red); text-shadow: 0 0 8px var(--glow-red);
}
.nav-links a.active { border-bottom: 2px solid var(--race-red); padding-bottom: 4px; }
.menu-btn { display: none; }

/* General Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section-dark { background-color: var(--bg-dark); padding: var(--stack-xl) 0; }
.section-surface { background-color: #0e0e0e; padding: var(--stack-xl) 0; }
.section-header { margin-bottom: var(--stack-xl); position: relative; }
.section-header h2 { margin-bottom: 8px; }
.section-divider { height: 4px; width: 96px; background-color: var(--race-red); }

/* About Page Specifics */
.about-hero {
    position: relative; height: 60vh; min-height: 400px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
}
.about-hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/hero.png'); 
    background-size: cover; background-position: center; z-index: 1;
    transform: scale(1.05); animation: slowZoom 10s infinite alternate ease-in-out;
}
.about-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, var(--bg-dark) 100%); z-index: 2;
}
.about-hero-content {
    position: relative; z-index: 3; max-width: 800px; padding: 0 24px;
    animation: fadeUp 1s ease-out forwards; opacity: 0; transform: translateY(30px);
}
.about-hero h1 { font-size: 4.5rem; font-weight: 900; letter-spacing: 0.05em; margin-bottom: 16px; }
.about-hero p { font-size: 1.25rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }

.intro-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 120px; }
.intro-text h2 { font-size: 3rem; margin-bottom: 24px; }
.intro-text p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 24px; font-weight: 400; }
.intro-image-wrapper { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.intro-image-wrapper img { width: 100%; height: auto; display: block; transition: transform 0.7s ease; }
.intro-image-wrapper:hover img { transform: scale(1.05); }
.intro-image-wrapper::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px solid rgba(227, 27, 35, 0.3); pointer-events: none; transition: var(--transition-smooth); }
.intro-image-wrapper:hover::after { border-color: var(--race-red); }

.mission-section { background: linear-gradient(135deg, rgba(31,31,31,0.8), rgba(19,19,19,0.9)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-machined); padding: 80px 64px; text-align: center; border-radius: 8px; margin-bottom: 120px; position: relative; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.mission-section::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--race-red); box-shadow: 0 0 15px var(--race-red); }
.mission-section h2 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: 0.05em; }
.mission-section p { font-size: 1.35rem; color: var(--text-main); max-width: 900px; margin: 0 auto; line-height: 1.8; font-weight: 500; }

.features-header { text-align: center; margin-bottom: 64px; }
.features-header h2 { font-size: 3rem; }
.features-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.feature-card { flex: 0 1 calc((100% - 64px) / 3); min-width: 320px; background: var(--surface); border: 1px solid var(--border-machined); padding: 48px 32px; border-radius: 8px; text-align: center; transition: var(--transition-smooth); position: relative; overflow: hidden; z-index: 1; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(227, 27, 35, 0.1) 0%, transparent 70%); opacity: 0; transition: var(--transition-smooth); z-index: -1; }
.feature-card:hover { border-color: rgba(227, 27, 35, 0.5); transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 20px var(--glow-red); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 56px; color: var(--race-red); margin-bottom: 24px; transition: transform 0.4s ease; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); text-shadow: 0 0 15px var(--glow-red); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 16px; letter-spacing: 0.05em; }
.feature-card p { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }

.outro-section { text-align: center; margin-top: 120px; padding: 100px 24px; background: linear-gradient(to top, rgba(227, 27, 35, 0.05), transparent); border-bottom: 2px solid var(--race-red); }
.outro-section h2 { font-size: 2.5rem; margin-bottom: 24px; }
.outro-section p { font-size: 1.35rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 48px; line-height: 1.8; }

/* Home Page Specifics */
/* Home Hero */
.home-hero {
    position: relative; width: 100%; height: 85vh; display: flex; align-items: center; overflow: hidden;
}
.home-hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.home-hero-bg .bg-image {
    width: 100%; height: 100%; background-size: cover; background-position: center;
}
.home-hero-bg .overlay {
    position: absolute; inset: 0; background: linear-gradient(to right, #000, rgba(0,0,0,0.6), transparent);
}
.home-hero-content {
    max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); width: 100%; z-index: 10; position: relative;
    display: flex; flex-direction: column; justify-content: center; height: 100%;
}
.home-hero-content-inner { max-width: 42rem; }
.home-hero-content h1 { margin-bottom: var(--stack-md); line-height: 1; }
.home-hero-content .subtitle { margin-bottom: var(--stack-lg); color: var(--text-muted); }
.home-hero-content .description { margin-bottom: var(--stack-xl); max-width: 32rem; color: #e7bdb8; }

/* Filter Bar */
.filter-bar-wrapper { position: absolute; bottom: 0; left: 0; right: 0; z-index: 20; }
.filter-bar-container { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); margin-bottom: var(--stack-lg); }
.filter-bar { background-color: var(--surface-elevated); border: 1px solid var(--border-machined); padding: var(--gutter); display: flex; flex-direction: column; gap: var(--gutter); align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .filter-bar { flex-direction: row; } }
.filter-inputs { display: flex; flex-direction: column; gap: var(--gutter); width: 100%; }
@media (min-width: 768px) { .filter-inputs { flex-direction: row; } }
.filter-group { display: flex; flex-direction: column; flex: 1; }
.filter-group label { margin-bottom: 8px; color: #e7bdb8; }
.filter-group select { background: transparent; border: none; border-bottom: 1px solid var(--surface-highest); color: white; padding: 8px 12px; outline: none; transition: var(--transition-smooth); }
.filter-group select:focus { border-color: var(--race-red); }
.filter-group select option { background: var(--surface-elevated); color: white; }
.filter-btn { width: 100%; height: 56px; padding: 0 48px; background: var(--race-red); color: white; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; transition: var(--transition-smooth); }
@media (min-width: 768px) { .filter-btn { width: auto; } }
.filter-btn:hover { background: var(--race-red-hover); }
.filter-btn .material-symbols-outlined { transition: transform 0.3s ease; }
.filter-btn:hover .material-symbols-outlined { transform: translateX(4px); }

/* Services Grid */
.grid-cols-3 { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 768px) { .grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    background: #121212; border: 1px solid var(--border-machined); display: flex; flex-direction: column; height: 100%;
    position: relative; overflow: hidden; transition: var(--transition-smooth);
}
.service-card:hover { border-color: var(--race-red); }
.service-image-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.service-image-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s ease; }
.service-card:hover .service-image-wrapper img { filter: grayscale(0%); }
.service-badge { position: absolute; top: 16px; left: 16px; background: var(--race-red); color: white; font-size: 10px; font-weight: bold; padding: 4px 8px; text-transform: uppercase; letter-spacing: -0.05em; z-index: 2; }
.service-content { padding: var(--gutter); display: flex; flex-direction: column; flex-grow: 1; }
.service-content h3 { margin-bottom: 16px; color: white; }
.service-content p { color: #e7bdb8; margin-bottom: 24px; flex-grow: 1; }
.service-link { display: flex; align-items: center; gap: 8px; color: var(--race-red); transition: var(--transition-smooth); }
.service-card:hover .service-link { gap: 16px; }

/* Videos Grid */
.video-card { cursor: pointer; display: block; }
.video-card .video-thumbnail { position: relative; aspect-ratio: 16/9; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--border-machined); }
.video-card .video-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.video-card:hover .video-thumbnail img { transform: scale(1.05); }
.video-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); transition: background 0.3s ease; }
.video-card:hover .video-overlay { background: transparent; }
.play-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--race-red); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.5); transform: scale(1); transition: transform 0.3s ease; }
.video-card:hover .play-btn { transform: scale(1.1); }
.play-btn .material-symbols-outlined { font-size: 2rem; color: white; font-variation-settings: "FILL" 1; }
.video-card p { margin-bottom: 4px; color: var(--race-red); }
.video-card h4 { color: white; transition: color 0.3s ease; }
.video-card:hover h4 { color: var(--race-red); }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--stack-xl); }
.view-all-link { color: var(--text-main); font-weight: 700; letter-spacing: 0.1em; display: none; transition: color 0.3s; text-transform: uppercase; }
.view-all-link:hover { color: var(--race-red); }
@media (min-width: 768px) { .view-all-link { display: block; } }

/* Services Page Specifics */
.service-list { list-style: none; padding: 0; margin-top: 24px; }
.service-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 1.1rem; color: #e7bdb8; }
.service-list li .material-symbols-outlined { color: var(--race-red); font-size: 24px; flex-shrink: 0; }

@media (min-width: 1025px) {
    .intro-section.image-left .intro-image-wrapper { order: -1; }
}

/* Contact Page Specifics */
.contact-section { padding: var(--stack-xl) 0; background-color: var(--bg-dark); }
.contact-form-container { max-width: 800px; margin: 0 auto; background-color: var(--surface); padding: 48px; border: 1px solid var(--border-machined); border-radius: 8px; }
.contact-form { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.form-row { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .form-row { flex-direction: row; } }
.form-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.form-group label { color: #e7bdb8; font-family: var(--font-headline); letter-spacing: 0.05em; font-size: 0.9rem; }
.contact-form input, .contact-form textarea { background: transparent; border: none; border-bottom: 1px solid var(--border-machined); color: white; padding: 12px 16px; outline: none; transition: border-color 0.3s; font-family: var(--font-body); font-size: 1rem; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--race-red); }
.contact-submit { background: var(--race-red); color: white; border: none; padding: 16px 48px; font-family: var(--font-headline); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.1em; cursor: pointer; transition: var(--transition-smooth); align-self: flex-start; margin-top: 16px; }
.contact-submit:hover { background: var(--race-red-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(227, 27, 35, 0.2); }


@media (max-width: 1024px) {
    .intro-section { display: flex; flex-direction: column; gap: 48px; }
    .intro-section .intro-image-wrapper { order: -1; width: 100%; }
    .intro-section .intro-text { order: 0; width: 100%; }
}

/* Trust Badges */
.trust-badges-section { background-color: var(--surface); border-top: 1px solid var(--border-machined); border-bottom: 1px solid var(--border-machined); padding: var(--stack-lg) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); text-align: center; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-item .material-symbols-outlined { font-size: 2.5rem; color: var(--race-red); margin-bottom: 16px; margin-left: auto; margin-right: auto; }
.trust-item h5 { margin-bottom: 4px; color: white; }
.trust-item p { color: #e7bdb8; }
.trust-border { border-left: 1px solid var(--border-machined); }

/* Footer */
footer { background-color: #0e0e0e; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: var(--stack-xl) var(--gutter); display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 768px) { .footer-container { grid-template-columns: repeat(4, 1fr); } }
.footer-col { display: flex; flex-direction: column; gap: 24px; }
.footer-logo { height: 64px; margin-bottom: 8px; }
.footer-logo img { height: 100%; object-fit: contain; }
.footer-text { color: #e7bdb8; }
.social-links { display: flex; gap: 16px; }
.social-link { width: 40px; height: 40px; border: 1px solid var(--border-machined); display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.social-link:hover { background: var(--race-red); border-color: var(--race-red); }
.footer-col h4 { color: white; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #e7bdb8; }
.footer-links a:hover { color: var(--race-red); }

.newsletter-form { display: flex; flex-direction: column; gap: 16px; }
.newsletter-form input { background: transparent; border: none; border-bottom: 1px solid var(--border-machined); color: white; padding: 8px 12px; outline: none; transition: border-color 0.3s; }
.newsletter-form input:focus { border-color: var(--race-red); }
.newsletter-form button { background: var(--race-red); color: white; padding: 12px 0; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: var(--transition-smooth); }
.newsletter-form button:hover { filter: brightness(1.1); }
.newsletter-form button:active { opacity: 0.8; }

.footer-bottom { border-top: 1px solid #e31b23; }
.footer-bottom-content { max-width: 1280px; margin: 0 auto; padding: 32px var(--gutter); display: flex; justify-content: space-between; align-items: center; color: #e7bdb8; }
.footer-bottom-content span.bold-red { color: var(--race-red); font-weight: 700; }

/* Keyframes */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@media (min-width: 769px) {
    .nav-links {
        transform: none !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        background: transparent !important;
        height: auto !important;
        width: auto !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
    .nav-links { 
        display: flex; 
        flex-direction: column; 
        position: fixed; 
        top: 0; 
        right: 0; 
        width: 250px; 
        height: 100vh; 
        background: var(--surface-elevated); 
        border-left: 1px solid var(--border-machined); 
        padding: 100px 24px; 
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
        transform: translateX(100%);
        z-index: 99; 
        align-items: flex-start;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }
    .nav-links.open { transform: translateX(0); }
    .menu-btn { 
        display: block; 
        color: var(--text-main); 
        font-size: 2rem; 
        cursor: pointer; 
        position: relative;
        z-index: 101;
    }
    .about-hero { height: 40vh; min-height: 250px; }
    .section-dark, .section-surface { padding: var(--stack-lg) 0; }
    .about-hero h1, .home-hero-content h1 { font-size: 2.5rem; }
    .intro-text h2, .mission-section h2, .features-header h2, .outro-section h2 { font-size: 2rem; }
    .container { padding: 0 24px; }
    .filter-bar-container { margin-bottom: var(--stack-md); }
    .trust-border { border-left: none; }
    .trust-item:nth-child(even) { border-left: 1px solid var(--border-machined); }
    .footer-bottom-content { flex-direction: column; text-align: center; gap: 16px; }
}
