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

:root {
    --black: #0a0a0a;
    --off-white: #f0ece4;
    --warm-gray: #b0aa9e;
    --accent: #d4522a;
    --accent-light: #e8876a;
    --card-bg: #141414;
    --border: rgba(240,236,228,0.12);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html { 
    scroll-behavior: smooth; 
    overscroll-behavior: none;
}

body {
    background: var(--black);
    color: var(--off-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: default;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    background: transparent;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    opacity: 0;
    color: var(--off-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 1.0rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-light); }

/* ── HERO ── */
#hero {
position: relative;
height: 100vh;
min-height: 600px;
display: flex;
align-items: flex-end;
overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* Replace with your own background image: background-image: url('YOUR_IMAGE.jpg'); */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    animation: heroZoom 12s ease-out forwards;
    transition: background-image 0.8s ease-in-out;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1.0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.2) 50%, rgba(10,10,10,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 3rem 4rem;
    width: 100%;
    animation: fadeUp 1s 0.3s both;
}

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

.hero-eyebrow {
    display: block;
    font-size: 1.0rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--off-white);
    margin-bottom: 0.6rem;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    color: var(--off-white);
    margin-bottom: 0rem;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: var(--warm-gray);
    max-width: 440px;
    letter-spacing: 0.03em;
}

.hero-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.hero-socials a {
    width: 38px; height: 38px;
    border: 1px solid rgba(240,236,228,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    color: var(--off-white);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.hero-socials a:hover {
    border-color: var(--accent);
    color: var(--off-white);
    background: rgba(212,82,42,0.15);
}

.hero-socials svg { width: 16px; height: 16px; fill: currentColor; }

.scroll-hint {
    position: absolute;
    bottom: 2rem; right: 3rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-gray);
    animation: fadeUp 1s 0.9s both;
}

.scroll-line {
    width: 40px; height: 1px;
    background: var(--warm-gray);
}

/* ── SECTIONS SHARED ── */
section { padding: 7rem 3rem; }

.section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--off-white);
    margin-bottom: 3rem;
}

/* ── PORTFOLIO GRID ── */
#portfolio { 
    background: var(--black); 
    padding: 7rem 3rem 4rem;
}

.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.portfolio-header h2 { margin-bottom: 0; }


.portfolio-filters {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.filter-btns {
    display: flex;
    gap: 0.6rem;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--off-white);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn.inactive {
    background: transparent;
    border-color: rgba(176,170,158,0.3);
    color: var(--warm-gray);
}

.filter-btn:hover {
    border-color: var(--accent-light);
    color: var(--off-white);
}

.filter-btn:disabled {
    pointer-events: none;
    cursor: default;
}

.portfolio-footer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.portfolio-footer h2 { margin-bottom: 0; }

.view-all {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(176,170,158,0.3);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: var(--black);
}

/* Featured (large) card */
.project-card {
    background: var(--black);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.project-card.displaynone {
    display: none;
}

.project-card:hover { background: #111; }

.project-card.featured { grid-column: span 7; min-height: 520px; }
.project-card.medium   { grid-column: span 5; min-height: 520px; }
.project-card.small    { grid-column: span 4; min-height: 320px; }

.card-img {
    width: 100%;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.75) saturate(0.85);
    transition: transform 0.6s ease, filter 0.4s ease;
}

.project-card:hover .card-img img {
    transform: scale(1.04);
    filter: brightness(0.85) saturate(1);
}

/* Placeholder color blocks when no image */
.card-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: rgba(240,236,228,0.2);
    transition: color 0.3s;
}

.project-card:hover .card-img-placeholder { color: rgba(240,236,228,0.35); }

.p1 { background: linear-gradient(145deg, #1c1c2e, #2d1b4e); }
.p2 { background: linear-gradient(145deg, #1e2d1e, #0f3320); }
.p3 { background: linear-gradient(145deg, #2e1c1c, #4e1b1b); }
.p4 { background: linear-gradient(145deg, #1c2020, #0d2e2e); }
.p5 { background: linear-gradient(145deg, #2a2010, #3d2e0f); }

.card-meta {
    padding: 1.4rem 1.6rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--off-white);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.tag {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid rgba(240,236,228,0.18);
    color: var(--warm-gray);
}

.card-arrow {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border: 1px solid rgba(240,236,228,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    margin-top: 4px;
}

.project-card:hover .card-arrow {
    background: var(--accent);
    border-color: var(--accent);
}

.card-arrow svg { width: 14px; height: 14px; stroke: var(--off-white); fill: none; stroke-width: 2; }

/* ── ABOUT ── */
#about {
    background: #0d0d0d;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    max-height: 580px;
    margin-left: auto;
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7);
}

/* Placeholder for about photo */
.about-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1a1a2e, #2d1b4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: rgba(240,236,228,0.25);
}

.about-accent-line {
    width: 48px; height: 2px;
    background: var(--accent);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--warm-gray);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--off-white);
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    border: 1px solid rgba(240,236,228,0.3);
    padding: 0.8rem 1.6rem;
    transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.btn:disabled {
    pointer-events: none;
    cursor: default;
}

.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── CONTACT ── */
#contact {
    background: var(--black);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.contact-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.5);
}

.contact-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0f1a1a, #1a2e2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: rgba(240,236,228,0.2);
}

.contact-form { padding-top: 0.5rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

input, textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(240,236,228,0.2);
    color: var(--off-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.6rem 0;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 100px; }

.form-submit {
    margin-top: 1.5rem;
}

/* ── FOOTER ── */
footer {
    background: #060606;
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(176,170,158,0.5);
    letter-spacing: 0.05em;
    width: 100%;
}

.footer-copy-div {
    width: 50%;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(176,170,158,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--off-white); }

.footer-socials {
    display: flex;
    gap: 1.2rem;
    width: 50%;
    justify-content: right;
}

.footer-socials a {
    width: 38px; height: 38px;
    border: 1px solid rgba(240,236,228,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    color: var(--warm-gray);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--off-white);
    background: rgba(212,82,42,0.15);
}

.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    nav { padding: 1.2rem 1.5rem; }
    .nav-links { gap: 1.5rem; }

    section { padding: 5rem 1.5rem; }

    .project-card.featured,
    .project-card.medium,
    .project-card.small { grid-column: span 12; min-height: 260px; }

    #about,
    #contact { grid-template-columns: 1fr; gap: 2.5rem; }

    .about-img-wrap { max-height: 340px; }
    .hero-content { padding: 0 1.5rem 3rem; }
    .scroll-hint { right: 1.5rem; }
    footer { padding: 1.5rem; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    h1 { font-size: 3.5rem; }
    .form-row { grid-template-columns: 1fr; }

    .portfolio-filters {
        display: none;
    }
}