/* CSS Variables - Minimalist Bauhaus + Turquoise */
:root {
    --bg-white: #FFFFFF;
    --bg-offwhite: #F8FAFC;
    --navy-dark: #0F172A;
    --navy-light: #1E293B;
    --gray-border: #E2E8F0;
    --gray-text: #64748B;

    --accent-yellow: #EAB308;
    --accent-turquoise: #14B8A6;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--navy-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--accent-turquoise);
    color: var(--bg-white);
}

/* Utility */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Navigation */
nav {
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-border);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--navy-dark);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-turquoise);
}

.nav-links a {
    text-decoration: none;
    color: var(--navy-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin-left: 2rem;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    max-width: 1000px;
}

.hero h1 span {
    color: var(--gray-text);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-text);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--navy-dark);
    color: var(--bg-white);
    border: 1px solid var(--navy-dark);
}

.btn-primary:hover {
    background-color: var(--accent-turquoise);
    border-color: var(--accent-turquoise);
    padding-right: 3rem;
}

/* Work Section (Bauhaus Grid) */
.work {
    padding: 8rem 0;
    background-color: var(--bg-offwhite);
    border-top: 1px solid var(--gray-border);
}

.section-header {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--accent-turquoise);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-turquoise);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.project-card {
    display: block;
    text-decoration: none;
    color: var(--navy-dark);
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--gray-border);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Color class gradients — driven by colorClass front matter */
.proj-1 { background: linear-gradient(45deg, var(--navy-dark), var(--navy-light)); }
.proj-2 { background: linear-gradient(45deg, var(--bg-white), var(--gray-border)); border: 1px solid var(--gray-border); }
.proj-3 { background: linear-gradient(45deg, var(--accent-turquoise), #0D9488); }
.proj-4 { background: linear-gradient(45deg, var(--accent-yellow), #CA8A04); }

.project-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

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

.project-category {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gray-text);
    font-size: 1.1rem;
}

.project-year {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy-light);
    background: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: 50px;
}

/* About Section */
.about {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.about-text h3 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.skills-container {
    border-left: 1px solid var(--gray-border);
    padding-left: 3rem;
}

.skill-group {
    margin-bottom: 2.5rem;
}

.skill-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

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

.skill-list li {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--navy-dark);
    color: var(--bg-white);
    padding: 8rem 0 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6rem;
}

.footer-cta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-cta h2 span {
    color: var(--accent-yellow);
}

.footer-cta a {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent-turquoise);
    text-decoration: none;
    position: relative;
}

.footer-cta a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-turquoise);
    transition: width 0.3s;
}

.footer-cta a:hover::after {
    width: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-text);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--bg-white);
    text-decoration: none;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-yellow);
}

/* Project detail page */
.project-detail {
    padding: 10rem 0 8rem;
}

.project-detail-header {
    margin-bottom: 4rem;
}

.project-detail-header h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.project-detail-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    color: var(--gray-text);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.project-detail-meta .project-category {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
}

.project-detail-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4rem;
}

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

.project-detail-image.placeholder {
    background: linear-gradient(45deg, var(--navy-dark), var(--navy-light));
}

.project-detail-body {
    max-width: 800px;
}

.project-detail-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 3rem 0 1rem;
}

.project-detail-body p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.project-detail-body ul, .project-detail-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-detail-body li {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 3rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-turquoise);
}

/* Responsive */
@media (max-width: 900px) {
    .grid-container, .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .skills-container {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--gray-border);
        padding-top: 3rem;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .hero {
        padding-top: 8rem;
        padding-bottom: 4rem;
        min-height: unset;
    }
    .work {
        padding: 4rem 0;
    }
    .about {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    footer {
        padding: 4rem 0 2rem;
    }
}
