/* Custom Styles for Barokah Madinah Travel */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Header scroll effect */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Hero section gradient overlay enhancement */
#hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
}

/* Package cards hover effect */
#paket .hover\:shadow-2xl:hover {
    transform: translateY(-5px);
}

/* FAQ accordion animation */
.faq-item .faq-icon.rotate {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.show {
    max-height: 500px;
    display: block;
}

/* Testimonial slider */
#testimoni-slider {
    position: relative;
}

/* Active slider dot */
.slider-dot.active {
    background-color: #065F46;
}

/* Floating WhatsApp button animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.fixed.bottom-6.right-6::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #22c55e;
    animation: pulse-ring 1.5s infinite;
    z-index: -1;
}

/* Section divider pattern */
.section-divider {
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f9fafb' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,30 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

/* Image loading placeholder */
img {
    background-color: #e5e7eb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #065F46;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #064E3B;
}

/* Selection color */
::selection {
    background-color: #065F46;
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #D5A010;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    /* Smaller hero text on mobile */
    #hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    /* Adjust package cards */
    #paket .grid > div {
        margin-bottom: 1rem;
    }
    
    /* Smaller CTA button on mobile */
    .fixed.bottom-6.right-6 {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
    
    .fixed.bottom-6.right-6 svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Print styles */
@media print {
    header,
    .fixed.bottom-6.right-6,
    #testimoni,
    iframe {
        display: none !important;
    }
    
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    #hero::before,
    #hero .absolute {
        display: none;
    }
}

/* Animation for elements on scroll */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hover effects for cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 95, 70, 0.15);
}

/* Islamic pattern background (optional) */
.islamic-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23065F46' fill-opacity='0.05'%3E%3Cpath d='M30 30l15-15H15l15 15zm0 0l15 15H15l15-15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Gold accent animation */
.gold-shimmer {
    background: linear-gradient(90deg, #D5A010, #F59E0B, #D5A010);
    background-size: 200% auto;
    animation: goldShimmer 3s linear infinite;
}

@keyframes goldShimmer {
    to {
        background-position: 200% center;
    }
}
