/* Usage of Vanilla CSS as per guidelines */

:root {
    /* Color Palette */
    --color-charcoal: #1a1a1a;
    --color-beige: #e6e2dd;
    --color-off-white: #f5f5f5;
    --color-text-main: var(--color-charcoal);
    --color-text-muted: #4a4a4a;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    --transition-standard: 0.4s ease-out;
}

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

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-beige);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

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

a:hover {
    opacity: 0.7;
}

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

section {
    scroll-margin-top: 100px;
    /* Breathing room for anchor links */
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--color-charcoal);
    /* Fallback */
    color: var(--color-off-white);
}

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

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: brightness(0.7);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.play-icon-circle {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.play-icon-triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid rgba(255, 255, 255, 0.9);
    margin-left: 5px;
    /* Visual center adjustment */
}

.video-poster-card:hover .play-icon-circle {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.play-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    mix-blend-mode: difference;
    /* Ensures visibility on light/dark */
    color: var(--color-beige);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.menu-trigger {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    z-index: 20;
    /* Keep above overlay if needed, or overlay covers it */
    position: relative;
    transition: opacity 0.3s ease;
}

.menu-trigger:hover {
    opacity: 0.7;
}

/* Full Screen Menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-charcoal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 200;
    color: var(--color-off-white);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.menu-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
}

.menu-link {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-off-white);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}

.menu-link:hover {
    color: #999;
}

/* Stagger animation for links */
.menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-overlay.active .menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.menu-overlay.active .menu-link:nth-child(2) {
    transition-delay: 0.2s;
}

.menu-overlay.active .menu-link:nth-child(3) {
    transition-delay: 0.3s;
}

.menu-overlay.active .menu-link:nth-child(4) {
    transition-delay: 0.4s;
}

.menu-overlay.active .menu-link:nth-child(5) {
    transition-delay: 0.5s;
}

.hero-content {
    position: relative;
    z-index: 5;
    padding: var(--spacing-md);
}

.brand-title {
    font-size: clamp(3rem, 8vw, 8rem);
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.05em;
    font-weight: 300;
    opacity: 0.9;
}

/* Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.show {
    opacity: 1;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.video-container {
    width: 100%;
    height: 100%;
    background: #000;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -10px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

/* Manifesto Section */
.manifesto-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-beige);
    color: var(--color-text-main);
    text-align: center;
}

.manifesto-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

.manifesto-text p {
    margin-bottom: var(--spacing-md);
}

/* Gallery Section */
.gallery-section {
    padding: 0 var(--spacing-md) var(--spacing-xl);
}

.gallery-grid {
    /* Switch to columns for better masonry packing */
    column-count: 3;
    column-gap: var(--spacing-sm);
    /* Tighter gap */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-standard);
    background: none;
    margin-bottom: var(--spacing-sm);
    /* Bottom spacing for column items */
    break-inside: avoid;
    /* Prevent split */
    display: block;
    /* Ensure block */
    cursor: zoom-in;
    /* Indicate clickable */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(15%) brightness(0.95) contrast(1.1);
    transition: filter var(--transition-standard), transform var(--transition-standard);
}

.gallery-item:hover {
    transform: translateY(-2px);
    z-index: 2;
}

.gallery-item:hover img {
    filter: sepia(0%) brightness(1) contrast(1);
}

/* Remove manual offsets as column layout handles it naturally */
.item-2,
.item-5 {
    margin-top: 0;
}


/* Footer */
.main-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    /* Slightly more visible dark border */
    font-size: 0.9rem;
    background-color: #e3dfd9;
    /* Slightly darker than main bg for separation */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col.centered {
    text-align: center;
}

.social-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    color: var(--color-text-main);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: #000;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 1;
        /* Stack on mobile */
    }

    .item-2,
    .item-4 {
        margin-top: 0;
    }


    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-col.right-align {
        text-align: center;
    }

    .social-link {
        margin: 0 var(--spacing-xs);
    }

    /* App Mobile */
    .app-container {
        flex-direction: column;
        text-align: center;
    }

    .phone-frame {
        transform: rotate(0deg);
        margin-top: var(--spacing-md);
    }
}

/* Cinema Room Styles */
.cinema-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--color-charcoal);
    /* Dark cinematic background */
    color: var(--color-off-white);
    margin-top: 0;
    /* Ensure no gap if gallery has margin */
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: inherit;
    /* Inherit form section color */
}

.video-poster-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    /* Fallback */
}

.video-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: brightness(0.8);
}

.video-poster-card:hover .video-poster-img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

/* Slider Styles */
.cinema-slider-container {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Mask the track */
}

.cinema-slider-track {
    display: flex;
    width: 100%;
    /* No native scrolling */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.cinema-slider-track::-webkit-scrollbar {
    display: none;
}

.video-slide {
    min-width: 75%;
    flex: 0 0 75%;
    position: relative;
    padding: 0 var(--spacing-md);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.5;
    transform: scale(0.9);
    user-select: none;
}

.video-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Buttons */
.slider-nav {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-off-white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background-color: var(--color-off-white);
    color: var(--color-charcoal);
}

.prev {
    margin-right: var(--spacing-md);
}

.next {
    margin-left: var(--spacing-md);
}

/* In case of mobile, hide arrows or adjust */
@media (max-width: 768px) {
    .slider-nav {
        display: none;
    }
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-md);
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--color-off-white);
}

.slide-caption {
    margin-top: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

/* App Teaser Styles */
.app-section {
    padding: var(--spacing-xl) 0;
    background-color: #d6d2cd;
    /* Distinct earthy beige */
    overflow: hidden;
    position: relative;
}

.app-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.app-content {
    flex: 1;
    max-width: 500px;
}

.app-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-charcoal);
}

.app-desc {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
    max-width: 400px;
}

.btn-download {
    display: inline-block;
    padding: 16px 36px;
    background-color: var(--color-charcoal);
    color: var(--color-off-white);
    border: none;
    border-radius: 2px;
    /* Sharper corners for high-end feel */
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.app-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background-color: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow:
        25px 35px 70px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 4px solid #333;
    position: relative;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

/* Notch */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 25px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #e6e2dd 0%, #fff 100%);
}

.screen-ui-header {
    height: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Subtle UI lines inside screen */
.screen-ui-header::after {
    content: 'Studio';
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-charcoal);
}

.screen-ui-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.screen-ui-grid::before,
.screen-ui-grid::after {
    content: '';
    display: block;
    aspect-ratio: 4/5;
    background-color: #dcdcdc;
    border-radius: 2px;
    /* Simulated content */
    background: linear-gradient(45deg, #dcdcdc 0%, #d6d2cd 100%);
}