:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #6a1b9a;
    /* Deep Purple */
    --accent-light: #9c27b0;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #ffffff;
    --bg-gray: #f9f9f9;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    /* Sharp or slightly rounded */
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #222;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-dark {
    background-color: #000;
    color: #fff;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--accent-color);
}

.header-btn {
    padding: 10px 25px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
}

/* Hero Section */
.hero {
    padding-top: 200px;
    /* Account for fixed header */
    padding-bottom: 80px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
}

.hero-form input {
    padding: 12px 20px;
    border: 1px solid #ddd;
    width: 300px;
    font-family: inherit;
}

.hero-visual {
    width: 100%;
    height: 500px;
    background-color: #000;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Services Section */
.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.service-image-wrapper {
    flex: 1;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-image-wrapper:hover .service-img {
    transform: scale(1.05);
}

/* Clients */
/* Clients Marquee */
.clients {
    overflow: hidden;
    /* Prevent horizontal scrollbar on body if internal elements overflow */
}

.logos {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
}

.logos:before,
.logos:after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.logos:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logos:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logos-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.logos-slide .client-logo {
    display: inline-block;
    margin: 0 40px;
    vertical-align: middle;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.client-logo {
    font-weight: 700;
    font-size: 24px;
    color: #333;
    font-family: serif;
    transition: var(--transition);
}

.client-logo img {
    max-width: 180px;
    max-height: 60px;
    object-fit: contain;
    /* Removed filters to ensure full brightness */
    opacity: 1;
    transition: var(--transition);
}

.client-logo img.dspazio-logo {
    max-width: 350px;
    max-height: 150px;
}

.client-logo:hover {
    color: #000;
}

/* Stats */
.stats {
    background-color: var(--bg-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background-color: #fff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-text {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.contact-link,
.contact-value {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
}

.contact-link:hover {
    color: var(--accent-light);
}

/* Main Contact Form */
.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--bg-gray);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
}

.main-contact-form input,
.main-contact-form select,
.main-contact-form textarea {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    background-color: #fff;
    transition: var(--transition);
}

.main-contact-form input:focus,
.main-contact-form select:focus,
.main-contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.footer {
    padding: 30px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* Pricing Buttons */
.pricing-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pricing-btn {
    flex-grow: 0;
    width: auto;
    /* Removed min-width to allow better fitting, or keep small if preferred */
    min-width: 80px;
    padding: 10px 15px;
    /* Clean padding */
    background-color: #fff;
    border: 1px solid #ddd;
    /* Softer border */
    border-radius: 4px;
    /* Slightly rounded corners */
    color: #555;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.pricing-btn:hover {
    border-color: #000;
    color: #000;
}

.pricing-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
    /* Removed underline */
}

.footer-bottom {
    font-size: 13px;
    color: #888;
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .logo img {
        height: 65px !important;
        width: auto !important;
    }

    .nav {
        position: fixed;
        top: 60px;
        /* Adjusted top to match smaller header/logo */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        display: none;
        flex-direction: column;
        transform: none;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-btn {
        display: none;
    }

    /* Force show mute button on mobile */
    #mute-btn.header-btn {
        display: block !important;
        margin-right: 15px !important;
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        padding: 5px 10px !important;
        min-width: 40px !important;
        font-size: 16px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-form {
        flex-direction: column;
        align-items: center;
    }

    .hero-form input {
        width: 100%;
        max-width: 300px;
    }

    .service-row {
        flex-direction: column !important;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details {
        align-items: center;
        text-align: center;
    }
}

/* --- Page Specific Styles --- */

/* Brand Videos Section */
/* Brand Videos Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.video-item {
    text-align: center;
    margin-bottom: 40px;
}

.video-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #000;
    margin-bottom: 15px;
}

.vertical-video {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 9/16;
}

.horizontal-video {
    aspect-ratio: 16/9;
}

.brand-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .campaigns-split {
        flex-direction: column;
        gap: 60px;
    }
}

/* Welcome Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #000;
}

.popup-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    display: inline-block;
}

.popup-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.popup-body p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.popup-btn {
    width: 100%;
    justify-content: center;
}

/* Common Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background-color: var(--bg-gray);
}

.page-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.page-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}


/* Error Popup */
.error-popup .popup-content {
    border-top: 5px solid #ff4d4d;
}

.error-popup .popup-btn button {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
}

.error-popup .popup-btn button:hover {
    background-color: #cc0000;
}

/* Success Popup */
.success-popup .popup-content {
    border-top: 5px solid #4CAF50;
}

.success-popup .popup-btn button {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.success-popup .popup-btn button:hover {
    background-color: #388E3C;
}

.case-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.case-img {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.case-content {
    padding: 30px;
}

.case-cat {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.case-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.case-stat {
    font-size: 14px;
    color: var(--text-light);
}

/* Careers */
.job-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-info h3 {
    margin-bottom: 10px;
}

.job-meta {
    color: var(--text-light);
    font-size: 14px;
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.blog-img {
    height: 200px;
    background-color: #eee;
}

.blog-content {
    padding: 25px;
}

.blog-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.read-link {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 14px;
}

/* Contact */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* Reels Marquee */
.reels-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.reels-track {
    display: flex;
    width: max-content;
    animation: reels-slide 30s linear infinite;
}

.reels-track:hover {
    animation-play-state: paused;
}

.reel-item {
    width: 280px;
    flex-shrink: 0;
    text-align: center;
    margin-right: 30px;
}

.reel-item .video-wrapper {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@keyframes reels-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-25%);
    }
}

.commercial-item {
    width: 450px;
    /* Wider for 16:9 videos */
    flex-shrink: 0;
    text-align: center;
    margin-right: 30px;
}

.commercial-item .video-wrapper {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {

    .logos:before,
    .logos:after {
        width: 50px;
    }
}

/* Success Popup Specifics */
.success-popup-content {
    text-align: center;
    max-width: 400px;
}

.success-icon {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* 404 Page Styles */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.error-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out forwards;
}

.error-code {
    font-size: 15rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-color);
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.error-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 8rem;
    }

    .error-title {
        font-size: 2rem;
    }
}