/* Modern Professional Design - Colorful & Dynamic */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&family=Amiri:wght@400;700&display=swap');

:root {
    /* New Modern Color Palette */
    --primary-color: #6366f1; /* Indigo */
    --secondary-color: #8b5cf6; /* Purple */
    --accent-color: #f59e0b; /* Amber */
    --success-color: #10b981; /* Emerald */
    --danger-color: #ef4444; /* Red */
    --warning-color: #f97316; /* Orange */
    --info-color: #06b6d4; /* Cyan */
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-success: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1e293b;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Shadow & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 20px 25px -5px rgba(102, 102, 241, 0.1), 0 10px 10px -5px rgba(102, 102, 241, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }
.bg-gradient-accent { background: var(--gradient-accent); }
.bg-gradient-success { background: var(--gradient-success); }

/* Section Padding */
.section-padding {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* Modern Header */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent; /* Made transparent initially */
    backdrop-filter: none; /* Remove blur initially */
    border-bottom: none; /* Remove border initially */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0; /* Increased padding for better visibility */
}

.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
}

.modern-header .navbar-brand img {
    height: 60px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.modern-header.scrolled .navbar-brand img {
    height: 50px;
}

.modern-header .navbar-nav .nav-link {
    color: white; /* White text for transparent header */
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 20px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow for better readability */
}

.modern-header .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: var(--radius-full);
}

.modern-header .navbar-nav .nav-link:hover::before,
.modern-header .navbar-nav .nav-link.active::before {
    width: 100%;
}

.modern-header .navbar-nav .nav-link:hover,
.modern-header .navbar-nav .nav-link.active {
    color: var(--accent-color); /* Use accent color for hover */
    transform: translateY(-2px);
}

/* Scrolled header link styles */
.modern-header.scrolled .navbar-nav .nav-link {
    color: var(--text-primary); /* Dark text when scrolled */
    text-shadow: none; /* Remove shadow when scrolled */
}

.modern-header.scrolled .navbar-nav .nav-link:hover,
.modern-header.scrolled .navbar-nav .nav-link.active {
    color: var(--primary-color); /* Primary color when scrolled */
}

.modern-header .btn-whatsapp {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent for transparent header */
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* WhatsApp button when scrolled */
.modern-header.scrolled .btn-whatsapp {
    background: var(--gradient-success);
    border: none;
    text-shadow: none;
    backdrop-filter: none;
    box-shadow: var(--shadow-md);
}

.modern-header .btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* Modern Hero Section - Basic structure only */
/* Background and overlay styles moved to hero-background-fix.css */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.modern-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.modern-hero .hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.modern-hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}

.modern-hero .hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: nowrap; /* Changed to nowrap to keep buttons in one row */
    animation: slideInUp 1s ease-out 0.4s both;
}

.modern-hero .btn-hero {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-hero .btn-hero-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modern-hero .btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.modern-hero .btn-hero-secondary {
    background: white;
    color: var(--primary-color);
}

.modern-hero .btn-hero-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

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

/* Modern Features Section */
.modern-features {
    background: var(--bg-secondary);
    position: relative;
}

.modern-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.feature-card-modern {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-2xl);
}

.feature-icon-modern {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-colored);
    transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(102, 102, 241, 0.3);
}

.feature-card-modern h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-card-modern p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modern About Section */
.modern-about {
    background: white;
    position: relative;
}

.about-image-modern {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-modern img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-modern:hover img {
    transform: scale(1.05);
}

.about-image-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image-modern:hover::after {
    opacity: 1;
}

.about-content-modern {
    padding: var(--space-xl);
}

.about-content-modern h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.about-content-modern p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-buttons-modern {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn-modern {
    padding: 15px 35px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

.btn-modern-success {
    background: var(--gradient-success);
    color: white;
}

.btn-modern-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Modern Cards */
.card-modern {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-modern:hover::before {
    opacity: 0.05;
}

.card-modern:hover {
    transform: translateY(-20px);
    box-shadow: var(--shadow-2xl);
}

.card-modern-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-modern-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-modern:hover .card-modern-image img {
    transform: scale(1.1);
}

.card-modern-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-secondary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

.card-modern-content {
    padding: var(--space-xl);
    position: relative;
    z-index: 2;
}

.card-modern-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.card-modern-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.card-modern-features li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern-features li:last-child {
    border-bottom: none;
}

.card-modern-features li i {
    color: var(--primary-color);
    margin-left: 12px;
    width: 20px;
}

.card-modern-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.card-modern-rating .stars {
    color: var(--accent-color);
    margin-left: 10px;
}

.card-modern-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.btn-card-modern {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-card-primary {
    background: var(--gradient-primary);
    color: white;
}

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

.btn-card-success {
    background: var(--gradient-success);
    color: white;
}

.btn-card-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Modern Footer */
.modern-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 80px 0 40px;
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-section h5 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.social-icons-modern {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-icon-modern {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon-modern:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-colored);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Modern Floating Buttons */
.floating-modern {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.floating-btn-modern {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-btn-modern:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

.floating-btn-whatsapp {
    background: var(--gradient-success);
}

.floating-btn-phone {
    background: var(--gradient-primary);
}

.floating-btn-packages {
    background: var(--gradient-accent);
    color: var(--text-primary);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .modern-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .modern-hero .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-icon-modern {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .about-content-modern h2 {
        font-size: 2rem;
    }
    
    .about-buttons-modern {
        flex-direction: column;
    }
    
    .card-modern-actions {
        flex-direction: column;
    }
    
    .floating-modern {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn-modern {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .modern-hero .hero-title {
        font-size: 2rem;
    }
    
    .modern-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .feature-card-modern {
        padding: var(--space-lg);
    }
    
    .about-content-modern {
        padding: var(--space-lg);
    }
    
    .card-modern-content {
        padding: var(--space-lg);
    }
}

/* Loading Animation */
.fade-in-modern {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-modern.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure content is visible by default for fallback */
.modern-features,
.modern-about,
.section-padding {
    opacity: 1;
    transform: translateY(0);
}

/* Animation classes */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

/* Image loading */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img[src] {
    opacity: 1;
}

/* Ensure Bootstrap components work */
.container,
.row,
.col-lg-3,
.col-lg-4,
.col-lg-6,
.col-md-6 {
    position: relative;
    z-index: 1;
}

/* Modern Gallery Styles */
.gallery-item-modern {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
}

.gallery-item-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.gallery-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-modern:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-modern:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item-modern:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content i {
    margin-bottom: 15px;
}

.gallery-content p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
}