/* =============================================================================
   CRUXFLUX.NET - Synthwave Theme Styles
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS Variables - Synthwave Color Palette
   ----------------------------------------------------------------------------- */
:root {
    /* Primary Neon Colors */
    --neon-pink: #ff2a6d;
    --neon-cyan: #05d9e8;
    --neon-purple: #7b2cbf;
    --neon-magenta: #ff00ff;
    
    /* Background Colors */
    --bg-dark: #0d0221;
    --bg-purple: #1a0533;
    --bg-mid: #241734;
    
    /* Sun Gradient */
    --sun-orange: #ff6b35;
    --sun-yellow: #f7c531;
    --sun-pink: #ff2a6d;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4a5c7;
    --text-glow: #05d9e8;
    
    /* Grid Colors */
    --grid-primary: rgba(255, 42, 109, 0.4);
    --grid-secondary: rgba(5, 217, 232, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* -----------------------------------------------------------------------------
   Reset & Base Styles
   ----------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* -----------------------------------------------------------------------------
   Scene Container
   ----------------------------------------------------------------------------- */
.synthwave-scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        var(--bg-dark) 0%,
        var(--bg-purple) 40%,
        var(--bg-mid) 70%,
        #2a1f4e 100%
    );
    overflow: hidden;
}

/* -----------------------------------------------------------------------------
   Sun
   ----------------------------------------------------------------------------- */
.sun-container {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.retro-sun {
    width: 200px;
    height: 200px;
    background: linear-gradient(
        to bottom,
        var(--sun-yellow) 0%,
        var(--sun-orange) 30%,
        var(--sun-pink) 60%,
        var(--neon-purple) 100%
    );
    border-radius: 50%;
    position: relative;
    /* Horizontal slices effect */
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 15%, 0% 15%,
        0% 20%, 100% 20%, 100% 30%, 0% 30%,
        0% 38%, 100% 38%, 100% 46%, 0% 46%,
        0% 55%, 100% 55%, 100% 64%, 0% 64%,
        0% 74%, 100% 74%, 100% 85%, 0% 85%,
        0% 100%, 100% 100%
    );
}

.sun-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(255, 107, 53, 0.4) 0%,
        rgba(255, 42, 109, 0.2) 40%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: -1;
}

/* -----------------------------------------------------------------------------
   Mountains / Horizon
   ----------------------------------------------------------------------------- */
.mountains {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 2;
    pointer-events: none;
}

.mountain {
    position: absolute;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        var(--bg-mid) 0%,
        var(--bg-purple) 100%
    );
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.mountain-1 {
    left: 5%;
    width: 300px;
    height: 120px;
    opacity: 0.6;
}

.mountain-2 {
    left: 25%;
    width: 400px;
    height: 100px;
    opacity: 0.4;
}

.mountain-3 {
    right: 10%;
    width: 350px;
    height: 130px;
    opacity: 0.5;
}

/* -----------------------------------------------------------------------------
   Grid Floor
   ----------------------------------------------------------------------------- */
.grid-container {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 45%;
    overflow: hidden;
    z-index: 3;
}

.grid-floor {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(255, 42, 109, 0.1) 50%,
            rgba(255, 42, 109, 0.2) 100%
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 78px,
            var(--grid-primary) 78px,
            var(--grid-primary) 80px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 78px,
            var(--grid-secondary) 78px,
            var(--grid-secondary) 80px
        );
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
}

/* -----------------------------------------------------------------------------
   Content Area
   ----------------------------------------------------------------------------- */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-md);
    margin-top: 0;
}

/* -----------------------------------------------------------------------------
   Logo Container (Animated Car)
   ----------------------------------------------------------------------------- */
.logo-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    padding: var(--spacing-sm);
}

.retro-car,
.retro-scene {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

/* -----------------------------------------------------------------------------
   Title
   ----------------------------------------------------------------------------- */
.title {
    font-family: 'Press Start 2P', 'Orbitron', monospace;
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-top: -10px;
    margin-bottom: var(--spacing-md);
    position: relative;
    color: var(--text-primary);
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-pink),
        0 0 80px var(--neon-pink);
}

.glitch-text {
    display: inline-block;
    position: relative;
}

/* -----------------------------------------------------------------------------
   Tagline
   ----------------------------------------------------------------------------- */
.tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.5em;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.bracket {
    color: var(--neon-cyan);
    font-weight: 700;
}

.tagline-text {
    color: var(--neon-pink);
}

/* -----------------------------------------------------------------------------
   Status Indicator
   ----------------------------------------------------------------------------- */
.status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--grid-primary);
    background: rgba(13, 2, 33, 0.8);
    margin-top: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.status-text {
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm);
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    background: linear-gradient(
        to top,
        rgba(13, 2, 33, 0.9) 0%,
        transparent 100%
    );
    z-index: 100;
}

/* -----------------------------------------------------------------------------
   Responsive Design
   ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .logo-container {
        max-width: 320px;
    }
    
    .sun-container {
        top: 5%;
    }
    
    .retro-sun {
        width: 150px;
        height: 150px;
    }
    
    .sun-glow {
        width: 220px;
        height: 220px;
    }
    
    .mountains {
        height: 100px;
    }
    
    .mountain-1, .mountain-2, .mountain-3 {
        width: 200px;
        height: 80px;
    }
    
    .content {
        margin-top: 15vh;
    }
    
    .tagline {
        letter-spacing: 0.3em;
    }
}

@media (max-width: 480px) {
    .logo-container {
        max-width: 280px;
    }
    
    .title {
        letter-spacing: 0.1em;
    }
    
    .tagline {
        letter-spacing: 0.2em;
        font-size: 0.7rem;
    }
    
    .status {
        font-size: 0.6rem;
    }
}
