/* Hide video background when .cars or .contact are in view */
.hide-bg-video #bg-video {
    display: none !important;
}
/* Import Google Fonts - Backup import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --accent-red: #e50000;
    --accent-red-hover: #ff1a1a;
    --pure-white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #888;
    --dark-gray: #333;
    
    /* Gradients */
    --red-gradient: linear-gradient(135deg, #e50000, #ff4444);
    --dark-gradient: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    
    /* Typography */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    
    /* Viewport units */
    --vh: 1vh;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--primary-black);
    color: var(--pure-white);
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-video {
    opacity: 0.32;
    transition: opacity 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent-red);
    background: var(--red-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons - Global Styles */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 150px;
}

.btn-primary {
    background: var(--red-gradient);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.btn-secondary:hover {
    background: var(--pure-white);
    color: var(--primary-black);
}

.btn-outline {
    background: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.btn-outline:hover {
    background: var(--accent-red);
    color: var(--pure-white);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    min-width: 120px;
}

.btn-full {
    width: 100%;
}

/* Section Header - Global */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pure-white);
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Animation classes for scroll reveal */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Device detection classes */
.is-mobile .reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Touch feedback */
.touch-active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* Additional responsive utilities */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
    
    :root {
        --section-padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Global responsive breakpoint adjustments */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 30px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 319px) {
    .container {
        padding: 0 10px;
    }
}

/* Fixed CTA widget on home page */
.build-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--red-gradient);
    color: var(--pure-white);
    padding: 14px 24px;
    border-radius: 18px;
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(229, 0, 0, 0.35);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.build-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(229, 0, 0, 0.45);
}

.build-widget:focus {
    outline: 3px solid rgba(229, 0, 0, 0.6);
    outline-offset: 3px;
}

.build-widget::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 22px;
    width: 20px;
    height: 20px;
    background: var(--red-gradient);
    transform: rotate(45deg);
    box-shadow: 0 10px 30px rgba(229, 0, 0, 0.35);
    border-radius: 3px;
}

@media (max-width: 600px) {
    .build-widget {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    .build-widget::after {
        bottom: -8px;
        right: 18px;
        width: 16px;
        height: 16px;
    }
}