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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #16a34a;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

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

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-logo {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.nav-brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn .icon {
    width: 1rem;
    height: 1rem;
}

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

.btn-primary:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid white;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-light);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-lg .icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero-water-truck.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.9), rgba(37, 99, 235, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid white;
    border-radius: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem;
}

.mouse::before {
    content: '';
    width: 0.25rem;
    height: 0.75rem;
    background-color: white;
    border-radius: 0.25rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--primary-color);
    margin: 0 auto 3rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Why Us Section */
.why-us {
    background-color: var(--bg-white);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: #bfdbfe;
    transform: translateY(-0.5rem);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Services Section */
.services {
    background: linear-gradient(to bottom right, #eff6ff, white);
}

.service-card {
    background: linear-gradient(to bottom right, #eff6ff, white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-0.5rem);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Gallery Section */
.gallery {
    background-color: var(--bg-white);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 138, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background-color: rgba(30, 58, 138, 0.4);
}

.gallery-overlay svg {
    width: 3rem;
    height: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Service Areas Section */
.service-areas {
    background: linear-gradient(to bottom right, #eff6ff, white);
}

.area-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.area-card:hover {
    box-shadow: var(--shadow-xl);
}

.area-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.area-header .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.area-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.area-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-white);
}

.testimonial-card {
    background: linear-gradient(to bottom right, #eff6ff, white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-xl);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
}

/* Contact Section */
.contact {
    background: linear-gradient(to bottom right, #1e3a8a, #2563eb);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-cards {
    max-width: 48rem;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-card a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.contact-card a:hover {
    color: #bfdbfe;
}

.contact-card .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-card p {
    font-size: 1.125rem;
}

.cta-center {
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .icon-logo {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
}

.footer-brand p {
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-0.25rem);
}

.footer-links svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.whatsapp-float svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-1rem);
    }
    60% {
        transform: translateX(-50%) translateY(-0.5rem);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 1rem rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .whatsapp-float svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
