/* CSS Reset & Variables */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --font-heading: 'DotGothic16', sans-serif;
    --font-body: 'DotGothic16', sans-serif;
    /* Unified font */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Default off */
}

/* Restore pointer for interactive elements */
a,
button,
input {
    cursor: pointer;
}

/* Themes */
body.theme-mid {
    --bg-color: #333333;
    --text-color: #ffffff;
}

body.theme-light {
    --bg-color: #ffffff;
    --text-color: #000000;
}

/* Invert specific elements in light mode for visibility */
body.theme-light .logo,
body.theme-light .nav-link,
body.theme-light .hero-btn {
    color: black;
    border-color: black;
}

body.theme-light .hero-btn:hover {
    background: black;
    color: white;
}

body.theme-light .subtitle,
body.theme-light .section-title,
body.theme-light .footer {
    color: #333;
}

/* Theme Slider */
.theme-slider-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    mix-blend-mode: difference;
    transition: bottom 0.5s ease;
}

.theme-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: white;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.theme-slider:hover {
    opacity: 1;
}

.theme-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
}

.theme-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
}

.theme-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: white;
    letter-spacing: 2px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background: Animated Waves "Wawez" */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    /* Deeper waves: increased control point difference (Q250,150... for a line at 50) */
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q250,150 500,50 T1000,50' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,150 Q250,250 500,150 T1000,150' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,250 Q250,350 500,250 T1000,250' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,350 Q250,450 500,350 T1000,350' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,450 Q250,550 500,450 T1000,450' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,550 Q250,650 500,550 T1000,550' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,650 Q250,750 500,650 T1000,650' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,750 Q250,850 500,750 T1000,750' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,850 Q250,950 500,850 T1000,850' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M0,950 Q250,1050 500,950 T1000,950' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 2000px 2000px;
    /* Ensure seamless tile */
    animation: waveFlow 20s linear infinite;
}

body.theme-light .noise-overlay {
    /* Invert waves to black for light mode */
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q250,150 500,50 T1000,50' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,150 Q250,250 500,150 T1000,150' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,250 Q250,350 500,250 T1000,250' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,350 Q250,450 500,350 T1000,350' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,450 Q250,550 500,450 T1000,450' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,550 Q250,650 500,550 T1000,550' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,650 Q250,750 500,650 T1000,650' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,750 Q250,850 500,750 T1000,750' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,850 Q250,950 500,850 T1000,850' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M0,950 Q250,1050 500,950 T1000,950' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    opacity: 0.1;
}

@keyframes waveFlow {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -2000px 0;
    }
}

/* Cursor: Gooey Effect (Landon Norris Style) */
.cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 9999;
    mix-blend-mode: difference;
    /* Inverts content behind */
    filter: url('#goo');
    /* Applies the liquid/gooey merge effect */
}

.cursor-dot {
    position: absolute;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    /* Logic: large blurry dots merge due to the filter */
}

/* Main Cursor */
.cursor-main {
    width: 40px;
    height: 40px;
}

/* Trail Segments */
.cursor-trail {
    width: 30px;
    height: 30px;
}

/* Typography */
h1,
h2,
h3,
.logo,
.nav-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    text-align: center;
    mix-blend-mode: difference;
    /* Just for hero text effect */
}

.glitch-text {
    font-size: 8vw;
    line-height: 1;
    position: relative;
    font-weight: 400;
}

.subtitle {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    opacity: 0.8;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* Hero Navigation Buttons */
.hero-nav-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-btn {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    /* Reduced from 8rem */
    min-height: auto;
    /* Allow content to dictate height more */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 1rem;
    color: #888;
    margin-bottom: 3rem;
    display: block;
    mix-blend-mode: difference;
}

/* Liquid Glass Cards */
.glass-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.vision-text {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 900px;
}

/* Contact/Links */
.contact-wrapper {
    display: flex;
    flex-direction: row;
    /* Parallel/Horizontal */
    gap: 3rem;
    align-items: center;
}

.big-link {
    font-size: 1.5rem;
    /* Reduced size */
    font-family: var(--font-heading);
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
    width: fit-content;
    mix-blend-mode: difference;
}

.big-link:hover {
    border-bottom: 2px solid #fff;
}

/* Footer */
.footer {
    padding: 2rem 4rem;
    border-top: 1px solid #1a1a1a;
    color: #666;
    font-size: 0.8rem;
    font-family: var(--font-heading);
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links a:not(:last-child)::after {
    content: "|";
    margin: 0 1rem;
    opacity: 0.5;
    color: inherit;
    display: inline-block;
    text-decoration: none !important;
    /* Ensure pipe isn't underlined */
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .glitch-text {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    /* Adjusted for long text */
    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .vision-text {
        font-size: 1.2rem !important;
    }

    /* Stack Navigation Buttons */
    .hero-nav-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 2rem;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    /* Footer: Stack vertically */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-content> :first-child,
    .footer-content> :last-child {
        justify-self: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a:not(:last-child)::after {
        content: none;
        /* Hide separators on mobile */
    }

    /* Hide custom cursor on mobile (touch devices) */
    .cursor-container {
        display: none;
    }

    .section {
        padding: 3rem 1.5rem;
    }
}