/* رحلات السحاب - Custom CSS */

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

/* Root Variables */
:root {
    --sunset-orange: #FF6B35;
    --ocean-blue: #004E89;
    --nature-green: #009639;
    --charcoal: #2C3E50;
    --light-gray: #F8F9FA;
    --dark-gray: #343A40;
    --gradient-primary: linear-gradient(135deg, var(--ocean-blue), var(--sunset-orange));
    --gradient-secondary: linear-gradient(135deg, var(--nature-green), var(--ocean-blue));
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

/* Arabic Typography */
.font-cairo { font-family: 'Cairo', sans-serif; }
.font-amiri { font-family: 'Amiri', serif; }
.font-tajawal { font-family: 'Tajawal', sans-serif; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

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

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

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

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

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 30px;
    animation: float 2s ease-in-out infinite;
    box-shadow: var(--shadow-strong);
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: rotate 1s linear infinite;
}

/* Navbar */
#navbar {
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 78, 137, 0.7), rgba(255, 107, 53, 0.6)),
                url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Package Cards - Mobile Optimized */
.package-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    height: fit-content;
    border: 1px solid #e5e7eb;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

/* Mobile-First Package Card Design */
@media (max-width: 768px) {
    .package-card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .package-image-container {
        height: 200px;
        position: relative;
        overflow: hidden;
    }
    
    .package-content {
        padding: 1rem;
    }
    
    .package-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .package-description {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 1rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .package-price {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--sunset-orange);
        margin-bottom: 0.5rem;
    }
    
    .package-duration {
        font-size: 0.85rem;
        color: #888;
        margin-bottom: 1rem;
    }
    
    .package-features {
        margin-bottom: 1rem;
    }
    
    .package-feature {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .feature-icon {
        width: 16px;
        height: 16px;
        margin-left: 8px;
        flex-shrink: 0;
    }
    
    /* Compact features list */
    .feature-hidden {
        display: none;
    }
    
    .show-more-btn {
        font-size: 0.8rem;
        color: var(--ocean-blue);
        background: none;
        border: none;
        cursor: pointer;
        text-decoration: underline;
        margin-top: 0.5rem;
    }
    
    .package-actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .btn-primary-mobile {
        flex: 1;
        padding: 0.75rem;
        background: var(--gradient-primary);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        transition: var(--transition-smooth);
    }
    
    .btn-secondary-mobile {
        padding: 0.75rem;
        background: transparent;
        color: var(--ocean-blue);
        border: 2px solid var(--ocean-blue);
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        transition: var(--transition-smooth);
        min-width: 100px;
    }
}

/* Desktop Package Cards */
@media (min-width: 769px) {
    .package-card {
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        overflow: visible;
    }
    
    .package-features {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .package-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .package-image-container {
        height: 250px;
        position: relative;
        overflow: hidden;
    }
    
    .package-content {
        padding: 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        background: #ffffff;
    }
    
    .package-title {
        font-size: 1.4rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .package-description {
        font-size: 0.95rem;
        color: #4b5563;
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .package-price {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--sunset-orange);
        margin-bottom: 0.5rem;
    }
    
    .package-duration {
        font-size: 0.9rem;
        color: #6b7280;
        margin-bottom: 1rem;
    }
    
    .package-features {
        margin-bottom: 1.5rem;
        flex: 1;
    }
    
    .package-feature {
        display: flex;
        align-items: flex-start;
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #374151;
    }
    
    .feature-icon {
        width: 18px;
        height: 18px;
        margin-left: 10px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .package-actions {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid #f3f4f6;
    }
}

/* Image Carousel */
.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image:first-child {
    opacity: 1;
}

/* Package Badge */
.package-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 10;
}

.badge-orange { background: var(--sunset-orange); }
.badge-blue { background: var(--ocean-blue); }
.badge-green { background: var(--nature-green); }

/* Country Flags in Titles */
.country-flag {
    font-size: 1.5em;
    margin-left: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-primary: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;
}

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

/* WhatsApp Floating Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.fab:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-ring 2s infinite;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ocean-blue);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    transform: scale(0);
    z-index: 999;
}

#back-to-top:hover {
    background: var(--sunset-orange);
    transform: scale(1) rotate(360deg);
}

/* Testimonials & Reviews */
.testimonial-card, .review-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover, .review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-card:before, .review-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.star {
    width: 20px;
    height: 20px;
    fill: #ddd;
    transition: fill 0.2s;
}

.star.filled {
    fill: #ffd700;
}

/* Section Reveals */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) { animation-delay: 2s; }
.floating-element:nth-child(3) { animation-delay: 4s; }

/* Feature Section Styles */
.feature-section {
    transition: all 0.2s ease;
    cursor: pointer;
}

.feature-section:hover {
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.package-features {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.package-features.expanded {
    max-height: none;
    overflow: visible;
}

/* Enhanced Card Animations */
.package-card {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Price Highlight */
.package-price {
    position: relative;
}

.package-price::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--sunset-orange), var(--nature-green));
    border-radius: 2px;
}

/* Badge Improvements */
.package-badge {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Utility Classes */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 0.8s ease-out; }
.animate-slide-up { animation: slideUp 0.6s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.8s ease-out; }
.animate-bounce-in { animation: bounce-in 0.6s ease-out; }

.animate-gradient {
    background: linear-gradient(-45deg, #FF6B35, #004E89, #009639, #FF6B35);
    background-size: 400% 400%;
    animation: gradient-move 15s ease infinite;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Alert Notifications */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
    animation: slideInRight 0.5s ease;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 640px) {
    .fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    #back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 20px;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Remove Dark Mode - Force Light Theme */
.package-card, .testimonial-card, .review-card {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e5e7eb !important;
}

.package-content {
    background: #ffffff !important;
    color: #1f2937 !important;
}

.package-title {
    color: #1f2937 !important;
}

.package-description {
    color: #4b5563 !important;
}

/* Print Styles */
@media print {
    .fab, #back-to-top, #navbar {
        display: none !important;
    }
}

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

/* Focus States */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--ocean-blue);
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--ocean-blue);
}