@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: var(--header-bg);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    height: 120px;
    max-width: 320px;
    width: auto;
    display: block;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.2s;
}
.nav-menu li a:hover {
    color: var(--secondary-color);
}

/* Slider */
.slider-section {
    background: var(--bg-light);
    padding: 0;
    margin-bottom: 0;
}
.slider {
    position: relative;
    height: 98vh;
    min-height: 500px;
    max-height: 1200px;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 0 1.5rem 0;
}
.slide {
    position: absolute;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    left: 50%;
    transform: translateX(-50%);
}
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Welcome */
.welcome-section {
    text-align: center;
    padding: 2rem 0 1.5rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 2rem;
}
.welcome-section h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.welcome-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.cta-btn {
    background: var(--button-bg);
    color: #fff;
    padding: 0.8rem 2.2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s;
}
.cta-btn:hover {
    background: var(--button-hover);
}

/* Services */
.services-section {
    background: var(--bg-color);
    padding: 2rem 0;
}
.services-section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}
.services {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.service {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    width: 300px;
    transition: transform 0.2s;
}
.service:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-hover);
}
.service img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.service h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Projects */
.projects-section {
    background: var(--bg-light);
    padding: 2rem 0;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.projects-section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}
.projects {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.project {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1rem;
    text-align: center;
    width: 260px;
}
.project img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.7rem;
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-color);
    padding: 2rem 0;
}
.testimonials-section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}
.testimonials {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.testimonial {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.2rem 1.5rem;
    width: 300px;
    text-align: center;
    font-style: italic;
}
.testimonial span {
    display: block;
    margin-top: 0.7rem;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Testimonials Slider */
.testimonials-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    min-height: 180px;
}
.testimonial-slide {
    min-width: 320px;
    max-width: 500px;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem 2rem;
    text-align: center;
    font-style: italic;
    font-size: 1.15rem;
    position: relative;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s, transform 0.5s;
}
.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}
.testimonial-slide.exit {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}
.testimonial-slide .testimonial-name {
    display: block;
    margin-top: 1rem;
    color: var(--secondary-color);
    font-weight: bold;
    font-style: normal;
}
.testimonial-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-btn:hover {
    background: var(--accent-color);
}

/* Contact */
.contact-section {
    background: var(--bg-light);
    padding: 2rem 0;
    border-radius: 12px;
    margin-bottom: 2rem;
}
.contact-section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: auto;
}
.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    background: var(--input-bg);
    color: var(--text-color);
}
.contact-form button {
    background: var(--button-bg);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: var(--button-hover);
}
.contact-details {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 1.2rem 0 0.5rem 0;
    margin-top: 2rem;
    border-radius: 12px 12px 0 0;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-links a,
.social-links a {
    color: var(--footer-text);
    text-decoration: none;
    margin-left: 1.2rem;
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-links a:hover,
.social-links a:hover {
    color: var(--secondary-color);
}
.social-links {
    display: flex;
    gap: 1rem;
}
.copyright {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    flex-basis: 100%;
    text-align: center;
}

/* Header transparency on scroll */
#main-header {
    transition: background 0.4s, box-shadow 0.4s;
    background: var(--header-bg);
}
#main-header.scrolled {
    background: var(--header-bg);
    box-shadow: var(--shadow-hover);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.slider-btn:hover {
    background: var(--secondary-color);
}
.slider-btn.prev {
    right: 20px;
}
.slider-btn.next {
    left: 20px;
}
.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.slider-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--secondary-color);
    opacity: 0.6;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.slider-dot.active {
    background: var(--secondary-color);
    opacity: 1;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-block;
    background: #25d366;
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1.2rem;
    text-decoration: none;
    transition: background 0.2s;
}
.whatsapp-btn i {
    margin-left: 0.5rem;
}
.whatsapp-btn:hover {
    background: #128c7e;
}

/* Social Icons */
.social-links a {
    font-size: 1.5rem;
    margin-left: 1.2rem;
    color: var(--footer-text);
    transition: color 0.2s;
}
.social-links a:hover {
    color: var(--secondary-color);
}

/* Simple fade-in animation for sections */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
}
[data-animate].animated {
    opacity: 1;
    transform: none;
}

/* Placeholder page style */
.placeholder-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.3rem;
    color: #007b8a;
}

/* Numbers Section */
.numbers-section {
    background: #292a2c;
    color: #fff;
    padding: 3rem 0 2.5rem 0;
    margin-bottom: 0;
}
.numbers-title {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 2.5rem;
    color: #fff;
    letter-spacing: 1px;
}
.numbers-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.stat {
    flex: 1 1 180px;
    min-width: 180px;
    text-align: center;
    border-left: 1px solid #444;
    padding: 0 1.5rem;
}
.stat:last-child {
    border-left: none;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: #00b6b6;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.stat-label {
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.85;
}
@media (max-width: 900px) {
    .numbers-stats {
        flex-direction: column;
        gap: 2rem;
    }
    .stat {
        border-left: none;
        border-bottom: 1px solid #444;
        padding: 1.2rem 0;
    }
    .stat:last-child {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .services, .projects, .testimonials {
        flex-direction: column;
        align-items: center;
    }
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .slider {
        height: 60vw;
        min-height: 220px;
        max-height: 400px;
    }
    .service, .testimonial, .project {
        width: 95vw;
        max-width: 350px;
    }
}
@media (max-width: 600px) {
    .slider {
        height: 55vw;
        min-height: 180px;
        max-height: 320px;
    }
    .slide {
        height: 100%;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
    .logo {
        height: 90px;
        max-width: 200px;
    }
    .nav-menu {
        gap: 1rem;
        font-size: 0.95rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .testimonial-slide {
        min-width: 90vw;
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }
    .container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* Why Us Section */
.whyus-section {
    background: #f3fbf9;
    padding: 3rem 0 2.5rem 0;
}
.whyus-title {
    text-align: center;
    font-size: 2rem;
    color: #007b8a;
    margin-bottom: 2.5rem;
}
.whyus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    max-width: 950px;
    margin: 0 auto;
}
.whyus-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    min-height: 170px;
}
.whyus-icon {
    font-size: 2.3rem;
    color: #00b6b6;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.whyus-card h3 {
    margin: 0 0 0.7rem 0;
    color: #007b8a;
    font-size: 1.18rem;
}
.whyus-card p {
    margin: 0;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .whyus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .whyus-card {
        padding: 1.2rem 1rem;
    }
}

/* Header Actions (WhatsApp & Language) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-right: 1.5rem;
}
.header-whatsapp-btn {
    background: #25d366;
    color: #fff;
    padding: 0.7rem 1.7rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    transition: background 0.2s;
}
.header-whatsapp-btn i {
    font-size: 1.3rem;
    margin-left: 0.4rem;
}
.header-whatsapp-btn:hover {
    background: #128c7e;
}
.header-lang-btn {
    background: none;
    border: none;
    color: #007b8a;
    font-size: 1.05rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 18px;
    transition: background 0.2s;
}
.header-lang-btn:hover {
    background: #e9ecef;
}
@media (max-width: 900px) {
    .header-actions {
        margin-right: 0;
        gap: 0.7rem;
    }
    .header-whatsapp-btn {
        padding: 0.5rem 1.1rem;
        font-size: 1rem;
    }
    .header-lang-btn {
        font-size: 0.95rem;
        padding: 0.2rem 0.5rem;
    }
} 

/* Projects Marquee */
.projects-marquee-container {
    width: 100vw;
    /* max-width: 1600px; */
    overflow: hidden;
    margin: 0;
    position: relative;
    height: 180px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.projects-marquee-track {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: max-content;
    will-change: transform;
    transition: none;
}
.projects-marquee-track img {
    width: 220px;
    max-width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #eee;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.projects-marquee-track img:hover {
    transform: scale(1.04);
}
@media (max-width: 1200px) {
    .projects-marquee-track img { width: 160px; max-width: 160px; height: 110px; }
    .projects-marquee-container { height: 120px; }
}
@media (max-width: 800px) {
    .projects-marquee-track img { width: 100vw; max-width: 100vw; height: 220px; }
    .projects-marquee-container { height: 230px; }
} 

/* صفوف المشاريع */
.projects-marquee-row {
    width: 100vw;
    max-width: 1600px;
    margin: 0 auto 24px auto;
    overflow: hidden;
    height: 180px;
    position: relative;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
@media (max-width: 1200px) {
    .projects-marquee-row { height: 120px; }
}
@media (max-width: 800px) {
    .projects-marquee-row { height: 170px; }
}

.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-size: 2rem;
  transition: background 0.2s;
  cursor: pointer;
}
.whatsapp-float-btn:hover {
  background: #1ebe5d;
} 