/* ======== ROOT VARIABLES (Color Palette & Fonts) ======== */
:root {
    --primary-color: #301934; /* Deep, premium purple */
    --accent-color: #FFC107;  /* Vibrant gold/amber */
    --dark-color: #1a1a1a;
    --light-color: #F8F9FA;
    --text-color: #333;
    --text-light: #EFEFEF;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1140px;
    --border-radius: 8px;
    --section-padding: 100px 0;
}

/* ======== GLOBAL RESETS & STYLING ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #FFFFFF;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
}

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

.content-section {
    padding: var(--section-padding);
    overflow-x: hidden; /* For animations */
}
.content-section:nth-child(even) {
    background-color: var(--light-color);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }

.section-tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: -10px auto 40px auto;
}

.split-container {
    display: flex;
    gap: 40px;
    align-items: center;
}
.split-content, .split-form {
    flex: 1;
}
.split-image {
    flex: 1;
}
.split-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ======== 1. Header & Navigation ======== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ======== 1. Hero Section ======== */
.hero-section {
    background-color: var(--primary-color);
    color: var(--light-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px; /* Offset for navbar */
}

.hero-headline {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--light-color);
    line-height: 1.1;
}

.hero-subheadline {
    font-size: 1.3rem;
    font-weight: 300;
    margin: 20px 0 30px 0;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: #fff;
}

/* ======== 2. About Us Section ======== */
.parent-company-note {
    margin-top: 20px;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}
.parent-company-note strong {
    color: var(--primary-color);
}

/* ======== 3. Services Section ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ======== 4. Work Section (9:16) ======== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 300px; /* Base row height */
    grid-auto-flow: dense;
    gap: 20px;
}

.work-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: scale(1.03);
}

.work-item.aspect-9-16 {
    /* Spans more vertically */
    grid-row: span 2;
}

.work-item.aspect-16-9 {
    /* Spans more horizontally */
    grid-column: span 2;
}

.work-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(48, 25, 52, 0.5); /* Primary color overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay i {
    font-size: 3rem;
    color: var(--accent-color);
}

/* ======== 5. Clients Section ======== */
.client-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.client-logo-grid img {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ======== 6. Contact Section ======== */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--primary-color);
    color: var(--light-color);
}
.contact-section .section-title,
.contact-section p {
    color: var(--light-color);
}
.contact-section .section-tagline {
    color: var(--accent-color);
}

.contact-details {
    margin-top: 30px;
}
.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.contact-details i {
    color: var(--accent-color);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #5a3a5f; /* Darker border */
    border-radius: var(--border-radius);
    background-color: #402244; /* Slightly lighter purple */
    color: var(--light-color);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ======== Footer ======== */
.main-footer {
    background-color: var(--dark-color);
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}
.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-footer p {
    margin: 0;
    font-size: 0.9rem;
}
.main-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* ======== Video Modal ======== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    /* This will automatically size the 9:16 video correctly */
    width: auto; 
    height: 85vh; /* 85% of viewport height */
}

/* If the video is 16:9, it should be limited by width */
.modal-content video[data-aspect="16:9"] {
    width: 85vw;
    height: auto;
}

/* If the video is 9:16, it should be limited by height */
.modal-content video[data-aspect="9:16"] {
    height: 85vh;
    width: auto;
}

.modal-close {
    position: absolute;
    top: -30px;
    right: 0;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

/* ======== Animations ======== */
/* -- On Load Animations -- */
.animate-on-load {
    animation: fadeInDown 1s ease-out 0.2s both;
}
.animate-on-load-2 {
    animation: fadeInDown 1s ease-out 0.4s both;
}
.animate-on-load-3 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* -- On Scroll Animations -- */
.animate-on-scroll,
.animate-on-scroll-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible,
.animate-on-scroll-delay.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll-delay.is-visible {
    transition-delay: 0.2s;
}

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


/* ======== Responsive Design ======== */
@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
    }
    .split-image {
        margin-top: 30px;
    }
    .work-item.aspect-16-9 {
        grid-column: span 1; /* Stack wider videos */
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .nav-menu {
        display: none; /* Add mobile menu toggle logic later */
    }
    .main-footer .container {
        flex-direction: column;
        gap: 10px;
    }
    .modal-content {
        width: 90vw;
        height: auto;
    }
}