:root {
    /* Nilai default, nanti bisa ditimpa via inline style di HTML */
    --body-bg: #f8fafc;
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--body-bg);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Lapisan cahaya 3D untuk menambah kedalaman */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }

/* Efek 3D Typography Tingkat Lanjut */
.text-3d-effect {
    color: #ffffff;
    text-shadow: 
        0 1px 0 #cccccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbbbbb,
        0 4px 0 #b2b2b2,
        0 5px 0 rgba(0, 0, 0, 0.1),
        0 6px 1px rgba(0, 0, 0, 0.1),
        0 0 5px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 3px 5px rgba(0, 0, 0, 0.4),
        0 5px 10px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

@media (max-width: 640px) {
    .text-3d-effect {
        text-shadow: 
            0 1px 0 #cccccc,
            0 2px 0 #b2b2b2,
            0 3px 5px rgba(0, 0, 0, 0.5);
    }
}

/* Ultra Glossy 3D Glassmorphism dengan Efek Kilau Cahaya */
.glass-card-3d {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.45) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 
                inset 0 1px 2px rgba(255, 255, 255, 0.9),
                inset 0 -10px 20px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.glass-card-3d::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.25) 50%, transparent 55%);
    transform: rotate(35deg) translateY(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}
.glass-card-3d:hover::after {
    transform: rotate(35deg) translateY(100%);
}

.glass-nav-3d-full {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 3px solid rgba(0, 0, 0, 0.22);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 
                inset 0 2px 4px rgba(255, 255, 255, 0.95),
                inset 0 -4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.glass-footer-3d-fixed {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 3px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25), 
                inset 0 3px 6px rgba(255, 255, 255, 0.95);
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 40;
}

.nav-item-3d {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.nav-item-3d:hover {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.palette-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.color-card-3d {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15), inset 0 2px 3px rgba(255,255,255,0.6), inset 0 -2px 3px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.color-card-3d:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.8), inset 0 -2px 4px rgba(0,0,0,0.3);
}

.glass-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
}

@media (min-width: 1024px) {
    .glass-hero-slider { border-radius: 2rem; }
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease;
    transform: scale(1.02);
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.98) 0%, rgba(10, 15, 30, 0.65) 60%, rgba(10, 15, 30, 0.35) 100%);
    z-index: 1;
}

.dropdown-3d {
    opacity: 0; visibility: hidden;
    transform: perspective(800px) rotateX(-15deg) translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(25px);
    border-top: 2px solid rgba(255, 255, 255, 1);
    border-left: 2px solid rgba(255, 255, 255, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.group:hover .dropdown-3d {
    opacity: 1; visibility: visible;
    transform: perspective(800px) rotateX(0deg) translateY(0px);
}

.logo-3d-container { perspective: 800px; }

.logo-3d {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
}
.logo-3d-container:hover .logo-3d {
    transform: rotate(360deg) scale(1.2);
}

@media (max-width: 1023px) {
    .mobile-dropdown-content {
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    /* Tambahkan baris ini agar kelas .open dari JavaScript dapat merentangkan tinggi konten */
    .mobile-dropdown-content.open {
        max-height: 400px; 
    }
}