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

html {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Color Variables */
:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --light-blue: #3b82f6;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --accent: #06b6d4;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: 40px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.nav-logo h2 {
    color: #334155;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-link:hover h2 {
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--gray-700);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: url('peakpx_1758647454046.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.cta-button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.hero-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    color: var(--white);
    width: 200px;
    height: 200px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    transform: rotate(-5deg);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ----------------------------------
   قواعد التجاوب (Media Queries)
   ---------------------------------- */

/* Tablet and wide mobile screens */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* Mobile screens */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr; 
    }
}

/* ----------------------------------
   باقي العناصر (دون تغيير)
   ---------------------------------- */

.service-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    color: var(--white);
    width: 100%;
    height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 58, 128, 0.7), rgba(0, 158, 255, 0.7));
    z-index: 1;
}

.service-text {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), -1px -1px 2px rgba(0,0,0,0.5);
    padding: 0 10px;
    line-height: 1.2;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--white);
}

.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    background: var(--white);
}

.gallery-slide {
    display: none;
    position: relative;
}

.gallery-slide.active {
    display: block;
}

.gallery-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.8s ease-in-out;
    filter: brightness(1.05) contrast(1.05);
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.gallery-prev,
.gallery-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.4s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--white);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: var(--primary-blue);
}

.gallery-dots {
    text-align: center;
    padding: 25px 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.dot {
    height: 14px;
    width: 14px;
    margin: 0 6px;
    background-color: var(--gray-300);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-blue);
    transform: scale(1.3);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Professional responsive design for gallery */
@media screen and (max-width: 1200px) {
    .gallery-container {
        max-width: 700px;
    }
    
    .gallery-slide img {
        height: 450px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-container {
        max-width: 100%;
        margin: 0 15px;
        border-radius: 12px;
    }
    
    .gallery-slide img {
        height: 300px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .gallery-navigation {
        padding: 0 15px;
    }
    
    .dot {
        height: 12px;
        width: 12px;
        margin: 0 4px;
    }
    
    .gallery-dots {
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-container {
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .gallery-slide img {
        height: 250px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .gallery-navigation {
        padding: 0 10px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
    
    .gallery-dots {
        padding: 12px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: block;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #ccc;
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.gallery-slide img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-slide img:hover {
    opacity: 0.9;
}

/* Lightbox animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive lightbox */
@media screen and (max-width: 768px) {
    .lightbox-image {
        max-width: 95%;
        max-height: 80%;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-navigation {
        padding: 0 15px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 1rem;
        padding: 6px 12px;
    }
}

/* Mobile performance optimizations */
@media screen and (max-width: 768px) {
    /* Reduce expensive animations for better performance */
    .hero-icon,
    .service-icon,
    .whatsapp-button {
        animation-duration: 0.2s;
        transition-duration: 0.2s;
    }
    
    /* Optimize fonts for mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
    }
    
    /* Force hardware acceleration */
    .gallery-slide img,
    .service-card,
    .testimonial-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    /* Reduce box shadows for performance */
    .service-card,
    .testimonial-card,
    .gallery-container {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    /* Simplify hover effects on mobile */
    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }
    
    /* Optimize section padding for mobile */
    .hero,
    .services,
    .gallery,
    .testimonials,
    .about,
    .contact {
        padding: 60px 0 !important;
    }
    
    /* Reduce font sizes for better loading */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    /* Disable problematic animations on mobile */
    .navbar {
        backdrop-filter: none !important;
    }
    
    /* Fix background-attachment for mobile performance */
    .hero {
        background-attachment: scroll !important;
    }
    
    /* Adjust hero content for mobile */
    .hero-content {
        padding: 2rem 1.5rem !important;
        margin: 0 10px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }
    
    /* Ensure single column layout on mobile */
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Service Template Styles */
.service-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent));
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
}

.service-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-gallery {
    padding: 100px 0;
    background-color: var(--white);
}

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 1.5rem;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.service-cta {
    background: var(--gray-100);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.cta-button-large {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button-large:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--gray-100);
}

.testimonial-stars {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonials-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.testimonials-prev,
.testimonials-next {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.testimonials-prev:hover,
.testimonials-next:hover {
    background-color: var(--dark-blue);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background-color: var(--accent);
}

.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-blue);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: Georgia, serif;
}

.testimonial-content {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.testimonial-content p {
    color: var(--gray-700);
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    margin-bottom: 3rem;
}

.about-description p {
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-600);
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon {
    background: linear-gradient(135deg, var(--gray-700), var(--gray-900));
    color: var(--white);
    width: 200px;
    height: 200px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    transform: rotate(5deg);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--gray-100);
}

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

.contact-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-centered {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    width: 100%;
    max-width: 600px;
}

.contact-info h3 {
    color: var(--gray-900);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 20px;
}

.contact-item span {
    color: var(--gray-700);
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--gray-900);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group small {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.submit-button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: var(--white);
}

.partners-container {
    position: relative;
    width: 100%; /* full width */
    margin: 0 auto;
    background-color: var(--gray-50);
    padding: 2rem 0; /* vertical padding only */
    box-shadow: none; /* remove inner stroke effect */
    border-radius: 0; /* no rounded corners since full width */
}

.partners-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center; /* center the logos */
    flex-wrap: wrap;
    padding: 0 2rem;
}

.partner-logo {
    flex: 0 0 auto;
    width: 140px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* soft shadow only under logo */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-logo:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, var(--white), var(--gray-50));
}

.partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* Tablet Layout */
@media screen and (max-width: 992px) {
    .partners-track {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

/* Mobile Layout */
@media screen and (max-width: 768px) {
    .partner-logo {
        flex: 1 1 calc(50% - 1.5rem);
        min-width: 120px;
        height: 80px;
    }
}

@media screen and (max-width: 480px) {
    .partners {
        padding: 60px 0;
    }

    .partners-container {
        padding: 1.5rem 0;
    }

    .partner-logo {
        flex: 1 1 calc(50% - 1rem);
        min-width: 100px;
        height: 70px;
    }
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
}

/* WhatsApp Modal */
.whatsapp-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.whatsapp-modal.active {
    display: block;
}

.whatsapp-modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 350px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    animation: whatsapp-modal-appear 0.3s ease;
    position: absolute;
    bottom: 100px;   /* مكانها الطبيعي على الكمبيوتر */
    right: 100px;
}

@keyframes whatsapp-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.whatsapp-header {
    background-color: #075e54;
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.whatsapp-contact i {
    font-size: 1.5rem;
    color: #25d366;
}

.contact-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.whatsapp-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.whatsapp-close:hover {
    background-color: rgba(255,255,255,0.1);
}

.whatsapp-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
    }

.whatsapp-message-area {
    margin-bottom: 1.5rem;
    min-height: 100px;
}

.welcome-message {
    background-color: #dcf8c6;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.welcome-message p {
    margin: 0.5rem 0;
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.4;
}

.whatsapp-input-area textarea {
    width: 100%;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.whatsapp-input-area textarea:focus {
    outline: none;
    border-color: #25d366;
}

.whatsapp-actions {
        margin-top: auto;
        padding: 1rem;
        background: #fff;
    }

.character-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.send-whatsapp-button {
    background-color: #25d366;
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.send-whatsapp-button:hover {
    background-color: #128c7e;
    transform: translateY(-1px);
}

.send-whatsapp-button:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

@media screen and (max-width: 768px) {
    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 20px;
        font-size: 1.6rem;
    }
    
    .whatsapp-modal-content {
        width: 95vw;
        height: 85vh;   /* بدل ما هي 100vh */
        max-width: none;
        max-height: none;
        right: 2.5vw;   /* مسافة صغيرة من اليمين */
        bottom: 5vh;    /* مسافة صغيرة من تحت */
        border-radius: 12px;
    }
    
    /* Adjust animation for mobile */
    @keyframes whatsapp-modal-appear {
        from {
            opacity: 0;
            transform: scale(0.8) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    .whatsapp-header {
        padding: 0.75rem;
    }
    
    .whatsapp-body {
        padding: 1rem;
    }
}

/* Review Button */
.review-invitation {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    grid-column: 1 / -1;
}

.review-invitation p {
    margin: 0 0 1rem 0;
    color: var(--gray-700);
    font-size: 1rem;
}

.review-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f59e0b;
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.review-button:hover {
    background-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Review Form Page */
.review-section {
    padding: 120px 0 80px;
    background-color: var(--gray-50);
    min-height: 100vh;
}

.review-header {
    text-align: center;
    margin-bottom: 3rem;
}

.review-header h1 {
    color: var(--gray-900);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.review-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.review-form-container {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
    max-width: 800px;
    margin: 0 auto;
}

.review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}


.checkbox-group {
    background-color: var(--gray-50);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
}

/* Radio Button Rating System */
.rating-group {
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.rating-group > label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
    display: block;
}

.rating-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.rating-option label {
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.rating-option input[type="radio"]:checked + label {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.rating-option:hover label {
    background-color: var(--gray-200);
}

.rating-option input[type="radio"]:checked:hover + label {
    background-color: var(--dark-blue);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-blue);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.cancel-button {
    color: var(--gray-600);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

.submit-review-button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-review-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
}

.submit-review-button:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

/* Review Success Modal */
.review-success {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.review-success.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    animation: success-appear 0.3s ease;
}

@keyframes success-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 3rem;
    color: #10b981;
}

.success-content h3 {
    color: var(--gray-900);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.success-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-button:hover {
    background-color: var(--dark-blue);
}

/* Responsive Review Form */
@media screen and (max-width: 768px) {
    .review-section {
        padding: 100px 0 60px;
    }
    
    .review-header h1 {
        font-size: 2rem;
    }
    
    .review-form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .review-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rating-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    
    .cancel-button,
    .submit-review-button {
        width: 100%;
        text-align: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px; /* أقل من زرار الواتساب (هو عنده bottom: 100px) */
    right: 30px;  /* بدل left: 30px عشان يبقى يمين تحت الواتساب */
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

@media screen and (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--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 h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }
    
    /* Mobile navigation logo adjustments */
    .nav-logo {
        gap: 8px !important;
    }
    
    .logo-image {
        height: 30px !important;
        width: 30px !important;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-icon {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-icon {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}