:root {
    --main-color: #00CAFF; 
    --secondary-color: #0056b3;
    --text-dark: #1a252f; 
    --text-gray: #4a5568;
    --bg-light: #cce2e9;
    --accent-color: #28a745; 
}

* { box-sizing: border-box; outline: none; }

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 90px; 
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0; padding: 0;
    background-color: white;
    color: var(--text-dark);
    line-height: 1.7;
    direction: rtl; 
    overflow-x: hidden; 
}

header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000; padding: 10px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex; justify-content: space-between; align-items: center;
    width: 95%; max-width: 1200px; margin: auto; padding: 0 15px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 60px; width: auto; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-light); }
.logo h1 { margin: 0; font-size: 1.3rem; color: var(--main-color); font-weight: 800; }

nav { display: flex; align-items: center; gap: 25px; }

.nav-links {
    display: flex;
    gap: 30px; 
    align-items: center;
}

nav a { 
    text-decoration: none; color: var(--text-dark); 
    font-weight: 700; transition: 0.3s; position: relative;
    font-size: 1.05rem;
}

nav a::after {
    content: ''; position: absolute; bottom: -5px; right: 0;
    width: 0; height: 3px; background-color: var(--main-color);
    transition: width 0.3s ease; border-radius: 2px;
}
nav a:hover { color: var(--main-color); }
nav a:hover::after { width: 100%; }

.cta-btn {
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    color: white; padding: 10px 30px;
    border-radius: 50px; text-decoration: none; font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 105, 217, 0.3);
    transition: 0.3s; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
}
.cta-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(0, 105, 217, 0.5); 
}
.cta-btn i { animation: shake 3s infinite; } 

.menu-btn, .close-btn, .mobile-cta, .overlay { display: none; }
.desktop-cta { display: inline-flex; }

.hero {
    position: relative;
    height: 100vh; 
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    overflow: hidden; 
    clip-path: ellipse(150% 100% at 50% 0%); 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 105, 217, 0.9), rgba(2, 48, 97, 0.85)), url('images/562356152_835867892288435_3439607930458144395_n.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: kenBurns 20s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.slogan {
    display: inline-block;
    background-color: rgba(255,255,255,0.15); 
    padding: 8px 25px;
    border-radius: 20px; 
    margin-bottom: 25px;
    font-weight: bold; 
    border: 2px solid rgba(255,255,255,0.4);
    opacity: 0; 
    animation: slideDown 1s ease-out forwards; 
}

.hero h2 { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards; 
}

.hero p { 
    font-size: 1.3rem; 
    margin-bottom: 35px; 
    opacity: 0; 
    transform: translateY(30px);
    color: #e3f2fd; 
    animation: fadeInUp 1s ease-out 0.8s forwards; 
}

.hero .cta-btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.2s forwards, pulseBtn 2s infinite 2.5s;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- Stats --- */
.stats {
    display: flex; justify-content: center; gap: 25px;
    padding: 0 20px; margin-top: -60px; 
    position: relative; z-index: 10;
    flex-wrap: wrap;
}
.stat-box {
    background: white; padding: 30px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); min-width: 220px; flex: 1; max-width: 300px;
    text-align: center; border-bottom: 4px solid var(--main-color);
    transition: 0.4s;
}
.stat-box:hover { transform: translateY(-10px); }
.stat-box i { font-size: 2.8rem; color: var(--main-color); margin-bottom: 15px; }
.stat-box h3 { margin: 10px 0; font-size: 2rem; color: var(--text-dark); font-weight: 800; }
.stat-box p { color: var(--text-gray); font-size: 1.1rem; margin: 0; }

/* --- Services --- */
.services { padding: 100px 20px 80px; background-color: white; text-align: center; }
.section-title h2 { 
    font-size: 2.5rem; color: var(--main-color); margin-bottom: 15px; 
    position: relative; display: inline-block;
}
.section-title p { color: var(--text-gray); font-size: 1.2rem; margin-bottom: 50px; }

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: auto;
}
.service-card {
    background: white; border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    border: 1px solid #eee; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
    text-align: center; padding: 0; display: flex; flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0, 105, 217, 0.2);
    border-color: var(--main-color);
}

.img-box {
    width: 100%; height: 200px; overflow: hidden; position: relative;
}
.img-box img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.service-card:hover .img-box img { transform: scale(1.1); }

.card-content {
    padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start;
}
.service-card h3 { margin: 0 0 10px; font-size: 1.5rem; color: var(--text-dark); font-weight: 700; }
.service-card p { font-size: 1rem; color: var(--text-gray); margin: 0; line-height: 1.6; }

.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--main-color); transform: scaleX(0); transform-origin: left;
    transition: 0.4s; z-index: 5;
}
.service-card:hover::before { transform: scaleX(1); }

/* --- Features & About --- */
.features { background-color: #1581BF; color: white; padding: 80px 20px; text-align: center; }
.features h2 { font-size: 2.4rem; margin-bottom: 40px; }
.features-list { list-style: none; padding: 0; max-width: 800px; margin: auto; text-align: right; }
.features-list li {
    font-size: 1.2rem; margin-bottom: 20px; padding: 15px 20px;
    background: rgba(255,255,255,0.1); border-radius: 15px;
    border-right: 5px solid #ffc107;
    transition: 0.3s;
}
.features-list li:hover { background: rgba(255,255,255,0.2); transform: translateX(-10px); }
.features-list i { color: #ffc107; margin-left: 15px; }

.about { padding: 80px 20px; text-align: center; background-color: var(--bg-light); }
.about img {
    width: 280px; border-radius: 50%; 
    box-shadow: 0 15px 35px rgba(0, 105, 217, 0.2); margin-bottom: 30px;
    border: 5px solid white;
}

/* --- Vision --- */
.vision { background-color: white; padding: 80px 20px; text-align: center; }
.vision h2 { color: var(--main-color); font-size: 2.4rem; margin-bottom: 40px;}
.vision-cards { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.card {
    flex: 1; min-width: 280px; max-width: 400px; padding: 40px 30px;
    background: white; border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;
    transition: 0.4s;
}
.card i {
    font-size: 2.5rem; color: var(--main-color); margin-bottom: 20px;
    background: var(--bg-light); padding: 20px; border-radius: 50%;
}
.card:hover { transform: translateY(-10px); border-color: var(--main-color); }

/* --- Contact --- */
.contact { 
    background: linear-gradient(to bottom, #518bc2,#36618d);
    color: white; padding: 80px 20px; text-align: center; 
}
.contact-info a { 
    color: #ffc107; text-decoration: none; display: block; 
    margin: 15px 0; font-size: 1.5rem; font-weight: bold;
    transition: 0.3s;
}
.contact-info a:hover { color: white; transform: scale(1.05); }

.social-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.btn-social {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 35px;
    border-radius: 50px; text-decoration: none; color: white !important;
    font-weight: bold; font-size: 1.1rem; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.whatsapp-channel { background-color: #25d366; }
.whatsapp-channel:hover { background-color: #20b858; transform: translateY(-5px); }
.facebook-page { background-color: #1877f2; }
.facebook-page:hover { background-color: #1465d1; transform: translateY(-5px); }

.whatsapp-float {
    position: fixed; width: 65px; height: 65px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000; text-decoration: none;
    animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { background-color: #20b858; transform: scale(1.1); }

.hidden { opacity: 0; transform: translateY(50px); filter: blur(5px); transition: all 1s ease; }
.show { opacity: 1; transform: translateY(0); filter: blur(0); }

.services-grid .service-card:nth-child(2) { transition-delay: 100ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 200ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 300ms; }
.services-grid .service-card:nth-child(5) { transition-delay: 400ms; }
.services-grid .service-card:nth-child(6) { transition-delay: 500ms; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(10deg); }
    20%, 40% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
}

.main-footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 60px 0 0;
    position: relative;
    z-index: 10;
}
.footer-container {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    width: 90%; max-width: 1200px; margin: auto; padding-bottom: 40px; gap: 40px;
}
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 {
    color: #00bcd4; font-size: 1.4rem; margin-bottom: 25px;
    position: relative; padding-bottom: 10px;
}
.footer-col h3::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 50px; height: 3px; background-color: #00bcd4;
}
.footer-col p { color: #bdc3c7; line-height: 1.8; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    text-decoration: none; color: #bdc3c7; transition: 0.3s; font-size: 1.1rem; display: inline-block;
}
.footer-links a:hover { color: #00bcd4; transform: translateX(-5px); }
.footer-social { margin-top: 20px; display: flex; gap: 15px; }
.footer-social a {
    width: 40px; height: 40px; background-color: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: white; border-radius: 50%; text-decoration: none; transition: 0.3s;
}
.footer-social a:hover { background-color: #00bcd4; transform: translateY(-5px); }
.contact-row {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: #bdc3c7;
}
.contact-row i { color: #00bcd4; font-size: 1.2rem; }

.footer-bottom {
    background-color: #131d24; text-align: center;
    padding: 20px; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p { margin: 0; font-size: 0.95rem; color: #7f8c8d; line-height: 1.6; }
.separator { margin: 0 8px; color: #555; }
.dev-link {
    color: #00bcd4; text-decoration: none; font-weight: bold; transition: all 0.3s ease;
}
.dev-link:hover {
    color: #ffffff; text-shadow: 0 0 10px rgba(0, 188, 212, 0.5); text-decoration: underline;
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .header-container { flex-direction: row; justify-content: space-between; }
    .desktop-cta { display: none; }
    
    .menu-btn { 
        display: block; font-size: 1.8rem; color: var(--main-color); 
        cursor: pointer; padding: 10px; z-index: 2001; 
    }
    nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background-color: #ffffff; box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        display: flex; flex-direction: column; align-items: flex-start; 
        padding: 60px 20px 20px 20px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
        z-index: 9999; 
    }
    nav.active { right: 0;  }
    
    .nav-links { display: flex; flex-direction: column; width: 100%; gap: 10px; margin-top: 20px; }
    nav a { 
        width: 100%; padding: 15px; color: var(--text-dark); font-size: 1.1rem;
        border-bottom: 1px solid #f5f5f5; border-radius: 8px;
    }
    nav a:hover, nav a:active { background-color: #f0f8ff; color: var(--main-color); padding-right: 25px; }
    nav a::after { display: none; } 
    
    .close-btn { 
        display: block; position: absolute; top: 20px; left: 20px;
        font-size: 2rem; color: #ff4444; cursor: pointer; padding: 5px;
    }
    .mobile-cta { 
        display: flex; justify-content: center; margin-top: auto; width: 100%; margin-bottom: 20px;
        color: white !important; 
    }
    .overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); 
        z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .overlay.active { opacity: 1; visibility: visible; }

    .hero { min-height: 500px; }
    .hero h2 { font-size: 2rem; }
    .stat-box { min-width: 100%; }
    
    .main-footer { text-align: center; }
    .footer-container { flex-direction: column; gap: 30px; }
    .footer-col h3::after { right: 50%; transform: translateX(50%); }
    .footer-social { justify-content: center; }
    .contact-row { justify-content: center; }
    .footer-bottom p { display: flex; flex-direction: column; gap: 10px; }
    .separator { display: none; }
}