/* Safari-First Optimization */
body {
    -webkit-font-smoothing: antialiased;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* 1. Efek Ambient Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, #C39C4215 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, #D5D5D508 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* DRAWER MENU TRANSITION */
.drawer-enter {
    transform: translateX(0);
}

.drawer-leave {
    transform: translateX(-100%);
}

/* 2. CUSTOM CAROUSEL "OUR MASTERPIECE" (Image 1 Effect) */
.masterpiece-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 80px 0;
    gap: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.masterpiece-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 280px;
    /* Ukuran dasar card */
    height: 400px;
    scroll-snap-align: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.6s ease,
        filter 0.6s ease;
    transform: scale(0.85);
    /* Default mengecil */
    opacity: 0.5;
    filter: grayscale(0.5);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* State Aktif (Tengah) */
.carousel-item.is-active {
    transform: scale(1);
    opacity: 1;
    filter: grayscale(0);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(195, 156, 66, 0.3);
}

/* Adjacent items (slightly smaller) */
.carousel-item.is-adjacent {
    transform: scale(0.85);
    opacity: 0.8;
    filter: grayscale(0.2);
}

/* Far items (smallest) */
.carousel-item.is-far {
    transform: scale(0.7);
    opacity: 0.5;
    filter: grayscale(0.5);
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 320px;
        height: 450px;
    }

    .carousel-item.is-active {
        flex: 0 0 380px;
        height: 520px;
    }
}

/* Carousel Navigation Arrows */
.carousel-nav {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    color: #C39C42;
    transform: scale(1.1);
}

/* Text Effects */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: 0.7s;
}

.btn-shine:hover::after {
    left: 120%;
}

/* Typography specifics from Screenshot 2 */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.01em;
}

.hero-link {
    letter-spacing: 0.25em;
    position: relative;
    display: inline-block;
}

.hero-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    opacity: 0.6;
}

/* Loading Screen Styles */
.loading-logo {
    width: 180px;
    height: auto;
    animation: logoFadeIn 1s ease-out forwards;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.progress-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 40px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C39C42, #D5D5D5);
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 4px;
}

.progress-text {
    font-size: 10px;
    letter-spacing: 0.3em;
    color: #D5D5D5;
    margin-top: 16px;
    opacity: 0.6;
}

/* Running Text Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 8s linear infinite;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    background-image: url('../../galeri/cursor.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
    display: none;
}

@media (pointer: fine) {
    #cursor {
        display: block;
    }
}
/* ===== Article Content Formatting ===== */
.article-content p { margin-bottom: 1.25rem; }
.article-content h1, .article-content h2, .article-content h3 { font-family: Georgia, serif; color: #fff; margin: 2rem 0 1rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.35rem; }
.article-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote { border-left: 3px solid #C39C42; padding-left: 1.25rem; margin: 1.5rem 0; color: #a1a1aa; font-style: italic; }
.article-content strong { color: #fff; font-weight: 600; }
.article-content br + br { display: none; }
