:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #ccff00;
    --secondary-color: #888888;

    --fat-font: 'Anton', sans-serif;
    --thin-font: 'Inter', sans-serif;

    --cursor-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    cursor: none !important;
    /* Force custom cursor */
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--thin-font);
    overflow: hidden;
    /* Prevent scroll, make it poster-like */
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Noise Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg 100 100 viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.05;
    pointer-events: none;
    background-size: 250px;
    z-index: 999;
}

.container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    perspective: 1000px;
}

header {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

h1 {
    font-family: var(--fat-font);
    font-size: clamp(4rem, 20vw, 35vh);
    /* Limits height impact */
    line-height: 0.8;
    /* Slight increase for breathing room */
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: -0.05em;
    transform-style: preserve-3d;
    mix-blend-mode: difference;
    white-space: nowrap;
}

.line {
    display: block;
    transition: transform 0.1s linear;
}

/* Overlap effect */
.line-2 {
    margin-top: -0.15em;
    /* Use em to scale with font-size */
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
}

.subtitle {
    font-family: var(--thin-font);
    font-size: clamp(1rem, 1.5vw, 2vh);
    font-weight: 300;
    letter-spacing: 1em;
    margin-top: 3vh;
    color: var(--secondary-color);
    text-transform: uppercase;
}

/* Accessibility Improvements */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.thin-text {
    font-family: var(--thin-font);
    font-weight: 100;
    font-size: clamp(1rem, 3vw, 2rem);
    letter-spacing: 0.5em;
    margin-top: 1rem;
    color: var(--secondary-color);
    opacity: 0.8;
    /* Increased contrast from default */
}

/* ... existing code ... */

.light {
    font-weight: 100;
    color: var(--secondary-color);
    font-size: clamp(1rem, 3.5vw, 2rem);
    opacity: 0.9;
    /* Better readability */
}

/* Slogans Floating */
.slogans {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    pointer-events: none;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slogan-item {
    font-size: 1vw;
    opacity: 0.7;
    text-transform: uppercase;
}

.slogan-item.align-left {
    text-align: left;
}

.slogan-item.align-right {
    text-align: right;
}

.heavy-text {
    font-weight: 900;
    color: var(--text-color);
}

.light-text {
    font-weight: 100;
    color: var(--secondary-color);
}


/* Socials Dock */
.socials {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent-color);
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    /* Correct centering */
}

#custom-cursor.hover {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-color: transparent;
    mix-blend-mode: exclusion;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-color);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Theme Toggle (Hidden visually but accessible via shortcut, kept as button too) */
#theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    z-index: 100;
    opacity: 0.5;
    transition: opacity 0.3s;
}

#theme-toggle:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    body {
        overflow: hidden;
        /* Force no scroll */
        height: 100vh;
        width: 100vw;
        position: fixed;
        /* Prevent mobile browser bounce */
    }

    .container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* Header top/center, Socials bottom */
        height: 100%;
        padding: 1rem;
        padding-bottom: env(safe-area-inset-bottom, 20px);
        /* Handle notch/home bar */
    }

    header {
        flex: 1;
        /* Take up all available space */
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        margin-top: -10vh;
        /* Visual center adjustment to account for bottom dock */
    }

    h1 {
        /* KEY: Use vmin to fit width OR height, whichever is smaller */
        font-size: clamp(2rem, 15vmin, 15vh);
        line-height: 1.0;
        letter-spacing: 0.05em;
    }

    .line-2 {
        margin-top: 0;
        -webkit-text-stroke: 0px;
        color: var(--text-color);
        opacity: 0.5;
    }

    .subtitle {
        font-size: 3vmin;
        /* Scale with viewport */
        margin-top: 2vh;
    }

    /* Socials Dock - Fixed visual weight but part of flex layout */
    .socials {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 0;
        margin-top: 0;

        /* Make links smaller on mobile to ensure fit */
    }

    .social-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .slogans {
        display: none;
    }
}