:root {
    --bg-color: #fafafa;
    --text-color: #111111;
    --muted-color: #666666;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Header / Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-color);
}

nav a {
    text-decoration: none;
    color: var(--muted-color);
    margin-left: 2rem;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--text-color);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem 6rem 4rem;
}

.gallery-header {
    margin-bottom: 3rem;
}

.gallery-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    color: var(--muted-color);
    font-size: 1.05rem;
}

/* Section Titles */
.section-title {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

/* Section 1: Video Showcase */
.video-section {
    margin-bottom: 5rem;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 1rem;
}

.video-title {
    font-size: 1rem;
    font-weight: 500;
}

.video-category {
    font-size: 0.85rem;
    color: var(--muted-color);
}

/* Section 2: Photo Horizontal Slider */
.photo-section {
    margin-top: 4rem;
    border-top: 1px solid #eaeaea;
    padding-top: 2.5rem;
}

.slider-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

.slider-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 48%;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background-color: #e5e5e5;
    margin-bottom: 0.8rem;
    border-radius: 4px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.03);
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.item-title {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.item-category {
    font-size: 0.85rem;
    color: var(--muted-color);
}

/* --- ANIMASI BERPUTAR (ROTATE) KHUSUS PERANGKAT MOBILE --- */
@media (max-width: 768px) {
    .gallery-item.scroll-animate {
        opacity: 0;
        transform: rotate(-15deg) scale(0.8); /* Posisi awal: sedikit miring dan mengecil */
        transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .gallery-item.scroll-animate.active {
        opacity: 1;
        transform: rotate(0deg) scale(1); /* Berputar ke posisi normal saat muncul di layar */
    }
}

/* Footer */
footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 4rem;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }
    main {
        padding: 1.5rem 1.5rem 4rem 1.5rem;
    }
    
    .gallery-item {
        flex: 0 0 85%; /* Menampilkan 1 foto dominan secara horizontal */
    }

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

    footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 2rem 1.5rem;
    }
}