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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,248,255,0.95) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

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

.nav-link {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    width: 100%;
}

/* ==================== GALLERY HEADER ==================== */
.gallery-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-header h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.gallery-header p {
    font-size: 1.3rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ==================== GALLERY CONTAINER ==================== */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    animation: scaleIn 0.6s ease-out both;
}

.gallery-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-card:nth-child(5) { animation-delay: 0.25s; }
.gallery-card:nth-child(6) { animation-delay: 0.3s; }
.gallery-card:nth-child(7) { animation-delay: 0.35s; }
.gallery-card:nth-child(8) { animation-delay: 0.4s; }
.gallery-card:nth-child(9) { animation-delay: 0.45s; }
.gallery-card:nth-child(10) { animation-delay: 0.5s; }
.gallery-card:nth-child(11) { animation-delay: 0.55s; }
.gallery-card:nth-child(12) { animation-delay: 0.6s; }
.gallery-card:nth-child(13) { animation-delay: 0.65s; }
.gallery-card:nth-child(14) { animation-delay: 0.7s; }
.gallery-card:nth-child(15) { animation-delay: 0.75s; }
.gallery-card:nth-child(16) { animation-delay: 0.8s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.gallery-card:hover {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.15) rotate(2deg);
}

.gallery-card:hover .card-overlay {
    opacity: 1;
}

.gallery-card:hover .card-label {
    transform: translateY(0);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: #bbb;
    margin-top: 1rem;
    font-style: italic;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .gallery-header p {
        font-size: 1.1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-header {
        padding: 2rem 1rem;
    }

    .gallery-header h1 {
        font-size: 1.5rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    .gallery-container {
        padding: 2rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}
