:root {
    --gold-primary: #D4AF37;
    --gold-text: #997D14; /* Darker gold for better contrast on white */
    --gold-light: #FFD700;
    --gold-dark: #B8941F;
    --dark-bg: #1a1a1a;
    --dark-bg-light: #2d2d2d;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Base Setup */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f7f6;
    color: #333;
}

/* ============================================
   NAVBAR & LOGO POJOK
   ============================================ */
.navbar-custom {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    min-height: 70px;
    z-index: 1050;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-logo:hover {
    transform: rotate(5deg) scale(1.1);
}

.brand-text {
    color: var(--gold-primary) !important;
    font-weight: 700;
    font-size: 1.25rem;
    margin-left: 12px;
    letter-spacing: 1px;
}

/* ============================================
   HERO SECTION & LOGO TENGAH
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #242424 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    transition: all 0.5s ease;
    animation: floating 3s ease-in-out infinite;
}

/* Responsive Hero Logo */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .hero-logo {
        max-width: 200px;
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* ============================================
   GALLERY STYLES
   ============================================ */
.gallery-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    position: relative;
}

.gallery-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
}

.gallery-card:hover::after {
    opacity: 1;
}

.gallery-logo-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.gallery-logo-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15%;
    transition: transform 0.6s ease;
}

/* Responsive Gallery Images */
@media (max-width: 768px) {
    .gallery-logo-img {
        padding: 10%;
    }
}

@media (max-width: 576px) {
    .gallery-logo-img {
        padding: 5%;
    }
}

.gallery-card:hover .gallery-logo-img {
    transform: scale(1.1);
}

/* Motif Card Styling */
.motif-card {
    border-radius: 15px;
    border: none;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.motif-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: scale(1.02);
}


.tab-pane {
    min-height: 400px !important;
}

.motif-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Skeleton Loading Animation */
.skeleton {
    background: #f0f0f0 linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.motif-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.5s ease;
}

.motif-img.loaded {
    opacity: 1;
}

.motif-card:hover .motif-img {
    transform: scale(1.1);
}

/* Collapsible Section Styles */
.collapsible-wrapper {
    position: relative;
    max-height: 200px; /* Default collapsed height */
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-wrapper.expanded {
    max-height: 2000px; /* Large enough for expanded content */
}

.collapsible-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.collapsible-wrapper.expanded .collapsible-overlay {
    opacity: 0;
}

.collapsible-modal-overlay {
    background: linear-gradient(transparent, #212529); /* For dark modals */
}

.read-more-btn {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    padding: 8px 25px;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--gold-primary);
    color: #fff;
    transform: translateY(-2px);
}

.read-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more-btn.active i {
    transform: rotate(180deg);
}

/* ============================================
   UTILITIES & BUTTONS
   ============================================ */
.text-gold { color: var(--gold-text); }

.about-section, .about-card, .features-section, .motif-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #1a1a1a;
    border: none;
    padding: 0.8rem 2.2rem;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: #000;
}

/* Footer Modern */
.footer-modern {
    background: #0a0a0a;
    color: #fff;
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--gold-primary);
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-primary);
}

.footer-text {
    color: #888;
    line-height: 1.6;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold-primary);
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gold-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.social-icon-link:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-section { padding: 4rem 0; }
    .hero-logo { max-width: 200px; }
}
