/* 
   THEME: CINEMATIC ULTRA-PREMIUM (RAY ISHIDO INSPIRED)
   PALETTE:
   --bg: #050505
   --fg: #e0e0e0
   --muted: #808080
   --accent: #d8c27a
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Manrope:wght@200;300;400;500;600;700&display=swap');

:root {
    --bg: #050505;
    --fg: #e0e0e0;
    --muted: #888;
    --accent: #d8c27a;
    --border: rgba(255, 255, 255, 0.08);
    --header-height: 100px;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Manrope', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: var(--fg);
    line-height: 0.95;
    text-transform: uppercase;
}

/* GIGANTIC TITLES */
.title-xl {
    font-size: clamp(3rem, 8vw, 9rem);
    letter-spacing: -0.03em;
}

.title-lg {
    font-size: clamp(2.5rem, 5vw, 6rem);
    letter-spacing: -0.02em;
}

.title-md {
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    margin-bottom: 2rem;
}

p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 40ch;
    /* Narrow columns for elegance */
    margin-bottom: 2rem;
    font-weight: 300;
}

.text-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: none;
    /* Hidden as requested */
}

/* LAYOUT UTILS */
.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
}

.full-height {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* HEADER - MINIMALIST & AUTO-CONTRAST */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    z-index: 1000;
    background: transparent;
    /* No background to let the mix-blend work cleanly */
    pointer-events: none;
    mix-blend-mode: difference;
    /* MAGIC: Inverts text color based on background */
    color: #fff;
}

.main-header>* {
    pointer-events: auto;
}

.logo {
    display: block;
    height: 50px;
    /* Adjust based on logo aspect ratio */
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    /* If the logo is black, we might need to invert it to be white for the mix-blend-mode to work correctly (White -> Difference -> Black on White BG). 
       Assuming the logo provided is suitable or white. If it's black, we can add filter: invert(1); */
}

.nav-toggle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    color: #fff;
    /* Removed individual mix-blend, handled by parent */
}

/* OVERLAY MENU */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    text-align: center;
}

.overlay-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--fg);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.overlay-menu a:hover {
    color: var(--accent);
}

/* HERO SECTION - SPLIT BLACK / WHITE */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid var(--border);
    /* THE SPLIT */
    background: linear-gradient(90deg, #0b0b0c 50%, #f6f6f4 50%);
}

/* HERO SPLIT LAYOUT */
.hero-split-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    z-index: 10;
    mix-blend-mode: difference;
    color: #fff;
    align-items: flex-start;
}

.hero-mobile-content {
    display: none;
    /* Hidden by default on Desktop */
}

.hero-half {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-half.left {
    align-items: flex-end;
    padding-right: 0.5vw;
    /* Closer to center */
    text-align: right;
}

.hero-half.right {
    align-items: flex-start;
    padding-left: 0.5vw;
    /* Closer to center */
    text-align: left;
}

.hero .title-xl {
    margin: 0;
    line-height: 0.9;
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    max-width: 250px;
    line-height: 1.3;
    opacity: 0.9;
    font-weight: 500;
    color: #fff;
}

/* HERO TOP LABELS (In Flow) */
.hero-top-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    /* Symmetric to H1 margin-bottom */
    position: relative;
    line-height: 1;
}

.center-amp {
    position: absolute;
    right: -0.5vw;
    /* Reach the center line */
    transform: translateX(50%);
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    top: -0.1rem;
    /* Optical alignment */
}



.hero-bg {
    display: none;
    /* Removed the old placeholder bg */
}

.hero-content {
    /* MAGIC: This ensures text is White on Black side, and Black on White side */
    mix-blend-mode: difference;
    color: #fff;
    z-index: 10;
    width: 100%;
}

.hero .title-xl {
    /* Ensure the split cuts through the words if centered */
    white-space: nowrap;
}

/* SPLIT SECTIONS (Dark Mode Default) */
.split-section {
    display: flex;
    min-height: 33.33vh;
    /* 3 blocks per screen */
    width: 100%;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.split-content,
.split-media {
    flex: 1;
    width: 50%;
    /* Fallback */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content {
    flex: 3;
    width: 30%;
    padding: 0 3vw 0 6vw;
    /* Increased left padding */
    background-color: var(--bg);
    z-index: 2;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content p {
    color: #fff;
    font-weight: 400;
    /* Normal weight */
}

.split-content h2 {
    color: var(--accent);
    /* Gold color for titles */
}

.split-media {
    flex: 7 !important;
    width: 70%;
    height: 33.33vh;
    /* Match section height */
    overflow: hidden;
    background: #0a0a0a;
    border-left: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Alternating layout */
.split-section:nth-child(even) {
    flex-direction: row-reverse;
}

.split-section:nth-child(even) .split-media {
    border-left: none;
    border-right: 1px solid var(--border);
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(100%) contrast(1.1);
}

.split-section:hover .split-image {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1);
}

.media-label {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
}

/* POST PROD - LIGHT THEME OVERRIDE */
#post-production {
    /* Scoped Variables for Light Mode */
    --bg: #f6f6f4;
    --fg: #111111;
    --muted: #444444;
    --border: rgba(0, 0, 0, 0.1);
    --accent: #b09a5b;
    /* Slightly darker gold for visibility on white */

    background-color: var(--bg);
    color: var(--fg);
    border-bottom: none;
    /* Clean bottom */
}

.grid-section {
    padding: 15vh 0;
    /* Background handled by ID scope above */
    border-bottom: 1px solid var(--border);
}

.grid-intro {
    margin-bottom: 10vh;
    padding-left: 5vw;
    border-left: 1px solid var(--accent);
}

#production .grid-intro p {
    color: #fff !important;
    /* Force white for Production intro */
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns for readability */
    gap: 0;
    /* Borders handled on items */
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.tech-item {
    aspect-ratio: auto;
    aspect-ratio: auto;
    min-height: 200px;
    /* Reduced from 350px to remove empty space */
    padding: 2rem 3rem;
    /* Reduced vertical padding */
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s;
    position: relative;
    background-color: transparent;
}

.tech-item:hover {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    z-index: 10;
    transform: translateY(-5px);
}

.tech-item::after {
    content: '+';
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-item:hover::after {
    opacity: 1;
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--fg);
    margin-top: 0.5rem;
}

.item-number {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 1rem;
    display: block;
}

.item-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #444;
    /* Darker gray for light mode text */
    max-width: 50ch;
}

.tech-item ul {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
    /* Semi-bold sub-services */
    list-style: none;
    padding: 0;
    /* Single column layout */
    display: block;

    /* Hidden by default */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 0;
}

.tech-item:hover ul {
    /* Reveal on hover */
    max-height: 500px;
    /* Arbitrary large height for animation */
    opacity: 1;
    margin-top: 1.5rem;
}

.tech-item ul li {
    margin-bottom: 0.5rem;
}

.tech-item ul li::before {
    content: '•';
    color: var(--accent);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* IMDB SECTION */
.imdb-wrapper {
    padding: 10vh 5vw;
    background: #0a0a0a;
    /* Back to Dark */
    color: white;
}

/* CONTACT */
.contact-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #0b0b0c;
    /* Dark */
}

.contact-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #f2f2f2;
    margin: 1rem 0;
    display: block;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* FOOTER */
.main-footer {
    display: flex;
    justify-content: center;
    padding: 2rem 5vw;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #999;
    /* Lighter gray */
    text-transform: uppercase;
    background-color: #0b0b0c;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .split-section {
        flex-direction: column !important;
        min-height: auto;
    }

    .split-content,
    .split-media {
        width: 100%;
        height: auto;
    }

    .split-content {
        padding: 10vh 5vw;
        flex: auto;
    }

    .split-media {
        height: 60vh;
        flex: auto !important;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .title-xl {
        font-size: 12vw;
    }

    .hero-split-text {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        mix-blend-mode: normal !important;
        /* Disable blend mode to fix color issues */
    }

    .hero-mobile-content {
        display: none;
    }

    .hero-half {
        width: 100%;
        height: 50%;
        padding: 2rem 5vw !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* TOP HALF (Black Background, White Text) */
    /* TOP HALF (Black Background, White Text) */
    .hero-half.left {
        justify-content: flex-end !important;
        padding-bottom: 0 !important;
        /* Removed padding to hit the line */
        color: #fff;
    }

    /* REORDER Top Half: Desc, then Label, then Title (at bottom) */
    /* TOP HALF: Desc -> Label -> Title */
    /* TOP HALF: Desc -> Label -> Title */
    .hero-half.left .hero-desc {
        order: 1;
        margin-bottom: 0.5rem;
        /* Gap to label */
        color: #ccc;
        line-height: 1.2;
    }

    .hero-half.left .hero-top-label {
        order: 2;
        color: #fff;
        margin-bottom: 0.1rem;
        /* Gap to title */
        font-weight: 700;
        line-height: 1;
    }

    .hero-half.left .title-xl {
        order: 3;
        color: #fff;
        margin-bottom: -0.5rem;
        /* Optical fix for font baseline */
        line-height: 0.8;
    }





    /* BOTTOM HALF (White Background, Black Text) */
    .hero-half.right {
        justify-content: flex-start !important;
        padding-top: 0 !important;
        /* Removed padding to hit the line */
        color: #0b0b0c;
        /* Black text */
    }

    /* REORDER Bottom Half: Title First, then Label, then Desc */
    /* BOTTOM HALF: Title -> Label -> Desc */
    /* BOTTOM HALF: Title -> Label -> Desc */
    .hero-half.right .title-xl {
        order: 1;
        color: #0b0b0c;
        margin-top: -0.5rem;
        /* Optical fix for font ascender */
        margin-bottom: 0.1rem;
        /* Gap to label */
        line-height: 0.8;
    }

    .hero-half.right .hero-top-label {
        order: 2;
        color: #000;
        margin-bottom: 0.5rem;
        /* Gap to desc */
        font-weight: 700;
        line-height: 1;
    }

    .hero-half.right .hero-desc {
        order: 3;
        color: #444;
        margin-top: 0;
        line-height: 1.2;
    }





    /* Hide the Ampersand on mobile as labels are separated */
    .center-amp {
        display: none;
    }

    /* Adjust Labels */
    .hero-top-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-half {
        width: 100%;
        height: 50%;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-half.left {
        justify-content: flex-end !important;
        padding-bottom: 2rem !important;
    }

    .hero-half.right {
        justify-content: flex-start !important;
        padding-top: 2rem !important;
    }

    .hero-top-label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    /* Adjust Ampersand for vertical layout */
    .center-amp {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -1.5rem;
        /* Position between the two blocks */
        transform: translateX(-50%);
        font-size: 1.5rem;
        color: #fff;
        /* Ensure visibility against gradient middle */
        z-index: 20;
    }

    .hero {
        background: linear-gradient(180deg, #0b0b0c 50%, #f6f6f4 50%);
        /* Vertical split: Black Top, White Bottom */
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-item {
        aspect-ratio: auto;
        min-height: 250px;
    }

    .overlay-menu a {
        font-size: 2.5rem;
    }

    .hero {
        /* On mobile, standard dark hero usually looks better than tiny split, but let's keep the split spirit */
        background: linear-gradient(180deg, #0b0b0c 50%, #f6f6f4 50%);
    }
}

/* --- NEW CONTACT SECTION STYLES --- */
.contact-section {
    padding: 10vh 0;
    background-color: #f4f4f4;
    /* Light gray background */
    color: #111;
    /* Dark text */
    border-top: 1px solid #ddd;
    font-family: 'Manrope', sans-serif;
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: left !important;
    /* Force left alignment */
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 600 !important;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: #111;
    /* Dark title */
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: left !important;
}

.contact-desc {
    margin-bottom: 2rem;
    color: #444;
    /* Dark gray desc */
    line-height: 1.6;
    font-size: 1rem;
    text-align: left !important;
}

.contact-address {
    margin-bottom: 3rem;
    color: #444;
    /* Dark gray address */
    line-height: 1.6;
    font-size: 1rem;
}

.contact-address strong {
    color: #111;
    /* Dark strong text */
    font-weight: 600;
}

.contact-socials {
    display: flex;
    gap: 25px;
    align-items: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background-color: transparent;
    color: #000;
    /* Black icon default */
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    border-radius: 0;
    padding: 0;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-btn:hover {
    background-color: transparent;
    transform: scale(1.2);
    /* Grossissement */
    box-shadow: none;
}

/* BRAND HOVER COLORS */
.social-btn[title="Facebook"]:hover {
    color: #1877F2;
}

.social-btn[title="Instagram"]:hover {
    color: #E1306C;
}

.social-btn[title="Youtube"]:hover {
    color: #FF0000;
}

/* FORM STYLING */
.contact-form-container {
    flex: 1;
    min-width: 320px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 1.5rem;
}

.form-row label {
    font-size: 0.95rem;
    color: #333;
    /* Darker label */
    text-align: left;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    /* Subtle border for visibility on light bg */
    color: #000;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-bottom 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
    box-shadow: inset 2px 0 0 var(--accent);
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit-row {
    display: flex;
    justify-content: flex-end;
    /* Button only now */
    align-items: center;
    margin-top: 1rem;
}

.contact-form button {
    background-color: #111;
    /* Dark button */
    color: #fff;
    /* White text */
    border: none;
    padding: 12px 35px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.contact-form button:hover {
    background-color: var(--accent);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-info,
    .contact-form-container {
        width: 100%;
        max-width: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .form-row label {
        margin-bottom: 0.2rem;
    }
}

/* VIDEO MODAL & ANIMATION */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1400px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Ensure no transform interferes initially */
    transform-origin: center center;
}

.video-modal-inner {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    overflow: hidden;
    /* Removed clip-path for FLIP animation */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-modal-inner video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-modal-close {
    align-self: flex-end;
    margin-bottom: 15px;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
    font-family: 'Manrope', sans-serif;
    transition: color 0.3s;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s 0.3s, transform 0.3s 0.3s, color 0.3s;
}

.video-modal.active .video-modal-close {
    opacity: 1;
    transform: translateY(0);
}

.video-modal-close:hover {
    color: var(--accent);
}