:root {
    /* Primary Colors */
    --primary-color: #0B3B69;   /* الكحلي */
    --secondary-color: #BCA15B; /* الذهبي */
    
    /* Background */
    --bg-color: #F4F4F4;
    --white: #ffffff;

    /* Text */
    --text-color: #0B3B69;

    /* Optional Shades */
    --border-color: #e0e0e0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color:  var(--text-color);
}

/* Loader */
.loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* اللوجو */
.logo {
    position: absolute;
    width: 150px;
    transition: all 1s ease;
}

/* البداية */
.left {
    left: -150px;
}

.right {
    right: -150px;
}

/* لما يتحركوا */
.loader.active .left {
    left: 50%;
    transform: translateX(-100%);
}

.loader.active .right {
    right: 50%;
    transform: translateX(100%);
}

/* الاختفاء */
.loader.hide {
    opacity: 0;
    visibility: hidden;
    transition: 0.8s;
}

/* نخفي الصفحة في الأول */
.content {
    opacity: 0;
    transition: 1s;
}

/* لما تظهر */
.content.show {
    opacity: 1;
}


/* Navbar Base */
/* Variables */
:root {
    --primary-color: #0B3B69;
    --secondary-color: #BCA15B;
    --bg-color: #F4F4F4;
    --white: #ffffff;
    --text-color: #0B3B69;
    --border-color: #e0e0e0;
}

/* Body */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-color);
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 85%;
    max-width: 1000px;

    background: var(--white);
    border-radius: 50px;
    padding: 10px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    z-index: 1000;
}

/* Links */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 8px;

    position: relative;
    transition: 0.3s;
}

/* Hover underline */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Active */
.nav-links a.active {
    color: var(--secondary-color);
}

/* Contact box (Desktop) */
.contact-box {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================= MOBILE ================= */

.mobile-contact {
    display: none;
}

@media (max-width: 768px) {

    .navbar {
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;

        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;

        justify-content: center;
        padding: 10px 0;
    }

    .nav-links {
        width: 100%;
        justify-content: space-around;
    }

    .nav-links a {
        flex-direction: column;
        font-size: 11px;
        gap: 4px;
    }

    .nav-links i {
        font-size: 18px;
    }

    .contact-box {
        display: none;
    }

    /* Floating Call Button */
    .mobile-contact {
        display: flex;
        position: fixed;

        bottom: 70px;
        right: 15px;

        width: 50px;
        height: 50px;

        background: var(--primary-color);
        color: var(--white);

        border-radius: 50%;
        justify-content: center;
        align-items: center;

        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 1000;

        text-decoration: none;
    }

    .mobile-contact i {
        font-size: 18px;
    }

}

/* Optional Pulse Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(11,59,105,0.5); }
    70% { box-shadow: 0 0 0 10px rgba(11,59,105,0); }
    100% { box-shadow: 0 0 0 0 rgba(11,59,105,0); }
}

.mobile-contact {
    animation: pulse 2s infinite;
}







/* --- FOOTER STYLES --- */

.main-footer {
    background-color: #051c33; /* كحلي أغمق من الأساسي للفوتر */
    color: #fff;
    padding: 80px 10% 30px;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #BCA15B; /* لون ذهبي */
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #BCA15B;
}

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

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #BCA15B;
    padding-left: 5px; /* حركة بسيطة عند الـ hover */
}

/* السوشيال ميديا */
.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: 0.4s;
}

.social-icon:hover {
    background: #BCA15B;
    transform: translateY(-5px);
}

/* الجزء السفلي (Developer Credit) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.developer {
    font-size: 0.9rem !important;
}

.team-name {
    color: #BCA15B;
    font-weight: 700;
    text-transform: capitalize;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
}






.floating-lang-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #fff;
    border: 2px solid #0B3B69; /* كحلي ريادة */
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 9999; /* عشان يظهر فوق كل السكاشن */
    box-shadow: 0 10px 25px rgba(11, 59, 105, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-lang-btn:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: #BCA15B; /* ذهبي ريادة عند الوقوف عليه */
}

.flag-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    transition: transform 0.5s;
}

#lang-label {
    font-weight: 700;
    color: #0B3B69;
    font-size: 1rem;
}

/* حركة الدوران عند الضغط */
.rotate-flag {
    transform: rotateY(360deg);
}

/* Responsive: تصغير الحجم شوية في الموبايل */
@media (max-width: 600px) {
    .floating-lang-btn {
        bottom: 140px;
        right: 20px;
        padding: 8px 14px;
    }
    #lang-label { font-size: 0.9rem; }
}