/* Reset and Base Styles */
:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 80px;
    --container-width: 1600px; /* Increased width */
    --section-padding: 140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300; /* Thinner base font */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 60px;
}

/* Typography Helpers */
.lang-ko, .lang-en {
    display: none;
}

.lang-ko.active, .lang-en.active {
    display: block;
}

span.lang-ko.active, span.lang-en.active {
    display: inline;
}

.section {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Two Column Layout System */
.two-col-layout {
    display: flex;
    gap: 60px;
    position: relative;
}

.col-left {
    flex: 0 0 33.333%; /* 1/3 width */
    position: sticky;
    top: 140px;
    height: fit-content;
}

.col-right {
    flex: 1; /* Remainder (2/3) */
    padding-top: 38px; /* Align first line with section-heading */
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.5;
    padding-left: 2px;
}

.section-heading {
    font-size: 60px;
    line-height: 0.95;
    font-weight: 800; /* Heavy weight for titles */
    letter-spacing: -1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: transparent; /* Initially transparent */
    transition: background 0.4s ease, backdrop-filter 0.4s ease, transform 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(5,5,5,0.9);
    backdrop-filter: blur(15px);
}

.nav-header.hidden {
    transform: translateY(-100%);
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-label {
    height: 20px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 12px;
    font-weight: 400; /* Thinner */
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.nav-link:hover {
    opacity: 1;
}

.lang-switch {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 400;
    gap: 8px;
}

.lang-divider { opacity: 0.3; }
.lang-btn { opacity: 0.4; }
.lang-btn.active { opacity: 1; font-weight: 600; }
.lang-btn:hover { opacity: 0.8; }

/* Landing Section */
.landing-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.unicorn-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.unicorn-background canvas {
    width: 100% !important;
    height: 100% !important;
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.main-logo {
    width: 400px;
    max-width: 80vw;
    margin: 0 auto 20px;
}

.tagline {
    font-size: 20px;
    font-weight: 200; /* Thinner */
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s;
    font-weight: 300;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-arrow {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: #fff;
    animation: dropDown 2s infinite;
}

@keyframes dropDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(350%); }
}

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

/* About Section */
.text-block {
    font-size: 20px; /* Unified with bio-text size */
    font-weight: 200; /* Thinner */
    line-height: 1.6;
    max-width: 900px;
}

.text-block p {
    margin-bottom: 30px;
}

.philosophy-block {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 60px;
    display: flex;
    gap: 60px;
    margin-top: 80px;
}

.quote-text {
    flex: 1;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    font-style: italic;
}

.philosophy-details {
    flex: 1;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

/* Team Section */
.role {
    display: block;
    font-size: 13px;
    opacity: 0.6;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

.team-details-list {
    margin-top: 10px;
}

/* Using shared .detail-row and .detail-label styles from Project Section */

/* Project Section */
.project-poster-container {
    margin: 20px 0 40px;
    width: 100%; /* Fill the column width */
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.project-poster-container:hover {
    opacity: 0.9;
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: contain;
}

.project-meta {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column; /* Stack genre and format vertically */
    gap: 5px;
    font-weight: 300;
}

.project-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #ddd;
}

.project-details-list {
    margin-top: 10px;
}

.detail-row {
    display: flex;
    margin-bottom: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
}

.detail-label {
    flex: 0 0 120px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.detail-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 300;
}

.detail-content ul {
    margin-top: 0; /* Remove top margin */
    list-style: none; /* Remove bullet points */
    padding-left: 0;
}

.stills-gallery {
    margin-top: 80px;
}

.stills-gallery h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Works Section */
.works-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 10px;
}

.work-card-large {
    display: block;
    margin-bottom: 20px;
    position: relative; /* Context for absolute positioning if needed */
}

.thumb-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.work-card-large:hover .thumb-wrapper img {
    transform: scale(1.05);
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

/* Hover Overlay for Info */
.work-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 30% black overlay */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none; /* Let clicks pass through to link */
}

.work-card-large:hover .work-info-overlay {
    opacity: 1;
}

.work-info-overlay h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.work-info-overlay .work-type {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Hide original info below image */
.work-info-below {
    display: none; 
}

/* News Section */
.news-section {
    min-height: 400px;
}

.news-placeholder {
    font-size: 18px;
    opacity: 0.3;
    font-weight: 300;
    padding-top: 20px;
}

/* Contact Footer */
.footer {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 100px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-text p {
    font-size: 13px;
    font-weight: 300;
    opacity: 0.4;
}

.social-links.centered {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Overlays */
.video-overlay, .gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-overlay.active, .gallery-overlay.active {
    display: flex;
    opacity: 1;
}

.video-modal {
    width: 95%;
    max-width: 1800px; /* Increased for larger display */
    aspect-ratio: 16/9;
    position: relative;
}

.video-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-modal {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-image-container {
    max-width: 80%;
    max-height: 80%;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.video-overlay .close-button {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    color: #fff;
    z-index: 2001;
    font-weight: 100;
}

.gallery-overlay .close-button {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    z-index: 2001;
    font-weight: 100;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    }

.gallery-overlay .close-button:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
    }

.gallery-nav {
    font-size: 40px;
    padding: 20px;
    opacity: 0.3;
    transition: opacity 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 100;
}

.gallery-nav:hover { opacity: 1; }
.prev { left: 40px; }
.next { right: 40px; }

.gallery-counter {
    position: absolute;
    bottom: 40px;
    font-size: 13px;
    opacity: 0.5;
    font-weight: 300;
    }
    
/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Hide navigation menu items on mobile */
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    /* Two column layout becomes single column */
    .two-col-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .col-left {
        position: static;
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Remove top padding from right column on mobile */
    .col-right {
        padding-top: 0;
    }
    
    .section-heading {
        font-size: 40px;
    }
    
    /* Text block adjustments */
    .text-block {
        font-size: 18px;
        margin-top: 0;
    }
    
    /* Project poster full width on mobile */
    .project-poster-container {
        max-width: 100%;
        width: 100%;
        margin: 20px 0;
    }
    
    /* Detail row: stack label above content on mobile */
    .detail-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .detail-label {
        flex: 0 0 auto;
        margin-bottom: 5px;
    }
    
    .detail-content {
        padding-left: 0;
        margin-left: 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .works-grid-large {
        grid-template-columns: 1fr;
    }
    
    .contact-section .contact-details {
        gap: 20px;
    }
    
    .contact-section .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Contact Section */
.contact-section .contact-details {
    display: grid;
    gap: 40px;
    }
    
.contact-section .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
.contact-section .detail-item .label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.4;
    letter-spacing: 1px;
    }
    
.contact-section .detail-item .value {
        font-size: 14px;
    font-weight: 300;
    opacity: 0.8;
    }
