body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.btn-primary-alt {
    @apply bg-[#D4A536] text-[#0A2940] px-8 py-3 rounded-full font-semibold transition-all duration-300 shadow-lg flex items-center justify-center;
}

.btn-primary-alt:hover {
    @apply bg-[#0A2940] text-[#D4A536] scale-105;
}

.btn-secondary-light {
    @apply bg-white text-[#0A2940] px-8 py-3 rounded-full font-semibold border border-[#0A2940] transition-all duration-300 shadow-lg flex items-center justify-center;
}

.btn-secondary-light:hover {
    @apply bg-[#0A2940] text-white scale-105;
}

/* Animation classes for JavaScript (initial hidden state) */
.js-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-animate-pop {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-animate-pop-visible {
    opacity: 1;
    transform: scale(1);
}

/* Animation classes for JavaScript (initial hidden state) */
.js-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-animate-pop {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-animate-pop-visible {
    opacity: 1;
    transform: scale(1);
}

/* Navbar specific styles and animations */
.navbar-link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    overflow: hidden;
}

.navbar-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #D4A536;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    transform: translateX(0);
}

/* Custom button styles */
.btn-primary-alt {
    background: #D4A536;
    color: #0A2940;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 24px 0 rgba(212, 165, 54, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-alt:hover {
    background: #0A2940;
    color: #D4A536;
    transform: scale(1.05);
}

/* Mobile menu link hover animation */
#mobile-menu a {
    position: relative;
    transition: color 0.2s ease;
}

#mobile-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #D4A536;
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

#mobile-menu a:hover::after {
    width: 70%;
}

.footer-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #D4A536;
    transform: translateX(5px);
}

/* Styles specific to services.html hero section and cards */
@keyframes fadeInScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Initial state */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
    /* Initial state */
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    /* Initial state */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-pop-in {
    animation: popIn 0.6s ease-out forwards;
    opacity: 0;
    /* Initial state */
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-700 {
    animation-delay: 0.7s;
}

/* New styles from services.html for SVG animation */
@keyframes drawLineSlow {
    from {
        stroke-dasharray: 0 100;
    }

    to {
        stroke-dasharray: 100 0;
    }
}

.animate-draw-line-slow {
    animation: drawLineSlow 8s linear infinite alternate;
}

@keyframes pulseSlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.animate-pulse-slow {
    animation: pulseSlow 5s infinite alternate;
}

/* Specific button style for the Call to Action in services.html */
.btn-primary {
    @apply bg-[#D4A536] text-[#0A2940] px-8 py-4 rounded-full font-semibold hover:bg-white hover:text-[#0A2940] transition-colors duration-300 shadow-lg;
}

/* Custom pop-in and bounce animation for new sections */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    60% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-pop-in {
    animation: popIn 0.8s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.animate-bounce {
    animation: bounce 1.2s infinite;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-question.active i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Animasi sederhana untuk popup */
#service-popup {
    transition: opacity 0.3s ease-in-out;
}

#popup-content {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* State saat popup disembunyikan */
#service-popup.hidden #popup-content {
    transform: scale(0.95);
    opacity: 0;
}