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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #6c5ce7;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links span {
    cursor: pointer;
    color: #636e72;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links span:hover {
    color: #6c5ce7;
    background: #f0f0f0;
}

.nav-links span.active {
    color: white;
    background: #6c5ce7;
}

.main-header {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.main-header h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 300;
}

.main-header p {
    font-size: 1.3em;
    font-weight: 300;
    opacity: 0.9;
}

.masonry {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.masonry-item:hover .overlay {
    transform: translateY(0);
}

.overlay h3 {
    color: white;
    font-size: 1.2em;
    font-weight: 500;
}

footer {
    background: #2d3436;
    color: #b2bec3;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .main-header h1 {
        font-size: 2.5em;
    }

    .main-header p {
        font-size: 1em;
    }

    .masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-auto-rows: 200px;
        gap: 15px;
    }

    .nav-links {
        gap: 20px;
    }
}
