/* ================================
   TRENDFARM - Premium Agency Website
   Dark, Modern, Award-Winning Aesthetic
   ================================ */

/* ================================
   CSS CUSTOM PROPERTIES
   ================================ */
:root {
    /* Brand Colors - Linear inspired deeper darks */
    --color-black: #000000;
    --color-bg: #08090a;
    --color-bg-alt: #0f1011;
    --color-bg-elevated: #141516;
    --color-white: #FFFFFF;
    --color-cream: #F9F6E4;
    --color-lime: #D8F646;
    --color-lime-glow: rgba(216, 246, 70, 0.15);
    --color-forest: #186147;
    --color-blush: #F2CFE2;

    /* Neutral Tones - More refined grays */
    --color-gray-100: #121314;
    --color-gray-200: #1a1b1d;
    --color-gray-300: #27292b;
    --color-gray-400: #5c5f63;
    --color-gray-500: #8b8f94;
    --color-gray-600: #b4b8bd;

    /* Typography - Inter for cleaner look */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
    --duration-slower: 1.2s;

    /* Layout */
    --container-max: 1400px;
    --header-height: 80px;
}

/* ================================
   RESET & BASE
   ================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-cream);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

body.nav-open {
    /* Menu is now a dropdown, no need to lock scroll */
}

::selection {
    background-color: var(--color-lime);
    color: var(--color-black);
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ================================
   CUSTOM CURSOR
   ================================ */
.cursor,
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:not(.touch) .cursor,
body:not(.touch) .cursor-follower {
    opacity: 1;
}

.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-lime);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-lime);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                background-color 0.3s ease,
                border-color 0.3s ease;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(216, 246, 70, 0.1);
}

/* ================================
   LOADER
   ================================ */
.loader {
    position: fixed;
    inset: 0;
    background-color: var(--color-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out-expo),
                visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-text img {
    height: clamp(12rem, 40vw, 24rem);
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: translateY(20px);
    animation: loaderReveal 0.8s var(--ease-out-expo) forwards 0.2s;
}

@keyframes loaderReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.large-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-cream);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn:hover .btn-icon {
    transform: translate(4px, -4px);
}

.btn-primary {
    background-color: var(--color-lime);
    color: var(--color-black);
    box-shadow: 0 0 20px var(--color-lime-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(216, 246, 70, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-gray-600);
    border: 1px solid var(--color-gray-300);
}

.btn-outline:hover {
    color: var(--color-white);
    border-color: var(--color-gray-400);
    background-color: var(--color-gray-200);
}

.btn-ghost {
    background: none;
    color: var(--color-gray-500);
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-gray-300);
}

.btn-ghost:hover {
    color: var(--color-white);
    border-color: var(--color-gray-500);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-lime);
    transition: gap var(--duration-normal) var(--ease-out-expo);
}

.link-arrow:hover {
    gap: var(--space-sm);
}

.link-arrow svg {
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.link-arrow:hover svg {
    transform: translate(4px, -4px);
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: background-color var(--duration-normal) ease,
                padding var(--duration-normal) ease;
}

.header.scrolled {
    background-color: rgba(8, 9, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 0.5rem 0;
}

.header.scrolled .logo-img {
    width: 40px;
    height: 40px;
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .nav {
        padding: 0 var(--space-lg);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-lime);
    transition: color var(--duration-normal) ease;
}

.logo:hover {
    color: var(--color-white);
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo .logo-wordmark {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    display: none;
}

@media (min-width: 480px) {
    .logo .logo-wordmark {
        display: block;
    }
}

.header.scrolled .logo .logo-wordmark {
    height: 40px;
}

/* Hamburger */
.nav-toggle {
    position: relative;
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    position: relative;
    width: 32px;
    height: 2px;
    background-color: var(--color-cream);
    transition: background-color var(--duration-normal) ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-cream);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    position: absolute;
    top: 100%;
    right: var(--space-md);
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: 12px;
    padding: var(--space-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--duration-normal) var(--ease-out-expo),
                transform var(--duration-normal) var(--ease-out-expo),
                visibility var(--duration-normal);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .nav-menu {
        right: var(--space-lg);
    }
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu-inner {
    text-align: left;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-links li {
    border-bottom: 1px solid var(--color-gray-200);
}

.nav-links li:last-child {
    border-bottom: none;
}

.nav-links a {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--color-cream);
    padding: 0.75rem 0;
    transition: color var(--duration-normal) ease,
                padding-left var(--duration-normal) ease;
}

.nav-menu.active .nav-links a {
    transform: none;
}

.nav-links a:hover {
    color: var(--color-lime);
    padding-left: 0.5rem;
}

.nav-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-200);
}

.nav-menu.active .nav-footer {
    opacity: 1;
    transform: none;
}

.nav-social {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-start;
}

.nav-social a {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-500);
    transition: color var(--duration-normal) ease;
}

.nav-social a:hover {
    color: var(--color-lime);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-md);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--color-lime-glow), transparent),
        radial-gradient(ellipse at 30% 20%, rgba(216, 246, 70, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(24, 97, 71, 0.03) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.hero-label .line {
    width: 60px;
    height: 1px;
    background-color: var(--color-lime);
}

.hero-label .text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-lime);
}

.hero-title {
    margin-bottom: var(--space-sm);
}

.hero-title .title-line {
    display: block;
    overflow: hidden;
}

.hero-title .title-line span {
    display: block;
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-wordmark {
    height: clamp(14rem, 50vw, 38rem);
    width: auto;
    display: block;
    margin-left: clamp(-2.5rem, -8vw, -6rem);
    margin-top: clamp(-12rem, -44vw, -34rem);
    margin-bottom: clamp(-8rem, -28vw, -22rem);
    /* Invert black to white */
    filter: brightness(0) invert(1);
    transition: filter var(--duration-normal) ease;
}

/* Mobile hero adjustments */
@media (max-width: 767px) {
    .hero-wordmark {
        height: 10rem;
        margin-left: -0.5rem;
        margin-top: -2rem;
        margin-bottom: -1rem;
    }

    .hero-title .title-line span {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
    }
}

.hero-wordmark:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255,255,255,0.3));
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-cream);
    max-width: 550px;
    margin-bottom: var(--space-md);
    line-height: 1.5;
    text-wrap: balance;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .hero-scroll {
        left: var(--space-lg);
    }
}

.hero-scroll span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gray-500);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--color-gray-400);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-lime);
    animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}


/* ================================
   SECTION COMMON STYLES
   ================================ */
section {
    padding: var(--space-md) 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--space-lg) 0;
    }
}

.section-header {
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: var(--space-md);
    }
}

.section-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-lime);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--color-lime);
}

/* ================================
   ABOUT SECTION
   ================================ */
.about {
    background-color: var(--color-bg);
}

.about-intro {
    max-width: 900px;
    margin-bottom: var(--space-md);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    position: relative;
    padding: var(--space-lg) var(--space-md);
    background-color: var(--color-cream);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--duration-normal) ease;
}

.value-card:hover {
    border-color: var(--color-gray-300);
    background-color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Icon silhouettes behind value cards */
.value-card::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    opacity: 0.04;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity var(--duration-normal) ease, transform var(--duration-normal) ease;
    pointer-events: none;
}

.value-card:hover::before {
    opacity: 0.08;
    transform: scale(1.1);
}

/* Heart icon - Passion & Connection */
.value-card:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D8F646'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

/* Lightbulb icon - Exceptional Creativity */
.value-card:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D8F646'%3E%3Cpath d='M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9v1zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7z'/%3E%3C/svg%3E");
}

/* Shield/checkmark icon - Agile & Dependable */
.value-card:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D8F646'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E");
}

/* Plant/seedling icon - Rooted in Trend */
.value-card:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D8F646'%3E%3Cpath d='M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l-.02-.19c.4.28.89.44 1.42.44 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.02-.19C14.5 4.12 13.38 3 12 3S9.5 4.12 9.5 5.5l.02.19c-.4-.28-.89-.44-1.42-.44-1.38 0-2.5 1.12-2.5 2.5 0 1 .59 1.85 1.43 2.25-.84.4-1.43 1.25-1.43 2.25zM12 5.5c1.38 0 2.5 1.12 2.5 2.5s-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8s1.12-2.5 2.5-2.5zM3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9z'/%3E%3C/svg%3E");
}

.value-number {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-forest);
    margin-bottom: var(--space-md);
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-black);
    margin-bottom: var(--space-sm);
}

.value-text {
    font-size: 1rem;
    color: var(--color-gray-400);
    line-height: 1.6;
}

/* Dark text for light value cards */
.value-card .value-text {
    color: #5c5f63;
}

.value-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-lime);
    transition: width var(--duration-slow) var(--ease-out-expo);
}

.value-card:hover .value-line {
    width: 100%;
}

/* ================================
   SERVICES/EXPERTISE SECTION
   ================================ */
.services {
    background-color: var(--color-bg);
}

.expertise-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .expertise-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

.expertise-card {
    background-color: #1a1a1a;
    border: 1px solid var(--color-gray-300);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.expertise-card:hover {
    border-color: var(--color-gray-400);
    background-color: #222222;
}

.expertise-card.active {
    border-color: var(--color-lime);
    box-shadow: 0 0 30px var(--color-lime-glow);
}

.expertise-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

.expertise-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.expertise-card:hover .expertise-card-visual img {
    transform: scale(1.05);
}

.expertise-card.active .expertise-card-visual img {
    transform: scale(1.08);
}

.expertise-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md) 0;
}

.expertise-card-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.expertise-card-toggle {
    display: none;
}


.expertise-card-details {
    max-height: none;
    overflow: visible;
    padding: 0 var(--space-md) var(--space-md);
}

.expertise-card-details ul {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-gray-300);
}

.expertise-card-details li {
    padding: var(--space-xs) 0;
    font-size: 1rem;
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.expertise-card-details li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-lime);
    flex-shrink: 0;
}

/* ================================
   WORK SECTION
   ================================ */
.work {
    background-color: var(--color-bg);
}

.work-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    background-color: transparent;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    transition: all var(--duration-normal) ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--color-black);
    background-color: var(--color-lime);
    border-color: var(--color-lime);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-card {
    position: relative;
    cursor: pointer;
}

.work-card-tall {
    grid-row: span 2;
}

.work-card-wide {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .work-card-wide {
        grid-column: span 2;
    }
}

.work-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
}

.work-card-tall .work-image {
    aspect-ratio: 4/5;
}

@media (min-width: 768px) {
    .work-card-tall .work-image {
        aspect-ratio: auto;
        height: 100%;
    }
}

.work-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gray-200) 0%, var(--color-gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.work-placeholder span {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-400);
}

.work-card:hover .work-placeholder {
    transform: scale(1.05);
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.work-card:hover .work-img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

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

.work-view {
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    background-color: var(--color-lime);
    border-radius: 8px;
    transform: translateY(20px);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.work-card:hover .work-view {
    transform: translateY(0);
}

.work-info {
    padding: var(--space-md) 0;
}

.work-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-lime);
    margin-bottom: var(--space-xs);
}

.work-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.work-desc {
    font-size: 1rem;
    color: var(--color-gray-500);
}

.work-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

/* ================================
   CLIENTS SECTION
   ================================ */
.clients {
    background-color: var(--color-bg-alt);
    overflow: hidden;
    padding-bottom: var(--space-sm);
}

.clients-intro {
    font-size: 1rem;
    color: var(--color-cream);
    max-width: 700px;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.clients-marquee {
    position: relative;
    padding: var(--space-md) 0;
    overflow: hidden;
}

.clients-marquee::before,
.clients-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 1;
}

.clients-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-alt), transparent);
}

.clients-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-alt), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-reverse .marquee-track {
    animation-direction: reverse;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    display: flex;
    align-items: center;
}

.client-logo {
    height: 75px !important;
    width: 210px !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 0.7;
    margin: 0 2.5rem;
    transition: opacity var(--duration-normal) ease;
    flex-shrink: 0;
}

/* Logos with excessive whitespace in source files - scale up to compensate */
.client-logo[alt="Ayana"] {
    height: 300px !important;
    width: 300px !important;
}

.client-logo[alt="SPCC"] {
    height: 180px !important;
    width: 420px !important;
}

.client-logo:hover {
    opacity: 1;
}

/* ================================
   TEAM SECTION
   ================================ */
.team {
    background-color: var(--color-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-member {
    text-align: center;
}

.team-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: var(--space-sm);
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

/* Individual team member image adjustments */
.team-member-xoli .team-image img {
    object-position: center 0% !important;
}

.team-member:has(img[alt="Alex Benny"]) .team-image img {
    object-position: center 50%;
}

.team-member:has(img[alt="Nokubonga Gasa"]) .team-image img {
    object-position: center 18%;
}

.team-member:has(img[alt="Emily Brown"]) .team-image img {
    object-position: center 20%;
}

.team-member:has(img[alt="Tayla Humphreys"]) .team-image img {
    object-position: center 8%;
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.875rem;
    color: var(--color-lime);
    font-weight: 500;
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact {
    background-color: var(--color-bg);
    padding: var(--space-lg) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 2fr 1fr;
        align-items: center;
    }
}

.contact-title {
    margin-bottom: var(--space-md);
    overflow: visible;
}

.contact-title .title-line {
    display: block;
    overflow: visible !important;
}

.contact-title .title-line span {
    display: inline-block;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    padding-bottom: 0.08em;
    color: var(--color-lime);
}

.contact-title .title-accent span {
    color: var(--color-lime);
}

.contact-text {
    font-size: 1rem;
    color: var(--color-cream);
    max-width: 500px;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-lime);
}

.contact-link {
    font-size: 1.125rem;
    color: var(--color-cream);
    transition: color var(--duration-normal) ease;
}

.contact-link:hover {
    color: var(--color-lime);
}

.contact-social {
    display: flex;
    gap: var(--space-md);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background-color: var(--color-black);
    padding: var(--space-lg) 0 var(--space-sm);
    border-top: 1px solid var(--color-gray-200);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        align-items: start;
    }
}

.footer-brand p {
    margin-top: var(--space-sm);
    font-size: 1rem;
    color: var(--color-gray-500);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    font-size: 1rem;
    color: var(--color-gray-500);
    transition: color var(--duration-normal) ease;
}

.footer-nav a:hover {
    color: var(--color-lime);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-end;
    }
}

.footer-social a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-500);
    transition: color var(--duration-normal) ease;
}

.footer-social a:hover {
    color: var(--color-lime);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.footer-credit {
    color: var(--color-gray-400);
}

/* ================================
   WORK SHOWCASE SECTIONS
   ================================ */
.work-showcase {
    background-color: var(--color-bg);
}

.work-showcase-alt {
    background-color: var(--color-bg-alt);
}

/* Header row - content + header image side by side */
.showcase-header-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: var(--space-md);
}

@media (min-width: 1024px) {
    .showcase-header-row {
        grid-template-columns: 1fr 0.67fr;
        gap: 24px;
        align-items: start;
    }
}

.showcase-header-row.reverse {
    direction: rtl;
}

.showcase-header-row.reverse > * {
    direction: ltr;
}

.showcase-header-row.reverse .showcase-content {
    text-align: right;
}

.showcase-header-row.reverse .section-number {
    margin-left: auto;
}

.showcase-header-row.reverse .showcase-cta {
    display: flex;
    justify-content: flex-end;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Gallery section */
.showcase-gallery {
    margin-top: var(--space-sm);
}

/* 7-image mosaic grid - forms a perfect rectangle */
.gallery-mosaic-7 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    aspect-ratio: 4 / 3;
}

.gallery-mosaic-7 .gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-mosaic-7 .gallery-item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.gallery-mosaic-7 .gallery-item:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.gallery-mosaic-7 .gallery-item:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

.gallery-mosaic-7 .gallery-item:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery-mosaic-7 .gallery-item:nth-child(6) {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

.gallery-mosaic-7 .gallery-item:nth-child(7) {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}

/* 5-image mosaic grid - forms a perfect rectangle */
.gallery-mosaic-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    aspect-ratio: 3 / 2;
}

.gallery-mosaic-5 .gallery-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-mosaic-5 .gallery-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-mosaic-5 .gallery-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.gallery-mosaic-5 .gallery-item:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.gallery-mosaic-5 .gallery-item:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Mobile mosaic layouts - single column full-width */
@media (max-width: 767px) {
    .gallery-mosaic-7,
    .gallery-mosaic-5 {
        display: flex;
        flex-direction: column;
        gap: 16px;
        aspect-ratio: auto;
    }

    .gallery-mosaic-7 .gallery-item,
    .gallery-mosaic-5 .gallery-item {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .gallery-mosaic-7 .gallery-item:nth-child(7) {
        display: block;
    }
}

/* Legacy layout support */
.showcase-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (min-width: 1024px) {
    .showcase-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .showcase-layout.reverse {
        direction: rtl;
    }

    .showcase-layout.reverse > * {
        direction: ltr;
    }

    .showcase-layout.reverse .showcase-content {
        text-align: right;
    }

    .showcase-layout.reverse .showcase-content .btn {
        margin-left: auto;
    }
}

.showcase-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
}

.showcase-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%);
    cursor: zoom-in;
    transition: transform var(--duration-slow) var(--ease-out-expo),
                filter var(--duration-normal) ease;
}

.showcase-image:hover img {
    filter: grayscale(0%);
}

.showcase-image:hover img {
    transform: scale(1.03);
}


.showcase-content .section-number {
    margin-bottom: var(--space-xs);
}

.showcase-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--color-lime);
    margin-bottom: var(--space-sm);
}

.showcase-title span {
    color: var(--color-lime);
}

.showcase-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-cream);
    margin-bottom: var(--space-md);
}

.showcase-cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.showcase-cta {
    margin-top: var(--space-sm);
}

.showcase-gallery {
    margin-top: var(--space-md);
}

.showcase-gallery-title {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-lime);
    margin-bottom: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid var(--color-gray-200);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-md);
    transition: opacity var(--duration-normal) ease;
}

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

.gallery-item-overlay span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    transform: translateY(10px);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.gallery-item:hover .gallery-item-overlay span {
    transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) ease,
                visibility var(--duration-normal);
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: background-color var(--duration-fast) ease,
                transform var(--duration-fast) ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background-color: var(--color-lime);
    color: var(--color-black);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: background-color var(--duration-fast) ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background-color: var(--color-lime);
    color: var(--color-black);
}

.lightbox-prev {
    left: var(--space-md);
}

.lightbox-next {
    right: var(--space-md);
}

.lightbox-counter {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-500);
    z-index: 10001;
}

/* ================================
   ANIMATIONS & REVEALS
   ================================ */
.reveal-text {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-up[data-delay="1"] { transition-delay: 0.1s; }
.reveal-up[data-delay="2"] { transition-delay: 0.2s; }
.reveal-up[data-delay="3"] { transition-delay: 0.3s; }

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 767px) {
    .cursor,
    .cursor-follower {
        display: none;
    }

    .hero-scroll {
        display: none;
    }
}

/* Touch device detection */
@media (hover: none) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}
