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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}

/* Header */
header {
    background: white;
    padding: 1.2rem 6%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e4d6b;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 101;
}

/* Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
    background: none;
    border: none;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1e4d6b;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1e4d6b;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.masuk-btn-outline {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0;
    background: transparent;
}

.masuk-btn-outline:hover {
    color: #1e4d6b;
}

.masuk-btn {
    background: #1e4d6b;
    color: white;
    padding: 0.40rem 1.3rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.masuk-btn:hover {
    background: #163d54;
}

/* Container */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 6% 5rem;
}

/* Header */
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c5f7c;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-subtitle {
    font-size: 0.95rem;
    color: #5a6c7d;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid #2c5f7c;
    background: white;
    color: #2c5f7c;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    text-transform: capitalize;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #2c5f7c;
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid #2c5f7c;
}

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

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 95, 124, 0.1) 0%, rgba(44, 95, 124, 0.05) 100%);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive untuk Tablet */
@media (max-width: 1024px) {
    .gallery-container {
        padding: 3rem 5% 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 2rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }
}

/* Responsive untuk Mobile */
@media (max-width: 768px) {
    header {
        padding: 1rem 4%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 0.9rem;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: stretch;
    }

    .masuk-btn-outline,
    .masuk-btn {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        display: block;
    }

    .gallery-container {
        padding: 2.5rem 4% 3rem;
    }

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

    .gallery-title {
        font-size: 1.5rem;
    }

    .gallery-subtitle {
        font-size: 0.85rem;
    }

    .filter-buttons {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Responsive untuk Mobile Kecil */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .gallery-container {
        padding: 2rem 4% 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .gallery-title {
        font-size: 1.3rem;
    }

    .gallery-subtitle {
        font-size: 0.8rem;
    }

    .filter-buttons {
        gap: 0.4rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
    }

    .gallery-item:hover {
        transform: translateY(-4px);
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .gallery-container {
        padding: 1.5rem 3% 2rem;
    }

    .gallery-title {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }

    .gallery-subtitle {
        font-size: 0.75rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}