/* ============================================
   TerraZen Peyzaj — Premium Frontend CSS
   Palette: Forest #2D6A4F · Dark #1B4332
   Accent: Earth #D4A574 · BG: Cream #FAFAF5
   Fonts: Playfair Display + Inter
   ============================================ */

/* -----------------------------------------------
   1. CUSTOM PROPERTIES
   ----------------------------------------------- */

:root {
    --primary: #2D6A4F;
    --primary-rgb: 45, 106, 79;
    --primary-dark: #1B4332;
    --primary-darker: #0A2E1A;
    --primary-light: rgba(45, 106, 79, 0.08);
    --primary-mid: rgba(45, 106, 79, 0.15);
    --accent: #D4A574;
    --accent-rgb: 212, 165, 116;
    --accent-dark: #C89660;
    --accent-light: rgba(212, 165, 116, 0.12);
    --bg: #FAFAF5;
    --bg-alt: #F0EDE8;
    --bg-elevated: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #6B705C;
    --text-light: #999;
    --white: #FFFFFF;
    --border: #E0DDD5;
    --border-light: #ECEAE4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --header-h: 72px;
    --container: 1280px;
    --unit: 8px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -----------------------------------------------
   2. DARK THEME
   ----------------------------------------------- */

[data-theme="dark"] {
    --bg: #0F1F15;
    --bg-alt: #162A1E;
    --bg-elevated: #1B3326;
    --text: #E8E4DF;
    --text-muted: #A3A89B;
    --text-light: #6B7264;
    --white: #1B3326;
    --border: #2D4A38;
    --border-light: #243D2E;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.25);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.35);
    --primary-light: rgba(45, 106, 79, 0.15);
    --primary-mid: rgba(45, 106, 79, 0.25);
    --accent-light: rgba(212, 165, 116, 0.15);
}

[data-theme="dark"] .hero { background: #0A1A10; }
[data-theme="dark"] .hero-bg { background: linear-gradient(135deg, #0A1A10 0%, #050F08 100%); }
[data-theme="dark"] .page-hero { background: #0A1A10; }
[data-theme="dark"] .site-footer { background: #070E0A; }
[data-theme="dark"] .cta-section { background: linear-gradient(135deg, #0A1A10 0%, #0D2818 100%); }
[data-theme="dark"] .alert-success { background: #0D2818; color: #6EE7A0; }
[data-theme="dark"] .alert-danger,
[data-theme="dark"] .alert-error { background: #2D1515; color: #FCA5A5; }
[data-theme="dark"] .alert-warning { background: #2D2215; color: #FCD34D; }
[data-theme="dark"] .alert-info { background: #152030; color: #93C5FD; }
[data-theme="dark"] .project-image { background: #162A1E; }
[data-theme="dark"] .team-photo { background: #162A1E; }
[data-theme="dark"] .service-card { border-color: var(--border); }
[data-theme="dark"] .testimonial-card { border-color: var(--border); }
[data-theme="dark"] .process-card { border-color: var(--border); }
[data-theme="dark"] .stat-item { border-color: var(--border); }

/* -----------------------------------------------
   3. RESET & BASE
   ----------------------------------------------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

::selection {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-dark);
}

/* -----------------------------------------------
   4. LAYOUT
   ----------------------------------------------- */

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

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-label { justify-content: center; }
.section-header.center .section-label::before { display: none; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* -----------------------------------------------
   5. TYPOGRAPHY
   ----------------------------------------------- */

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

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

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

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

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

/* -----------------------------------------------
   6. BUTTONS
   ----------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 12px 28px;
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.25s var(--ease-out);
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.btn:hover svg { transform: translateX(3px); }

/* -----------------------------------------------
   7. HEADER
   ----------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: transparent;
    transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.site-header.scrolled {
    background: var(--bg);
    box-shadow: 0 1px 0 var(--border);
    backdrop-filter: blur(16px);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(15, 31, 21, 0.92);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.logo-mark svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.logo-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: -2px;
}

.site-header:not(.scrolled) .logo { color: #fff; }
.site-header:not(.scrolled) .logo-text span { color: rgba(255,255,255,0.6); }

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.25s;
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out);
}

.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after { transform: scaleX(1); }

.site-header:not(.scrolled) .main-nav a { color: rgba(255,255,255,0.75); }
.site-header:not(.scrolled) .main-nav a:hover,
.site-header:not(.scrolled) .main-nav a.active { color: #fff; }
.site-header:not(.scrolled) .main-nav a::after { background: var(--accent); }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.3s;
}

.theme-toggle:hover { color: var(--primary); transform: rotate(15deg); }
.site-header:not(.scrolled) .theme-toggle { color: rgba(255,255,255,0.7); }
.site-header:not(.scrolled) .theme-toggle:hover { color: #fff; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 26px;
    padding: 4px 0;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    transition: transform 0.35s var(--ease-out), opacity 0.25s, width 0.25s;
    transform-origin: center;
}

.hamburger span:nth-child(2) { width: 18px; }

.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header:not(.scrolled) .hamburger span { background: #fff; }

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    backdrop-filter: blur(4px);
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    z-index: 999;
    padding: 80px 32px 32px;
    transition: right 0.4s var(--ease-out);
    overflow-y: auto;
    border-left: 1px solid var(--border);
}

.mobile-menu.active { right: 0; }

.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, padding-left 0.3s;
}

.mobile-menu a:hover { color: var(--primary); padding-left: 8px; }
.mobile-menu a.active { color: var(--primary); }

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: color 0.2s, transform 0.3s;
}

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

.mobile-menu .btn-cta {
    margin-top: 24px;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* -----------------------------------------------
   8. HERO
   ----------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0A2E1A 60%, #0D3520 100%);
}

/* Dot pattern overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 1;
}

/* Radial glow */
.hero-bg::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero-glow {
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content { position: relative; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 28px;
    position: relative;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent) 0%, #E8C49A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s var(--ease-out);
}

.btn-hero svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.btn-hero:hover svg { transform: translateX(3px); }

.btn-hero-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-hero-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.35);
}

.btn-hero-outline {
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
}

.btn-hero-outline:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

/* Hero trust bar */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-trust-avatars {
    display: flex;
}

.hero-trust-avatar {
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 2px solid var(--primary-dark);
    background: var(--primary);
    margin-left: -8px;
}

.hero-trust-avatar:first-child { margin-left: 0; }

.hero-trust-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-trust-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.hero-trust-text strong {
    display: block;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

/* Hero visual (right column) */
.hero-visual {
    position: relative;
    height: 520px;
}

.hero-person {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-person-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.3) 0%, transparent 50%);
    z-index: 1;
}

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

/* Floating metric cards */
.hero-metric {
    position: absolute;
    background: var(--bg-elevated);
    padding: 16px 20px;
    z-index: 3;
    box-shadow: var(--shadow-xl);
    min-width: 180px;
    border-left: 3px solid var(--primary);
}

[data-theme="dark"] .hero-metric {
    background: rgba(27, 51, 38, 0.95);
    border-color: var(--accent);
}

.hero-metric-1 {
    top: 40px;
    right: -20px;
    animation: floatMetric1 6s ease-in-out infinite;
}

.hero-metric-2 {
    bottom: 100px;
    left: -30px;
    animation: floatMetric2 7s ease-in-out infinite;
}

.hero-metric-3 {
    bottom: 20px;
    right: 20px;
    animation: floatMetric3 5s ease-in-out infinite;
}

.metric-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: var(--primary);
}

.metric-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.metric-value span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--primary);
    margin-top: 4px;
}

.metric-trend svg {
    width: 14px;
    height: 14px;
}

/* Hero stats bar (bottom) */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat { text-align: left; }

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-number span {
    font-size: 1.5rem;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* -----------------------------------------------
   9. STATS SECTION
   ----------------------------------------------- */

.stats-bar {
    padding: 60px 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
}

.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-item:hover::before { transform: scaleX(1); }

.stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: var(--primary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-number span {
    font-size: 1.2rem;
    color: var(--accent);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* Also support inline stats row (used in about page) */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* -----------------------------------------------
   10. SERVICES
   ----------------------------------------------- */

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

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 40px 32px;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.service-card:hover h3 { color: var(--primary); }

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.service-features {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.service-features li {
    padding: 4px 0 4px 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--primary);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.03em;
    transition: gap 0.2s;
}

.card-link:hover { gap: 10px; }

/* -----------------------------------------------
   11. PROJECTS
   ----------------------------------------------- */

.projects-filter,
.project-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    transition: all 0.25s var(--ease-out);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.project-card {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-alt);
}

.project-image-placeholder,
.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
}
.project-image-placeholder svg,
.team-photo-placeholder svg { color: var(--primary); }

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out), filter 0.6s;
    filter: grayscale(20%);
}

.project-card:hover .project-image img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

/* Project overlay on hover */
.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover .project-image::after { opacity: 1; }

.project-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.project-info { padding: 24px; }

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.project-card:hover .project-info h3 { color: var(--primary); }

.project-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-light);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Project filter animation */
.project-card.filter-hidden {
    opacity: 0;
    transform: scale(0.95);
    position: absolute;
    pointer-events: none;
}

.project-card.filter-visible {
    animation: filterIn 0.4s var(--ease-out) forwards;
}

/* -----------------------------------------------
   12. PROCESS STEPS
   ----------------------------------------------- */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Connecting line between steps */
.process-grid::before {
    content: '';
    position: absolute;
    top: 48px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 1px;
    background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
    z-index: 0;
}

.process-card {
    padding: 32px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.process-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary-mid);
    transition: background 0.3s, color 0.3s;
}

.process-card:hover .process-number {
    background: var(--primary);
    color: #fff;
}

.process-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* -----------------------------------------------
   13. TEAM
   ----------------------------------------------- */

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

.team-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out), filter 0.6s;
    filter: grayscale(30%);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Social overlay on hover */
.team-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(var(--primary-rgb), 0.6) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.team-card:hover .team-photo::after { opacity: 1; }

.team-social {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
}

.team-card:hover .team-social { opacity: 1; transform: translateY(0); }

.team-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    color: var(--primary-dark);
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.team-social a:hover { background: var(--accent); color: var(--primary-dark); }

.team-info {
    padding: 20px;
}

.team-info h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-info .team-title {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.team-info .team-bio {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.6;
}

/* -----------------------------------------------
   14. TESTIMONIALS
   ----------------------------------------------- */

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

.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 40px 32px;
    position: relative;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Large quote mark */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-light);
    pointer-events: none;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-rating svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
    flex-shrink: 0;
}

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

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* -----------------------------------------------
   15. CTA SECTION
   ----------------------------------------------- */

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0D3520 50%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Pattern overlay */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section .section-title { color: #fff; }

.cta-section .section-subtitle {
    color: rgba(255,255,255,0.65);
    margin: 0 auto 32px;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s var(--ease-out);
}

.btn-cta-large:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.35);
}

.btn-cta-large svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

.btn-cta-large:hover svg { transform: translateX(3px); }

/* -----------------------------------------------
   16. ABOUT / WHY US
   ----------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

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

/* Decorative accent line */
.about-image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 60%;
    height: 60%;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    z-index: 2;
    pointer-events: none;
}

.about-badge {
    position: absolute;
    bottom: 24px;
    right: -20px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 24px 32px;
    text-align: center;
    z-index: 2;
}

.about-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
}

.about-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Why us items */
.why-us-list { margin-top: 32px; }

.why-us-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.why-us-item:last-child { border-bottom: none; }

.why-us-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background 0.3s, color 0.3s;
}

.why-us-item:hover .why-us-icon {
    background: var(--primary);
    color: #fff;
}

.why-us-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-us-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.why-us-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.value-card {
    padding: 40px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-card:hover::after { transform: scaleX(1); }

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background 0.3s, color 0.3s;
}

.value-card:hover .value-icon { background: var(--primary); color: #fff; }

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* -----------------------------------------------
   17. CONTACT
   ----------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background 0.3s, color 0.3s;
}

.contact-info-item:hover .contact-icon {
    background: var(--primary);
    color: #fff;
}

.contact-info-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-info-item a { color: var(--primary); }
.contact-info-item a:hover { color: var(--primary-dark); }

/* Map embed */
.contact-map {
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid var(--border);
    margin-top: 32px;
    background: var(--bg-alt);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* -----------------------------------------------
   18. FORM ELEMENTS
   ----------------------------------------------- */

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s var(--ease-out);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}

.btn-submit:hover::after {
    width: 300px;
    height: 300px;
    top: calc(50% - 150px);
    left: calc(50% - 150px);
}

.btn-submit:active { transform: translateY(0); }

.form-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.form-error {
    font-size: 0.75rem;
    color: #EF4444;
    margin-top: 4px;
}

/* -----------------------------------------------
   19. FOOTER
   ----------------------------------------------- */

.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-text span { color: rgba(255,255,255,0.4); }

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 300px;
    color: rgba(255,255,255,0.55);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    transition: all 0.25s var(--ease-out);
    padding: 0;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-text {
    font-size: 0.85rem;
    padding: 6px 0;
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-copyright {
    margin: 0;
    color: rgba(255,255,255,0.4);
}

#fcreds {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    opacity: 0.7;
    margin: 0;
}

#fcreds:empty::after {
    content: "Powered by ALFA Dizayn";
}

#fcreds a {
    color: rgba(255,255,255,0.3) !important;
    text-decoration: none !important;
    transition: color 0.3s;
}

#fcreds a:hover {
    color: var(--primary) !important;
}

/* -----------------------------------------------
   20. PAGE HERO (inner pages)
   ----------------------------------------------- */

.page-hero {
    background: var(--primary-dark);
    padding: calc(var(--header-h) + 60px) 0 60px;
    position: relative;
    overflow: hidden;
}

/* Pattern overlay for page hero */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }

.breadcrumb .separator { color: rgba(255,255,255,0.25); }

/* -----------------------------------------------
   21. SERVICE DETAIL
   ----------------------------------------------- */

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.service-detail-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.service-detail-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.service-sidebar-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 24px;
}

.service-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Features list */
.features-list { list-style: none; margin-top: 16px; }

.features-list li {
    padding: 7px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--primary);
}

/* -----------------------------------------------
   22. PROJECT DETAIL
   ----------------------------------------------- */

.project-detail-hero {
    aspect-ratio: 21/9;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}

.project-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.project-detail-hero:hover img { transform: scale(1.02); }

/* Info Bar */
.project-info-bar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.project-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.project-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.project-info-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}

.project-info-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* Layout: Content + Sidebar */
.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
}

.project-detail-content { min-width: 0; }

.project-lead-text {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-muted);
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.project-lead-text p { margin: 0; }

.project-section {
    margin-top: 48px;
}

.project-section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-section-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Gallery Grid */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
    cursor: pointer;
}

.project-gallery-item.gallery-featured {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.project-gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
}

.project-gallery-item:hover .gallery-overlay { opacity: 1; }

/* Sidebar */
.project-detail-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 28px;
}

.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.sidebar-info-list {
    display: flex;
    flex-direction: column;
}

.sidebar-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-info-row:last-child { border-bottom: none; }

.sidebar-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.sidebar-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.sidebar-cta {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.sidebar-cta h3 { color: #fff; }

.sidebar-cta p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-full { width: 100%; text-align: center; justify-content: center; }

.sidebar-category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-category-link:hover {
    background: var(--primary);
    color: #fff;
}

.sidebar-category-link svg:last-child { margin-left: auto; }

/* Before/After comparison */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.before-after-item { position: relative; overflow: hidden; }

.before-after-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s;
}

.before-after-item:hover img { transform: scale(1.03); }

.ba-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.ba-label.before { background: #EF4444; color: #fff; }
.ba-label.after { background: #10B981; color: #fff; }

/* Legacy (keep for compatibility) */
.project-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.meta-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.meta-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.project-description p { margin-bottom: 16px; }

/* -----------------------------------------------
   23. ARTICLE / BLOG CONTENT
   ----------------------------------------------- */

.article-content {
    max-width: 800px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--text);
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 36px 0 12px;
    color: var(--text);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.article-content img {
    margin: 32px 0;
    width: 100%;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--accent);
    background: var(--accent-light);
    font-style: italic;
    color: var(--text);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px 24px;
    color: var(--text-muted);
}

.article-content ul { list-style: none; }

.article-content ul li {
    padding: 4px 0 4px 20px;
    position: relative;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--primary);
}

.article-content ol { list-style: decimal; }
.article-content ol li { padding: 4px 0; }

.article-content code {
    background: var(--bg-alt);
    padding: 2px 8px;
    font-size: 0.88em;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--primary);
}

.article-content pre {
    background: var(--primary-dark);
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content a {
    color: var(--primary);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.3);
    transition: border-color 0.2s;
}

.article-content a:hover { border-color: var(--primary); }

/* -----------------------------------------------
   24. ALERT / FLASH MESSAGES
   ----------------------------------------------- */

.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 3px solid;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.alert-success { background: #ECFDF5; border-color: #10B981; color: #065F46; }
.alert-danger,
.alert-error { background: #FEF2F2; border-color: #EF4444; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #F59E0B; color: #92400E; }
.alert-info { background: #EFF6FF; border-color: #3B82F6; color: #1E40AF; }

/* -----------------------------------------------
   25. 404 / ERROR PAGES
   ----------------------------------------------- */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-content { max-width: 520px; }

.error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.error-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* -----------------------------------------------
   26. TIMELINE
   ----------------------------------------------- */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    z-index: 1;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* -----------------------------------------------
   27. KEYFRAME ANIMATIONS
   ----------------------------------------------- */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes floatMetric1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes floatMetric2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatMetric3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes filterIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes gradient-x {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* -----------------------------------------------
   28. SCROLL ANIMATIONS
   ----------------------------------------------- */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.4s; }

/* -----------------------------------------------
   29. UTILITY CLASSES
   ----------------------------------------------- */

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

.text-center { text-align: center; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: calc(var(--unit) * 1); }
.mb-2 { margin-bottom: calc(var(--unit) * 2); }
.mb-4 { margin-bottom: calc(var(--unit) * 4); }
.mb-6 { margin-bottom: calc(var(--unit) * 6); }

.mt-4 { margin-top: calc(var(--unit) * 4); }
.mt-6 { margin-top: calc(var(--unit) * 6); }

/* -----------------------------------------------
   30. RESPONSIVE — 1024px
   ----------------------------------------------- */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 380px; }
    .hero-metric-1 { right: 10px; }
    .hero-metric-2 { left: 10px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid::before { display: none; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    .about-grid { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .project-detail-meta { grid-template-columns: repeat(2, 1fr); }
    .project-detail-layout { grid-template-columns: 1fr 300px; gap: 40px; }
    .project-info-grid { gap: 24px; }

    .hero-stats { gap: 32px; flex-wrap: wrap; }
}

/* -----------------------------------------------
   31. RESPONSIVE — 768px
   ----------------------------------------------- */

@media (max-width: 768px) {
    :root { --header-h: 64px; }
    .container { padding: 0 20px; }
    .section { padding: 64px 0; }

    .main-nav,
    .header-actions .btn-cta { display: none; }
    .hamburger { display: flex; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero .container { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-stats { flex-direction: column; gap: 16px; margin-top: 48px; }

    .services-grid,
    .testimonials-grid,
    .projects-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; }
    .about-badge { right: 0; }
    .about-image::before { display: none; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }

    .service-detail-grid { grid-template-columns: 1fr; }
    .before-after { grid-template-columns: 1fr; }
    .project-detail-meta { grid-template-columns: 1fr 1fr; }
    .project-detail-layout { grid-template-columns: 1fr; }
    .project-detail-sidebar { position: static; }
    .project-info-grid { gap: 16px; }
    .project-gallery { grid-template-columns: 1fr 1fr; }

    .section-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
}

/* -----------------------------------------------
   32. RESPONSIVE — 480px
   ----------------------------------------------- */

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }

    .team-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .hero-actions { width: 100%; }
    .btn-hero { width: 100%; justify-content: center; }
    .project-detail-meta { grid-template-columns: 1fr; }
    .project-gallery { grid-template-columns: 1fr; }
    .project-gallery-item.gallery-featured { aspect-ratio: 4/3; }
    .project-info-grid { flex-direction: column; gap: 12px; }

    .testimonial-card { padding: 28px 20px; }
    .service-card { padding: 28px 20px; }

    .footer-grid { gap: 24px; }
    .footer-brand p { max-width: 100%; }
}

/* -----------------------------------------------
   33. PRINT STYLES
   ----------------------------------------------- */

@media print {
    .site-header,
    .mobile-overlay,
    .mobile-menu,
    .cta-section,
    .site-footer,
    .theme-toggle,
    .hamburger { display: none !important; }

    body { background: #fff; color: #000; }
    .section { padding: 24px 0; }
    .hero { min-height: auto; background: #fff; }
    .hero-title { color: #000; }
}

/* ===============================================
   34. LIVING ANIMATIONS — Scroll & Continuous
   =============================================== */

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10000;
    transition: none;
}

/* --- Animated Hero Background --- */
.hero-bg {
    animation: heroGradientShift 12s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
    0% { background: linear-gradient(135deg, var(--primary-dark) 0%, #0A2E1A 60%, #0D3520 100%); }
    50% { background: linear-gradient(150deg, #0A2E1A 0%, var(--primary-dark) 40%, #0D3520 100%); }
    100% { background: linear-gradient(120deg, #0D3520 0%, #0A2E1A 50%, var(--primary-dark) 100%); }
}

/* Floating organic shapes in hero */
.hero-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.06;
}

.hero-shape-1 {
    top: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent);
    animation: floatShape1 18s ease-in-out infinite;
    transform: rotate(15deg);
}

.hero-shape-2 {
    bottom: 20%;
    right: 8%;
    width: 140px;
    height: 140px;
    background: var(--accent);
    animation: floatShape2 22s ease-in-out infinite;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.hero-shape-3 {
    top: 60%;
    left: 40%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.1);
    animation: floatShape3 15s ease-in-out infinite;
}

.hero-shape-4 {
    top: 25%;
    right: 30%;
    width: 6px;
    height: 6px;
    background: var(--accent);
    animation: twinkle 3s ease-in-out infinite;
}

.hero-shape-5 {
    bottom: 35%;
    left: 20%;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    animation: twinkle 4s ease-in-out infinite 1s;
}

.hero-shape-6 {
    top: 45%;
    right: 15%;
    width: 5px;
    height: 5px;
    background: var(--accent);
    animation: twinkle 3.5s ease-in-out infinite 0.5s;
}

@keyframes floatShape1 {
    0%, 100% { transform: rotate(15deg) translate(0, 0); }
    25% { transform: rotate(25deg) translate(20px, -30px); }
    50% { transform: rotate(10deg) translate(-10px, -15px); }
    75% { transform: rotate(20deg) translate(15px, 10px); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 20px) rotate(120deg); }
    66% { transform: translate(15px, -15px) rotate(240deg); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -20px) rotate(180deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.06; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(2.5); }
}

/* --- Multi-direction Scroll Reveal --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-rotate {
    opacity: 0;
    transform: perspective(800px) rotateY(15deg);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-rotate.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Parallax Layers --- */
.parallax-layer {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* --- 3D Card Tilt --- */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease;
}

.tilt-card .tilt-inner {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.tilt-card:hover .tilt-inner {
    transform: translateZ(20px);
}

/* --- Magnetic Button --- */
.btn-magnetic {
    transition: transform 0.3s var(--ease-out);
}

/* --- Animated Section Dividers --- */
.section-divider {
    position: relative;
    height: 1px;
    background: var(--border);
    overflow: visible;
    margin: 0;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: dividerSlide 8s ease-in-out infinite;
}

@keyframes dividerSlide {
    0%, 100% { left: 0; }
    50% { left: calc(100% - 80px); }
}

/* --- Hero Title Character Animation --- */
.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotate(5deg);
    animation: charReveal 0.6s var(--ease-out) forwards;
}

@keyframes charReveal {
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* --- Continuous Leaf Float (decorative) --- */
.floating-leaf {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
}

.floating-leaf svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    opacity: 0.15;
}

.floating-leaf.is-active {
    animation: leafFall linear forwards;
}

@keyframes leafFall {
    0% { opacity: 0; transform: translate(0, -20px) rotate(0deg); }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { opacity: 0; transform: translate(var(--leaf-drift, 100px), 100vh) rotate(var(--leaf-rotate, 720deg)); }
}

/* --- Service Icon Bounce on visible --- */
.service-card.is-visible .service-icon {
    animation: iconBounce 0.6s var(--ease-bounce);
}

@keyframes iconBounce {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* --- Stats Number Scale Pop --- */
.stat-item.is-counting .stat-number {
    animation: numberPop 0.4s var(--ease-bounce);
}

@keyframes numberPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: var(--accent); }
    100% { transform: scale(1); }
}

/* --- Process Step Connecting Pulse --- */
.process-grid::after {
    content: '';
    position: absolute;
    top: 48px;
    left: calc(12.5% + 12px);
    width: 20px;
    height: 3px;
    background: var(--accent);
    z-index: 1;
    animation: processPulse 3s ease-in-out infinite;
}

@keyframes processPulse {
    0%, 100% { left: calc(12.5% + 12px); opacity: 1; }
    50% { left: calc(87.5% - 32px); opacity: 0.5; }
}

/* --- Testimonial Card Glow on hover --- */
.testimonial-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    background-size: 200% 200%;
    animation: gradient-x 4s ease infinite;
}

.testimonial-card:hover::after { opacity: 1; }
.testimonial-card { position: relative; z-index: 1; }

/* --- CTA Section Glow Pulse --- */
.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
    animation: ctaGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

/* --- Team photo color reveal --- */
.team-card .team-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), transparent);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s;
}

.team-card:hover .team-photo::before { opacity: 0; }

/* --- Project Card Overlay Slide-Up --- */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(var(--primary-rgb), 0.9) 0%, transparent 100%);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 3;
}

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

.project-overlay-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-overlay-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- Animated Underline on Section Titles --- */
.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 12px;
    transition: width 0.8s var(--ease-out);
}

.section-header.is-visible .section-title::after {
    width: 80px;
}

.section-header.center.is-visible .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer Link Arrow on Hover --- */
.footer-col a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 0;
    transition: width 0.3s, margin-right 0.3s;
}

.footer-col a:hover::before {
    width: 12px;
    margin-right: 8px;
}

/* --- Hero Badge Shimmer --- */
.hero-badge {
    overflow: hidden;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: badgeShimmer 4s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* --- Value Card Icon Rotation on hover --- */
.value-card:hover .value-icon {
    animation: iconSpin 0.6s var(--ease-out);
}

@keyframes iconSpin {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
}

/* --- About Image Reveal Clip --- */
.about-image.is-visible img {
    animation: imageReveal 1.2s var(--ease-out);
}

@keyframes imageReveal {
    0% { clip-path: inset(100% 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

/* --- Stats Bar Counter Underline --- */
.stat-item.is-counting::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.8s var(--ease-out), left 0.8s var(--ease-out);
}

.stat-item.is-counting.is-done::after {
    width: 40px;
    left: calc(50% - 20px);
}

/* --- Form Focus Glow --- */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1), 0 0 20px rgba(var(--primary-rgb), 0.05);
}

/* --- Scroll-linked Section BG Shift --- */
.section[data-scroll-bg] {
    transition: background-color 0.5s ease;
}

/* --- Back to Top Button Pulse --- */
.back-to-top:hover {
    animation: btnPulse 0.6s ease;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 4px 24px rgba(var(--primary-rgb), 0.4); }
}

/* --- Responsive: Disable heavy animations on mobile --- */
@media (max-width: 768px) {
    .hero-shape { display: none; }
    .process-grid::after { display: none; }
    .floating-leaf { display: none; }
    .testimonial-card::after { display: none; }
    .cta-section::after { display: none; }
    .project-overlay { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-progress { display: none; }
    .hero-shape { display: none; }
    .floating-leaf { display: none; }
}
