/**
 * ATLAS MIMARLIK - Scandinavian Modern Theme
 * ULTRATHINK Design System v2
 *
 * Design: İskandinav Mimari - Yaşayan & Premium
 * Palette: Anthracite + Warm Cream + Terracotta Accent
 */

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    /* Anthracite Palette */
    --anthracite: #2F3D44;
    --anthracite-dark: #1E2A30;
    --anthracite-light: #3D4F58;
    --slate: #4A5C66;

    /* Warm Neutrals */
    --cream: #F8F6F1;
    --cream-dark: #EBE8E1;
    --warm-white: #FDFCFA;
    --sand: #D4CFC4;

    /* Accent Colors */
    --terracotta: #C67B5C;
    --terracotta-light: #D89A7F;
    --terracotta-dark: #A8624A;
    --sage: #8A9A8E;
    --sage-light: #A8B5AB;

    /* Text */
    --text-dark: #1E2A30;
    --text-medium: #4A5C66;
    --text-light: #7A8A92;
    --text-on-dark: #F8F6F1;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-xxl: 120px;

    /* Animation */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.3s;
    --duration-normal: 0.5s;
    --duration-slow: 0.8s;

    /* Layout */
    --container: 1400px;
    --header-height: 90px;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* Selection */
::selection {
    background: var(--terracotta);
    color: var(--warm-white);
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--anthracite);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--terracotta);
}

.section-title {
    font-size: clamp(32px, 4.5vw, 56px);
    color: var(--anthracite);
    margin-bottom: var(--space-sm);
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 600px;
}

/* ========================================
   HEADER
======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    background: transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

header.scrolled {
    background: rgba(248, 246, 241, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(46, 61, 68, 0.1);
}

.logo {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--anthracite);
    display: flex;
    align-items: baseline;
    gap: 2px;
    transition: color var(--duration-fast) var(--ease-out);
}

.logo span {
    color: var(--terracotta);
    font-size: 32px;
    transition: color var(--duration-fast) var(--ease-out);
}

/* Dynamic Header - Light version for dark backgrounds */
header.header-light .logo {
    color: var(--warm-white);
}

header.header-light .logo span {
    color: var(--terracotta-light);
}

header.header-light nav a {
    color: rgba(255, 255, 255, 0.7);
}

header.header-light nav a:hover,
header.header-light nav a.active {
    color: var(--warm-white);
}

header.header-light .menu-toggle span {
    background: var(--warm-white);
}

header.header-light .header-cta {
    background: var(--terracotta);
    color: var(--warm-white);
}

header.header-light .header-cta:hover {
    background: var(--warm-white);
    color: var(--anthracite);
}

/* When scrolled, always use dark header */
header.scrolled .logo {
    color: var(--anthracite);
}

header.scrolled .logo span {
    color: var(--terracotta);
}

header.scrolled nav a {
    color: var(--text-medium);
}

header.scrolled nav a:hover,
header.scrolled nav a.active {
    color: var(--anthracite);
}

header.scrolled .menu-toggle span {
    background: var(--anthracite);
}

header.scrolled .header-cta {
    background: var(--anthracite);
    color: var(--warm-white);
}

nav {
    display: flex;
    gap: var(--space-lg);
}

nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-medium);
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: all var(--duration-fast) var(--ease-out);
    transform: translateX(-50%);
}

nav a:hover,
nav a.active {
    color: var(--anthracite);
}

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

.header-cta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--warm-white);
    background: var(--anthracite);
    padding: 14px 28px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-fast) var(--ease-out);
}

.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--terracotta);
    transition: left var(--duration-normal) var(--ease-out);
    z-index: -1;
}

.header-cta:hover::before {
    left: 0;
}

.header-cta:hover {
    color: var(--warm-white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--anthracite);
    transition: var(--duration-fast) var(--ease-out);
}

/* ========================================
   HERO - SPLIT DESIGN (Unique)
======================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--header-height) var(--space-xl) var(--space-xl);
    padding-left: calc(var(--space-xl) + 20px);
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--terracotta);
}

.hero-title {
    font-size: clamp(42px, 5.5vw, 72px);
    color: var(--anthracite);
    line-height: 1.05;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

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

.hero-desc {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 450px;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 18px 32px;
    transition: all var(--duration-fast) var(--ease-out);
}

.hero-btn.primary {
    background: var(--anthracite);
    color: var(--warm-white);
}

.hero-btn.primary:hover {
    background: var(--terracotta);
    transform: translateY(-3px);
}

.hero-btn.secondary {
    color: var(--anthracite);
    border: 2px solid var(--anthracite);
}

.hero-btn.secondary:hover {
    background: var(--anthracite);
    color: var(--warm-white);
}

.hero-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--duration-fast) var(--ease-out);
}

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

/* Hero Images - Stacked Gallery */
.hero-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--anthracite);
}

.hero-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(47, 61, 68, 0.95) 0%, rgba(47, 61, 68, 0.7) 100%);
    z-index: 1;
}

.hero-images {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 700px;
    z-index: 2;
}

.hero-image {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transition: all var(--duration-slow) var(--ease-out);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-image:nth-child(1) {
    width: 55%;
    height: 70%;
    top: 5%;
    left: 5%;
    z-index: 3;
    opacity: 0;
    animation: slideIn1 1s var(--ease-out) 0.3s forwards;
}

.hero-image:nth-child(2) {
    width: 45%;
    height: 55%;
    top: 25%;
    right: 5%;
    z-index: 2;
    opacity: 0;
    animation: slideIn2 1s var(--ease-out) 0.5s forwards;
}

.hero-image:nth-child(3) {
    width: 35%;
    height: 40%;
    bottom: 5%;
    left: 20%;
    z-index: 4;
    opacity: 0;
    animation: slideIn3 1s var(--ease-out) 0.7s forwards;
}

@keyframes slideIn1 {
    from { opacity: 0; transform: translateX(-50px) rotate(-2deg); }
    to { opacity: 1; transform: translateX(0) rotate(-2deg); }
}

@keyframes slideIn2 {
    from { opacity: 0; transform: translateY(50px) rotate(2deg); }
    to { opacity: 1; transform: translateY(0) rotate(2deg); }
}

@keyframes slideIn3 {
    from { opacity: 0; transform: translateY(50px) rotate(-1deg); }
    to { opacity: 1; transform: translateY(0) rotate(-1deg); }
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-xl);
    display: flex;
    gap: var(--space-xl);
    z-index: 5;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

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

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--warm-white);
    line-height: 1;
}

.hero-stat-num span {
    color: var(--terracotta);
}

.hero-stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--sand);
    margin-top: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--terracotta), transparent);
    animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ========================================
   STATS BAR - Floating
======================================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--container);
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
    background: var(--warm-white);
    box-shadow: 0 20px 60px rgba(47, 61, 68, 0.1);
}

.stat-item {
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    position: relative;
    transition: all var(--duration-fast) var(--ease-out);
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: var(--sand);
}

.stat-item:last-child::after {
    display: none;
}

.stat-item:hover {
    background: var(--cream);
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 52px);
    color: var(--anthracite);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-num span {
    color: var(--terracotta);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream);
    align-items: center;
}

.about-images {
    position: relative;
    height: 600px;
}

.about-img {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(47, 61, 68, 0.15);
    transition: all var(--duration-normal) var(--ease-out);
}

.about-img:first-child {
    width: 65%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 2;
}

.about-img:last-child {
    width: 55%;
    height: 60%;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.about-img:hover {
    z-index: 3;
    transform: translateY(-10px);
}

.about-img:hover img {
    transform: scale(1.03);
}

/* Floating Badge */
.about-badge {
    position: absolute;
    bottom: 15%;
    left: 55%;
    background: var(--terracotta);
    color: var(--warm-white);
    padding: var(--space-md) var(--space-lg);
    z-index: 4;
    box-shadow: 0 15px 40px rgba(198, 123, 92, 0.4);
}

.about-badge-num {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1;
}

.about-badge-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.about-content {
    padding-left: var(--space-lg);
}

.about-text {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: var(--space-lg);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--warm-white);
    border-left: 3px solid var(--sage);
    transition: all var(--duration-fast) var(--ease-out);
}

.about-feature:hover {
    border-left-color: var(--terracotta);
    transform: translateX(8px);
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--sage);
    transition: stroke var(--duration-fast) var(--ease-out);
}

.about-feature:hover .about-feature-icon svg {
    stroke: var(--terracotta);
}

.about-feature span {
    font-size: 14px;
    font-weight: 500;
    color: var(--anthracite);
}

/* ========================================
   PROJECTS SECTION
======================================== */
.projects {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--anthracite);
}

.projects .section-label {
    color: var(--terracotta-light);
}

.projects .section-label::before {
    background: var(--terracotta-light);
}

.projects .section-title {
    color: var(--warm-white);
}

.projects .section-subtitle {
    color: var(--sand);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--terracotta-light);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all var(--duration-fast) var(--ease-out);
}

.section-link:hover {
    border-bottom-color: var(--terracotta-light);
}

.section-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform var(--duration-fast) var(--ease-out);
}

.section-link:hover svg {
    transform: translateX(4px);
}

/* Projects Grid - Masonry Style for 7 projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 280px);
    gap: var(--space-md);
}

.project-card {
    position: relative;
    overflow: hidden;
    display: block;
}

/* İlk proje büyük - 2 satır kaplar */
.project-card:first-child {
    grid-row: span 2;
}

/* 4. proje de büyük olsun - simetri için */
.project-card:nth-child(4) {
    grid-row: span 2;
}

.project-img {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 42, 48, 0.9) 0%,
        rgba(30, 42, 48, 0.3) 40%,
        transparent 100%
    );
    transition: all var(--duration-normal) var(--ease-out);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.project-card:hover .project-img::after {
    background: linear-gradient(
        to top,
        rgba(30, 42, 48, 0.95) 0%,
        rgba(30, 42, 48, 0.5) 50%,
        rgba(30, 42, 48, 0.2) 100%
    );
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    z-index: 2;
}

.project-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(198, 123, 92, 0.2);
    backdrop-filter: blur(10px);
}

.project-name {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--warm-white);
    margin-bottom: 8px;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all var(--duration-fast) var(--ease-out);
}

.project-card:first-child .project-name {
    font-size: 32px;
}

.project-card:hover .project-name {
    transform: translateY(0);
    opacity: 1;
}

.project-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 13px;
    color: var(--sand);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--duration-fast) var(--ease-out) 0.1s;
}

.project-card:hover .project-meta {
    opacity: 1;
    transform: translateY(0);
}

/* Project Arrow */
.project-arrow {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 3;
}

.project-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--warm-white);
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream-dark);
}

.services .section-header {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

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

.service-card {
    padding: var(--space-lg);
    background: var(--warm-white);
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(47, 61, 68, 0.12);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-md);
    position: relative;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--anthracite);
    transition: all var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-icon svg {
    stroke: var(--terracotta);
    transform: scale(1.1);
}

.service-num {
    position: absolute;
    top: -10px;
    right: -10px;
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--cream-dark);
    line-height: 1;
    z-index: -1;
    transition: color var(--duration-fast) var(--ease-out);
}

.service-card:hover .service-num {
    color: rgba(198, 123, 92, 0.15);
}

.service-name {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--anthracite);
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ========================================
   CTA SECTION
======================================== */
.cta {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--terracotta);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: ctaGlow 8s var(--ease-in-out) infinite;
}

@keyframes ctaGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

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

.cta-title {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--warm-white);
    margin-bottom: var(--space-sm);
}

.cta-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-lg);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta);
    background: var(--warm-white);
    padding: 18px 40px;
    transition: all var(--duration-fast) var(--ease-out);
}

.cta-btn:hover {
    background: var(--anthracite);
    color: var(--warm-white);
    transform: translateY(-3px);
}

.cta-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform var(--duration-fast) var(--ease-out);
}

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

/* ========================================
   CONTACT SECTION
======================================== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    padding: var(--space-xxl) var(--space-xl);
    background: var(--warm-white);
}

.contact-info .section-title {
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--cream);
    transition: all var(--duration-fast) var(--ease-out);
}

.contact-item:hover {
    background: var(--cream-dark);
    transform: translateX(10px);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--anthracite);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--duration-fast) var(--ease-out);
}

.contact-item:hover .contact-item-icon {
    background: var(--terracotta);
}

.contact-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--warm-white);
}

.contact-item-text span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta);
}

.contact-item-text p,
.contact-item-text a {
    font-size: 16px;
    color: var(--anthracite);
    margin-top: 4px;
}

.contact-item-text a:hover {
    color: var(--terracotta);
}

/* Contact Form */
.contact-form {
    background: var(--anthracite);
    padding: var(--space-xl);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    background: var(--anthracite-dark);
    border: 1px solid var(--slate);
    color: var(--warm-white);
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    transition: all var(--duration-fast) var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    background: var(--anthracite-light);
}

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

.submit-btn {
    margin-top: var(--space-md);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--anthracite);
    background: var(--terracotta);
    padding: 18px 40px;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.submit-btn:hover {
    background: var(--warm-white);
    transform: translateY(-3px);
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--anthracite-dark);
    padding: var(--space-lg) var(--space-xl);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--warm-white);
}

.footer-logo span {
    color: var(--terracotta);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: 13px;
    color: var(--sand);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--terracotta-light);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   PAGE HERO
======================================== */
.page-hero {
    padding: 160px var(--space-xl) var(--space-xxl);
    background: linear-gradient(135deg, var(--anthracite) 0%, var(--anthracite-dark) 100%);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero-title {
    font-size: clamp(42px, 7vw, 80px);
    color: var(--warm-white);
    margin-bottom: var(--space-sm);
    position: relative;
}

.page-hero-subtitle {
    font-size: 18px;
    color: var(--sand);
    max-width: 550px;
    margin: 0 auto;
    position: relative;
}

/* Breadcrumb line */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--terracotta), transparent);
}

/* ========================================
   PROJECTS PAGE
======================================== */
.projects-page {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-medium);
    padding: 12px 24px;
    border: 1px solid var(--sand);
    background: transparent;
    transition: all var(--duration-fast) var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--warm-white);
    background: var(--anthracite);
    border-color: var(--anthracite);
}

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

.projects-grid-page .project-card {
    height: 400px;
}

.projects-grid-page .project-card .project-info {
    opacity: 1;
}

.projects-grid-page .project-card .project-meta {
    opacity: 1;
    transform: none;
}

/* ========================================
   ABOUT PAGE
======================================== */
.about-page {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream);
}

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
    align-items: center;
}

.about-story-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.about-story-images img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all var(--duration-normal) var(--ease-out);
}

.about-story-images img:first-child {
    transform: translateY(30px);
}

.about-story-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(47, 61, 68, 0.15);
}

.about-story-images img:first-child:hover {
    transform: translateY(30px) scale(1.02);
}

.about-story-content h2 {
    font-size: 32px;
    color: var(--anthracite);
    margin-bottom: var(--space-md);
}

.about-story-content p {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xxl);
    padding: var(--space-xl);
    background: var(--anthracite);
}

.about-stat {
    text-align: center;
}

.about-stat-num {
    font-family: var(--font-display);
    font-size: 52px;
    color: var(--warm-white);
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat-num span {
    color: var(--terracotta);
}

.about-stat-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sand);
}

.about-values h2 {
    font-size: 32px;
    color: var(--anthracite);
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

.value-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--warm-white);
    transition: all var(--duration-normal) var(--ease-out);
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(47, 61, 68, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
}

.value-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--sage);
    transition: stroke var(--duration-fast) var(--ease-out);
}

.value-item:hover .value-icon svg {
    stroke: var(--terracotta);
}

.value-item h3 {
    font-size: 20px;
    color: var(--anthracite);
    margin-bottom: var(--space-sm);
}

.value-item p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ========================================
   TEAM SECTION
======================================== */
.team-section {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream-dark);
}

.team-title {
    font-size: 32px;
    color: var(--anthracite);
    text-align: center;
    margin-bottom: var(--space-xl);
}

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

.team-card {
    text-align: center;
    background: var(--warm-white);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(47, 61, 68, 0.12);
}

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: all var(--duration-slow) var(--ease-out);
}

.team-card:hover .team-img img {
    transform: scale(1.05);
}

.team-info {
    padding: var(--space-md);
}

.team-info h3 {
    font-size: 20px;
    color: var(--anthracite);
    margin-bottom: 4px;
}

.team-info span {
    font-size: 13px;
    color: var(--terracotta);
    display: block;
    margin-bottom: var(--space-sm);
}

.team-info p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ========================================
   SERVICES PAGE
======================================== */
.services-page {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream);
}

.services-intro {
    max-width: 700px;
    margin: 0 auto var(--space-xxl);
    text-align: center;
}

.services-intro p {
    font-size: 19px;
    color: var(--text-medium);
    line-height: 1.8;
}

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

.service-detail-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--warm-white);
    border-left: 4px solid var(--sage);
    transition: all var(--duration-normal) var(--ease-out);
}

.service-detail-card:hover {
    border-left-color: var(--terracotta);
    box-shadow: 0 15px 40px rgba(47, 61, 68, 0.08);
}

.service-detail-card.reverse {
    direction: rtl;
    border-left: none;
    border-right: 4px solid var(--sage);
}

.service-detail-card.reverse:hover {
    border-right-color: var(--terracotta);
}

.service-detail-card.reverse > * {
    direction: ltr;
}

.service-detail-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.service-detail-icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--anthracite);
    transition: stroke var(--duration-fast) var(--ease-out);
}

.service-detail-card:hover .service-detail-icon svg {
    stroke: var(--terracotta);
}

.service-detail-content h2 {
    font-size: 28px;
    color: var(--anthracite);
    margin-bottom: var(--space-sm);
}

.service-detail-desc {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

.service-detail-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   CONTACT PAGE
======================================== */
.contact-page {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-xl);
}

.contact-page-info h2 {
    font-size: 32px;
    color: var(--anthracite);
    margin-bottom: var(--space-sm);
}

.contact-page-info > p {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
}

.contact-details-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-item-page {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-item-page h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 4px;
}

.contact-item-page p,
.contact-item-page a {
    font-size: 16px;
    color: var(--anthracite);
}

.contact-item-page a:hover {
    color: var(--terracotta);
}

.contact-hours h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--anthracite);
    margin-bottom: var(--space-sm);
}

.contact-hours p {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.contact-page-form {
    background: var(--warm-white);
    padding: var(--space-xl);
    box-shadow: 0 10px 40px rgba(47, 61, 68, 0.08);
}

.contact-page-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-page-form .form-group input,
.contact-page-form .form-group textarea {
    background: var(--cream);
    border-color: var(--sand);
    color: var(--anthracite);
}

.contact-page-form .form-group input:focus,
.contact-page-form .form-group textarea:focus {
    background: var(--warm-white);
    border-color: var(--terracotta);
}

.contact-page-form .form-group label {
    color: var(--text-medium);
}

.alert {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 15px;
}

.alert-success {
    background: rgba(138, 154, 142, 0.2);
    border-left: 4px solid var(--sage);
    color: #5a7a5e;
}

.alert-error {
    background: rgba(198, 123, 92, 0.2);
    border-left: 4px solid var(--terracotta);
    color: var(--terracotta-dark);
}

/* ========================================
   PROJECT DETAIL
======================================== */
.project-detail-hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
}

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

.project-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(30, 42, 48, 0.9));
}

.project-detail-content {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--space-xl);
    right: var(--space-xl);
}

.project-title {
    font-size: clamp(36px, 5vw, 60px);
    color: var(--warm-white);
    margin-bottom: var(--space-md);
}

.project-meta-detail {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.meta-item {
    text-align: left;
}

.meta-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--terracotta-light);
    display: block;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 17px;
    color: var(--warm-white);
}

.project-detail-body {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream);
}

.project-description {
    max-width: 750px;
}

.project-description h2 {
    font-size: 32px;
    color: var(--anthracite);
    margin-bottom: var(--space-md);
}

.project-description p {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.9;
}

.related-projects {
    padding: var(--space-xxl) var(--space-xl);
    background: var(--cream-dark);
}

.related-title {
    font-size: 32px;
    color: var(--anthracite);
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ========================================
   ERROR PAGES
======================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--cream);
}

.error-page h1 {
    font-size: 160px;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.error-page h2 {
    font-size: 28px;
    color: var(--anthracite);
    margin-bottom: var(--space-md);
}

.error-page p {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--warm-white);
    background: var(--anthracite);
    padding: 16px 32px;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-back:hover {
    background: var(--terracotta);
}

/* ========================================
   ANIMATIONS
======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--duration-slow) var(--ease-out);
}

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

/* Stagger children */
.fade-up.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-up.visible > *:nth-child(2) { transition-delay: 0.2s; }
.fade-up.visible > *:nth-child(3) { transition-delay: 0.3s; }
.fade-up.visible > *:nth-child(4) { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 280px);
    }

    .project-card:first-child,
    .project-card:nth-child(4) {
        grid-row: auto;
    }

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

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    header {
        padding: 0 var(--space-md);
    }

    nav {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: calc(var(--header-height) + 40px) var(--space-md) var(--space-xl);
        text-align: center;
        align-items: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-gallery {
        height: 60vh;
        min-height: 400px;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        justify-content: center;
        padding: var(--space-lg);
        background: var(--anthracite-dark);
    }

    .stats-bar {
        margin-top: 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .about,
    .contact,
    .about-story,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 400px;
        order: -1;
    }

    .about-content {
        padding-left: 0;
    }

    .projects-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-card {
        grid-template-columns: 1fr;
    }

    .service-detail-card.reverse {
        direction: ltr;
        border-right: none;
        border-left: 4px solid var(--sage);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 40px;
        --space-xxl: 80px;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .stat-item::after {
        display: none;
    }

    .projects-grid,
    .projects-grid-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .projects-grid .project-card {
        height: 300px;
    }

    .services-grid,
    .values-grid,
    .team-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-images,
    .about-story-images {
        grid-template-columns: 1fr;
        height: auto;
    }

    .about-img:first-child,
    .about-story-images img:first-child {
        position: relative;
        transform: none;
    }

    .about-img:last-child {
        position: relative;
    }

    .about-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--space-md);
        display: inline-block;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .contact-page-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-meta-detail {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-images {
        height: 50vh;
    }

    .hero-image:nth-child(1) {
        width: 70%;
        height: 60%;
    }

    .hero-image:nth-child(2) {
        width: 55%;
        height: 45%;
    }

    .hero-image:nth-child(3) {
        width: 45%;
        height: 35%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

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

    .error-page h1 {
        font-size: 100px;
    }

    .page-hero-title {
        font-size: 36px;
    }
}

/* ========================================
   PROJECT DETAIL - ENHANCED
======================================== */

/* Hero */
.pd-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-hero-media {
    position: absolute;
    inset: 0;
}

.pd-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: pdZoom 20s ease-in-out infinite alternate;
}

@keyframes pdZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.12); }
}

.pd-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(47, 61, 68, 0.3) 0%,
        rgba(47, 61, 68, 0.5) 50%,
        rgba(47, 61, 68, 0.95) 100%);
}

.pd-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5vw;
}

.pd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--terracotta);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.badge-line {
    width: 30px;
    height: 2px;
    background: var(--terracotta);
}

.pd-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    color: var(--warm-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    animation: pdFadeUp 1s ease forwards 0.3s;
}

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

.pd-hero-sub {
    font-size: 1rem;
    color: var(--sand);
    opacity: 0;
    animation: pdFadeUp 1s ease forwards 0.6s;
}

.pd-hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.pd-hero-scroll span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sand);
}

.scroll-indicator {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--terracotta), transparent);
}

.pd-hero-quick {
    position: absolute;
    bottom: 3rem;
    right: 5vw;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 2;
}

.quick-item {
    text-align: right;
}

.quick-val {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--terracotta);
}

.quick-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sand);
}

.quick-divider {
    width: 1px;
    height: 40px;
    background: rgba(212, 207, 196, 0.3);
}

/* Stats Bar */
.pd-stats-bar {
    background: var(--anthracite);
}

.stats-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.stat-cell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 2rem;
    transition: background 0.3s ease;
}

.stat-cell:hover {
    background: rgba(198, 123, 92, 0.08);
}

.stat-ico {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 207, 196, 0.2);
}

.stat-ico svg {
    width: 20px;
    height: 20px;
    color: var(--sand);
}

.stat-ico.done svg {
    color: var(--sage);
}

.stat-txt {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sand);
}

.stat-val {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--warm-white);
}

.stat-val.done {
    color: var(--sage);
}

.stat-sep {
    width: 1px;
    background: rgba(212, 207, 196, 0.15);
}

/* Section Styling */
.sec-num {
    display: block;
    font-family: var(--font-display);
    font-size: 5rem;
    color: rgba(47, 61, 68, 0.08);
    line-height: 1;
    margin-bottom: 1rem;
}

.sec-num.light {
    color: rgba(248, 246, 241, 0.08);
}

.sec-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--anthracite);
    line-height: 1.2;
}

.sec-title.light {
    color: var(--warm-white);
}

.sec-title em {
    font-style: italic;
    color: var(--terracotta);
}

/* Story Section */
.pd-story {
    padding: 100px 5vw;
    background: var(--cream);
}

.story-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.story-lead {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--anthracite);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--sand);
}

.story-body {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-medium);
}

/* Gallery */
.pd-gallery {
    padding: 80px 5vw 100px;
    background: var(--cream-dark);
}

.gallery-head {
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.gallery-bento {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

.bento-box {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.bento-box.vis {
    opacity: 1;
    transform: translateY(0);
}

.bento-box.big {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-box.wide {
    grid-column: span 2;
}

.bento-box.tall {
    grid-row: span 2;
}

.bento-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-box:hover img {
    transform: scale(1.1);
}

.bento-over {
    position: absolute;
    inset: 0;
    background: rgba(47, 61, 68, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.bento-box:hover .bento-over {
    background: rgba(47, 61, 68, 0.5);
}

.bento-btn {
    width: 60px;
    height: 60px;
    background: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.bento-btn svg {
    width: 24px;
    height: 24px;
    color: var(--warm-white);
}

.bento-box:hover .bento-btn {
    opacity: 1;
    transform: scale(1);
}

/* Features */
.pd-features {
    position: relative;
    padding: 100px 5vw;
    background: var(--anthracite);
    overflow: hidden;
}

.features-bg-shape {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(198, 123, 92, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.features-wrap {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.features-list {
    display: flex;
    flex-direction: column;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(212, 207, 196, 0.15);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.feat-item.vis {
    opacity: 1;
    transform: translateX(0);
}

.feat-item:hover {
    padding-left: 1rem;
    border-color: var(--terracotta);
}

.feat-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--terracotta);
    min-width: 50px;
}

.feat-txt {
    flex: 1;
    font-size: 1rem;
    color: var(--warm-white);
}

.feat-arr {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 207, 196, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.feat-arr svg {
    width: 18px;
    height: 18px;
    color: var(--terracotta);
}

.feat-item:hover .feat-arr {
    opacity: 1;
    background: var(--terracotta);
}

.feat-item:hover .feat-arr svg {
    color: var(--warm-white);
}

/* Specs */
.pd-specs {
    padding: 100px 5vw;
    background: var(--cream);
}

.specs-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.specs-img-wrap {
    position: relative;
}

.specs-img-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.specs-img-frame {
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 2px solid var(--terracotta);
    z-index: -1;
}

.specs-rows {
    margin-top: 2rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sand);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.spec-row.vis {
    opacity: 1;
    transform: translateX(0);
}

.spec-k {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.spec-v {
    font-size: 1rem;
    font-weight: 500;
    color: var(--anthracite);
}

.spec-v.accent {
    color: var(--sage);
}

/* Related */
.pd-related {
    padding: 100px 5vw;
    background: var(--cream-dark);
}

.related-head {
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.related-cards {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.rel-card {
    display: block;
    position: relative;
    height: 400px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.rel-card.vis {
    opacity: 1;
    transform: translateY(0);
}

.rel-img {
    position: absolute;
    inset: 0;
}

.rel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rel-card:hover .rel-img img {
    transform: scale(1.1);
}

.rel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(47, 61, 68, 0.9) 0%, transparent 60%);
}

.rel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
}

.rel-cat {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.rel-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--warm-white);
    margin-bottom: 1rem;
}

.rel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.rel-link svg {
    width: 16px;
    height: 16px;
}

.rel-card:hover .rel-link {
    opacity: 1;
    transform: translateY(0);
}

/* Nav */
.pd-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    background: var(--cream);
    border-top: 1px solid var(--sand);
}

.pn-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 180px;
    padding: 2rem;
    overflow: hidden;
    transition: background 0.3s ease;
}

.pn-link.empty {
    background: transparent;
}

.pn-link:hover {
    background: rgba(198, 123, 92, 0.05);
}

.pn-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pn-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.pn-link:hover .pn-bg {
    opacity: 0.1;
}

.pn-content {
    position: relative;
    z-index: 1;
}

.pn-dir {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.pn-dir svg {
    width: 16px;
    height: 16px;
}

.pn-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--anthracite);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.pn-link:hover .pn-title {
    color: var(--terracotta);
}

.pn-cat {
    font-size: 0.8rem;
    color: var(--text-light);
}

.pn-link.next {
    justify-content: flex-end;
    text-align: right;
}

.pn-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 3rem;
    background: var(--terracotta);
    color: var(--warm-white);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.pn-all:hover {
    background: var(--terracotta-dark);
}

.pn-grid {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(248, 246, 241, 0.3);
}

.pn-grid svg {
    width: 22px;
    height: 22px;
}

/* CTA */
.pd-cta {
    position: relative;
    padding: 120px 5vw;
    background: var(--anthracite);
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 123, 92, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--warm-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-title em {
    font-style: italic;
    color: var(--terracotta);
}

.cta-sub {
    font-size: 1rem;
    color: var(--sand);
    margin-bottom: 2.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--terracotta);
    color: var(--warm-white);
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--terracotta-light);
    transform: translateY(-3px);
}

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

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

/* Lightbox */
.atlas-lb {
    position: fixed;
    inset: 0;
    background: rgba(47, 61, 68, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.atlas-lb.show {
    opacity: 1;
}

.lb-wrap {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lb-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lb-x {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    border: none;
    color: var(--warm-white);
    font-size: 2rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lb-x:hover {
    background: var(--terracotta-dark);
}

/* Responsive - Project Detail */
@media (max-width: 1024px) {
    .stats-inner { flex-wrap: wrap; }
    .stat-cell { flex: 1 1 50%; border-bottom: 1px solid rgba(212, 207, 196, 0.15); }
    .stat-sep { display: none; }
    .story-wrap { grid-template-columns: 1fr; gap: 3rem; }
    .gallery-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .bento-box.big { grid-column: span 2; grid-row: span 1; }
    .bento-box.tall { grid-row: span 1; }
    .features-wrap { grid-template-columns: 1fr; gap: 3rem; }
    .specs-wrap { grid-template-columns: 1fr; gap: 4rem; }
    .specs-img-wrap { order: 2; }
    .related-cards { grid-template-columns: 1fr; }
    .pd-nav { grid-template-columns: 1fr; }
    .pn-all { order: -1; }
    .pn-link.next { text-align: left; justify-content: flex-start; }
}

@media (max-width: 768px) {
    .pd-hero { min-height: 600px; }
    .pd-hero-quick { display: none; }
    .stat-cell { flex: 1 1 100%; padding: 1.25rem; }
    .gallery-bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .bento-box.big, .bento-box.wide, .bento-box.tall { grid-column: span 1; grid-row: span 1; }
    .rel-card { height: 320px; }
}
