/* 
   LANDING V6 - MONOCHROME GALLERY AESTHETIC
   Minimalist, Premium, Typography-driven
*/

:root {
    --bg: #ffffff;
    --text: #000000;
    --text-muted: #666666;
    --text-light: #999999;
    --border: #e5e5e5;
    --border-dark: #000000;
    --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --whitespace: 4rem;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* --- Layout --- */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--whitespace);
}

section {
    padding: 8rem 0;
}

#projects,
#about {
    scroll-margin-top: 7rem;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem var(--whitespace);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

/* Removed pointer-events override as header now has background and blocks clicks legitimately */

.logo img {
    height: 32px;
}

.logo,
.top-nav,
.cta-text {
    min-width: 0;
}

.top-nav {
    display: flex;
    gap: 2rem;
}

.top-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.logo a:focus-visible,
.top-nav a:focus-visible,
.project-item:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 4px;
}

.cta-text {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-toggle {
    display: none;
    appearance: none;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-direction: column;
    transition: var(--transition);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-sub {
    max-width: 600px;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.hero-gallery {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 30vw;
    height: 40vw;
    z-index: -1;
    opacity: 0.8;
}

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

/* --- Projects Section --- */
.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 4rem;
}

.project-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.project-image {
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.project-collage {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-main {
    width: 85%;
    height: 80%;
    object-fit: cover;
    position: absolute;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    filter: grayscale(100%) contrast(1.1);
    border-radius: 4px;
}

.collage-side {
    width: 40%;
    height: 60%;
    object-fit: cover;
    position: absolute;
    right: -5%;
    bottom: 10%;
    z-index: 3;
    transform: rotate(5deg) translateY(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    filter: grayscale(100%) contrast(1.1);
    border: 4px solid #fff;
    border-radius: 4px;
}

.collage-accent {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 25%;
    opacity: 0.1;
    z-index: 1;
    filter: grayscale(100%);
    transition: var(--transition);
}

.project-item:hover .collage-main {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.02) translate(-10px, -10px);
}

.project-item:hover .collage-side {
    filter: grayscale(0%) contrast(1);
    transform: rotate(2deg) translate(-20px, -20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.project-item:hover .collage-accent {
    opacity: 0.3;
    transform: scale(1.1);
}

.project-placeholder {
    display: none;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.project-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

.about-text {
    font-size: 1.5rem;
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 2rem;
}

.stats-list {
    list-style: none;
}

.stats-item {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stats-item:last-child {
    border-bottom: 1px solid var(--border);
}

/* --- Footer --- */
footer {
    padding: 4rem var(--whitespace);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Animations --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    :root {
        --whitespace: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-gallery {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --whitespace: 1rem;
    }

    header {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .top-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: var(--whitespace);
        right: var(--whitespace);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.5rem);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1001;
    }

    .cta-text {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    body.menu-open .top-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    body.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(5.5px) rotate(45deg);
    }

    body.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-5.5px) rotate(-45deg);
    }

    section {
        padding: 4.5rem 0;
    }

    .hero {
        min-height: auto;
        height: auto;
        padding-top: 6.5rem;
        padding-bottom: 3.5rem;
        justify-content: flex-start;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .hero-headline {
        font-size: clamp(2.45rem, 12vw, 3.85rem);
        margin-bottom: 1.25rem;
        max-width: 100%;
    }

    .hero-sub {
        max-width: 32rem;
        font-size: 1rem;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .about-text {
        font-size: 1.25rem;
    }

    .logo img {
        display: block;
        width: clamp(128px, 42vw, 172px);
        height: auto;
    }

    .stats-item {
        gap: 1rem;
    }
}

@media (max-width: 560px) {
    .top-nav a,
    .cta-text {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    .hero {
        padding-top: 5.75rem;
        padding-bottom: 3rem;
    }

    .hero-headline {
        font-size: clamp(2.15rem, 12vw, 2.9rem);
        line-height: 0.94;
    }

    .hero-sub {
        max-width: 26rem;
        font-size: 0.95rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-meta {
        font-size: 0.78rem;
    }

    .stats-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .stats-item span:last-child {
        overflow-wrap: anywhere;
    }

    footer {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
