/* ============================================
   MATERIAL SYMBOLS ICONS
   ============================================ */

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    /* Colors - Light Theme */
    --color-bg: #ffffff;
    --color-surface: #fafafa;
    --color-surface-elevated: #ffffff;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-tertiary: #999999;
    --color-border: #e5e5e5;
    --color-accent: #007AFF;
    --color-accent-hover: #0051D5;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    --header-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Grain texture */
    --grain-opacity: 0.03;
}

[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-elevated: #1a1a1a;
    --color-text: #e5e5e5;
    --color-text-secondary: #999999;
    --color-text-tertiary: #666666;
    --color-border: #2a2a2a;
    --color-accent: #007AFF;
    --color-accent-hover: #409CFF;
    --grain-opacity: 0.05;
}

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

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

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

/* Prevent the layout from compressing below the mobile baseline width */
html,
body {
    min-width: 375px;
}

/* If viewport is narrower than 375px, allow horizontal scroll instead of clipping */
@media (max-width: 374px) {
    body {
        overflow-x: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity);
    pointer-events: none;
    z-index: 9999;
}

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

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

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

ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color var(--transition-base);
}

[data-theme="dark"] .header {
    background-color: rgba(10, 10, 10, 0.8);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav__logo {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.nav__menu {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-text);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.theme-toggle .material-symbols-outlined {
    font-size: 20px;
}

/* Mobile nav (hamburger) - injected via JS, hidden on desktop */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__hamburger {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav__hamburger:hover {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.nav__hamburger .material-symbols-outlined {
    font-size: 22px;
}

.nav__mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);

    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--transition-base), opacity var(--transition-base);
}

[data-theme="dark"] .nav__mobile {
    background-color: rgba(10, 10, 10, 0.92);
}

.nav__mobile.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
}

.nav__mobile-inner {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
}

.nav__mobile-menu {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    list-style: none;
    margin: 0;
}

.nav__mobile-menu .nav__link {
    display: inline-flex;
    padding: 10px 0;
}

.nav__mobile-menu .nav__link::after {
    bottom: -2px;
}

.ewarranty-admin-grid .case-gallery__image {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
}

@media (max-width: 768px) {
    .ewarranty-admin-grid .case-gallery__image {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

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

.hero {
    max-height: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero__gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.hero__gradient:nth-child(1) {
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.hero__gradient:nth-child(2) {
    bottom: -200px;
    right: -200px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-4xl) var(--container-padding);
}

.hero__title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero__metrics {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-3xl);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero__metric {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.hero__cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

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

/* ============================================
   ABOUT ME SECTION
   ============================================ */

.about-me {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.about-me__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.about-me__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
}

.about-me__text {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.about-me__text p {
    margin-bottom: var(--spacing-lg);
}

.about-me__text p:last-child {
    margin-bottom: 0;
}

.about-me__cta {
    margin-top: var(--spacing-md);
}

.about-me__image {
    width: 100%;
    height: auto;
}

.about-me__image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-me {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-me__image {
        order: -1;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 999px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background-color: var(--color-surface-elevated);
    border-color: var(--color-accent);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--spacing-5xl) 0;
    position: relative;
}

.section__header {
    margin-bottom: var(--spacing-4xl);
    text-align: center;
}

.section__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   LET'S WORK TOGETHER (BACKGROUND ANIMATION)
   ============================================ */

.lets-work-together {
    overflow: hidden;
    padding-top: calc(var(--spacing-5xl) + 50px);
    padding-bottom: calc(var(--spacing-5xl) + 50px);
}

.lets-work-together .container {
    position: relative;
    z-index: 1;
}

.lets-work-together__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .lets-work-together__bg {
    opacity: 0.75;
}

.lets-work-together__football-animation {
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    transform-origin: center;
}

.lets-work-together__animation-container {
    width: 100%;
    height: calc(100% - 100px);
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .lets-work-together__bg {
        display: none;
    }
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.card__header {
    margin-bottom: var(--spacing-md);
}

.card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.card__meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.card__content {
    flex: 1;
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.card__footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.case-detail img,
.case-detail video {
    border-radius: 0;
}

.bestdress-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bestdress-gallery__full {
    grid-column: 1 / -1;
}

.bestdress-gallery__media {
    display: flex;
    justify-content: flex-start;
}

.bestdress-gallery__media:last-of-type {
    justify-content: flex-end;
}

.bestdress-gallery__video {
    width: 386px;
    max-width: 100%;
    height: 687px;
    object-fit: contain;
    display: block;
}

.bestdress-gallery__image {
    width: 386px;
    max-width: 100%;
    height: 687px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .case-card--tall {
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    .bestdress-gallery {
        grid-template-columns: 1fr;
    }
    .bestdress-gallery__media {
        justify-content: center;
    }
    .bestdress-gallery__video,
    .bestdress-gallery__image {
        width: 300px;
        max-width: 100%;
        height: 534px;
    }
}

.case-card {
    position: relative;
    overflow: hidden;
}

/* Case cards: remove border + background (keep layout/content intact) */
.case-card.card {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.case-card.card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.case-card__image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-elevated) 100%);
    display: block;
}

.case-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.tag:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

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

.footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-5xl);
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* ============================================
   FEATURED CASES CAROUSEL
   ============================================ */

.featured-cases-section {
    position: relative;
}

.featured-cases {
    position: relative;
    margin: var(--spacing-4xl) 0;
}

.featured-cases__carousel {
    position: relative;
    overflow: hidden;
    padding: var(--spacing-md) 0;
    margin: 0;
}

.featured-cases__sliderline {
    display: flex;
    gap: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-cases__card {
    flex: 0 0 auto;
    width: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-cases__card-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    display: block;
}

.featured-cases__card-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.featured-cases__card-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    filter: brightness(1) contrast(1);
    will-change: transform;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
                filter 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-cases__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.featured-cases__card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: var(--line-height-tight);
}

.featured-cases__card-subtitle {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* Hover States */
@media (hover: hover) and (pointer: fine) {
    .featured-cases__card:hover .featured-cases__card-image {
        transform: scale(1.055);
        filter: brightness(1.04) contrast(1.03);
    }
    
    .featured-cases__card:hover .featured-cases__card-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States */
.featured-cases__card:focus-visible {
    outline: none;
}

.featured-cases__card:focus-visible .featured-cases__card-inner {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.featured-cases__card:focus-visible .featured-cases__card-image {
    transform: scale(1.055);
    filter: brightness(1.04) contrast(1.03);
}

.featured-cases__card:focus-visible .featured-cases__card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Active State */
.featured-cases__card:active .featured-cases__card-image {
    transform: scale(1.03);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .featured-cases__sliderline {
        transition: none;
    }
    
    .featured-cases__card-image,
    .featured-cases__card-inner,
    .featured-cases__card-overlay {
        transition: none;
    }
    
    .featured-cases__card:hover .featured-cases__card-image {
        transform: none;
        filter: none;
    }
    
    .featured-cases__card:hover .featured-cases__card-overlay {
        transform: none;
    }
}

/* Arrow Buttons */
.featured-cases__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .featured-cases__arrow {
    background-color: rgba(26, 26, 26, 0.9);
}

.featured-cases__arrow:hover:not(:disabled) {
    background-color: var(--color-surface);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.05);
}

.featured-cases__arrow:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.featured-cases__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.featured-cases__arrow--prev {
    left: calc(-1 * var(--container-padding) - 24px);
}

.featured-cases__arrow--next {
    right: calc(-1 * var(--container-padding) - 24px);
}

.featured-cases__arrow .material-symbols-outlined {
    font-size: 24px;
}

/* Pagination Dots */
.featured-cases__dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
    flex-wrap: wrap;
}

.featured-cases__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
    position: relative;
}

.featured-cases__dot:hover {
    background-color: var(--color-text-tertiary);
    transform: scale(1.2);
}

.featured-cases__dot--active {
    background-color: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .featured-cases__arrow--prev {
        left: -12px;
    }
    
    .featured-cases__arrow--next {
        right: -12px;
    }
}

@media (max-width: 768px) {
    .featured-cases__arrow {
        width: 40px;
        height: 40px;
    }
    
    .featured-cases__arrow .material-symbols-outlined {
        font-size: 20px;
    }
    
    .featured-cases__arrow--prev {
        left: -8px;
    }
    
    .featured-cases__arrow--next {
        right: -8px;
    }
}

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

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --container-padding: 1.5rem;
        --spacing-5xl: 4rem;
        --spacing-4xl: 3rem;
    }
    
    .nav__menu {
        gap: var(--spacing-md);
    }
    
    .hero__metrics {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --container-padding: 1rem;
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
    }
    
    .hero__subtitle {
        font-size: var(--font-size-base);
    }
}

/* Navbar breakpoint: < 468px */
@media (max-width: 467px) {
    .nav__menu {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .nav__mobile {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav__mobile {
        transition: none;
    }
}

/* ============================================
   RECOMMENDATIONS CAROUSEL
   ============================================ */

.recommendations-section {
    position: relative;
}

.recommendations-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--spacing-md) 0;
    margin: 0 calc(-1 * var(--container-padding));
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.recommendations-carousel::-webkit-scrollbar {
    display: none;
}

.recommendations-card {
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
}

.recommendations-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-2xl);
    flex-wrap: wrap;
}

.recommendations-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
    position: relative;
}

.recommendations-dot:hover {
    background-color: var(--color-text-tertiary);
    transform: scale(1.2);
}

.recommendations-dot--active {
    background-color: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}




/* ============================================
   WHAT I DO 
   ============================================ */

.what-i-do-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.what-i-do-grid > .card {
    flex: 1 1 calc((100% - (2 * var(--spacing-lg))) / 3);
    min-width: 280px;
}

@media (max-width: 1024px) {
    .what-i-do-grid > .card {
        flex-basis: calc((100% - var(--spacing-lg)) / 2);
    }
}

@media (max-width: 768px) {
    .what-i-do-grid > .card {
        flex-basis: 100%;
    }
}
/* ============================================
   BRANDS LOGO MARQUEE
   ============================================ */

.brands-section {
    position: relative;
}

.brands-section .section__subtitle {
    max-width: 58ch;
}

.brands-marquee {
    --brands-gap: 24px;
    --brands-logo-height: 88px;
    --brands-duration: 70s;

    position: relative;
    overflow: visible;

    margin: 0 calc(-1 * var(--container-padding));
    padding: var(--spacing-xl) var(--container-padding);

    background-color: var(--color-bg);

}

.brands-viewport {
    position: relative;
    overflow: hidden;
}

/* Fade MUST be anchored to the fixed viewport, not the moving track */
.brands-viewport::before,
.brands-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(24px, 6vw, 72px);
    pointer-events: none;
    z-index: 2;
}

.brands-viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg) 0%, rgba(0, 0, 0, 0) 100%);
}

.brands-viewport::after {
    right: 0;
    background: linear-gradient(270deg, var(--color-bg) 0%, rgba(0, 0, 0, 0) 100%);
}

.brands-track {
    display: flex;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: brands-marquee-scroll var(--brands-duration) linear infinite;
}

.brands-row {
    display: flex;
    align-items: center;
    gap: var(--brands-gap);
    padding-right: var(--brands-gap);
    flex: 0 0 auto;
}

.brands-logo {
    appearance: none;
    border: 1px solid var(--color-border);
    background: var(--color-surface-elevated);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    width: var(--brands-logo-height);
    height: var(--brands-logo-height);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: default;
    transition: border-color var(--transition-fast), outline-color var(--transition-fast);
}

.brands-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;

    opacity: 1;
    filter: none;
    transition: none;
}

.brands-logo:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-color: rgba(0, 0, 0, 0);
}

.brands-marquee:hover .brands-track,
.brands-marquee:focus-within .brands-track {
    animation-play-state: paused;
}

@keyframes brands-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-1 * var(--brands-loop-width, 50%)), 0, 0); }
}

@media (max-width: 768px) {
    .brands-marquee {
        --brands-gap: 24px;
        --brands-logo-height: 80px;
    }
}

@media (max-width: 480px) {
    .brands-marquee {
        --brands-gap: 24px;
        --brands-logo-height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brands-track {
        animation: none;
        transform: none;
    }

    .brands-viewport {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .brands-viewport::before,
    .brands-viewport::after {
        display: none;
    }
}


/* ============================================
   FULL-BLEED IMAGE
   ============================================ */

.full-bleed-image {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.full-bleed-image img {
    display: block;
    width: 100%;
    height: auto;
}
