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

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: white;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

#name {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

/* Intro */
#intro {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    background: linear-gradient(45deg, #1a1a1a, #0a0a0a);
}

#intro h1 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
}

#intro p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 400px;
}

/* Masonry Grid */
#work {
    padding: 5rem 5%;
}

#work h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
}

.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.item.large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.item:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

.item:hover img {
    transform: scale(1.05);
}

.overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.overlay p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    color: #666;
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    #intro h1 {
        font-size: 2.5rem;
    }
    
    .masonry {
        grid-template-columns: 1fr;
    }
    
    .item.large {
        grid-column: span 1;
        aspect-ratio: 1;
    }
    
    .overlay {
        opacity: 1;
        transform: translateY(0);
    }
}