/* --- Design System & Variables --- */
:root {
    /* Color Palette - High Contrast Minimal (from Style Guide) */
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --bg-card-hover: #111111;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent: #ffffff;
    --nav-bg: rgba(10, 10, 12, 0.9);
    
    /* Typography */
    --font-main: 'Josefin Sans', sans-serif;
    --font-header: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

/* User Logo */
.site-logo {
    height: 45px; /* Adjust size as needed */
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover:not(.btn-primary) {
    color: var(--text-secondary);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it stays above the sliding nav */
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary) !important;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darkened overlay from 0.6 to 0.75 for better text stand-out */
    background: rgba(0, 0, 0, 0.75); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    animation: fadeUp 1s ease forwards;
}

.hero-logo {
    max-width: 90%;
    max-height: 180px;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #ffffff; /* Explicitly set to white for contrast */
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.8); /* Strong shadow for readability over moving video */
}

/* Ambient Background Glows - Removed for Minimalist Look */
.glow-orb {
    display: none;
}

/* --- Meet the Director / About Section --- */
.about-director {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
}

.director-portrait {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    /* Desaturate heavily and boost contrast for a moody corporate vibe */
    filter: grayscale(90%) contrast(120%) brightness(90%);
    transition: filter 0.5s ease;
}

.about-image-wrapper:hover .director-portrait {
    filter: grayscale(40%) contrast(110%) brightness(100%);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-header);
    color: var(--text-primary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-top: 5px;
}

.director-name {
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.director-bio {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.director-bio strong {
    color: var(--text-primary);
}

/* --- Portfolio Section --- */
.portfolio {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    background: var(--bg-card);
}

.video-container:hover {
    transform: translateY(-5px);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Trusted By Section --- */
.trusted-by {
    padding: 3rem 2rem;
    background: var(--bg-card); /* Slightly different background to separate from pure black */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.logo-marquee {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    /* Soft fade edges so logos smoothly appear/disappear */
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 1rem 0; /* Add padding so scaled logos aren't cut off by container bounds */
    width: max-content;
    animation: scrollLogos 20s linear infinite;
}

.client-logo {
    height: 70px; /* Adjust as needed */
    width: auto;
    object-fit: contain;
    /* Clean look: Grayscale and semi-transparent, full color on hover */
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
    mix-blend-mode: screen; /* Useful if uploading logos with solid black backgrounds */
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2rem)); } /* -50% of track + half the gap */
}

/* --- Services Section --- */
.services {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-header);
    margin-bottom: 4rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: var(--text-secondary);
    font-weight: 300;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: default;
}

.speech-bubble {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.testimonial-card.reveal:hover .speech-bubble {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 40px;
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    transition: background 0.3s ease;
    z-index: 0;
}

.testimonial-card.reveal:hover .speech-bubble::after {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    font-family: var(--font-header);
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    user-select: none;
    z-index: -1;
}

.testimonial-card .stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.verified-icon {
    background: #555;
    color: var(--bg-card);
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 8px;
    font-weight: bold;
}

.testimonial-card .review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.source-logo {
    position: absolute;
    bottom: 25px;
    right: 25px;
    opacity: 0.8;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
    margin-top: 5px;
    transition: transform 0.3s ease;
}

.testimonial-card.reveal:hover .author-info {
    transform: translateY(-5px);
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.testimonial-card .client-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* --- Our Process Section --- */
.process {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
}

.process-step {
    background: transparent;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-header);
    color: rgba(255, 255, 255, 0.05); /* Extremely subtle number in the background */
    position: absolute;
    top: -20px;
    left: 0;
    z-index: -1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.process-step:hover .step-number {
    color: rgba(255, 255, 255, 0.15); /* Brightens slightly on hover */
    transform: translateY(-5px);
}

.process-step h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--text-primary);
    display: inline-block;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent);
}

/* Form Styling */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.required {
    color: #ff4757;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Make dropdown options dark to match theme */
select {
    appearance: none;
    cursor: pointer;
}
select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* --- Footer --- */
footer {
    padding: 6rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, transparent 0%, rgba(79, 70, 229, 0.05) 100%);
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.copyright {
    margin-top: 6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

/* Simple Reveal Animation Class (Triggered via JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.2rem 2rem;
    }
    
    /* Reveal the Hamburger Icon */
    .menu-toggle {
        display: block;
    }

    /* Transform the Hamburger into an X when active */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Slide-in Mobile Menu */
    .nav-links {
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 0;
        right: -100%;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        gap: 2.5rem;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Specific Adjustments for smaller screens */
    .process-grid {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}
