/* Custom CSS for Al Jude Travel Agency */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #1e40af;
    --secondary-blue: #1d4ed8;
    --accent-orange: #f97316;
    --light-orange: #fed7aa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Custom Arabic font styles */
.font-cairo {
    font-family: 'Cairo', sans-serif;
}

/* Hero Section with Slideshow Styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* Hero Content Animation */
.hero-content {
    animation: fadeInUp 1.5s ease-out;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInFromTop 1s ease-out;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

.hero-cta {
    animation: bounceIn 1s ease-out 0.6s both;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.hero-cta:hover {
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.6);
}

/* Slide Indicators */
.slide-indicators {
    animation: fadeIn 1s ease-out 0.9s both;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* Package Card Hover Effects */
.package-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu Styles */
.mobile-menu {
    border-top: 1px solid #e5e7eb;
}

/* Price highlight */
.price-highlight {
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact form styles */
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .package-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading.loaded {
    opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}

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

/* RTL/LTR Language Support */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* Navigation spacing for both directions */
[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
    margin-right: calc(2rem * var(--tw-space-x-reverse));
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

[dir="ltr"] nav a {
    margin-right: 2rem;
    margin-left: 0;
}

/* Logo positioning */
[dir="ltr"] .logo {
    flex-direction: row;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="ltr"] .logo img {
    margin-right: 0.75rem;
    margin-left: 0;
}

[dir="rtl"] .logo img {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* Icon positioning */
[dir="ltr"] .fas {
    margin-right: 0.75rem;
    margin-left: 0;
}

[dir="rtl"] .fas {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* Button icon positioning */
[dir="ltr"] .hero-cta .fas {
    margin-left: 0.75rem;
    margin-right: 0;
}

[dir="rtl"] .hero-cta .fas {
    margin-right: 0.75rem;
    margin-left: 0;
}

/* Package card content alignment */
[dir="ltr"] .package-card {
    text-align: left;
}

[dir="rtl"] .package-card {
    text-align: right;
}

/* Activity tags direction */
[dir="ltr"] .space-y-5 .border-r-4 {
    border-right-width: 4px;
    border-left-width: 0;
    padding-right: 1rem;
    padding-left: 0;
}

[dir="rtl"] .space-y-5 .border-r-4 {
    border-right-width: 4px;
    border-left-width: 0;
    padding-right: 1rem;
    padding-left: 0;
}

[dir="ltr"] .space-y-5 .border-r-4 {
    border-left-width: 4px;
    border-right-width: 0;
    padding-left: 1rem;
    padding-right: 0;
}

/* Contact form alignment */
[dir="ltr"] #contact-form {
    text-align: left;
}

[dir="rtl"] #contact-form {
    text-align: right;
}

/* English mode specific adjustments */
.english-mode {
    font-family: 'Inter', 'Cairo', sans-serif;
}

.english-mode .hero-title {
    font-size: 4rem;
    line-height: 1.1;
}

.english-mode .hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
}

.english-mode .package-card h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Language toggle button styles */
#language-toggle, #mobile-language-toggle {
    transition: all 0.3s ease;
}

#language-toggle:hover, #mobile-language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Social Media Icons Styles */
.social-icon {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
}

.social-icon::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;
}

.social-icon:hover::before {
    left: 100%;
}

/* Social media specific colors and hover effects */
a[href*="facebook"]:hover {
    box-shadow: 0 8px 16px rgba(59, 89, 152, 0.4);
}

a[href*="instagram"]:hover {
    box-shadow: 0 8px 16px rgba(225, 48, 108, 0.4);
}

a[href*="whatsapp"]:hover,
a[href*="wa.me"]:hover {
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
}

/* Success message styles */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* Error message styles */
.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

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

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

/* Navigation active state */
nav a.active {
    color: var(--accent-orange) !important;
    font-weight: 600;
}

/* Sticky header effect */
header.scrolled {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Package popularity badge */
.popularity-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulse 2s infinite;
}

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

/* Professional Layout Improvements */
.package-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 1200px;
}

.package-card .p-8 {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.package-card .p-8 > *:last-child {
    margin-top: auto;
}

/* Enhanced Package Cards */
.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Activity Tags Styling */
.package-card .bg-white.rounded.px-2.py-1 {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.package-card .bg-white.rounded.px-2.py-1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

/* Hotel Rating Cards */
.package-card .bg-gray-50 {
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

/* Full Width Grid Layout */
@media (min-width: 1024px) {
    .packages-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        align-items: start;
        width: 100%;
        max-width: none;
    }
    
    .package-card {
        height: 100%;
        min-height: 1200px;
    }
}

@media (max-width: 1023px) {
    .packages-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        width: 100%;
        max-width: none;
    }
}

/* Section Spacing */
.packages-section {
    padding: 6rem 0;
    width: 100%;
}

/* Larger Text Sizes */
.package-card h3 {
    font-size: 1.75rem !important;
    line-height: 1.2;
}

.package-card h5 {
    font-size: 1.1rem !important;
}

.package-card .text-xs {
    font-size: 0.95rem !important;
}

.package-card .text-sm {
    font-size: 1.1rem !important;
}

.package-card h6 {
    font-size: 1rem !important;
}

/* Price Display Enhancement */
.package-card .text-4xl {
    font-size: 3.5rem !important;
}

.package-card .text-lg {
    font-size: 1.5rem !important;
}

/* Price Display Enhancement */
.price-display {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 2px solid var(--accent-orange);
    border-radius: 1rem;
    padding: 1rem;
}

/* Professional Typography */
.package-title {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Activity Section Styling */
.activity-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

/* Ensure all blue background sections are aligned */
.package-card .bg-blue-50 {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

/* Make all activity sections consistent height */
.package-card .bg-blue-50 .space-y-5 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensure package cards have equal heights */
.packages-grid .package-card {
    display: flex;
    flex-direction: column;
}

.packages-grid .package-card .p-8 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Push price sections to bottom */
.package-card .price-display {
    margin-top: auto !important;
}

/* Standardize all package card heights */
@media (min-width: 1024px) {
    .packages-grid .package-card {
        min-height: 1400px;
    }
}

/* Hotel Section Styling */
.hotel-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
}

/* Reservation Modal Styles */
#reservation-modal {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

#reservation-modal .bg-white {
    animation: slideInUp 0.3s ease-out;
}

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

/* Form Input Styles */
#reservation-form input:focus,
#reservation-form select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

#reservation-form label {
    font-weight: 600;
    color: #374151;
}

/* Close button hover effect */
#close-modal:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Modal responsive */
@media (max-width: 768px) {
    #reservation-modal .max-w-2xl {
        max-width: 95%;
        margin: 1rem;
    }
    
    #reservation-modal .p-6 {
        padding: 1rem;
    }
    
    #reservation-modal .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}