/* styles.css */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #7cb342;
    --accent-color: #f9a825;
    --light-color: #f1f8e9;
    --dark-color: #1b5e20;
    --text-color: #333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 70px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto;
}

.articles {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.article {
    background: white;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
}

.article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-content-wrapper {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
}

.article-img {
    flex: 1;
    min-width: 300px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 2;
    padding: 25px;
}

.article-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    color: #777;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* الهيدر المصغر */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    position: absolute;
    right: 5px;
}

.logo-img {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 24px;
}

.logo h1 {
    font-size: 20px;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* قائمة الهامبرغر */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: absolute;
    left: 5px;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: var(--transition);
    border-radius: 2px;
}

nav {
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* الهيرو سيكشن مع صورة */
.hero {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('https://iili.io/KJvnd8J.md.jpg') no-repeat center center/cover;
    color: white;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* الخدمات - 2 كارت لكل صف */
.services {
    background-color: white;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: calc(50% - 25px);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .service-card {
        width: 100%;
    }
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 180px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.service-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    flex-grow: 1;
}

.service-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* آراء العملاء */
.testimonials {
    background-color: var(--light-color);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: calc(50% - 25px);
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 100%;
    }
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    line-height: 1.8;
}

.testimonial-text:before {
    content: """;
    font-size: 60px;
    color: var(--secondary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.2;
}

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

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.author-info p {
    font-size: 14px;
    color: #666;
}

/* مناطق الخدمة - بدون أيقونات */
.areas {
    background: white;
}

.areas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.area-card {
    background: var(--light-color);
    padding: 15px 25px;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.area-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* معرض الصور */
.gallery {
    background-color: var(--light-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

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

/* قسم الفيديوهات الجديد */
.videos {
    background-color: white;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    
}

.video-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    height: 250px;
    width:100%;
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-item:hover img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-play-btn i {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: -3px;
}

.video-item:hover .video-play-btn {
    background: var(--primary-color);
}

.video-item:hover .video-play-btn i {
    color: white;
}

.video-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
}

.video-item-overlay h3 {
    color: white;
    margin-bottom: 5px;
}

/* نافذة الفيديو المنبثقة - تم التعديل لتصبح ملء الشاشة */
.video-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-fullscreen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الفوتر */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    font-size: 18px;
}

.footer-col h3:after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    margin-top: 10px;
}

.footer-col p {
    margin-bottom: 15px;
    font-size: 14px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* زر واتساب عائم محسن */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    bottom: 15px;
    background: white;
    color: #075E54;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* القائمة الجانبية للهاتف */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    transition: var(--transition);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.mobile-menu ul li a:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

/* إغلاق القائمة عند النقر خارجها */
.overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* نماذج تفاصيل الخدمات */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
    transition: var(--transition);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.modal-header h3 {
    color: var(--primary-color);
    font-size: 24px;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.modal-features {
    margin: 20px 0;
}

.modal-features h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.modal-features ul {
    list-style: none;
    padding-right: 20px;
}

.modal-features li {
    margin-bottom: 8px;
    position: relative;
}

.modal-features li:before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 10px;
}

.modal-footer {
    text-align: center;
}

.key{
    width: 95%;
    text-align: center;
    background: white;
    margin-bottom: 100px;
    margin-top: 20px;
}
.key h1{
    font-size: 15px;
}
.key p{
    font-size: 15px;
}
.ws{
    width: 100%;
    padding: 5px;
    background: green;
    text-decoration: none;
    list-style: none;
    display: block;
    position: fixed;
    bottom: 0px;
    margin-top: 20px;
}
.ws p{
    text-align: center;
    color: white;
    font-weight: bold;
}
/* التجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        display: none;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .article-content-wrapper {
        flex-direction: column;
    }
    
    .article-img {
        min-width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .service-card {
        width: 100%;
    }
    
    .testimonial-card {
        width: 100%;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .close-fullscreen {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* تأثير التمرير السلس */
html {
    scroll-behavior: smooth;
}