/* ============================================
   MARY BELFORD MAKEUP - Bridal & Editorial MUA
   Design: Dark elegance, champagne gold accents
   Distinctive: Multi-layer hero, bridal sophistication
   New Jersey, USA
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Primary - Champagne Gold */
    --color-primary: #C9A06B;
    --color-primary-light: #D4B38A;
    --color-primary-dark: #A8855A;

    /* Secondary - Soft Blush */
    --color-secondary: #E8C4C4;
    --color-secondary-light: #F0D4D4;
    --color-secondary-dark: #D4A8A8;

    /* Accent - Warm Cream */
    --color-accent: #E8DDD0;
    --color-accent-light: #F5EFE8;
    --color-accent-dark: #D4C8B8;

    /* Background - Deep Charcoal */
    --color-bg: #0D0C0B;
    --color-bg-elevated: #141312;
    --color-bg-surface: #1A1918;
    --color-bg-card: #1F1E1D;

    /* Text */
    --color-text: #FAFAF9;
    --color-text-secondary: #E8E8E6;
    --color-text-dim: #A8A8A4;
    --color-text-muted: #6A6A66;

    /* Borders */
    --border-subtle: rgba(201, 160, 107, 0.08);
    --border-default: rgba(201, 160, 107, 0.15);
    --border-accent: rgba(201, 160, 107, 0.25);

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

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --ease-elegant: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.4s var(--ease-elegant);
    --transition-slow: 0.6s var(--ease-dramatic);

    /* Radius */
    --radius: 6px;
    --radius-lg: 12px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ---------- Page Loader ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s var(--ease-elegant), visibility 0.8s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text);
    text-transform: uppercase;
}

.loader-logo span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--color-primary);
    margin-top: 10px;
    text-transform: uppercase;
}

.loader-bar {
    width: 60px;
    height: 1px;
    background: rgba(201, 160, 107, 0.2);
    margin: 28px auto 0;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 30%;
    height: 100%;
    background: var(--color-primary);
    animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-base);
}

.nav.scrolled {
    background: rgba(13, 12, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-main {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: var(--transition-base);
}

.nav-logo-sub {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 3px;
    transition: var(--transition-base);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: var(--transition-base);
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--color-text);
    }
    .nav-link:hover::after {
        width: 100%;
    }
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: var(--radius);
    transition: var(--transition-base);
}

@media (hover: hover) {
    .nav-cta:hover {
        background: var(--color-primary-light);
        transform: translateY(-2px);
    }
}

/* Mobile Nav Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 1px;
    background: var(--color-text);
    transition: var(--transition-base);
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 24px;
    }
    .nav-links {
        display: none;
    }
    .nav-mobile-toggle {
        display: flex;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-elevated);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.active .nav-link {
        color: var(--color-text-secondary);
    }
    .nav-links.active .nav-cta {
        text-align: center;
        width: 100%;
    }
}

/* ---------- Hero Section - Multi-Layer Bridal ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Layer 1: Base gradient */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--color-bg) 0%,
        rgba(20, 19, 18, 1) 50%,
        var(--color-bg) 100%);
    z-index: 0;
}

/* Layer 2: Grayscale bridal image */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1487412947147-5cebf100ffc2?w=1920&q=80') center/cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.12;
    z-index: 1;
}

/* Layer 3: Radial glow - champagne */
.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 160, 107, 0.08) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Layer 4: Radial glow - blush */
.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 196, 196, 0.06) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Layer 5: Noise texture overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    z-index: 3;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Layer 6: Vignette */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 0%, var(--color-bg) 100%);
    z-index: 4;
    pointer-events: none;
}

/* Layer 7: Top gradient fade */
.hero-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--color-bg) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    animation: heroFadeIn 1s var(--ease-dramatic) 0.2s both;
}

.hero-badge-line {
    width: 40px;
    height: 1px;
    background: var(--color-primary);
}

.hero-badge-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin-bottom: 24px;
    animation: heroFadeIn 1s var(--ease-dramatic) 0.3s both;
}

.hero-title em {
    font-style: italic;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-dim);
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.7;
    animation: heroFadeIn 1s var(--ease-dramatic) 0.4s both;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    animation: heroFadeIn 1s var(--ease-dramatic) 0.45s both;
}

.hero-location svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: heroFadeIn 1s var(--ease-dramatic) 0.5s both;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-bg);
    border-radius: var(--radius);
    transition: var(--transition-base);
}

@media (hover: hover) {
    .hero-cta-primary:hover {
        background: var(--color-primary-light);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(201, 160, 107, 0.25);
    }
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    transition: var(--transition-base);
}

@media (hover: hover) {
    .hero-cta-secondary:hover {
        background: rgba(201, 160, 107, 0.1);
        border-color: var(--color-primary);
    }
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: heroFadeIn 1s var(--ease-dramatic) 0.6s both;
}

.hero-scroll-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll-text {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .hero-scroll {
        bottom: 24px;
    }
}

/* ---------- Section Base ---------- */
.section {
    padding: var(--section-padding) 40px;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 24px;
    }
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--color-text);
}

.section-title em {
    font-style: italic;
    color: var(--color-primary);
}

.section-desc {
    font-size: 1rem;
    color: var(--color-text-dim);
    line-height: 1.7;
    max-width: 600px;
}

/* ---------- About Section - Asymmetric Layout ---------- */
.about {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Layer 1: Grayscale bridal background */
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=1920&q=80') center/cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.04;
    z-index: 0;
}

/* Layer 2: Radial gradients */
.about::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(201, 160, 107, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(232, 196, 196, 0.04) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.about-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    position: relative;
}

.about-image-main {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius);
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

@media (hover: hover) {
    .about-image:hover img {
        filter: grayscale(0%);
    }
}

.about-image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 220px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius);
    z-index: -1;
}

.about-content {
    max-width: 500px;
}

.about-quote {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: 28px;
    position: relative;
    padding-left: 28px;
}

.about-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 3.5rem;
    color: var(--color-primary);
    line-height: 1;
}

.about-text {
    font-size: 1rem;
    color: var(--color-text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--color-bg-elevated);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 32px;
}

.about-highlight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-surface);
    border-radius: var(--radius);
    color: var(--color-primary);
}

.about-highlight-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 2px;
}

.about-highlight-text span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image-accent {
        display: none;
    }
    .about-content {
        max-width: 100%;
    }
}

/* ---------- Services Section - Dark Elevated ---------- */
.services {
    background: var(--color-bg-elevated);
    position: relative;
    overflow: hidden;
}

/* Layer 1: Grayscale makeup background */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1596462502278-27bfdc403348?w=1920&q=80') center/cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.03;
    z-index: 0;
}

/* Layer 2: Radial gradients */
.services::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 30% 20%, rgba(201, 160, 107, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 70% 80%, rgba(232, 196, 196, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.services-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header .section-desc {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    background: var(--color-bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition-base);
}

@media (hover: hover) {
    .service-card:hover {
        background: var(--color-bg-card);
        border-color: var(--border-default);
        transform: translateY(-4px);
    }
    .service-card:hover::before {
        width: 100%;
    }
}

.service-number {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 160, 107, 0.1);
    border-radius: var(--radius);
    color: var(--color-primary);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.65;
}

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

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 32px 24px;
    }
}

/* ---------- Portfolio/Gallery Section ---------- */
.gallery {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Layer 1: Grayscale editorial background */
.gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?w=1920&q=80') center/cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.04;
    z-index: 0;
}

/* Layer 2: Radial gradients */
.gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201, 160, 107, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(232, 196, 196, 0.04) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.gallery-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header .section-desc {
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}

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

.gallery-item:nth-child(2) {
    grid-column: span 4;
}

.gallery-item:nth-child(3) {
    grid-column: span 3;
}

.gallery-item:nth-child(4) {
    grid-column: span 3;
}

.gallery-item:nth-child(5) {
    grid-column: span 4;
}

.gallery-item:nth-child(6) {
    grid-column: span 6;
}

.gallery-item:nth-child(7) {
    grid-column: span 6;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-slow);
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(1) img {
    aspect-ratio: auto;
    height: 100%;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 12, 11, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-item-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text);
    transform: translateY(10px);
    transition: var(--transition-base);
}

@media (hover: hover) {
    .gallery-item:hover img {
        filter: grayscale(0%);
        transform: scale(1.05);
    }
    .gallery-item:hover .gallery-item-overlay {
        opacity: 1;
    }
    .gallery-item:hover .gallery-item-title {
        transform: translateY(0);
    }
}

/* Mobile active state for touch */
.gallery-item.mobile-active img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.gallery-item.mobile-active .gallery-item-overlay {
    opacity: 1;
}

.gallery-item.mobile-active .gallery-item-title {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-item:nth-child(1) {
        grid-column: span 2;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item:nth-child(n) {
        grid-column: span 1;
    }
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background: var(--color-bg-elevated);
    position: relative;
    overflow: hidden;
}

/* Layer 1: Grayscale background */
.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1519699047748-de8e457a634e?w=1920&q=80') center/cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.03;
    z-index: 0;
}

/* Layer 2: Radial gradients */
.testimonials::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(201, 160, 107, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(232, 196, 196, 0.04) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.testimonials-container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header .section-desc {
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 36px 28px;
    background: var(--color-bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

@media (hover: hover) {
    .testimonial-card:hover {
        border-color: var(--border-default);
        transform: translateY(-4px);
    }
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--color-primary);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-bg);
}

.testimonial-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

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

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

/* ---------- Contact Section ---------- */
.contact {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Layer 1: Grayscale background */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1457972729786-0411a3b2b626?w=1920&q=80') center/cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.04;
    z-index: 0;
}

/* Layer 2: Radial gradients */
.contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 50% 30%, rgba(201, 160, 107, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 30% 70%, rgba(232, 196, 196, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--color-text);
}

.contact-title em {
    font-style: italic;
    color: var(--color-primary);
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--color-text-dim);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: var(--transition-base);
    margin-bottom: 40px;
}

.contact-cta svg {
    width: 18px;
    height: 18px;
}

@media (hover: hover) {
    .contact-cta:hover {
        background: var(--color-primary-light);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(201, 160, 107, 0.25);
    }
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-dim);
    transition: var(--transition-base);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

@media (hover: hover) {
    .contact-link:hover {
        color: var(--color-text);
    }
}

@media (max-width: 500px) {
    .contact-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-bg-elevated);
    padding: 40px 40px 32px;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .footer {
        padding: 32px 24px;
    }
    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ---------- Scroll Reveal - Cinematic ---------- */

/* Base reveal - 3D rotation + lift */
.reveal {
    opacity: 0;
    transform: perspective(1000px) rotateX(20deg) translateY(80px) scale(0.95);
    filter: blur(10px);
    transform-origin: center bottom;
    transition:
        opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
    filter: blur(0);
}

/* Stagger delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }
.reveal:nth-child(7) { transition-delay: 0.6s; }
.reveal:nth-child(8) { transition-delay: 0.7s; }

/* About image - slide from left */
.about-image.reveal {
    opacity: 0;
    transform: perspective(1200px) rotateY(12deg) translateX(-100px) scale(0.9);
    filter: blur(12px);
    transform-origin: right center;
    transition:
        opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.6s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image.revealed {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0) scale(1);
    filter: blur(0);
}

/* About content - slide from right */
.about-content.reveal {
    opacity: 0;
    transform: perspective(1200px) rotateY(-8deg) translateX(60px);
    filter: blur(8px);
    transform-origin: left center;
    transition:
        opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
        transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
        filter 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.about-content.revealed {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0);
    filter: blur(0);
}

/* Service cards - rise up with stagger */
.service-card.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(8px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Gallery items - rise with 3D tilt */
.gallery-item.reveal {
    opacity: 0;
    transform: perspective(800px) rotateX(25deg) translateY(100px) scale(0.85);
    filter: blur(12px) brightness(0.8);
    transform-origin: center bottom;
    transition:
        opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item.revealed {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0) scale(1);
    filter: blur(0) brightness(1);
}

/* Testimonial cards - elegant fade */
.testimonial-card.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    filter: blur(8px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Headers & containers - elegant fade with lift */
.gallery-header.reveal,
.services-header.reveal,
.testimonials-header.reveal,
.contact-container.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-header.revealed,
.services-header.revealed,
.testimonials-header.revealed,
.contact-container.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ---------- Utilities ---------- */
.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;
}

/* ---------- Responsive Adjustments ---------- */

/* Tablet */
@media (max-width: 900px) {
    :root {
        --section-padding: 100px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    :root {
        --section-padding: 80px;
    }

    .hero-glow-1,
    .hero-glow-2 {
        width: 300px;
        height: 300px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    :root {
        --section-padding: 60px;
    }
}
