/* ========================================
   TRIPWIRE ENTERTAINMENT - CINEMATIC STYLING
   ======================================== */

/* CSS Variables */
:root {
    --color-bg: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-text: #e8e8e8;
    --color-text-secondary: #a0a0a0;
    --color-accent: #ffffff;
    --color-border: #2a2a2a;
    --color-hover: #1a1a1a;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

body.intro-active {
    overflow: hidden;
}

/* ========================================
   INTRO ANIMATION
   ======================================== */

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1.2s ease 1.1s;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    transition: opacity 0.6s ease;
}

.intro-overlay.fade-out .intro-content {
    opacity: 0;
}

.intro-logo-animation {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 200px;
    margin: 0 auto;
}

/* Logo underline animation */
.logo-underlines {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 18%;
    width: 90%;
    height: auto;
}

.underline-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawUnderline 1.5s ease-out forwards;
}

@keyframes drawUnderline {
    to {
        stroke-dashoffset: 0;
    }
}

/* Walker walking animation */
.walker-img {
    position: absolute;
    right: 8%;
    bottom: 18%;
    transform: translateY(0);
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    animation: walkAcrossLogo 2.2s ease-in-out forwards;
    animation-delay: 0.8s;
}

@keyframes walkAcrossLogo {
    0% {
        opacity: 1;
        transform: translateX(-500px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Letters container */
.letters-container {
    position: absolute;
    left: 5%;
    top: 35%;
    transform: translateY(-50%);
    display: flex;
    align-items: flex-end;
    height: 80px;
    gap: 0px;
}

.letter {
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
}

/* Individual letter sizing */
.letter-tr { width: 110px; transform: translateY(15px); animation: fadeInLetter 0.3s ease forwards; animation-delay: 2.8s; }
.letter-i { width: 25px; margin-left: -12px; animation: fadeInLetter 0.3s ease forwards; animation-delay: 3s; }
.letter-p { width: 50px; margin-left: -8px; animation: fadeInLetter 0.3s ease forwards; animation-delay: 3.1s; }
.letter-w { width: 85px; margin-left: -15px; animation: fadeInLetter 0.3s ease forwards; animation-delay: 3.2s; }
.letter-i2 { width: 25px; margin-left: -12px; animation: fadeInLetter 0.3s ease forwards; animation-delay: 3.3s; }
.letter-r2 { width: 60px; margin-left: -12px; animation: fadeInLetter 0.3s ease forwards; animation-delay: 3.4s; }
.letter-e { width: 45px; margin-left: -12px; animation: fadeInLetter 0.3s ease forwards; animation-delay: 3.5s; }

@keyframes fadeInLetter {
    to {
        opacity: 1;
    }
}

/* Skip button */
.skip-intro {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInSkip 0.5s ease forwards;
    animation-delay: 1s;
}

.skip-intro:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

@keyframes fadeInSkip {
    to {
        opacity: 1;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h4 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

p {
    max-width: 70ch;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    font-size: 1.05rem;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.logo:hover .logo-text {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: var(--spacing-md);
}

.hero-logo {
    width: 100%;
    max-width: 700px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--color-text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards 0.9s;
    max-width: none;
}

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

/* Volume Toggle Button */
.volume-toggle {
    position: absolute;
    top: 130px;
    right: 20px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.5s;
}

.volume-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.volume-icon {
    color: #ffffff;
    width: 24px;
    height: 24px;
    position: absolute;
    transition: opacity 0.3s ease;
}

.volume-icon.volume-off {
    opacity: 1;
}

.volume-icon.volume-on {
    opacity: 0;
}

.volume-toggle.unmuted .volume-icon.volume-off {
    opacity: 0;
}

.volume-toggle.unmuted .volume-icon.volume-on {
    opacity: 1;
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-accent);
}

/* About Section */
.about {
    background: var(--color-bg);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 900px;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* Team Section */
.team {
    background: var(--color-bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
}

.team-member {
    background: var(--color-hover);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    transition: var(--transition);
}

.team-member:hover {
    border-color: var(--color-text-secondary);
    transform: translateY(-4px);
}

.team-photo {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 2px;
    margin-bottom: var(--spacing-md);
    display: block;
    filter: grayscale(100%);
    transition: var(--transition);
}

.team-member:hover .team-photo {
    filter: grayscale(0%);
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
    text-transform: none;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.team-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: none;
}

/* Projects Section */
.projects {
    background: var(--color-bg);
}

.project-card {
    margin-bottom: var(--spacing-xl);
    transition: var(--transition);
}

.project-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.project-media {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.project-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--color-bg);
    border-radius: 2px;
    overflow: hidden;
}

.trailer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-text-secondary);
}

.project-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: var(--spacing-xl);
    border-radius: 2px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.placeholder-content {
    text-align: center;
}

.placeholder-content h3 {
    margin-bottom: var(--spacing-sm);
}

.placeholder-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.placeholder-content small {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.project-details {
    padding: var(--spacing-md) 0;
}

.project-title {
    margin-bottom: var(--spacing-md);
}

.project-section {
    margin-bottom: var(--spacing-md);
}

.project-section h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
}

.synopsis-text {
    font-style: italic;
    color: var(--color-text);
}

.credits-list {
    list-style: none;
}

.credits-list li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.credits-list strong {
    color: var(--color-text);
    font-weight: 500;
}

.press-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.press-link {
    color: var(--color-text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.press-link:hover {
    color: var(--color-text-secondary);
    transform: translateX(5px);
}

/* News Section */
.news {
    background: var(--color-bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.news-item {
    padding: var(--spacing-md);
    background: var(--color-hover);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    transition: var(--transition);
}

.news-item:hover {
    border-color: var(--color-text-secondary);
    transform: translateY(-4px);
}

.news-source {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.news-headline {
    margin-bottom: var(--spacing-sm);
}

.news-headline a {
    color: var(--color-text);
    transition: var(--transition);
}

.news-headline a:hover {
    color: var(--color-text-secondary);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Contact Section */
.contact {
    background: var(--color-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-block h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
}

.contact-email {
    color: var(--color-text);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-email:hover {
    color: var(--color-text-secondary);
}

.submission-policy {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.submission-policy h4 {
    margin-bottom: var(--spacing-sm);
}

.submission-policy p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact Form */
.contact-form {
    background: var(--color-hover);
    padding: var(--spacing-lg);
    border-radius: 2px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--color-text);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 90%;
    }

    .contact-form {
        padding: var(--spacing-md);
    }

    .skip-intro {
        bottom: 20px;
        right: 20px;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .volume-toggle {
        top: 100px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .volume-icon {
        width: 20px;
        height: 20px;
    }

    .intro-logo-animation {
        max-width: 95%;
        height: 120px;
    }

    .logo-underlines {
        bottom: 15%;
    }

    .walker-img {
        height: 60px;
        bottom: 15%;
        right: 5%;
    }

    .letters-container {
        height: 50px;
        left: 2%;
    }

    .letter-tr { width: 55px; transform: translateY(8px); }
    .letter-i { width: 14px; margin-left: -6px; }
    .letter-p { width: 26px; margin-left: -4px; }
    .letter-w { width: 44px; margin-left: -8px; }
    .letter-i2 { width: 14px; margin-left: -6px; }
    .letter-r2 { width: 32px; margin-left: -6px; }
    .letter-e { width: 24px; margin-left: -6px; }

    @keyframes walkAcrossLogo {
        0% {
            opacity: 1;
            transform: translateX(-300px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
}
