* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f3e5df;
    color: #2f3e2f;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #cdd9c3;
    padding: 30px;
}

.logo {
    margin-bottom: 20px;
}

.nav button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
}

/* Content */
.content {
    flex: 1;
    padding: 40px;
}

/* Page system */
.page {
    display: none;
}
.page.active {
    display: block;
}

/* Foto standar */
.photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 20px;
}

/* Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
    justify-items: center;
}

/* Project image */
#project .card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 14px;
}

/* Card */
.card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

/* Media */
.media-box {
    margin-top: 25px;
}
.media-box video,
.media-box audio {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    margin-top: 10px;
}

.media-links a {
    display: inline-block;
    margin: 10px 10px 0 0;
    padding: 12px 20px;
    background: #2f3e2f;
    color: white;
    text-decoration: none;
    border-radius: 12px;
}

/* Animasi */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}
.reveal.show {
    opacity: 1;
    transform: translateY(0);
    transition: 0.6s ease;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav {
        display: flex;
        gap: 10px;
    }
    .nav button {
        width: auto;
    }
}

@media (max-width: 768px) {
    .photo,
    #project .card img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .photo,
    #project .card img {
        width: 170px;
        height: 170px;
    }
    .media-links a {
        display: block;
    }
}
