/* ============================================================
   PROJECTS SHOWCASE — DARK BOLD EDITORIAL
   Oversized display type · section numbers · thin rules
   ============================================================ */

:root {
    --bg: #0a0a0c;
    --bg-2: #101013;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.07);

    --fg: #f4f4f6;
    --fg-muted: #8c8c96;
    --fg-dim: #5c5c66;

    --accent: #4d7cff;
    --accent-bright: #6f97ff;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

::selection {
    background: var(--accent);
    color: #fff;
}

#main {
    position: relative;
}

/* ---------- NAVIGATION ---------- */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 56px;
    z-index: 999;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-left { display: flex; align-items: center; }

.nav-name {
    text-decoration: none;
    color: var(--fg);
    font-size: 12px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.nav-name-bold { font-weight: 700; }
.nav-location { font-weight: 400; color: var(--fg-dim); }

.nav-right { display: flex; align-items: center; gap: 30px; }

.nav-link {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: color 0.3s var(--ease);
    text-transform: uppercase;
}

.nav-link:hover { color: var(--fg); }
.nav-contact { color: var(--fg); font-weight: 700; }

/* ---------- HERO ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 56px 6vh;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
}

.hero-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}

.hero-title {
    font-size: clamp(64px, 13vw, 210px);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.05em;
    flex: 1;
    color: var(--fg);
}

.hero-subtitle {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--fg-muted);
    font-weight: 400;
    line-height: 1.6;
    max-width: 360px;
    padding-bottom: 14px;
}

/* ---------- SECTION HEADER (added via CSS) ---------- */
.projects-section {
    padding: 9vh 56px 12vh;
    max-width: 1600px;
    margin: 0 auto;
}

.projects-section::before {
    content: 'Selected Work';
    display: block;
    font-size: clamp(13px, 1.1vw, 15px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fg-dim);
    padding-bottom: 28px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--line);
}

/* ---------- PROJECTS GRID ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px 56px;
    align-items: start;
    counter-reset: proj;
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.grid-col-right { margin-top: 90px; }

/* ---------- PROJECT CARD ---------- */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    counter-increment: proj;
    position: relative;
}

.project-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-2);
    aspect-ratio: 4 / 3;
    border-radius: 4px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
    filter: grayscale(0.25) brightness(0.92);
}

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

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 12, 0.5), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

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

.project-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--accent);
    color: #fff;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 3;
}

/* ---------- PROJECT INFO ---------- */
.project-info {
    padding: 26px 2px 0;
    position: relative;
}

.project-info::before {
    content: counter(proj, decimal-leading-zero);
    position: absolute;
    top: 26px;
    right: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-dim);
    letter-spacing: 1px;
}

.project-title {
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 14px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    max-width: 90%;
    transition: color 0.3s var(--ease);
}

.project-card:hover .project-title { color: var(--accent-bright); }

.project-desc {
    font-size: clamp(14px, 1.05vw, 16px);
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
    max-width: 92%;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.project-tags span {
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s var(--ease);
}

.project-card:hover .project-tags span { color: var(--fg-muted); }

/* ---------- STATISTICS ---------- */
.stats-section {
    padding: 12vh 56px;
    border-top: 1px solid var(--line);
    max-width: 1600px;
    margin: 0 auto;
}

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

.stat-item {
    text-align: left;
    padding: 0 36px;
    border-left: 1px solid var(--line-soft);
}

.stat-item:first-child { padding-left: 0; border-left: none; }

.stat-number {
    display: block;
    font-size: clamp(52px, 7vw, 110px);
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 14px;
    letter-spacing: -0.05em;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--fg-muted);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ---------- CTA ---------- */
.cta-section {
    padding: 16vh 56px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.cta-section h2 {
    font-size: clamp(44px, 9vw, 150px);
    margin-bottom: 36px;
    color: var(--fg);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.cta-section p {
    font-size: clamp(16px, 1.4vw, 20px);
    color: var(--fg-muted);
    margin-bottom: 52px;
    font-weight: 400;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 18px 44px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.35s var(--ease);
    display: inline-block;
    letter-spacing: 0.3px;
}

.cta-button.primary {
    background: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
}

.cta-button.primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--fg-muted);
    border: 1px solid var(--line);
}

.cta-button.secondary:hover {
    color: var(--fg);
    border-color: var(--fg);
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    #nav { padding: 20px 32px; }
    .hero-section { padding: 0 32px 6vh; }
    .projects-section,
    .stats-section { padding-left: 32px; padding-right: 32px; }
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
    .stat-item:nth-child(3) { padding-left: 0; border-left: none; }
}

@media (max-width: 900px) {
    .hero-content { flex-direction: column; align-items: flex-start; gap: 28px; }
    .hero-subtitle { max-width: 100%; }
    .projects-grid { gap: 56px 40px; }
    .grid-col { gap: 56px; }
    .grid-col-right { margin-top: 56px; }
}

@media (max-width: 768px) {
    #nav { padding: 16px 20px; }
    .nav-name { font-size: 11px; }
    .nav-right { gap: 16px; }
    .nav-link { font-size: 11px; }

    .hero-section { min-height: 78vh; padding: 0 20px 8vh; align-items: flex-end; }
    .hero-title { line-height: 0.92; }

    .projects-section { padding: 8vh 20px 10vh; }
    .projects-section::before { margin-bottom: 40px; }

    .projects-grid { grid-template-columns: 1fr; gap: 64px; }
    .grid-col { gap: 64px; }
    .grid-col-right { margin-top: 0; }

    .stats-section { padding: 9vh 20px; }
    .stats-container { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .stat-item { padding: 0 20px; }
    .stat-item:nth-child(odd) { padding-left: 0; border-left: none; }

    .cta-section { padding: 12vh 20px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-button { width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 480px) {
    .nav-right { gap: 12px; }
    .nav-link:not(.nav-contact) { display: none; }
    .stats-container { grid-template-columns: 1fr; gap: 40px; }
    .stat-item { padding-left: 0; border-left: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; animation: none !important; }
    html { scroll-behavior: auto; }
    .project-image img { filter: none; }
}
