
/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section Image Slider */
.slide-container {
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.slide-track {
    display: flex;
    animation: slideshow 10s infinite alternate ease-in-out;
}

.slide {
    flex: 0 0 100%;
}

@keyframes slideshow {
    0%, 45% {
        transform: translateX(0);
    }
    55%, 100% {
        transform: translateX(-100%);
    }
}

/* Service Cards Animation */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Country Cards Animation */
.country-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.country-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Testimonial Slider */
.testimonial-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    animation: testimonial-scroll 30s linear infinite;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 2rem);
    min-width: 300px;
}

@keyframes testimonial-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* CTA Button Animation */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.cta-button:hover:after {
    left: 100%;
}

/* Back to Top Button Animation */
#back-to-top {
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Form Input Focus Animation */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
    border-color: #ea580c;
}

/* Mobile Menu Button Focus State */
#mobile-menu-button:focus {
    outline: none;
}

/* Mobile Menu Animation */
#mobile-menu {
    display: none;
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px; /* Nilai maksimum, akan otomatis menyesuaikan dengan konten */
}

/* Mobile Menu Icon Animation */
#mobile-menu-button i {
    transition: transform 0.3s ease;
}

#mobile-menu-button i.fa-times {
    transform: rotate(90deg);
}

/* Media Queries */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
    }
    
    @keyframes testimonial-scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100%));
        }
    }
}
