/* ══════════════════════════════════════════════════════
   STUDIO DIMENSION — Design System & Styles
   ══════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #0a0a0a;
    --color-dark-2: #111111;
    --color-dark-3: #1a1a1a;
    --color-light: #ffffff;
    --color-light-2: #f5f5f3;
    --color-muted: #888888;
    --color-muted-light: #b0b0b0;
    --color-accent: #c4a882;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-card: 50px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--color-dark);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ─── Typography ─── */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-muted);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-dark);
}

.section-title em {
    font-style: italic;
    color: var(--color-dark-3);
}

/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span {
    font-weight: 300;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-light);
    opacity: 0.8;
    transition: opacity var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-light);
    transition: width var(--transition);
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Header CTA */
.btn-cta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-light);
    background: transparent;
    transition: all var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta .arrow {
    transition: transform var(--transition);
    display: inline-block;
    font-size: 1rem;
}

.btn-cta:hover {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
}

.btn-cta:hover .arrow {
    transform: translate(3px, -3px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-light);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
}

.hero-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-muted-light);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--color-light);
    opacity: 0;
    animation: fadeUp 1.2s ease forwards 0.8s;
}

.hero-title em {
    font-style: italic;
    color: var(--color-accent);
}

/* Scroll prompt */
.scroll-prompt {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.4s;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--color-light));
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-prompt span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-muted-light);
}

/* Side labels */
.hero-side-label {
    position: absolute;
    z-index: 2;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: vertical-rl;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.6s;
}

.hero-side-label.left {
    left: 60px;
    bottom: 50px;
}

.hero-side-label.right {
    right: 60px;
    bottom: 50px;
    text-orientation: mixed;
}

/* ══════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════ */
.about {
    background: var(--color-light);
    padding: 140px 0 100px;
    position: relative;
    z-index: 3;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.about-left .section-label {
    color: var(--color-muted);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-muted);
}

/* Trusted By */
.trusted-by {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.trusted-label {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-light);
    border: 3px solid var(--color-light);
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-count {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-left: 12px;
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   FEATURED PROJECTS — Stacking Cards
   ══════════════════════════════════════════════════════ */
.featured-projects {
    background: var(--color-light);
    padding-bottom: 20px;
    position: relative;
    z-index: 3;
}

.featured-projects .section-intro {
    padding: 60px 0 40px;
    text-align: center;
}

.project-card {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    margin-top: -1px;
}

.project-card-image {
    position: absolute;
    inset: 0;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
    display: flex;
    align-items: flex-end;
    padding: 60px 80px;
}

.project-card-info {
    color: var(--color-light);
}

.project-year {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-muted-light);
    margin-bottom: 10px;
    display: block;
}

.project-name {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 8px;
}

.project-location {
    font-size: 0.9rem;
    color: var(--color-muted-light);
    margin-bottom: 16px;
}

.project-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    display: inline-block;
}

/* ══════════════════════════════════════════════════════
   PROJECT GRID
   ══════════════════════════════════════════════════════ */
.project-grid-section {
    background: var(--color-light-2);
    padding: 140px 0;
    position: relative;
    z-index: 4;
}

.project-grid-section .section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.grid-item-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.grid-item-img img {
    transition: transform 0.6s ease;
}

.grid-item:hover .grid-item-img img {
    transform: scale(1.06);
}

.grid-item-info {
    padding: 24px 28px;
}

.grid-item-info h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--color-dark);
}

.grid-item-info span {
    font-size: 0.8rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════ */
.cta-section {
    background: var(--color-dark);
    padding: 160px 0;
    text-align: center;
    position: relative;
    z-index: 5;
}

.cta-section .section-label {
    color: var(--color-muted);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-light);
    margin-bottom: 30px;
}

.cta-title em {
    font-style: italic;
    color: var(--color-accent);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 580px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-weight: 300;
}

.btn-cta-large {
    font-size: 0.9rem;
    padding: 20px 44px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer {
    background: var(--color-dark-2);
    padding: 80px 0 40px;
    position: relative;
    z-index: 5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo span {
    font-weight: 300;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h5 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-light);
    margin-bottom: 24px;
    font-weight: 500;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 0.9rem;
    color: var(--color-muted);
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--color-light);
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.7);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════ */

/* ─── Nav active state ─── */
.nav-active {
    opacity: 1 !important;
}

.nav-active::after {
    width: 100% !important;
}

/* ─── Contact Hero ─── */
.contact-hero {
    position: relative;
    height: 45vh;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-dark);
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
    opacity: 0.8;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
}

.contact-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--color-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.contact-hero .hero-label {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

/* ─── Location Section ─── */
.contact-location {
    background: var(--color-light);
    padding: 100px 0 80px;
    position: relative;
    z-index: 3;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.08);
    min-height: 420px;
}

.location-card {
    padding: 50px 44px;
    background: var(--color-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-city {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 24px;
}

.location-studio {
    font-size: 0.9rem;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.6;
}

.location-studio strong {
    color: var(--color-dark-3);
    font-weight: 600;
}

.location-address {
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.location-contacts {
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.location-phone,
.location-email {
    font-size: 0.88rem;
    color: var(--color-dark);
    margin-bottom: 10px;
    line-height: 1.8;
}

.location-phone strong,
.location-email strong {
    font-weight: 600;
    color: var(--color-dark-3);
}

.location-phone a,
.location-email a {
    color: var(--color-accent);
    transition: color var(--transition);
}

.location-phone a:hover,
.location-email a:hover {
    color: var(--color-dark);
}

.phone-separator {
    color: var(--color-muted);
    margin: 0 6px;
}

.location-map {
    background: #e8e8e8;
    min-height: 420px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ─── Email Section ─── */
.contact-email-section {
    background: var(--color-light);
    padding: 0 0 80px;
    position: relative;
    z-index: 3;
}

.email-divider {
    height: 1px;
    background: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 60px;
}

.email-section-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 50px;
}

.email-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.email-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.email-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-light-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.email-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.email-item a {
    display: block;
    font-size: 0.88rem;
    color: var(--color-accent);
    transition: color var(--transition);
    line-height: 1.6;
}

.email-item a:hover {
    color: var(--color-dark);
}

/* ─── Contact Form Section ─── */
.contact-form-section {
    background: var(--color-light-2);
    padding: 100px 0 120px;
    position: relative;
    z-index: 3;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.form-title {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-dark);
    white-space: nowrap;
}

.form-title-line {
    flex: 1;
    height: 1px;
    background: #d0d0d0;
}

.contact-form {
    max-width: 900px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-full {
    margin-bottom: 30px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 16px 18px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: var(--color-light);
    color: var(--color-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-muted);
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.12);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 18px 60px;
    border-radius: 8px;
    border: none;
    background: var(--color-dark);
    color: var(--color-light);
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--color-dark-3);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ─── Connect Socially ─── */
.connect-social {
    background: var(--color-light);
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.social-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--color-muted);
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: all var(--transition);
    background: var(--color-light-2);
}

.social-icon:hover {
    color: var(--color-light);
    background: var(--color-dark);
    transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════
   PROJECT DETAIL PAGE
   ══════════════════════════════════════════════════════ */

/* ─── Project Detail Hero ─── */
.project-detail-hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-detail-hero-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.project-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(0, 0, 0, 0.65) 100%);
}

.project-detail-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
}

.project-detail-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    color: var(--color-light);
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.project-detail-location {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-muted-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.8s;
}

.project-detail-hero .hero-label {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

/* ─── Project Detail Info ─── */
.project-detail-info {
    background: var(--color-light);
    padding: 100px 0 80px;
    position: relative;
    z-index: 3;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.project-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-muted);
}

.meta-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-dark);
}

.project-detail-description p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.project-detail-description p:last-child {
    margin-bottom: 0;
}

/* ─── Project Gallery ─── */
.project-gallery {
    background: var(--color-light);
    padding: 0 0 100px;
    position: relative;
    z-index: 3;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
    border-radius: 16px;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item-full {
    grid-column: 1 / -1;
}

.gallery-item-full img {
    aspect-ratio: 21 / 9;
}

/* ─── Lightbox ─── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox.active .lightbox-img-wrap img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-light);
    font-size: 2rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-muted-light);
    letter-spacing: 3px;
}

/* ─── More Projects ─── */
.more-projects {
    background: var(--color-light-2);
    padding: 100px 0 120px;
    position: relative;
    z-index: 4;
}

.more-projects .section-intro {
    text-align: center;
    margin-bottom: 50px;
}

/* ─── Grid items as links ─── */
a.grid-item {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .header-inner {
        padding: 0 40px;
    }

    .about-grid {
        gap: 50px;
    }

    .project-card-overlay {
        padding: 40px 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    /* Contact page */
    .location-grid {
        grid-template-columns: 1fr 1.2fr;
    }

    .location-card {
        padding: 40px 36px;
    }

    /* Project detail page */
    .project-detail-grid {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header-inner {
        padding: 0 24px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.97);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .main-nav a {
        font-size: 1.4rem;
        letter-spacing: 4px;
    }

    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 30px;
    }

    .trusted-by {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-card {
        height: 70vh;
        min-height: 400px;
        border-radius: 30px 30px 0 0;
    }

    .project-card-overlay {
        padding: 30px;
    }

    .project-name {
        font-size: 1.8rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero-side-label {
        display: none;
    }

    /* Contact page */
    .contact-hero {
        height: 35vh;
        min-height: 280px;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 300px;
    }

    .email-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .form-title-line {
        width: 60px;
    }

    .contact-form-section {
        padding: 80px 0 100px;
    }

    /* Project detail page */
    .project-detail-hero {
        height: 55vh;
        min-height: 380px;
    }

    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-detail-info {
        padding: 70px 0 50px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-full {
        grid-column: 1;
    }

    .gallery-item img,
    .gallery-item-full img {
        aspect-ratio: 16 / 10;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .more-projects {
        padding: 80px 0 100px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Contact page */
    .contact-hero-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .location-card {
        padding: 30px 24px;
    }

    .btn-submit {
        width: 100%;
    }

    /* Project detail page */
    .project-detail-title {
        font-size: 2.4rem;
    }

    .project-detail-location {
        font-size: 0.85rem;
    }

    .meta-value {
        font-size: 1rem;
    }
}