/* Watania Color Palette */
:root {
    /* Primary Colors - Blue-Green Palette */
    --gunmetal: #092327;
    --dark-slate-gray: #0b5351;
    --light-sea-green: #00a9a5;
    --air-force-blue: #4e8098;
    --light-sky-blue: #90c2e7;
    
    /* Primary Scale Using Palette Colors */
    --primary-25: #f7fcfd;
    --primary-50: #eef9fa;
    --primary-100: #d7f1f3;
    --primary-200: #b3e3e7;
    --primary-300: #90c2e7;
    --primary-400: #4e8098;
    --primary-500: #00a9a5;
    --primary-600: #0b5351;
    --primary-700: #092327;
    --primary-800: #071d20;
    --primary-900: #051719;
    
    /* Neutral Colors */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Accent Colors */
    --accent-50: #f0fdf4;
    --accent-100: #dcfce7;
    --accent-200: #bbf7d0;
    --accent-300: #86efac;
    --accent-400: #4ade80;
    --accent-500: #22c55e;
    --accent-600: #16a34a;
    --accent-700: #15803d;
    --accent-800: #166534;
    --accent-900: #14532d;
}

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

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

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
}

/* Arabic Language Styles */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Noto Sans', 'Arial', sans-serif;
}

/* English Text Styling */
.lang-en {
    font-family: 'Noto Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-display: swap;
}

/* Enhanced Arabic Text Sizing */
.lang-ar {
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    font-weight: 500;
    font-display: swap;
}

/* Specific Arabic text enhancements */
.hero-title .lang-ar {
    font-size: 1.15em;
    font-weight: 600;
}

.hero-tag-line .lang-ar {
    font-size: 1.1em;
    font-weight: 600;
}

.hero-subtitle .lang-ar {
    font-size: 1.1em;
    line-height: 1.7;
}

.section-title .lang-ar {
    font-size: 1.1em;
    font-weight: 700;
}

.about-text .lang-ar {
    font-size: 1.15em;
    line-height: 1.9;
    font-weight: 500;
}

.service-title .lang-ar {
    font-size: 1.1em;
    font-weight: 600;
}

.service-description .lang-ar {
    font-size: 1.1em;
    line-height: 1.8;
    font-weight: 400;
}

.feature-title .lang-ar {
    font-size: 1.1em;
    font-weight: 600;
}

.feature-description .lang-ar {
    font-size: 1.1em;
    line-height: 1.8;
    font-weight: 400;
}

.gallery-caption .lang-ar {
    font-size: 1.1em;
    font-weight: 600;
}

.contact-details h4 .lang-ar {
    font-size: 1.1em;
    font-weight: 600;
}

.footer-section h4 .lang-ar {
    font-size: 1.1em;
    font-weight: 600;
}

.btn .lang-ar {
    font-size: 1.05em;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--neutral-500);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-600);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--primary-50);
    color: var(--primary-600);
}

/* Language Content Display */
.lang-ar {
    display: none;
}

html[lang="ar"] .lang-en {
    display: none;
}

html[lang="ar"] .lang-ar {
    display: inline;
}

html[lang="en"] .lang-en {
    display: inline;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--light-sea-green) 0%, var(--air-force-blue) 100%);
    color: white;
    padding: 1rem 0;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 1;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    margin: 0;
}

/* Responsive Language Toggle Visibility */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--primary-50) 100%);
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
    overflow-x: hidden;
}

.hero-content {
    flex: 1;
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-tag-line{
     font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 800px;
    max-width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: block;
    z-index: 1;
    margin: 0 auto;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: block;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.05);
}


/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--primary-600);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover,
.carousel-nav:focus {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
    outline: none;
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
}

.indicator:hover,
.indicator:focus {
    transform: scale(1.2);
    outline: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    margin: 1rem auto;
    border-radius: 2px;
}

.about-text {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-25) 0%, var(--neutral-100) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--neutral-200);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.12);
    border-color: var(--primary-200);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--neutral-600);
    line-height: 1.6;
    font-size: 1rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--primary-25);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-100);
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 169, 165, 0.12);
    border-color: var(--primary-300);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 169, 165, 0.05), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--neutral-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-25) 0%, var(--neutral-100) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--neutral-100);
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.gallery-caption {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--primary-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.contact-link {
    display: block;
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    color: var(--primary-500);
}

.whatsapp-link {
    display: inline-block;
    background: var(--accent-600);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background: var(--accent-700);
    transform: translateY(-2px);
}

.location-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}

.location-link:hover {
    color: var(--primary-500);
    text-decoration: underline;
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary-200);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Contact Form */
.contact-form-container h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--neutral-50);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    background: white;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--neutral-400);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-600);
    color: var(--neutral-400);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-container {
        width: 85%;
        max-width: 700px;
        height: 450px;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-content {
        order: 1;
        margin-bottom: 3rem;
        max-width: 90%;
    }
    
    .hero-image {
        order: 2;
        width: 100%;
        padding: 0 20px;
    }
    
    .carousel-container {
        width: 90%;
        max-width: 600px;
        height: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .carousel-container {
        width: 95%;
        max-width: 550px;
        height: 380px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .mobile-only.language-toggle {
        position: relative;
        top: auto;
        right: auto;
        margin: 0;
        padding: 4px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border-radius: 20px;
    }
    
    .mobile-only .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
        background: transparent;
        color: white;
        border: none;
    }
    
    .mobile-only .lang-btn.active {
        background: rgba(255, 255, 255, 0.3);
        color: white;
    }
    
    .mobile-only .lang-btn:hover:not(.active) {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        flex: 1;
        text-align: left;
    }
    
    .logo-text {
        font-size: 1.5rem;
        text-align: left;
    }
    
    
    .hero-title {
        font-size: 2.5rem;
    }   
    
    .hero-tag-line{
        font-size: 2rem;
    }
    
    /* Arabic text adjustments for tablet */
    .lang-ar {
        font-size: 1.15em;
    }
    
    .about-text .lang-ar {
        font-size: 1.2em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-container {
        width: 95%;
        max-width: 500px;
        height: 350px;
        margin: 2rem auto 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container {
        margin-top: 1.5rem;
        height: 250px;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .mobile-only .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-tag-line{
        font-size: 1.5rem;
    }
    
    /* Arabic text adjustments for mobile */
    .lang-ar {
        font-size: 1.2em;
    }
    
    .about-text .lang-ar {
        font-size: 1.25em;
    }
    
    .service-description .lang-ar,
    .feature-description .lang-ar {
        font-size: 1.15em;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .carousel-container {
        width: 100%;
        max-width: 100%;
        height: 280px;
        margin: 2rem auto 0;
    }
    
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
    
    .gallery-caption {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .carousel-container {
        width: 100%;
        height: 240px;
        margin: 1.5rem auto 0;
    }
    
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }
}

/* Performance Optimizations */
.hero-image,
.service-card,
.contact-form {
    will-change: transform;
}

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

/* Focus styles for accessibility */
.btn:focus,
.lang-btn:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .language-toggle {
        display: none;
    }
    
    .hero-buttons {
        display: none;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}