/* CSS Variables & tokens */
:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;

    --accent-blue: #0066FF;
    --accent-gradient: linear-gradient(90deg, #0066FF 0%, #00CCFF 100%);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --easing-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --easing-out: cubic-bezier(0.215, 0.61, 0.355, 1);

    --spacing-container: 6vw;
    --spacing-section: 120px;
    --border-light: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

h1,
h2,
h3 {
    font-family: var(--font-body);
    /* Default to clean sans, override for specific aesthetic */
    font-weight: 500;
}

.italic-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

.no-scroll {
    overflow: hidden;
}

/* WHY US SECTION */
.why-us-section {
    position: relative;
    padding-bottom: 5rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.case-study-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
    cursor: default;
}

.case-study-card:hover {
    transform: scale(1.1);
    border-color: var(--accent-blue);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.case-name {
    color: var(--accent-blue);
    /* Using Blue to match theme, was Red in ref */
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.case-stat {
    color: #fff;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
}

/* Responsive Grid for Case Studies */
@media (max-width: 900px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 500px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Utility Containers */
.container {
    padding: 0 var(--spacing-container);
    max-width: 1440px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary .arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.w-full {
    width: 100%;
    justify-content: center;
}

/* NAV SECTION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9), transparent);
    backdrop-filter: blur(5px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 0.9;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-line {
    width: 30px;
    height: 2px;
    background: #fff;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Offset for fixed nav */
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Creators Carousel */
.creators-section {
    margin-top: 5rem;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.creators-custom-title {
    font-size: 2.5rem;
    /* Slightly smaller for balance */
    margin-bottom: 2rem;
    line-height: 1.2;
}

.creators-carousel {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.creators-track {
    display: flex;
    align-items: center;
    gap: 8rem;
    width: max-content;
    animation: slideCarousel 25s linear infinite;
}

@keyframes slideCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.creators-carousel:hover .creators-track {
    animation-play-state: paused;
}

.creator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    opacity: 0.6;
    transform: scale(0.9);
    transition: all 0.4s ease-in-out;
}

.creator-item:hover {
    opacity: 1;
    transform: scale(1.2);
}

.creator-item:hover .creator-photo {
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.6), 0 0 60px rgba(0, 204, 255, 0.3);
}

.creator-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a8cff, #00ccff);
    border: 3px solid #00ccff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.creator-item:hover .creator-photo {
    width: 170px;
    height: 170px;
}

.creator-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.creator-item:hover .creator-name {
    font-size: 1.1rem;
}

.creator-subs {
    font-size: 0.75rem;
    color: #FFD700;
    font-weight: 500;
    transition: all 0.3s ease;
}

.creators-more {
    font-size: 1.5rem;
    color: #fff;
    font-style: italic;
    margin-top: 2rem;
}

/* SECTIONS */
section {
    padding: var(--spacing-section) 0;
}

.services-section {
    padding-top: 3rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-desc {
    max-width: 500px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* SERVICES */
/* SERVICES */
.services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 0 1 450px;
    /* Centered width */
    max-width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
}

.gradient-1 {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.gradient-2 {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* TEAM */
.team-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.team-section .section-header {
    margin-bottom: 0;
    flex: 1;
    text-align: left;
}

.team-section .section-title {
    font-size: 4.5rem;
    /* Larger text */
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .team-section .container {
        flex-direction: column;
        text-align: center;
    }

    .team-section .section-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .team-section .section-title {
        font-size: 2.5rem;
    }
}

.team-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
    width: 400px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* Blue Blurred Tints on Team Card */
.team-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.team-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.team-image {
    width: 100%;
    aspect-ratio: 1;
    /* Square */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #1a1a1a;
    position: relative;
    /* Context for overlay */
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
    position: relative;
    transition: transform 0.4s ease;
}

.avatar-placeholder::after {
    content: 'Photo';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #444;
}

/* Team Hover Effect */
.team-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.team-card:hover .team-social-overlay,
.team-card.active .team-social-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* SERVICE OVERLAYS */
.service-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050505;
    z-index: 2000;
    display: flex;
    /* Hidden by default via visibility/opacity usually, but we'll specific control display/opacity */
    flex-direction: column;
    overflow-y: auto;
    padding: 4rem 0;

    /* Animation Initial State */
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    /* Start from nothing/origin */
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    pointer-events: none;
}

.service-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.close-overlay {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-overlay:hover {
    background: var(--accent-blue);
}

.overlay-content {
    margin-top: 4rem;
}

.overlay-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.overlay-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Work Carousel (Replaces overlay-grid) */
.work-carousel {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.work-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: slideWork 20s linear infinite;
}

@keyframes slideWork {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.work-carousel:hover .work-track {
    animation-play-state: paused;
}

.work-item {
    width: 320px;
    height: 180px;
    /* 16:9 Aspect Ratio */
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-thumb,
.work-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111, #222);
    /* Placeholder gradient */
}

/* Hover / Active effect */
.work-item:hover {
    opacity: 1;
    transform: scale(1.15);
    z-index: 10;
    border-color: var(--accent-blue);
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.2);
}

.placeholder-thumb,
.placeholder-video {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    transition: transform 0.3s;
}

.placeholder-thumb:hover,
.placeholder-video:hover {
    transform: scale(1.05);
}

/* Icons Animation */
.team-social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover .team-social-icon,
.team-card.active .team-social-icon {
    transform: translateY(0);
    opacity: 1;
}

.team-card:hover .team-social-icon:nth-child(2),
.team-card.active .team-social-icon:nth-child(2) {
    transition-delay: 0.1s;
}

.team-social-icon:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: scale(1.1) translateY(0);
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-info .role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* FAQ */
.faq-list {
    border-top: 1px solid var(--border-light);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 2rem 0;
    text-align: left;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Approximate max height */
}

/* CONTACT */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    position: relative;
}

/* Blue Tint on Contact Section */
.contact-container::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: var(--accent-blue);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.contact-form {
    width: 100%;
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background: linear-gradient(to top, rgba(0, 102, 255, 0.05), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
    margin-bottom: 2rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    text-decoration: none;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #fff;
    color: #000;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #444;
    font-size: 0.9rem;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--easing-out), transform 1s var(--easing-out);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--easing-out), transform 0.8s var(--easing-out);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 13vw;
    }

    .clients-list {
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }
}