/* styles.css — Main site styles */
/* Obsidian Gallery — Dark Luxury Editorial */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors */
    --color-canvas: #0a0a0a;
    --color-surface: #111113;
    --color-text-primary: #e8e4df;
    --color-text-secondary: #6b6b6b;
    --color-accent: #c9a84c;
    --color-accent-frost: #d4cfc8;
    --color-overlay: rgba(0, 0, 0, 0.55);
    --color-nav-bg: rgba(10, 10, 10, 0.9);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing (8px base) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 128px;
    --space-section: 192px;

    /* Layout */
    --max-width: 1440px;
    --nav-height: 80px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-canvas);
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-canvas);
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
.section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background-color: var(--color-accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-md));
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 1000;
    pointer-events: none;
}

.scroll-progress__bar {
    height: 100%;
    width: 0%;
    background-color: var(--color-accent);
    transform-origin: left;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.cursor.visible {
    opacity: 1;
}

.cursor__dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-accent);
    opacity: 0.6;
    transform: scale(1);
    transition: transform var(--duration-fast) var(--ease-out);
}

.cursor.hovering .cursor__dot {
    transform: scale(1.5);
}

@media (pointer: coarse) {
    .cursor {
        display: none;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 100;
    transition: background-color var(--duration-normal) var(--ease-out),
                backdrop-filter var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
    background-color: var(--color-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav__container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-image {
    height: 200px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.nav__logo:hover .nav__logo-image {
    opacity: 0.85;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .nav__logo-image {
        height: 120px;
    }
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    gap: 6px;
}

.nav__toggle-line {
    width: 24px;
    height: 1px;
    background-color: var(--color-text-primary);
    transition: transform var(--duration-fast) var(--ease-out),
                opacity var(--duration-fast) var(--ease-out);
}

.nav__toggle.active .nav__toggle-line:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
    transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--duration-fast) var(--ease-out);
}

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-canvas);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-out),
                visibility var(--duration-normal) var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.mobile-menu.active .mobile-menu__link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu__link:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.05);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay);
}

.hero__content {
    text-align: center;
    padding: var(--space-md);
    opacity: 0;
    position: relative;
}

.hero__content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    opacity: 0.4;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(42px, 10vw, 100px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--space-sm);
    position: relative;
}

.hero__title-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-frost) 50%, var(--color-text-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.hero__separator {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 0 auto var(--space-md);
    transform: scaleX(0);
    transform-origin: center;
}

.hero__tagline {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.hero__scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
}

.hero__scroll-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ============================================
   FEATURED WORK SECTION
   ============================================ */
.featured-work {
    position: relative;
    padding: var(--space-section) 0;
    background-color: var(--color-canvas);
}

.featured-work__header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.featured-work__gallery {
    position: relative;
}

.featured-work__pinned {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-work__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-work__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.featured-work__slide.active {
    opacity: 1;
    transform: scale(1);
}

.featured-work__slide-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.featured-work__caption {
    position: absolute;
    bottom: var(--space-3xl);
    left: var(--space-xl);
    z-index: 10;
}

.featured-work__caption-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.featured-work__caption-category {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.featured-work__progress {
    position: absolute;
    bottom: var(--space-3xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.featured-work__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-text-secondary);
    opacity: 0.4;
    transition: opacity var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.featured-work__dot.active {
    opacity: 1;
    background-color: var(--color-accent);
}

/* Mobile Carousel */
.featured-work__carousel {
    display: none;
    flex-direction: column;
    gap: var(--space-xl);
    padding: 0 var(--space-md);
}

.featured-work__carousel-item {
    opacity: 0;
    transform: translateY(40px);
}

.featured-work__carousel-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    margin-bottom: var(--space-sm);
}

.featured-work__carousel-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
}

.featured-work__carousel-category {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .featured-work__pinned {
        display: none;
    }

    .featured-work__carousel {
        display: flex;
    }

    .featured-work__caption,
    .featured-work__progress {
        display: none;
    }

    .featured-work__header {
        padding: 0 var(--space-md);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--space-section) 0;
    background-color: var(--color-surface);
}

.about__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
    overflow: hidden;
}

.about__image-reveal {
    overflow: hidden;
}

.about__image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform var(--duration-slow) var(--ease-out);
}

.about__image-wrapper:hover .about__image {
    transform: scale(1);
}

.about__content {
    padding: var(--space-xl) 0;
}

.about__bio {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.about__stats {
    display: flex;
    gap: var(--space-2xl);
}

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

.about__stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.about__stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about__image {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .about__container {
        padding: 0 var(--space-md);
    }

    .about__stats {
        gap: var(--space-xl);
    }

    .about__stat-number {
        font-size: 40px;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--space-section) 0;
    background-color: var(--color-canvas);
}

.services__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    position: relative;
    padding: var(--space-2xl);
    background-color: var(--color-surface);
    border: 1px solid transparent;
    transition: border-color var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

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

.service-card__number {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 300;
    color: var(--color-surface);
    position: absolute;
    top: -20px;
    right: -10px;
    line-height: 1;
    opacity: 0.5;
    transition: color var(--duration-normal) var(--ease-out);
    -webkit-text-stroke: 1px var(--color-text-secondary);
    text-stroke: 1px var(--color-text-secondary);
}

.service-card:hover .service-card__number {
    -webkit-text-stroke-color: var(--color-accent);
    text-stroke-color: var(--color-accent);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.service-card__description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: var(--space-xl);
    }

    .service-card__number {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .services__container {
        padding: 0 var(--space-md);
    }
}

/* ============================================
   SHOWCASE SECTION (Graphic Design)
   ============================================ */
.showcase {
    padding: var(--space-section) 0;
    background-color: var(--color-surface);
}

.showcase__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.showcase__header {
    margin-bottom: var(--space-2xl);
}

.showcase__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.showcase__filter {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out);
}

.showcase__filter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--duration-fast) var(--ease-out);
}

.showcase__filter:hover,
.showcase__filter.active {
    color: var(--color-accent);
}

.showcase__filter.active::after {
    width: 100%;
}

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

.showcase__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.showcase__item-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out),
                filter var(--duration-slow) var(--ease-out);
}

.showcase__item:hover .showcase__item-image {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.showcase__item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform var(--duration-normal) var(--ease-out);
}

.showcase__item:hover .showcase__item-overlay {
    transform: translateY(0);
}

.showcase__item-category {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.showcase__item-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
}

.showcase__load-more {
    display: block;
    margin: var(--space-2xl) auto 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    position: relative;
    padding: var(--space-sm) var(--space-lg);
}

.showcase__load-more::after {
    content: '';
    position: absolute;
    bottom: var(--space-xs);
    left: var(--space-lg);
    right: var(--space-lg);
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--duration-fast) var(--ease-out);
}

.showcase__load-more:hover::after {
    transform: scaleX(1);
}

.showcase__load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.showcase__load-more.hidden {
    display: none;
}

@media (max-width: 1024px) {
    .showcase__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .showcase__container {
        padding: 0 var(--space-md);
    }

    .showcase__grid {
        grid-template-columns: 1fr;
    }

    .showcase__filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }

    .showcase__filter {
        flex-shrink: 0;
    }

    .showcase__item-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-section) 0;
    background-color: var(--color-canvas);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact__content {
    padding-top: var(--space-xl);
}

.contact__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.contact__field {
    position: relative;
}

.contact__field input,
.contact__field textarea,
.contact__field select {
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-text-secondary);
    transition: border-color var(--duration-fast) var(--ease-out);
    background-color: transparent;
}

.contact__field input:focus,
.contact__field textarea:focus,
.contact__field select:focus {
    border-color: var(--color-accent);
}

.contact__field label {
    position: absolute;
    left: 0;
    top: var(--space-sm);
    font-size: 14px;
    color: var(--color-text-secondary);
    pointer-events: none;
    transition: transform var(--duration-fast) var(--ease-out),
                font-size var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.contact__field input:focus ~ label,
.contact__field input:not(:placeholder-shown) ~ label,
.contact__field textarea:focus ~ label,
.contact__field textarea:not(:placeholder-shown) ~ label,
.contact__field select:focus ~ label,
.contact__field select:valid ~ label {
    transform: translateY(-24px);
    font-size: 11px;
    color: var(--color-accent);
}

.contact__field--textarea {
    margin-top: var(--space-sm);
}

.contact__field textarea {
    resize: none;
    min-height: 100px;
}

.contact__field select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: var(--color-text);
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

.contact__field select option {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: var(--space-sm);
}

.contact__submit {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: var(--space-sm) 0;
    margin-top: var(--space-md);
    position: relative;
}

.contact__submit::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-fast) var(--ease-out);
}

.contact__submit:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact__social {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.contact__social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.contact__social-link svg {
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-out);
}

.contact__social-link:hover {
    color: var(--color-accent);
}

.contact__social-link:hover svg {
    transform: scale(1.15);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 1024px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .contact__container {
        padding: 0 var(--space-md);
    }

    .contact__social {
        flex-wrap: wrap;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    padding: var(--space-3xl) 0;
    background-color: var(--color-canvas);
    text-align: center;
    overflow: hidden;
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
}

.footer__name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    display: block;
    margin-bottom: var(--space-md);
}

.footer__separator {
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 0 auto var(--space-md);
}

.footer__copyright {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.footer__grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading state for dynamic content */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid var(--color-text-secondary);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-text-secondary);
}

.empty-state__text {
    font-size: 16px;
}

/* ============================================
   MOBILE POLISH & TOUCH INTERACTIONS
   ============================================ */

/* Touch-friendly tap targets */
@media (pointer: coarse) {
    .nav__link,
    .showcase__filter,
    .contact__submit,
    .contact__social-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .featured-work__dot {
        width: 12px;
        height: 12px;
    }

    /* Disable hover effects on touch */
    .showcase__item-overlay {
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 70%);
    }

    .service-card:hover {
        transform: none;
    }
}

/* Improved mobile typography */
@media (max-width: 480px) {
    :root {
        --space-section: 96px;
    }

    .hero__title {
        font-size: 40px;
    }

    .hero__tagline {
        font-size: 15px;
    }

    .section-title {
        font-size: 36px;
    }

    .about__bio {
        font-size: 16px;
    }

    .about__stat-number {
        font-size: 32px;
    }

    .service-card__title {
        font-size: 24px;
    }

    .service-card__number {
        font-size: 60px;
    }

    .contact__title {
        font-size: 28px;
    }

    .mobile-menu__link {
        font-size: 36px;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    .nav__container {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }

    .footer__container {
        padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for animated elements */
.hero__bg-image,
.featured-work__slide,
.showcase__item-image,
.about__image,
.cursor,
.scroll-progress__bar {
    will-change: transform;
}

/* Reduce paint areas */
.nav.scrolled {
    will-change: background-color;
}

/* Optimize images */
img {
    content-visibility: auto;
}

/* Smooth scrolling only when not reduced motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text-secondary: #999999;
        --color-border: #444444;
    }

    .nav__link::after,
    .showcase__filter::after {
        height: 2px;
    }
}

/* Focus visible improvements */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-accent);
    color: var(--color-canvas);
    font-weight: 500;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: var(--space-sm);
}

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .nav,
    .cursor,
    .scroll-progress,
    .hero__scroll-hint,
    .mobile-menu,
    .contact__form {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero__background {
        display: none;
    }

    section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
}

.lightbox__close:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
}

.lightbox__prev {
    left: var(--space-lg);
}

.lightbox__next {
    right: var(--space-lg);
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__info {
    margin-top: var(--space-lg);
    text-align: center;
}

.lightbox__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.lightbox__category {
    font-size: 0.875rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .lightbox__prev,
    .lightbox__next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox__prev {
        left: var(--space-sm);
    }
    
    .lightbox__next {
        right: var(--space-sm);
    }
    
    .lightbox__close {
        top: var(--space-md);
        right: var(--space-md);
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox__image {
        max-height: 70vh;
    }
    
    .lightbox__title {
        font-size: 1rem;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet breakpoint */
@media (max-width: 1024px) {
    :root {
        --space-section: 120px;
    }
    
    .hero__title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 42px;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    :root {
        --space-section: 80px;
        --nav-height: 70px;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 100svh;
    }
    
    .hero__title {
        font-size: 42px;
        line-height: 1.1;
    }
    
    .hero__tagline {
        font-size: 14px;
        letter-spacing: 0.15em;
    }
    
    .hero__scroll-indicator {
        bottom: var(--space-lg);
    }
    
    /* Section titles */
    .section-title {
        font-size: 32px;
    }
    
    .section-label {
        font-size: 11px;
    }
    
    /* Featured Work Mobile */
    .featured-work__caption {
        padding: var(--space-md);
    }
    
    .featured-work__caption-title {
        font-size: 20px;
    }
    
    .featured-work__progress {
        bottom: var(--space-md);
        right: var(--space-md);
    }
    
    /* Showcase Grid Mobile */
    .showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .showcase__filters {
        gap: var(--space-xs);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .showcase__filter {
        padding: var(--space-xs) var(--space-sm);
        font-size: 11px;
    }
    
    .showcase__item-title {
        font-size: 14px;
    }
    
    .showcase__item-category {
        font-size: 10px;
    }
    
    /* Services Mobile */
    .service-card {
        padding: var(--space-lg);
    }
    
    .service-card__title {
        font-size: 24px;
    }
    
    .service-card__description {
        font-size: 14px;
    }
    
    /* Contact Mobile */
    .contact__title {
        font-size: 24px;
    }
    
    .contact__form {
        gap: var(--space-md);
    }
    
    .contact__field input,
    .contact__field textarea,
    .contact__field select {
        padding: var(--space-sm);
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .contact__submit {
        width: 100%;
        padding: var(--space-md);
        justify-content: center;
    }
    
    .contact__social {
        justify-content: center;
        gap: var(--space-md);
    }
    
    .contact__social-link {
        font-size: 12px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: var(--space-2xl) 0;
    }
    
    .footer__container {
        padding: 0 var(--space-md);
    }
    
    .footer__name {
        font-size: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-section: 64px;
    }
    
    .hero__title {
        font-size: 32px;
    }
    
    .hero__tagline {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* Single column showcase on very small screens */
    .showcase__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .showcase__item {
        aspect-ratio: 4/3;
    }
    
    /* About stats stacked */
    .about__stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .about__stat-number {
        font-size: 36px;
    }
    
    /* Smaller service cards */
    .service-card__number {
        font-size: 60px;
    }
    
    /* Contact form full width */
    .contact__social {
        flex-direction: column;
        align-items: center;
    }
    
    /* WhatsApp button smaller */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: var(--space-sm);
        right: var(--space-sm);
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .lightbox__image {
        max-height: 60vh;
    }
}
