﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 70px; /* Account for fixed navbar */
}

h1, h2, h3, h4, nav, .tagline, .subtitle {
    font-family: 'Space Mono', monospace;
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: glitchLoader 0.5s;
}

.loader-text {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    letter-spacing: 0.3em;
    animation: flicker 0.5s infinite;
    text-align: center;
    padding: 0 20px;
}

/* Animations */
@keyframes glitchLoader {
    0%, 100% {
        filter: contrast(100%) brightness(100%);
    }
    20% {
        filter: contrast(200%) brightness(200%) invert(1);
    }
    40% {
        filter: contrast(50%) brightness(150%);
    }
    60% {
        filter: contrast(300%) brightness(50%) invert(1);
    }
    80% {
        filter: contrast(100%) brightness(100%);
    }
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 2px 0 red, -2px 0 cyan;
    }
    25% {
        text-shadow: -2px 0 red, 2px 0 cyan;
    }
    50% {
        text-shadow: 2px 2px red, -2px -2px cyan;
    }
    75% {
        text-shadow: -2px -2px red, 2px 2px cyan;
    }
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes noise {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.2) contrast(1.5);
    }
}

@keyframes scanlines {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 10px;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes slideGradient {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Header */
header {
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #fff;
    animation: flicker 3s infinite;
    position: relative;
}

h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    letter-spacing: 0.3em;
    font-weight: 700;
    animation: glitch 2s infinite;
    word-break: break-word;
}

.subtitle {
    margin-top: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.tagline {
    margin-top: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
}

.desktop-separator {
    display: inline;
}
.mobile-separator {
    display: none;
}

.tagline-separator {
    display: inline;
}


/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    position: relative;
    padding: 5px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

nav a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    cursor: crosshair;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Navigation Elements */
.mobile-nav-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #333;
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-nav-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #fff;
    animation: glitch 4s infinite;
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1003;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid #333;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow-y: auto;
    display: none;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block; /* This rule makes it visible only when active */
    opacity: 1;
}

.mobile-menu-links {
    padding: 30px 0;
}

.mobile-menu-links a {
    display: block;
    padding: 18px 30px;
    color: #fff;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #ff0000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-links a:active,
.mobile-menu-links a:focus {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 40px;
}

.mobile-menu-links a:active::before,
.mobile-menu-links a:focus::before {
    transform: translateX(0);
}

.mobile-menu-footer {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer p {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.mobile-menu-socials {
    display: flex;
    gap: 15px;
}

.mobile-menu-socials a {
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.mobile-menu-socials a:hover {
    opacity: 1;
    cursor: crosshair;
}

/* Main content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.hero-text {
    animation: noise 5s infinite;
}

.hero-text h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hero-text p {
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 0.95rem;
    font-weight: 300;
}

.hero-image {
    background: #000;
    height: 400px;
    position: relative;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Space Mono', monospace;
}

.hero-image img {
    filter: contrast(1.2) grayscale(0.3);
    transition: filter 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image:hover img {
    filter: contrast(1.3) grayscale(0);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(90deg, #ff0000 0%, #000 50%, #ff0000 100%);
    background-size: 200% 100%;
    animation: slideGradient 10s linear infinite;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border: 2px solid #fff;
    position: relative;
}

.cta-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.cta-banner p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    cursor: crosshair;
}

/* Content sections */
.section {
    margin-bottom: 60px;
    padding: 40px;
    border: 1px solid #333;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, #fff, transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    word-wrap: break-word;
}

.section p {
    font-weight: 300;
    opacity: 0.95;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.work-item {
    background: #111;
    padding: 20px;
    border: 1px solid #333;
    transition: all 0.3s;
    cursor: crosshair;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
    );
    animation: scanlines 8s linear infinite;
    pointer-events: none;
}

.work-grid a {
    color: inherit;
    text-decoration: none;
    display: contents;
}

.work-item h4 {
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.work-item p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
    font-weight: 300;
}

.work-item .episode-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #fff;
    color: #000;
    font-size: 0.7rem;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.watch-link {
    display: inline-block;
    margin-top: 10px;
    color: #ff6666;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.watch-link:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 100, 100, 0.5);
    cursor: crosshair;
}

/* Quote section */
.quote {
    text-align: center;
    padding: 60px 20px;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-style: italic;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin: 60px 0;
    animation: glitch 5s infinite;
    font-weight: 300;
}

.quote-author {
    font-size: 0.9rem;
    margin-top: 20px;
    opacity: 0.7;
    font-style: normal;
}

/* Controversy section */
.controversy-box {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s;
}

.controversy-box:hover {
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.5);
}

.controversy-box h4 {
    color: #ff6666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact */
.contact {
    text-align: center;
    padding: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-links a {
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid #fff;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.contact-links a:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
    cursor: crosshair;
}

.email-contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.email-contact a {
    color: #ff6666;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.email-contact a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 100, 100, 0.5);
    cursor: crosshair;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Noise overlay effect */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.1) 2px,
            rgba(255, 255, 255, 0.1) 4px
    );
    animation: noise 0.5s infinite;
}

/* Custom scrollbar */
html {
    scroll-padding-top: 80px; /* Increased for fixed navbar */
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* List styling */
.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    border-bottom: 1px solid #222;
    position: relative;
    padding: 10px 0 10px 20px;
    font-weight: 300;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #666;
}

/* Video embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #333;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* About section special layout */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.about-text {
    padding-right: 20px;
}

.about-image {
    position: sticky;
    top: 120px;
    border: 1px solid #fff;
    background: #000;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.2) grayscale(0.3);
    transition: filter 0.3s;
}

.about-image:hover img {
    filter: contrast(1.3) grayscale(0);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-top: 1px solid #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
}

.image-caption p {
    margin: 0;
    opacity: 0.9;
}

/* Interlude Image */
.interlude-image {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 60px 0;
    overflow: hidden;
    border: 1px solid #fff;
    background: #000;
}

.interlude-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.2) grayscale(0.3);
    transition: filter 0.3s;
}

.interlude-image:hover img {
    filter: contrast(1.3) grayscale(0);
}


/* MOBILE OPTIMIZATIONS */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: relative;
        top: 0;
        height: 400px;
        margin-top: 20px;
    }

    .about-image img {
        height: 100%;
    }

    .about-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    /* Adjust body padding for mobile fixed nav */
    body {
        padding-top: 60px; /* Smaller padding for mobile nav */
    }

    /* Hide desktop nav */
    nav {
        display: none;
    }

    /* Show mobile navigation */
    .mobile-nav-header {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Header adjustments */
    header {
        padding: 30px 15px;
        margin-top: 60px;
    }

    h1 {
        font-size: clamp(1.5rem, 7vw, 3rem);
        letter-spacing: 0.1em;
    }

    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }

    .tagline {
        font-size: 0.55rem;
        letter-spacing: 0.05em;
        padding: 0 15px;
        line-height: 1.4;
        white-space: normal !important;;
        animation: none !important;
        overflow: visible !important;
    }

    .desktop-separator {
        display: none;
    }

    .mobile-separator {
        display: inline;
    }

    /* Hero section */
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-text h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .hero-image {
        height: 250px;
    }

    /* Sections */
    .section {
        padding: 25px 15px;
        margin-bottom: 40px;
    }

    .section h3 {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
        line-height: 1.3;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Work grid */
    .work-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .work-item {
        padding: 15px;
        min-height: auto;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 20px 15px;
    }

    .cta-banner h3 {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
        line-height: 1.3;
    }

    .cta-buttons {
        gap: 10px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 200px;
    }

    /* Quote section */
    .quote {
        padding: 40px 15px;
        font-size: 1.1rem;
    }

    /* Contact section */
    .contact {
        padding: 30px 15px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .contact-links a {
        width: 100%;
        max-width: 250px;
        padding: 14px 20px;
    }

    /* Email contact */
    .email-contact {
        margin-top: 25px;
        padding-top: 25px;
    }

    .email-contact a {
        font-size: 0.95rem;
        word-break: break-all;
    }

    /* Loader text */
    .loader-text {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    /* Interlude image */
    .interlude-image {
        height: 250px;
        margin: 40px 0;
    }

    /* Feature list */
    .feature-list li {
        padding-left: 25px;
        font-size: 0.9rem;
    }

    /* Controversy boxes */
    .controversy-box {
        padding: 15px;
        margin: 15px 0;
    }

    .controversy-box h4 {
        font-size: 0.95rem;
    }

    .controversy-box p {
        font-size: 0.85rem;
    }

    /* Footer */
    footer {
        padding: 20px 15px;
        font-size: 0.7rem;
    }

    /* Container padding */
    .container {
        padding: 30px 15px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    h1 {
        font-size: 1.3rem;
        letter-spacing: 0.05em;
    }

    nav {
        gap: 5px;
        padding: 12px 8px;
    }

    nav a {
        font-size: 0.7rem;
        padding: 6px 8px;
    }

    .section h3 {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

/* Prevent horizontal scroll */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    * {
        max-width: 100vw;
    }
}