@font-face {
    font-family: "Readex Pro";
    src: url(../fonts/ReadexPro-Medium.woff2) format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Readex Pro";
    src: url(../fonts/ReadexPro-Bold.woff2) format("woff2");
    font-weight: 700;
    font-display: swap;
}
:root {
    --primary-color: #0077b6;
    --secondary-color: #ffd700;
    --dark-color: #333;
    --light-color: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
body {
    font-family: "Readex Pro", Arial, sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 5%;
    background: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
}
.logo-container {
    display: flex;
    align-items: center;
}
.logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-left: 10px;
}
.site-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
}
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 70px;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    animation: fadeInOnce 2s ease forwards;
}

/* أول صورة فقط تظهر */
.hero-img:nth-child(1) {
    opacity: 1;
}

@keyframes fadeInOnce {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-box {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--secondary-color);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    color: var(--light-color);
}

.hero-box h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--secondary-color);
}

.hero-highlight {
    font-size: 1rem;
    margin-top: 10px;
    color: var(--light-color);
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
        margin-top: 60px;
    }
    .hero-box h2 {
        font-size: 1.5rem;
    }
    .hero-highlight {
        font-size: 0.9rem;
    }
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 50px 0 30px;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}
.section-divider {
    width: 95%;
    height: 2px;
    background-color: #ccc;
    margin: 30px auto;
    border-radius: 1px;
}
.service-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch; /* كل الكروت بنفس الطول */
}

.service-item {
    width: 45%;
    min-width: 300px;
    margin: 20px 0;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden; /* يمنع أي عنصر يطلع برا */
    box-sizing: border-box;
}

.service-img {
    width: 40%;
    height: 100%;            /* الصورة تساوي طول البطاقة */
    max-height: 250px;       /* 👈 حد أقصى عشان ما تكبرش */
    object-fit: cover;       /* تملى المساحة بدون تشويه */
    display: block;
}

.service-desc {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: hidden; /* يخلي الكلام جوا */
}

.service-desc h3 {
    color: var(--primary-color);
    margin-top: 0;
}
.service-desc ul {
    padding-right: 20px;
    list-style-type: none;
}
.service-desc li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 15px;
}
.service-desc li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    right: 0;
}
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.problem-card {
    background: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.problem-card:hover {
    transform: translateY(-10px);
}
.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.problem-card h3 {
    color: var(--primary-color);
    margin: 10px 0;
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.feature {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}
.feature i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.feature h3 {
    color: var(--primary-color);
    margin: 15px 0;
}
.fa-bolt {
    color: #ffc107;
}
.fa-shield-alt {
    color: #28a745;
}
.fa-tags {
    color: #f4c430;
}
.fa-tools {
    color: #6f42c1;
}
.fa-user-check {
    color: var(--primary-color);
}
.fa-percent {
    color: var(--dark-color);
}
.contact-section {
    text-align: center;
    padding: 60px 20px;
    color: var(--primary-color);
}
.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--light-color);
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.contact-btn i {
    margin-left: 10px;
}
.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
.phone-call-btn {
    background: #ffde21;
}
.whatsapp-btn {
    background: #128c7e;
}
.facebook-btn {
    background: #3b5998;
}
footer {
    text-align: center;
    padding: 20px;
    background: var(--dark-color);
    color: var(--light-color);
}
.float-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}
.float-btn:hover {
    transform: scale(1.1);
}
.phone-float {
    background: #ffde21;
}
.whatsapp-float {
    background: #25d366;
}
.facebook-float {
    background: #3b5998;
}
.extended-content {
    padding: 40px 20px;
    background: var(--light-color);
    line-height: 1.8;
    font-size: 14.5px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    margin: 0 20px;
}
.container {
    max-width: 1000px;
    margin: auto;
    color: var(--dark-color);
}
.container h2,
.container h3 {
    color: var(--primary-color);
}
.container h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.container h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
}
@media (max-width: 768px) {
    .hero {
        height: 300px;
        margin-top: 60px;
    }
    .site-title {
        font-size: 1rem;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }
    .logo-container {
        width: 100%;
        justify-content: space-between;
    }
    .hero-box h2 {
        font-size: 1.5rem;
    }
    .hero-highlight {
        font-size: 0.9rem;
    }
    .service-item {
        flex-direction: column;
        width: 90%;
    }
    .service-desc,
    .service-img {
        width: 100%;
    }
    .float-buttons {
        bottom: 20px;
        left: 20px;
    }
    .feature i {
        font-size: 2rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .contact-btn,
    .float-btn,
    .hero-img,
    .problem-card {
        animation: none !important;
        transition: none !important;
    }
}
img {
    aspect-ratio: 16/9;
}
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    src: url(../webfonts/fa-solid-900.woff2) format("woff2");
}
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    src: url(../webfonts/fa-brands-400.woff2) format("woff2");
}
.fab,
.fas {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
.fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}
.fa-phone:before {
    content: "\f095";
}
.fa-whatsapp:before {
    content: "\f232";
}
.fa-facebook-f:before {
    content: "\f39e";
}
.fa-tags:before {
    content: "\f02c";
}
.fa-shield-alt:before {
    content: "\f3ed";
}
.fa-bolt:before {
    content: "\f0e7";
}
.fa-tools:before {
    content: "\f7d9";
}
.fa-user-check:before {
    content: "\f4fc";
}
.fa-percent:before {
    content: "\f295";
}
