/* EAT - Short Film CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    color: #e0e0e0;
    line-height: 1.6;
}

body.creator-eat {
    --eat-cyan: #00bcd4;
    --eat-pink: #ff4081;
    --eat-gold: #d4af37;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bcd4;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-logo:hover {
    color: #4dd0e1;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: #00bcd4;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(255, 64, 129, 0.05) 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    position: relative;
    overflow: hidden;
    perspective: 1200px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 64, 129, 0.2), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(0, 188, 212, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    right: 10%;
    top: 22%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.45), rgba(255, 64, 129, 0.03) 60%, transparent 72%);
    filter: blur(12px);
    opacity: 0.8;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 188, 212, 0.35);
    background: rgba(10, 14, 26, 0.45);
    color: #9ddfe8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero-title {
    font-size: 4rem;
    color: #00bcd4;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #8892b0;
    margin-bottom: 30px;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid #00bcd4;
    color: #00bcd4;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Video Section */
.video-section {
    padding: 80px 20px;
    background: rgba(10, 14, 26, 0.5);
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.2);
    position: relative;
}

.video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%, transparent 70%, rgba(255, 64, 129, 0.12));
}

.video-container iframe {
    display: block;
    border-radius: 20px;
}

/* Details Section */
.details-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.8) 0%, rgba(26, 26, 46, 0.6) 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.details-card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.details-card:hover {
    border-color: rgba(0, 188, 212, 0.5);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
    transform: translateY(-5px);
}

.details-card.is-visible {
    animation: eatCardRise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes eatCardRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-title {
    color: #00bcd4;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-text {
    color: #8892b0;
    line-height: 1.8;
}

.tech-list, .credits-list {
    list-style: none;
    color: #8892b0;
}

.tech-list li, .credits-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

.tech-list li:last-child, .credits-list li:last-child {
    border-bottom: none;
}

.tech-list strong, .credits-list strong {
    color: #00bcd4;
}

/* Theme Tags */
.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-tag {
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid #00bcd4;
    color: #00bcd4;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.theme-tag:hover {
    background: rgba(0, 188, 212, 0.3);
    color: #fff;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 20px;
    background: rgba(10, 14, 26, 0.5);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #00bcd4;
    margin-bottom: 50px;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.15) 0%, rgba(255, 64, 129, 0.1) 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #00bcd4;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: #8892b0;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.primary-btn {
    background: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%);
    color: #000;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
}

.secondary-btn {
    background: rgba(0, 188, 212, 0.2);
    color: #00bcd4;
    border: 1px solid #00bcd4;
}

.secondary-btn:hover {
    background: rgba(0, 188, 212, 0.3);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: rgba(10, 14, 26, 0.9);
    border-top: 1px solid rgba(0, 188, 212, 0.2);
    padding: 30px 20px;
    text-align: center;
    color: #8892b0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .video-container iframe {
        height: 400px !important;
    }

    .hero-orb {
        width: 160px;
        height: 160px;
        right: -20px;
        top: 30px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .reveal-container {
        height: 320px;
    }
}

/* --- Merged Animation Styles --- */

/* Animation 1: The Nervous Background */
.flesh-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a0505 0%, #000 90%);
}
.vein {
    position: absolute;
    width: 2px; height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(139, 0, 0, 0.6), transparent);
    animation: veinPulse 4s ease-in-out infinite;
}
@keyframes veinPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* Animation: The Reality Reveal */
.reveal-container {
    position: relative; width: 100%; max-width: 600px; height: 400px; margin: 0 auto;
    border: 1px solid #333; overflow: hidden; cursor: crosshair;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border-radius: 22px;
    isolation: isolate;
}

.reveal-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 130px at var(--reveal-x, 50%) var(--reveal-y, 50%), rgba(255,255,255,0.18), transparent 72%),
        linear-gradient(135deg, rgba(255,255,255,0.05), transparent 45%);
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
}
.layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: bold; text-transform: uppercase; letter-spacing: 5px;
}
.fantasy-layer {
    background: #111; color: #d4af37; /* Gold/Elegant */
    z-index: 2;
    transition: mask-image 0.1s ease, transform 0.25s ease;
}
.horror-layer {
    background: #4a0000; color: #ff0000; /* Blood/Gore */
    z-index: 1;
    background-image: repeating-linear-gradient(45deg, #3a0000 0, #3a0000 10px, #2a0000 10px, #2a0000 20px);
    text-shadow: 2px 2px 0px #000;
}

.reveal-container.is-active .fantasy-layer {
    transform: scale(1.025);
}

/* Text Glitch for Title */
.glitch-title {
    font-size: 5rem; text-align: center; margin-top: 80px;
    position: relative; color: #fff; text-transform: uppercase;
}
.glitch-title::before, .glitch-title::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch-title::before {
    left: 2px; text-shadow: -1px 0 red; clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}
.glitch-title::after {
    left: -2px; text-shadow: -1px 0 blue; clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    100% { clip: rect(80px, 9999px, 100px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 90px, 0); }
    100% { clip: rect(50px, 9999px, 60px, 0); }
}
