/* Impor Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Oswald:wght@500&family=Dancing+Script:wght@400&display=swap');

/* Variabel CSS */
:root {
    --primary: #FFA726;
    --secondary: #FF7043;
    --accent: #2A9D8F;
    --dark: #333;
    --light: #FFFFFF;
    --bg: #FFF3E0;
    --card-bg: rgba(255, 255, 255, 0.92);
    --shadow: rgba(0, 0, 0, 0.15);
    --header-height: clamp(4rem, 8vw, 5rem);
    --header-height-scrolled: clamp(3rem, 6vw, 3.5rem);
    --logo-height: calc(var(--header-height) * 0.6);
    --logo-height-scrolled: calc(var(--header-height-scrolled) * 0.55);
    --nav-item-font-size: clamp(0.9rem, 1.8vw, 1rem);
}

/* Font global untuk body */
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    scroll-behavior: smooth;
}

/* Hero section */
.hero {
    background: url(img/background.jpg) no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 170px 0;
    opacity: 0;
    animation: fadeInHero 2.0s forwards;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #d2c85d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
}

.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.navbar .nav-link.active {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

/* Card styles */
.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    cursor: pointer;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.card-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #555;
}

/* FAQ section */
.faq-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #333;
}

.faq-section .accordion-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: #d2c85d;
    color: white;
    box-shadow: 0 0 15px rgba(210, 200, 93, 0.6); /* Glow effect */
}

/* Efek Pulse pada tombol FAQ saat diklik */
.accordion-button:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(210, 200, 93, 0.8);
    animation: pulse 0.5s ease;
}

/* Efek Ripple pada tombol FAQ */
.accordion-button {
    position: relative;
    overflow: hidden;
}

.accordion-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.accordion-button:active::after {
    width: 200px;
    height: 200px;
}

/* Animasi Pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Transisi halus untuk accordion body */
.accordion-collapse {
    transition: height 0.4s ease, opacity 0.4s ease;
}

.accordion-collapse.show {
    opacity: 1;
}

.accordion-collapse:not(.show) {
    opacity: 0;
}

/* Efek hover pada tombol FAQ */
.accordion-button:hover {
    background-color: #e6e0a3;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Footer */
.footer {
    background-color: #d2c85d;
    color: black;
    padding: 20px 0;
}

.footer h5 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
}

.footer p, .footer a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

/* Social icons */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    color: #fff;
}

/* Buttons */
.btn-primary, .btn-success {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-success::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after, .btn-success:hover::after {
    width: 200px;
    height: 200px;
}

/* Modal */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.modal-body p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

/* Animasi fadeInHero */
@keyframes fadeInHero {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsivitas */
@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-nav .nav-link {
        font-size: 1rem;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-text {
        font-size: 0.85rem;
    }
    .faq-section h2 {
        font-size: 1.8rem;
    }
    .accordion-button {
        font-size: 0.95rem;
    }
    .btn-primary, .btn-success {
        font-size: 0.95rem;
    }
    .modal-img {
        height: 150px;
    }
    
}