/* ================================
   RESET & BASE STYLES
   ================================ */

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

*::before,
*::after {
    box-sizing: border-box;
}

/* Performance optimization: contain expensive properties */
section {
    contain: layout style;
}

/* Exception: Allow sticky positioning in case studies with Tailwind */
section.client-case-studies {
    contain: none !important;
    overflow: visible !important;
    position: relative;
    isolation: isolate;
}

/* Ensure proper sticky behavior for the sidebar */
section.client-case-studies .sticky {
    position: -webkit-sticky;
    position: sticky;
    will-change: auto;
}

:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-accent: #E8E45C;
    --color-yellow: #E8E45C;
    --color-gray: #808080;
    --color-light-gray: #cccccc;
    --font-primary: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* Enhanced smooth scrolling */
    scroll-padding-top: 120px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* Ensure proper scroll container for sticky */
    position: relative;
    /* Prevent layout shifts during scroll */
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    /* Ensure sticky children can work properly */
    position: relative;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* ================================
   NAVIGATION
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Performance: prevent expensive repaints */
    will-change: transform;
    contain: layout style;
    /* Prevent subpixel rendering shifts */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--color-yellow);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    border-radius: 30px;
    color: #000000 !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.nav-cta:hover {
    background: #F5F28C;
    transform: translateY(-2px);
    color: #000000 !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition-smooth);
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    background: #000000;
}

.hero-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4rem;
}

.hero-content {
    width: 100%;
    max-width: 1800px;
    text-align: left;
    overflow-x: hidden;
}

.hero-title {
    font-size: clamp(6rem, 15vw, 18rem);
    font-weight: 900;
    line-height: 0.85;
    margin: 0;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.title-line {
    display: block;
    color: #ffffff;
}

/* ================================
   ALTERNATIVE STYLE OPTIONS FOR .title-creative
   Comment/uncomment sections to switch styles
   ================================ */

/* OPTION A: Shimmer + Pulse (Clean & Modern) - ACTIVE */
.title-creative {
    background: linear-gradient(
        110deg,
        #E8E45C 0%,
        #FFFF8D 30%,
        #FFFFFF 50%,
        #FFFF8D 70%,
        #E8E45C 100%
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    animation: 
        shimmer 3s linear infinite,
        pulseScale 2s ease-in-out infinite;
    display: inline-block;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(232, 228, 92, 0.6));
    will-change: transform, background-position;
}

/* OPTION B: Neon Flicker + Glow (Edgy) - UNCOMMENT TO USE
.title-creative {
    color: var(--color-yellow);
    font-style: italic;
    animation: neonFlicker 4s infinite;
    display: inline-block;
    position: relative;
    will-change: text-shadow;
}
*/

/* OPTION C: 3D Rotate (Dynamic) - UNCOMMENT TO USE
.title-creative {
    color: var(--color-yellow);
    font-style: italic;
    animation: rotate3D 4s ease-in-out infinite;
    display: inline-block;
    position: relative;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 20px rgba(232, 228, 92, 0.4));
    will-change: transform;
}
*/

/* OPTION D: Bounce + Color Shift (Playful) - UNCOMMENT TO USE
.title-creative {
    color: var(--color-yellow);
    font-style: italic;
    animation: 
        bounce 2s ease-in-out infinite,
        colorShift 3s ease-in-out infinite;
    display: inline-block;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(232, 228, 92, 0.4));
    will-change: transform, filter;
}
*/

/* ================================
   TAGLINE STYLE OPTIONS
   Comment/uncomment to switch styles
   ================================ */

/* OPTION 1: Typewriter Effect - COMMENTED OUT
.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin-top: 2rem;
    letter-spacing: 0.02em;
    max-width: 600px;
    overflow: hidden;
    border-right: 3px solid var(--color-yellow);
    white-space: nowrap;
    animation: 
        typewriter 2s steps(24) 1s both,
        blinkCaret 0.75s step-end infinite;
    display: inline-block;
}
*/

/* OPTION 2: Gradient Wave - UNCOMMENT TO USE
.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 800;
    margin-top: 2rem;
    letter-spacing: 0.05em;
    max-width: 600px;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #E8E45C 25%,
        #FFFF8D 50%,
        #E8E45C 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: 
        slideInBounce 1s ease 0.5s both,
        gradientWave 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(232, 228, 92, 0.3));
}
*/

/* OPTION 3: Glowing Emphasis - UNCOMMENT TO USE
.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    margin-top: 2rem;
    letter-spacing: 0.05em;
    max-width: 600px;
    animation: 
        slideInBounce 1s ease 0.5s both,
        glowEmphasis 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(232, 228, 92, 0.3),
        0 0 20px rgba(232, 228, 92, 0.2);
}
*/

/* OPTION 4: Letter Spacing Expand - ACTIVE */
.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin-top: 2rem;
    max-width: 600px;
    text-transform: uppercase;
    animation: 
        slideInBounce 1s ease 0.5s both,
        letterSpaceExpand 4s ease-in-out infinite;
    letter-spacing: 0.02em;
}

/* OPTION 5: Simple Elegant (Minimal Animation) - UNCOMMENT TO USE
.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--color-light-gray);
    margin-top: 2rem;
    letter-spacing: 0.03em;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.5s both;
    position: relative;
}

.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-yellow);
    animation: slideInLeft 1s ease 1s both;
}
*/

.hero-cta {
    margin-top: 3rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: var(--color-accent);
    color: #000000;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(232, 228, 92, 0.4);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    /* Performance: hint for transform animations */
    will-change: transform;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(232, 228, 92, 0.6);
    background: #F5F28C;
    color: #000000;
}


/* ================================
   ABOUT HAN SECTION
   ================================ */

.about-han {
    padding: 1rem 0 4rem;
    background: #000000;
    width: 100%;
    overflow-x: hidden;
}

.about-han-content {
    max-width: 1400px;
    margin: 0 auto;
}

.about-han-text {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: visible;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-light-gray);
    margin-bottom: 2rem;
}

.about-description strong {
    color: var(--color-yellow);
    font-weight: 700;
}

.instagram-link {
    color: var(--color-yellow);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.instagram-link:hover {
    color: #F5F28C;
    text-decoration: underline;
}

.tiktok-showcase {
    margin-top: 5rem;
}

.showcase-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-yellow);
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tiktok-embed-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tiktok-embed {
    width: 100%;
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    /* Performance: contain iframe content */
    contain: layout size style;
}

.video-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================
   CASE STUDIES SECTION
   ================================ */

.case-studies {
    padding: 8rem 0;
    background: #000000;
    color: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    gap: 2rem;
}

.section-nav {
    flex-shrink: 0;
}

.nav-arrow {
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.5rem 0;
    cursor: pointer;
}

.section-title-center {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--color-yellow);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-light-gray);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

.section-title-alt {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.3;
    max-width: 600px;
    flex: 1;
}

.cta-button-secondary {
    flex-shrink: 0;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: #000000;
    font-weight: 800;
    border-radius: 40px;
    transition: var(--transition-smooth);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.cta-button-secondary:hover {
    background: #F5F28C;
    transform: translateY(-2px);
    color: #000000;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.case-study-card {
    position: relative;
    cursor: pointer;
    contain: layout style;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-gray);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    /* Performance: hint for transform animations */
    will-change: transform;
}

.case-study-card:hover .video-thumbnail {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    z-index: 1;
}

.case-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: white;
    text-transform: capitalize;
}

.highlight-yellow {
    color: var(--color-yellow);
}

.label-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-yellow);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: var(--transition-smooth);
}

.case-study-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.case-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-left: 0.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--color-gray);
    font-weight: 500;
}

.clients-list {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 5rem;
    flex-wrap: wrap;
}

.client-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-light-gray);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.client-name.active {
    color: var(--color-yellow);
    opacity: 1;
}

.client-name:hover {
    opacity: 1;
    color: var(--color-yellow);
}

/* ================================
   METRICS SECTION
   ================================ */

.metrics {
    padding: 6rem 0;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    text-align: center;
}

.metric-card {
    padding: 2rem;
}

.metric-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.metric-description {
    font-size: 1.1rem;
    color: var(--color-light-gray);
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================
   CLIENT CASE STUDIES SECTION
   ================================ */

/* OLD CSS - Commented out to use Tailwind instead */
/*
.client-case-studies {
    padding: 4rem 0;
    background: #000000;
    color: #ffffff;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1;
    isolation: auto;
    contain: none;
}

.client-case-studies .container {
    overflow: visible;
}

.case-studies-layout {
    display: flex;
    gap: 4rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    overflow: visible;
    position: relative;
}

.client-tabs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
    width: 300px;
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
    padding: 1.5rem;
    margin-left: -1.5rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title-left {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    text-align: left;
    color: #ffffff;
}

.client-tabs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.client-tab {
    font-size: 2rem;
    font-weight: 400;
    text-align: left;
    padding: 0;
    background: none;
    border: none;
    color: #808080;
    opacity: 0.5;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease, font-weight 0.2s ease;
    font-family: inherit;
}

.client-tab:hover {
    opacity: 0.7;
    color: #a0a0a0;
}

.client-tab.active {
    font-weight: 700;
    color: var(--color-yellow);
    opacity: 1;
}

.client-videos-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    min-width: 0;
}

.client-videos {
    display: block;
    opacity: 1;
    min-height: auto;
    scroll-margin-top: 140px;
    scroll-snap-align: start;
    padding: 2rem 0;
}

.client-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-yellow);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.client-tiktok-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.client-total-views {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.views-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.views-label {
    display: block;
    font-size: 1.1rem;
    color: var(--color-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
*/

/* Horizontal Scroll for Case Studies - Enhanced */
.client-videos-container {
    position: relative;
    min-height: 600px;
}

.client-videos {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-videos.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transitions for scroll items - integrated below */

.horizontal-scroll-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.horizontal-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    /* Smooth hardware acceleration */
    transform: translateZ(0);
    will-change: scroll-position;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #F5F28C;
}

.scroll-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    /* Enhanced transitions */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-item:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Overall Stats */
.overall-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 1rem;
    color: var(--color-light-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ================================
   PROCESS SECTION
   ================================ */

.process-section {
    padding: 4rem 0;
    background: #000000;
    width: 100%;
    overflow-x: hidden;
}

.process-grid {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.1);
}

.process-grid::-webkit-scrollbar {
    height: 8px;
}

.process-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.process-grid::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}

.process-grid::-webkit-scrollbar-thumb:hover {
    background: #F5F28C;
}

.process-step {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: var(--transition-smooth);
    flex: 0 0 280px;
    scroll-snap-align: start;
    /* Performance: contain and hint for transforms */
    contain: layout style;
    will-change: transform;
}

.process-step:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-yellow);
}

.step-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-light-gray);
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact {
    padding: 0;
    background: var(--color-bg);
    text-align: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.contact-wrapper {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.contact-gradient-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(232, 228, 92, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.contact-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.contact-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(232, 228, 92, 0.1);
    border: 1px solid rgba(232, 228, 92, 0.3);
    border-radius: 50px;
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 228, 92, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(232, 228, 92, 0);
    }
}

.contact-content .section-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 0;
}

.contact-main-title {
    display: inline-block;
}

.contact-main-title .highlight-yellow {
    display: inline;
}

.contact-text {
    font-size: 1.5rem;
    color: var(--color-light-gray);
    margin-bottom: 0;
    max-width: 600px;
    line-height: 1.6;
}

.contact-content .cta-button,
.contact-cta-btn {
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    box-shadow: 0 15px 60px rgba(232, 228, 92, 0.5);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.contact-content .cta-button:hover,
.contact-cta-btn:hover {
    box-shadow: 0 20px 80px rgba(232, 228, 92, 0.7);
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-cta-btn:hover .btn-icon {
    transform: translateX(5px);
}

.contact-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(232, 228, 92, 0.2);
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 228, 92, 0.5) transparent;
}

.contact-stats::-webkit-scrollbar {
    height: 6px;
}

.contact-stats::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.contact-stats::-webkit-scrollbar-thumb {
    background: rgba(232, 228, 92, 0.5);
    border-radius: 3px;
}

.contact-stats::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 228, 92, 0.7);
}

/* Futuristic stat cards */
.stat-item-inline {
    position: relative;
}

.stat-card {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(232, 228, 92, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(232, 228, 92, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.6s ease forwards;
    min-width: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.5s;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 228, 92, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.stat-card:hover::before {
    left: 100%;
}

/* Subtle scanline effect */
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 3px
    );
    pointer-events: none;
    opacity: 0.3;
    border-radius: 16px;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(232, 228, 92, 0.6);
    background: linear-gradient(135deg, rgba(232, 228, 92, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    box-shadow: 
        0 15px 40px rgba(232, 228, 92, 0.2),
        0 0 60px rgba(232, 228, 92, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    z-index: 2;
}

.stat-icon {
    font-size: 2.25rem;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
    animation: none;
}

.stat-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(232, 228, 92, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    filter: blur(10px);
    animation: pulse-glow 2s ease-in-out infinite;
}

.stat-card:hover .stat-glow {
    opacity: 1;
    width: 60px;
    height: 60px;
}

.stat-text {
    font-size: 1rem;
    color: var(--color-light-gray);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    flex: 1;
}

.stat-card:hover .stat-text {
    color: #ffffff;
}

/* Futuristic animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes shimmer-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* ================================
   CONTACT FORM MODAL
   ================================ */

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    /* Performance: separate layer for modal */
    will-change: opacity;
}

.contact-modal.active {
    display: flex;
}

.contact-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.contact-modal .modal-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(232, 228, 92, 0.1);
}

.contact-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-modal .modal-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.modal-form-container {
    width: 100%;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-subtitle {
    font-size: 1.1rem;
    color: var(--color-light-gray);
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(232, 228, 92, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.textarea-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    display: block;
}

/* Service Options Styling */
.form-services-group {
    margin: 2rem 0 2.5rem;
}

.services-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.5rem;
}

.services-sublabel {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--color-light-gray);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.service-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.service-option.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000000;
    font-weight: 600;
}

.service-option.active:hover {
    background: #F5F28C;
    border-color: #F5F28C;
}

.service-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.service-text {
    line-height: 1;
}

.form-submit-btn {
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #F5F28C 100%);
    color: #000000;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 
        0 10px 40px rgba(232, 228, 92, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border: none;
    margin-top: 1rem;
    letter-spacing: 0.02em;
    text-transform: none;
    width: 100%;
}

.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 50px rgba(232, 228, 92, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #F5F28C 0%, var(--color-accent) 100%);
    color: #000000;
}

.form-submit-btn:active {
    transform: translateY(-1px);
}

.form-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6 !important;
    transform: none !important;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease;
}

.form-success h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-yellow);
}

.form-success p {
    font-size: 1.1rem;
    color: var(--color-light-gray);
    margin-bottom: 2rem;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: linear-gradient(to bottom, #000000 0%, #0a0a0a 100%);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-tagline {
    color: var(--color-light-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-light-gray);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000000;
    transform: translateY(-3px);
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list a {
    color: var(--color-light-gray);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-list a:hover {
    color: var(--color-yellow);
    transform: translateX(3px);
}

.footer-cta-link {
    color: var(--color-accent) !important;
    font-weight: 600 !important;
}

.footer-cta-link:hover {
    color: #F5F28C !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin: 0;
}

.footer-made-with {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* ================================
   VIDEO MODAL
   ================================ */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    /* Performance: separate layer for modal */
    will-change: opacity;
}

.video-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 3;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.modal-video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.modal-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
        max-width: 100%;
    }
    
    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .client-tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        transition: left 0.3s ease;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        white-space: normal;
    }
    
    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-studies-layout {
        flex-direction: column;
    }

    .client-tabs-wrapper {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .client-tabs {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .client-tab {
        font-size: 1.3rem;
    }
    
    .section-title-left {
        text-align: center;
    }

    .client-videos {
        min-height: auto;
    }

    .client-videos-container {
        gap: 4rem;
    }

    .client-tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .client-section-title {
        text-align: center;
    }
    
    /* Make sticky menu non-sticky on mobile for better UX */
    .client-case-studies .sticky {
        position: static !important;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 2rem;
    }
    
    .contact-header-row {
        flex-direction: column;
        text-align: center;
    }
    
    .contact {
        padding: 8rem 0;
    }
    
    .contact-content .section-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .contact-main-title {
        white-space: normal !important;
    }
    
    .contact-text {
        font-size: 1.2rem;
    }
    
    .contact-content .cta-button {
        padding: 1.25rem 3rem;
        font-size: 1.1rem;
    }

    .hero-container {
        padding: 0 2rem;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        text-align: center;
        padding: 0;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(3.5rem, 16vw, 8rem);
        line-height: 0.9;
        letter-spacing: -0.02em;
    }

    .hero-tagline {
        font-size: clamp(0.9rem, 4vw, 1.5rem);
        margin-top: 1.5rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        /* Typewriter effect adjustments for mobile */
        white-space: normal;
        border-right: none;
    }
    
    .hero-cta {
        display: inline-block;
    }

    .overall-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .metrics-grid {
        gap: 3rem;
    }

    .clients-list {
        gap: 1.5rem;
    }

    .client-name {
        font-size: 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-stats {
        gap: 1.5rem;
        padding-top: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        justify-content: flex-start;
    }
    
    .stat-card {
        padding: 1.25rem 1.5rem;
        min-width: 280px;
    }
    
    .stat-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
    
    .process-step {
        flex: 0 0 320px;
    }
}

/* Medium Mobile Breakpoint */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 14vw, 6rem);
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .tiktok-grid {
        grid-template-columns: 1fr;
    }
    
    .client-tiktok-grid {
        grid-template-columns: 1fr;
    }
    
    /* Horizontal scroll mobile adjustments */
    .scroll-item {
        flex: 0 0 240px;
    }
    
    .client-videos-container {
        min-height: 500px;
    }
    
    /* Ensure horizontal scroll wrapper is full width on mobile */
    .horizontal-scroll-wrapper {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .horizontal-scroll-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
        max-width: 100%;
        width: 100%;
    }

    .nav-container {
        padding: 1.25rem 1.25rem;
    }

    .hero-container {
        padding: 0 1rem;
        width: 100%;
    }
    
    .hero-content {
        text-align: center;
        padding: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 5rem);
        letter-spacing: -0.01em;
        word-break: keep-all;
        overflow-wrap: normal;
        width: 100%;
        text-align: center;
    }
    
    .title-line {
        display: block;
        width: 100%;
        text-align: center;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
        text-align: center;
        width: 100%;
        max-width: 90%;
        /* Disable typewriter on small mobile */
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease 0.5s both !important;
    }
    
    .hero-cta {
        margin-left: auto;
        margin-right: auto;
    }

    .about-han, .case-studies, .contact, .client-case-studies, .process-section {
        padding: 4rem 0;
    }

    .metrics {
        padding: 3rem 0;
    }
    
    .about-han-text {
        text-align: center;
        padding: 0 1rem;
        width: 100%;
    }
    
    .section-title {
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .client-tiktok-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .client-tabs-wrapper {
        text-align: center;
        width: 100%;
    }
    
    .client-tabs {
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .client-tab {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .process-grid {
        gap: 1.5rem;
        padding: 0 1rem 2rem 1rem;
    }
    
    .process-step {
        flex: 0 0 280px;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .step-title {
        text-align: center;
    }
    
    .step-description {
        text-align: center;
    }
    
    .contact-wrapper {
        padding: 5rem 0;
    }
    
    .contact-content {
        gap: 2rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .contact-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }
    
    .contact-text {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .contact-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 2rem;
    }
    
    .stat-item-inline {
        justify-content: center;
    }
    
    .contact-content .cta-button,
    .contact-cta-btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .case-metrics {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .contact-modal .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }

    .form-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .form-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .contact-modal .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .service-options {
        gap: 0.5rem;
    }
    
    .service-option {
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
        flex: 0 1 auto;
    }
    
    .service-icon {
        font-size: 1rem;
    }

    .client-showcase {
        margin-bottom: 3rem;
    }
    
    .showcase-title {
        text-align: center;
        padding: 0 1rem;
    }
    
    .section-title-center {
        text-align: center;
        padding: 0 1rem;
    }
    
    .section-subtitle {
        text-align: center;
        padding: 0 1rem;
    }
    
    .about-description {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .video-stats {
        text-align: center;
    }
    
    .client-section-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .client-total-views {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    /* Center stats section on mobile */
    .client-videos .text-center {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .client-videos .text-center span {
        text-align: center;
        display: block;
        width: 100%;
    }
    
    /* Adjust stats text size on mobile */
    .client-videos .text-center .text-5xl {
        font-size: 3rem;
    }
    
    .client-videos .text-center .text-lg {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .cta-button {
        white-space: nowrap;
    }
}

/* ================================
   TAILWIND CUSTOM STYLES
   ================================ */

/* Active state for case studies tabs with Tailwind - Enhanced */
.client-tab {
    position: relative;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                font-weight 0.3s ease;
    cursor: pointer;
}

.client-tab::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #E8E45C;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-tab:hover {
    transform: translateX(5px);
}

.client-tab.active {
    font-weight: 700 !important;
    color: #E8E45C !important;
    opacity: 1 !important;
    transform: translateX(8px);
}

.client-tab.active::after {
    width: 60px;
}

/* Premium Loading State Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Loading skeleton for premium transitions */
.client-videos.loading {
    pointer-events: none;
}

.client-videos h3 {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.client-videos .text-center {
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Smooth focus states for accessibility */
.client-tab:focus-visible {
    outline: 2px solid #E8E45C;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Premium button states during transitions */
.client-tab:active {
    transform: translateX(6px) scale(0.98);
}

.client-tab.transitioning {
    pointer-events: none;
    opacity: 0.7;
}

/* Enhanced sticky menu positioning for case studies */
.client-case-studies .max-w-\\[1400px\\] {
    overflow: visible !important;
}

.client-case-studies .grid {
    overflow: visible !important;
    position: relative;
}

/* Ensure the sticky sidebar doesn't jump or move */
.client-case-studies .sticky {
    top: 120px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 50;
    /* Prevent subpixel rendering issues */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Smooth scrolling for the sidebar */
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 228, 92, 0.5) transparent;
}

.client-case-studies .sticky::-webkit-scrollbar {
    width: 6px;
}

.client-case-studies .sticky::-webkit-scrollbar-track {
    background: transparent;
}

.client-case-studies .sticky::-webkit-scrollbar-thumb {
    background: rgba(232, 228, 92, 0.5);
    border-radius: 3px;
}

.client-case-studies .sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 228, 92, 0.7);
}

