/* === BASE & UTILITIES === */
:root {
    --primary: #FF3333;
}

body {
    background-color: #02050C;
    color: #F1F0F0;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

/* Noise Overlay for Cinematic Feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #02050C;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF3333;
}

/* Text Selection */
::selection {
    background: #FF3333;
    color: white;
}

/* Advanced Button Styles */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #FF3333;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-glow:hover::before {
    width: 100%;
}

.btn-glow:hover {
    color: white;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.4);
    border-color: #FF3333;
}

/* Glass Cards */
.glass-card {
    background: rgba(10, 13, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(255, 51, 51, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(255, 51, 51, 0.1);
}

/* Typography Utilities */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-line {
    width: 0%;
    height: 2px;
    background: #FF3333;
}
