/* =============================================
   木子林装饰 - Premium Design System
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Light Theme */
    --bg-primary: #FAFAF7;
    --bg-secondary: #F3F0EB;
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F8F6F2;
    --text-primary: #1E1B16;
    --text-secondary: #6B6355;
    --text-tertiary: #9B9385;
    --accent: #C4963D;
    --accent-light: #D4AE6A;
    --accent-dark: #9B7328;
    --accent-glow: rgba(196, 150, 61, 0.15);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 20px;
    --gradient-hero: linear-gradient(135deg, rgba(30, 27, 22, 0.85) 0%, rgba(30, 27, 22, 0.6) 50%, rgba(30, 27, 22, 0.4) 100%);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-display: 'Playfair Display', 'Noto Sans SC', serif;
    --font-body: 'Inter', 'Noto Sans SC', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 80px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #151310;
    --bg-secondary: #1C1915;
    --bg-surface: #242018;
    --bg-surface-hover: #2D2820;
    --text-primary: #EBE7DE;
    --text-secondary: #A89E8C;
    --text-tertiary: #706858;
    --accent: #D4AE6A;
    --accent-light: #E0C48A;
    --accent-dark: #B8923D;
    --accent-glow: rgba(212, 174, 106, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(36, 32, 24, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;
    --gradient-hero: linear-gradient(135deg, rgba(21, 19, 16, 0.9) 0%, rgba(21, 19, 16, 0.65) 50%, rgba(21, 19, 16, 0.45) 100%);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition-smooth), color var(--transition-smooth);
}

/* Global theme transition for all themed elements */
.nav,
.section,
.section-alt,
.service-card,
.portfolio-item,
.testimonial-card,
.contact-form,
.footer,
.about-image-main,
.about-image-accent,
.filter-btn,
.step-icon-wrapper,
.form-group input,
.form-group select,
.form-group textarea,
.contact-icon,
.hero-badge {
    transition: background-color var(--transition-smooth),
                border-color var(--transition-smooth),
                color var(--transition-smooth),
                box-shadow var(--transition-smooth);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Loading Screen ---------- */
.loader {
    position: fixed; inset: 0;
    background: var(--bg-primary);
    z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-logo {
    font-family: var(--font-display);
    font-size: 3rem; font-weight: 700;
    color: var(--accent);
    display: block; margin-bottom: 32px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-bar {
    width: 200px; height: 3px;
    background: var(--border-medium);
    border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
    height: 100%; width: 0;
    background: var(--accent);
    border-radius: 2px;
    animation: loaderBar 1s ease forwards;
}
@keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes loaderBar {
    to { width: 100%; }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth), height var(--transition-smooth);
}
.nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    height: 64px;
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.25rem;
    color: #fff;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.nav.scrolled .nav-logo { color: var(--text-primary); }
.nav-logo:hover { transform: scale(1.02); }
.logo-icon {
    width: 40px; height: 40px;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700;
}
.logo-accent { color: var(--accent); font-weight: 700; }

.nav-menu { display: flex; gap: 6px; }
.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
}
.nav.scrolled .nav-link { color: var(--text-secondary); }
.nav-link:hover,
.nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav.scrolled .nav-link:hover,
.nav.scrolled .nav-link.active { color: var(--text-primary); background: var(--bg-surface-hover); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.nav.scrolled .theme-toggle { color: var(--text-secondary); }
.theme-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav.scrolled .theme-toggle:hover { color: var(--text-primary); background: var(--bg-surface-hover); }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-cta {
    padding: 10px 22px;
    background: var(--accent);
    color: #fff;
    font-weight: 600; font-size: 0.88rem;
    border-radius: 24px;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    width: 28px; padding: 4px 0;
}
.menu-toggle span {
    display: block; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
}
.nav.scrolled .menu-toggle span { background: var(--text-primary); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Section Base ---------- */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-secondary); }

.section-header { text-align: center; margin-bottom: 64px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-tag {
    display: inline-block;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: var(--accent-glow);
    border-radius: 20px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.75rem; font-weight: 700;
    line-height: 1.25; letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.section-desc {
    font-size: 1.1rem; color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-canvas {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; max-width: 800px;
    padding: 0 32px;
}
.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-size: 0.85rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 28px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 4rem; font-weight: 700;
    line-height: 1.15; letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 24px;
}
.hero-title-accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem; color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem; font-weight: 600;
    border-radius: 28px;
    transition: all var(--transition-fast);
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}
.btn-block { width: 100%; justify-content: center; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--accent-light); }
.stat-plus, .stat-unit { font-size: 1.5rem; font-weight: 600; color: var(--accent-light); }
.stat-label { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }
.stat-label-above { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--accent-light); }
.stat-divider { width: 1px; height: 48px; background: rgba(255, 255, 255, 0.15); }

.hero-scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Reveal Animations ---------- */
.reveal-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0; transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0; transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

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

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 64px; height: 64px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
    transition: transform var(--transition-smooth), background var(--transition-smooth);
}
.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--accent);
    color: #fff;
}
.service-card h3 {
    font-size: 1.25rem; font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem; line-height: 1.7;
    margin-bottom: 20px;
}
.service-link {
    font-weight: 600; font-size: 0.9rem;
    color: var(--accent);
    transition: gap var(--transition-fast);
    display: inline-flex; align-items: center; gap: 4px;
}
.service-link:hover { gap: 10px; }

/* ---------- Portfolio ---------- */
.portfolio-filters {
    display: flex; justify-content: center; gap: 10px;
    margin-bottom: 48px; flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 24px;
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary);
    border-radius: 24px;
    border: 1px solid var(--border-medium);
    transition: all var(--transition-fast);
    background: var(--bg-surface);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    cursor: zoom-in;
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.portfolio-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-surface));
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition-slow);
    position: relative;
    overflow: hidden;
}
/* 木子林水印 - 防盗用 */
.portfolio-img::after {
    content: '木子林';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.5em;
    text-shadow: 0 0 20px rgba(0,0,0,0.15);
    z-index: 2;
}
[data-theme="dark"] .portfolio-img::after {
    color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.portfolio-item:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.portfolio-overlay span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.portfolio-category-tag {
    position: absolute; top: 16px; right: 16px;
    padding: 5px 14px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    color: #fff;
    font-size: 0.75rem; font-weight: 500;
}
.portfolio-link-hint {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -80%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.portfolio-item:hover .portfolio-link-hint {
    opacity: 1;
    transform: translate(-50%, -100%);
}
.portfolio-link-hint svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.portfolio-link-hint span { font-size: 0.85rem; font-weight: 500; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

/* ---------- Process ---------- */
.process-steps {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}
.process-step {
    flex: 1; text-align: center;
    position: relative;
    padding: 0 20px;
}
.step-number {
    font-family: var(--font-display);
    font-size: 4rem; font-weight: 900;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: -30px; left: 50%; transform: translateX(-50%);
}
.step-icon-wrapper {
    width: 72px; height: 72px;
    background: var(--bg-surface);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    transition: all var(--transition-smooth);
}
.process-step:hover .step-icon-wrapper {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 30px var(--accent-glow);
}
.process-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }
.step-details {
    list-style: none;
    display: flex; flex-direction: column; gap: 4px;
    font-size: 0.82rem; color: var(--text-tertiary);
}
.process-connector {
    width: 60px; height: 2px;
    background: var(--border-medium);
    margin-top: 36px;
    flex-shrink: 0;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image { position: relative; }
.about-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-surface));
    position: relative;
    z-index: 2;
}
.about-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px;
    color: var(--accent);
    font-size: 1.5rem; font-weight: 700;
    font-family: var(--font-display);
}
.about-image-accent {
    position: absolute; top: -20px; right: -20px;
    width: 100%; height: 100%;
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    opacity: 0.3;
    z-index: 1;
}
.about-content .section-title { margin-bottom: 24px; }
.about-text { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.about-feature {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; color: var(--text-secondary);
}
.about-feature svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-smooth);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.testimonial-stars {
    color: var(--accent);
    font-size: 1rem; letter-spacing: 2px;
    margin-bottom: 16px;
}
.testimonial-text {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-tertiary); }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
.contact-desc {
    color: var(--text-secondary);
    margin: 20px 0 32px;
    font-size: 0.95rem; line-height: 1.8;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
}
.contact-icon {
    width: 48px; height: 48px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.9rem; }
.contact-item span { color: var(--text-secondary); font-size: 0.9rem; }
.contact-hours {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}
.contact-hours svg { color: var(--accent); }

.contact-form-wrapper { position: sticky; top: 100px; }
.contact-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239B9385' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
    text-align: center;
    font-size: 0.8rem; color: var(--text-tertiary);
    margin-top: 16px;
}

/* Form validation */
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #e74c3c; }
.form-error { color: #e74c3c; font-size: 0.78rem; margin-top: 4px; }

/* Success message */
.form-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
}
.form-success.visible { display: block; }
.form-success-icon {
    width: 80px; height: 80px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent);
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-secondary); }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.2rem;
    margin-bottom: 16px;
}
.footer-brand p { color: var(--text-tertiary); font-size: 0.9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 {
    font-size: 0.9rem; font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.footer-links a {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p { color: var(--text-tertiary); font-size: 0.88rem; margin-bottom: 8px; }
.footer-bottom {
    display: flex; justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem; color: var(--text-tertiary);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px;
    width: 48px; height: 48px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
    z-index: 100;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-4px); }

/* ---------- Magnetic Effect ---------- */
.magnetic { transition: transform var(--transition-fast); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3rem; }
    .process-steps { flex-wrap: wrap; gap: 32px; }
    .process-connector { display: none; }
    .process-step { flex: 0 0 calc(50% - 16px); }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center; justify-content: center; gap: 24px;
        opacity: 0; visibility: hidden;
        transition: all var(--transition-smooth);
        z-index: 999;
    }
    .nav-menu.active { opacity: 1; visibility: visible; }
    .nav-link { font-size: 1.2rem; }
    .menu-toggle { display: flex; z-index: 1000; }
    .nav-cta { display: none; }

    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.8rem; }

    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .section-title { font-size: 2rem; }
    .section { padding: 80px 0; }
    .container { padding: 0 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-divider { display: none; }
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.lightbox-close {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(90deg);
}
.lightbox-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}
.lightbox-caption {
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}
.lightbox-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}
.lightbox-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Noto Sans SC', sans-serif;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
