/* Custom CSS for Cheapest Hajj Packages Website */
/* Performance optimized with Core Web Vitals in mind */

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

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #15803d 0%, #166534 50%, #14532d 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* FAQ Accordion styling */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-content.active {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.faq-button i {
    transition: transform 0.3s ease;
}

.faq-button.active i {
    transform: rotate(180deg);
}

/* Floating WhatsApp Button Animation */
@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
}

#whatsapp-float {
    animation: pulse-green 2s infinite;
}

/* Smooth hover transitions */
a, button {
    transition: all 0.3s ease;
}

/* Table responsive optimizations */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 0.75rem 0.5rem !important;
    }
}

/* Loading optimization - prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Form input focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

/* Print styles for better SEO */
@media print {
    .no-print {
        display: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Accessibility improvements */
:focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #15803d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #166534;
}

/* Smooth appearance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Package card hover effects */
.package-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Sticky header shadow on scroll */
header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Contact form button loading state */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Performance: Use transform instead of position for animations */
.transform-gpu {
    transform: translateZ(0);
    will-change: transform;
}
