/* 
   404 Digital Media - V5 "One Page" Design System
   Theme: Liquid Void, Glow, & Depth
*/

/* 1. VARIABLES & TOKENS */
:root {
    /* Palette */
    --color-bg: #030712;
    /* Ultra deep black-blue */
    --color-accent: #3b82f6;
    /* Electric Blue */
    --color-accent-secondary: #8b5cf6;
    /* Violet */
    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Fluid Type Scale */
    --text-hero: clamp(4rem, 15vw, 15rem);
    --text-h1: clamp(3rem, 6vw, 5rem);
    --text-h2: clamp(2rem, 4vw, 3.5rem);
    --text-body: 1.125rem;

    /* Spacing */
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 6rem;
    --space-xl: 10rem;
}

/* 2. RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 3. V5 BACKGROUND SYSTEM (Liquid Void) */
.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--color-bg);
}

.liquid-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Soft glow */
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-accent-secondary) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 70px;
    height: 70px;
    background: white;
    mix-blend-mode: exclusion;
}

/* 4. COMPONENT: GLOW CARDS */
.glow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.glow-card::before {
    content: "";
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.glow-card:hover::before {
    opacity: 1;
}

.glow-card>* {
    position: relative;
    z-index: 1;
}

/* 5. UI ELEMENTS */
.header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    cursor: none;
    /* Keep custom cursor */
}

.btn-primary {
    background: white;
    color: black;
    border-color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* 6. MARQUEE (FIXED) */
.marquee-wrapper {
    width: 100%;
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: var(--space-lg) 0;
    display: flex;
    overflow: hidden;
    position: relative;
    /* Removed tilt to fix collision bugs */
}

.marquee-content {
    display: flex;
    /* Ensure inline flow */
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 6vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    padding: 0 2rem;
    /* Spacing between words */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 7. ONE PAGE LAYOUT */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-padding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    line-height: 0.85;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    margin: var(--space-lg) 0;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Specific */
.contact-big-link {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-display);
    font-weight: 900;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.contact-big-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Desktop Override - Restore Hero Section */
@media (min-width: 769px) {
    .hero-title {
        font-size: var(--text-hero) !important;
        /* Use original fluid size */
        line-height: 0.85 !important;
        word-break: normal !important;
        white-space: normal !important;
    }

    #home {
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 120px !important;
        /* Space for fixed header */
        position: relative !important;
        z-index: 1 !important;
        /* Below header but above background */
    }

    #home>* {
        position: relative !important;
        z-index: 1 !important;
        /* Ensure all children are visible */
    }
}

/* Mobile styles moved to mobile.css
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 15vw;
        margin-left: 0;
        text-align: left;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .header {
        width: 90%;
        justify-content: space-between;
        top: 1rem;
    }
} 
*/