/* ========== BASE CSS - DEEP BLACK VARIABLES & RESET ========== */

:root {
    --deep-black: #000000;
    --card-bg: #0a0a0a;
    --charcoal: #050505;
    --tesla-red: #DC143C;
    --deep-red: #8B0000;
    --crimson: #EF4444;
    --white: #FFFFFF;
    --off-white: #111111;
    --light-gray: #1a1a1a;
    --medium-gray: #666666;
    --dark-gray: #888888;
    --gray-text: #888888;
    --pill-radius: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--deep-black);
    color: var(--white);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--tesla-red);
    border-radius: var(--pill-radius);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-red { color: var(--tesla-red); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* Loader - White Background */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 100px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo svg {
    width: 100%;
    height: 100%;
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 8px;
    color: var(--tesla-red);
    margin-top: 30px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--deep-red), var(--tesla-red));
    width: 0%;
    animation: loadProgress 2s ease-out forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* SCROLL PROGRESS - REMOVED */

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-message {
    padding: 12px 24px;
    border-radius: var(--pill-radius);
    background: #0a0a0a;
    border-left: 4px solid var(--tesla-red);
    color: white;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    color: white;
    padding: 10px 24px;
    border-radius: var(--pill-radius);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s;
    border-left: 4px solid var(--tesla-red);
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .toast-msg {
        padding: 12px 28px;
        font-size: 1rem;
        white-space: normal;
    }
}

.toast-msg.show {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.appear {
    opacity: 1;
    transform: translateY(0);
}