html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container, .container-fluid {
    padding-right: 15px !important;
    padding-left: 15px !important;
}

.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-nav .nav-link, 
.navbar-nav .btn {
    white-space: nowrap !important;
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover:not(.active) {
    color: #0dcaf0 !important;
    background-color: rgba(13, 202, 240, 0.1); 
    transform: translateY(-3px);
    border-radius: 50px;
}

.navbar-nav .nav-link.active {
    background-color: #0dcaf0;
    color: #000 !important;
    font-weight: bold;
}
@media (min-width: 992px) {
    .navbar-nav {
        width: 100% !important;
        display: flex !important;
        /* "space-evenly" هي اللي هتخلي المسافات بينهم وبين بعض متساوية بالملي */
        justify-content: space-evenly !important; 
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .navbar-nav .nav-item {
        /* شيلنا flex: 1 عشان العناصر متبقاش ضخمة وتفرش زيادة */
        flex: none !important; 
        text-align: center;
    }

    /* إضافة مسافة بسيطة بين اللوجو وأول عنصر، وبين آخر عنصر والزرار */
    .navbar-nav {
        padding: 0 20px !important;
    }
}


@media (max-width: 991px) {
    .custom-offcanvas {
        width: 300px !important;
        min-width: 300px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .offcanvas-body {
        width: 100% !important;
        padding: 2rem 1rem !important;
        display: block !important; 
    }

    .navbar-nav {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
    }

   @media (max-width: 991px) {
    .custom-offcanvas {
        height: 100vh !important;
        width: 300px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 9999 !important;
        background-color: #212529 !important;
    }

    .offcanvas-body {
        flex: 1 !important;
        width: 100% !important;
        display: block !important;
    }

    .navbar-nav {
        width: 100% !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .nav-item, .nav-link, .btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 15px !important;
        min-height: 55px !important;
    }
}
    
    #langSwitcher {
        margin-top: 20px;
        width: 100%;
    }
}

.hero-section {
    background: url('../Styles/Photos/c4.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.text-info { color: #0dcaf0 !important; }
.btn-info { background-color: #0dcaf0; border-color: #0dcaf0; transition: 0.3s; }
.btn-info:hover { background-color: #0baccc !important; transform: translateY(-3px); }

.tracking-widest { letter-spacing: 3px; }
.fw-black { font-weight: 900 !important; }

.bounce-ani { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
}

.icon-circle {
    width: 90px;
    height: 90px;
    background-color: #0dcaf0;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.2);
    transition: all 0.4s ease-in-out;
}

.card-flip {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 202, 240, 0.1);
}

.col-lg-3:hover .card-flip {
    transform: rotateY(360deg);
    box-shadow: 0 15px 35px rgba(13, 202, 240, 0.2) !important;
}

.services-section {
    background: url('https://images.unsplash.com/photo-1528740561666-dc2479dc08ab?auto=format&fit=crop&w=1500&q=80') no-repeat center center / cover;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.service-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 380px;
    overflow: hidden;
}

.service-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: all 0.6s ease;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.service-card:hover { transform: translateY(-15px); border-color: #0dcaf0; }
.service-card:hover img { transform: scale(1.15); filter: brightness(0.8); }
.service-card:hover .service-content { background: rgba(13, 202, 240, 0.9); }

.testimonial-card {
    transition: transform 0.4s ease;
    border-right: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.contact-info-card { border-left: 5px solid #0dcaf0 !important; }

footer { border-top: 4px solid #0dcaf0; }
.footer-links a:hover { color: #0dcaf0 !important; transform: translateX(-5px); }

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 25px; }
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-green 2s infinite;
}

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