

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    direction: rtl;
    text-align: right;
    font-family: "Tahoma", Arial, sans-serif;
    background-color: #f4f5fb;
    color: #222;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ====== Layout ====== */

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== Header & Navbar ====== */

header {
    background: #0b1f3b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    font-size: 1.15rem;
    font-weight: bold;
}

.logo span {
    color: #f5c044;
}

.nav {
    /* عشان نتحكم فيها في الموبايل */
    position: relative;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(245,192,68,0.18);
}

/* زر المنيو للموبايل */
/* الهيدر الأساسي */
header {
    background: #0b1f3b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    font-size: 1.1rem;
    font-weight: bold;
}

.logo span {
    color: #f5c044;
}

/* على الديسكتوب */
nav ul.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul.nav-links li a {
    color: #fff;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 20px;
    transition: background 0.2s ease;
}

nav ul.nav-links li a:hover,
nav ul.nav-links li a.active {
    background: rgba(245,192,68,0.18);
}

/* زر القائمة للموبايل */
.mobile-menu-btn {
    width: 32px;
    height: 24px;
    display: none;         /* نخفيه على الديسكتوب */
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* الطبقة الخلفية */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 90;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* Logo Container */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo Image */
.site-logo img {
    width: 55px;
    height: auto;
    object-fit: contain;
}

/* Logo Text */
.logo-text {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
}

.logo-text span {
    color: #f5c044;
}

/* ========== موبايل / تابلت ========== */
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: flex;      /* يظهر زر المنيو */
    }

    nav ul.nav-links {
        position: fixed;
        top: 0;
        right: -260px;      /* مخفية بره الشاشة */
        width: 260px;
        height: 100%;
        padding-top: 80px;
        padding-right: 0;
        margin: 0;
        flex-direction: column;
        gap: 0;
        background: #0b2340;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
        transition: right 0.4s ease;
        z-index: 100;
    }

    nav ul.nav-links li {
        width: 100%;
    }

    nav ul.nav-links li a {
        display: block;
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    nav ul.nav-links.open {
        right: 0;          /* تظهر داخل الشاشة */
    }
	
	    .site-logo img {
        width: 42px;
    }

    .logo-text {
        font-size: 1rem;
    }
	
}






/* ====== Hero Section ====== */

.hero {
    background: linear-gradient(135deg, #0b1f3b, #283a60);
    color: #fff;
    padding: 60px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero h1 span {
    color: #f5c044;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 18px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    background: rgba(0,0,0,0.28);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.btn-primary,
.btn-outline {
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #f5c044;
    color: #0b1f3b;
    font-weight: bold;
}

.btn-primary:hover {
    background: #ffd468;
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.14);
}

.hero-note {
    font-size: 0.8rem;
    opacity: 0.9;
}

.hero-card {
    background: #fff;
    color: #222;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.hero-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #0b1f3b;
}

.hero-card ul {
    font-size: 0.9rem;
}

.hero-card li {
    margin-bottom: 6px;
}

/* ====== Sections ====== */

.section {
    padding: 45px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
}

.section-title h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #0b1f3b;
}

.section-title p {
    font-size: 0.9rem;
    color: #666;
}

/* Services grid */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.service-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.09);
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #0b1f3b;
}

.service-card p {
    font-size: 0.85rem;
    color: #555;
}

/* Why us */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.why-item {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.why-item h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #0b1f3b;
}

.why-item p {
    font-size: 0.85rem;
}

/* Projects gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.gallery-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.gallery-item img {
    width: 100%;
    display: block;
    height: 200px;
    object-fit: cover;
}

.gallery-caption {
    padding: 10px 12px;
    font-size: 0.85rem;
}

/* Contact */

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 25px;
}

.contact-box {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    font-size: 0.9rem;
}

.contact-box h3 {
    margin-bottom: 10px;
    color: #0b1f3b;
}

.contact-list li {
    margin-bottom: 6px;
}

.contact-form label {
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}


/* ===== Slider / Carousel Section ===== */

.section-slider {
    padding-top: 20px;
    padding-bottom: 50px;
}

.slider-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    background: #000;
    position: relative;
}

/* حجم السلايد حسب الجهاز */
.slider-slide {
    display: none;
    width: 100%;
}

.slider-slide:first-child {
    display: block;
}

.slider-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 25px;
}

/* تابلت */
@media (max-width: 991px) {
    .slider-slide img {
        height: 360px;
    }
}

/* موبايل */
@media (max-width: 600px) {
    .slider-slide img {
        height: 240px;
    }
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background: #fff;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
}

.slider-dot.active {
    opacity: 1;
    background: #ffaa00;
}


/* Fade animation */

.fade-slide {
    animation-name: fadeEffect;
    animation-duration: 1.5s;
}

@keyframes fadeEffect {
    from { opacity: 0.3; }
    to   { opacity: 1; }
}

/* ====== Footer ====== */

footer {
    background: #0b1f3b;
    color: #fff;
    padding: 18px 0;
    margin-top: 30px;
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ====== Floating WhatsApp ====== */

.whatsapp-float {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 999;
}

.whatsapp-float a {
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ====== Responsive ====== */

@media (max-width: 800px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none; /* ممكن لاحقًا نعمل منيو للموبايل */
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .slider-wrapper,
    .slider-slide,
    .slider-slide img {
        height: 260px;
    }
}
