:root {
    --bg-color: #ffffff;
    --hero-bg: #1a1a1a; 
    --text-color: #1a1a1a;
    --text-light: #ffffff;
    --accent-color: #666666;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference; 
    color: white;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    background-color: var(--hero-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5vw;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 6rem); 
    line-height: 1.1;
    font-weight: 400;
    font-style: italic;
    color: var(--text-light);
    max-width: 1400px;
}

/* --- Portfolio Grid --- */
.work {
    padding: 100px 5vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
}

.project-card {
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    aspect-ratio: 5/4;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-title {
    color: white;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.8rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card:hover .project-title {
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.1);
}

.card-meta {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* --- Footer --- */
footer {
    padding: 100px 5vw;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 15px;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem; 
    color: #999;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .work { 
        grid-template-columns: 1fr; 
    }
}


/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform;

    transform: translateZ(0); 
    backface-visibility: hidden;
}


.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Slides up to original position */
}

 /* Add this to your CSS */
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(4) { transition-delay: 0.3s; }
