/* WhatsApp Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Arabic RTL and General Styles */
[dir="rtl"] {
    direction: rtl;
}

[dir="ltr"] {
    direction: ltr;
}

/* Arabic Font */
html[lang="ar"] {
    font-family: 'Cairo', sans-serif;
}

html[lang="en"] {
    font-family: 'Inter', sans-serif;
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

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

/* Hero section background */
.hero-bg {
    background-image: linear-gradient(135deg, #1B365D 0%, #4A90E2 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?ixlib=rb-4.0.3') center/cover;
    opacity: 0.1;
    z-index: -1;
}

/* Package cards hover effects */
.package-card {
    transform: translateY(0);
    transition: all 0.3s ease;
}

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

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #FFD700, #F4C430);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button animations */
.btn-animate {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-animate:hover::before {
    left: 100%;
}

/* Price animation */
.price-highlight {
    animation: priceGlow 2s infinite alternate;
}

@keyframes priceGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

/* Section dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    margin: 2rem 0;
}

/* Responsive adjustments for Arabic text */
@media (max-width: 768px) {
    [dir="rtl"] .text-right {
        text-align: right !important;
    }
    
    [dir="rtl"] .text-left {
        text-align: left !important;
    }
    
    .responsive-text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

/* Custom modal styles */
.modal-backdrop {
    backdrop-filter: blur(5px);
}

/* Language toggle button */
.language-toggle {
    position: relative;
    background: linear-gradient(135deg, #FFD700, #F4C430);
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    color: #1B365D;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Currency selector styling */
#currency-selector {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#currency-selector:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    outline: none;
}

/* WhatsApp button animation */
.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Package badges */
.package-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #EF4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

[dir="rtl"] .package-badge {
    right: auto;
    left: -10px;
}

/* Loading animation for price changes */
.price-loading {
    opacity: 0.6;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Hotel link styling */
.hotel-link {
    color: #1B365D;
    text-decoration: none;
    border-bottom: 1px dashed #1B365D;
    transition: all 0.3s ease;
}

.hotel-link:hover {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

/* Feature icons animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-friendly {
        color: #000 !important;
        background: #fff !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gradient-to-r {
        background: #1B365D !important;
    }
    
    .text-gray-600 {
        color: #000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    .dark-mode-ready {
        background-color: #1a1a1a;
        color: #ffffff;
    }
}