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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
}

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

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header.visible {
    transform: translateY(0);
}

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

.nav-logo .logo-label {
    height: 25px;
    width: auto;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ffffff;
    transition: width 0.3s ease;
}

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

/* Landing Section */
.landing-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

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

.logo-container {
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    width: 300px;
    height: auto;
    margin-bottom: 30px;
    opacity: 1;
}

.tagline {
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1s forwards;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tagline p {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tagline-en {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 200;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100vw;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 2s forwards;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10000;
    pointer-events: auto;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
    opacity: 0.7;
}

.scroll-indicator:hover .scroll-arrow,
.scroll-indicator:focus .scroll-arrow {
    transform: scale(1.1);
}

.scroll-indicator:active .scroll-arrow {
    transform: scale(0.95);
}

.scroll-arrow {
    width: 1px;
    height: 30px;
    background: #ffffff;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    transform: rotate(45deg);
}

/* Background Elements */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-element {
    position: absolute;
    pointer-events: none !important;
    filter: blur(12px);
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.bg-element-a {
    width: 120px;
    height: auto;
}

.bg-element-g {
    width: 100px;
    height: auto;
}

.bg-element-b {
    width: 110px;
    height: auto;
}

/* Mouse Follower */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* About Section */
.about-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.studio-intro,
.director-info,
.contact-info {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.studio-intro {
    animation-delay: 0.2s;
}

.director-info {
    animation-delay: 0.4s;
}

.contact-info {
    animation-delay: 0.6s;
}

.about-content h3 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff;
}

.about-content h4 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.about-content p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.description-en {
    font-style: italic;
    opacity: 0.7;
    font-size: 15px !important;
}

.contact-details {
    display: grid;
    gap: 15px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-label {
    font-weight: 400;
    letter-spacing: 1px;
}

.contact-value {
    font-weight: 300;
    opacity: 0.8;
}

/* Projects Section */
.projects-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-main {
    max-width: 1000px;
    margin: 0 auto;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.project-title-image {
    max-width: 450px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    opacity: 0.7;
    font-weight: 300;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.project-description {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.project-media {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.logline,
.synopsis,
.why-now {
    margin-bottom: 40px;
}

.project-description h4 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.project-description p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.project-description ul {
    list-style: none;
    padding: 0;
}

.project-description li {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.project-description li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffffff;
}

.trailer-container {
    margin-bottom: 40px;
}

.trailer-thumbnail {
    aspect-ratio: 16/9;
    background-image: url('../images/trailer_thumbnail.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.trailer-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.trailer-thumbnail:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

.trailer-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.play-button {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.trailer-thumbnail:hover .play-button {
    transform: scale(1.1);
}

/* Trailer Overlay */
.trailer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trailer-modal {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.close-button {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.close-button:hover {
    opacity: 0.7;
}

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

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

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

.gallery-modal {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close-button {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.gallery-close-button:hover {
    opacity: 0.7;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 200;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.gallery-nav:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.2);
}

.gallery-prev {
    left: -80px;
}

.gallery-next {
    right: -80px;
}

.gallery-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    overflow: hidden;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: grab;
}

.gallery-image:active {
    cursor: grabbing;
}

.gallery-image.dragging {
    transition: none;
}

.gallery-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 300;
    opacity: 0.8;
}

.stills-gallery h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.stills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.still-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.still-image:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

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

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

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

.footer-text p {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .main-logo {
        width: 240px;
    }
    
    .tagline p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 36px;
        font-weight: 800;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .about-content h3 {
        font-size: 28px;
        font-weight: 800;
    }
    
    .project-title-image {
        max-width: 320px;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .main-logo {
        width: 200px;
    }
    
    .tagline p {
        font-size: 14px;
    }
    
    .tagline {
        min-height: 50px;
    }
    
    .section-header h2 {
        font-size: 28px;
        font-weight: 800;
    }
    
    .about-content h3 {
        font-size: 24px;
        font-weight: 800;
    }
    
    .project-title-image {
        max-width: 280px;
    }
    
    .trailer-modal {
        width: 95%;
    }
    
    .close-button {
        top: -40px;
        font-size: 30px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Reduce background elements on mobile for performance */
    .bg-element {
        filter: blur(8px);
    }
    
    .bg-element-a {
        width: 80px;
    }
    
    .bg-element-g {
        width: 70px;
    }
    
    .bg-element-b {
        width: 75px;
    }
    
    /* Gallery mobile adjustments */
    .gallery-nav {
        font-size: 40px;
        padding: 15px;
    }
    
    .gallery-prev {
        left: -50px;
    }
    
    .gallery-next {
        right: -50px;
    }
    
    .gallery-image-container {
        touch-action: pan-y pinch-zoom;
    }
    
    .gallery-image {
        cursor: default;
    }
    
    .gallery-close-button {
        top: -40px;
        font-size: 30px;
    }
}