:root {
    --color-primary:  #48ccfc;
    --color-success: #54eb72; /* Mint green for a fresh, healthy feel */
    --color-warning:  #f7c94b; /* Soft yellow for gentle attention */
    --color-danger: #2e7d32; /* Light coral to be less intense */
    --color-danger-variant: rgba(247,88,66,0.4); /* Softer red variant */
    --color-white: #fffefd; 
    --color-light: rgba(255,255,255,0.9); /* Slightly more opaque for better contrast */
    --color-light-black: #333333;
    --color-black: #000000; /* Dark grey instead of black for a softer contrast */
    --color-bg: #4A6BCC; /* Very light blue for a clean, airy background */
    --color-bg1: #a4b6f5; /* Light pastel blue for additional background elements */
    --color-bg2: #a1b0ff; /* Slightly darker pastel blue for contrast */

    --container-width-lg: 76%;
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
}

/*==========NAVBAR==========*/
nav {
    background: linear-gradient(to right, #8aaadc, #6a90c7, #64c2b4, #8ce1d4);
    width: 100vw;
    height: 5rem;
    position: fixed;
    top: 0;
    z-index: 11;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.2);
    
}

/* change navbar styles on scroll using js */
.window-scroll {
    /* background: linear-gradient(to right, #8aaadc, #6a90c7, #64c2b4, #8ce1d4); */

    box-shadow: 0 1rem 2rem rgba(0,0,0,0.2);
}

.nav__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-white);
}

nav button {
    display: none;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4rem;
    list-style-type: none;
}

.nav__menu a {
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--color-white);
}

.nav__menu a:hover {
    color: blueviolet;
}

/*======Service-dropdown=======*/
.nav__menu .dropdown {
    position: relative;
    display: inline-block;
}

.nav__menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 2rem;
    left: 0;
    background-color: var(--color-primary);
   
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 0;
    list-style: none;
    margin: 0;
    
    

    height: fit-content;
    width: 16rem;
    flex-direction: column;
    gap: 0;
        
}


.nav__menu .dropdown-item {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--color-white);
    display: flex;
    align-items: center;
    min-height: 3.5rem;
    height: auto;
    padding-left: 25px;
    position: relative;
    z-index: 100000;
    pointer-events: auto;
    line-height: 1.3;
    padding-top: 15px;
    padding-bottom: 15px;
}
.nav__menu .dropdown-item {
    border-bottom: 1px solid white;
}



.nav__menu .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu.show {
    display: block;
}

/* =====(tablets)===== */

@media screen and (max-width: 1024px) {
    .container {
        width: var(--container-width-md);
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font: 1.7rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    h4 {
        font-size: 1.2rem;
    }
   
    nav button {
        display: inline-block;
        background: transparent;
        font-size: 1.8rem;
        color: var(--color-white);
        cursor: pointer;
    }

    nav button#close-menu-btn {
        display: none;
    }
   
    .nav__menu {
        position: fixed;
        top: 5rem;
        right: 5%;
        height: fit-content;
        width: 18rem;
        flex-direction: column;
        gap: 0;
        display: none;
        overflow: visible !important;
        
    }
    .nav__menu li {
        width: 100%;
        height: 3.5rem;
        animation: animateNavItems 400ms linear forwards;
        transform-origin: top right;   
        opacity: 0;
        position: relative;
        overflow: visible;
        z-index: 1;
     }
     .nav__menu li:nth-child(2) {
        animation-delay: 200ms;
     }
     .nav__menu li:nth-child(3) {
        animation-delay: 400ms;
     }
     .nav__menu li:nth-child(4) {
        animation-delay: 600ms;
        
     }

    @keyframes animateNavItems {
        0% {
            transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
        }
        100% {
            transform: rotateZ(0) rotateX(0) scale(1);
            opacity: 1;
        }
    }
    .nav__menu li a {
        background: var(--color-primary);
        box-shadow: -4rem 6rem 10rem rgba(0, 0, 0, 0.6);
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
    }

    .nav__menu li a:hover {
        background: var(--color-bg2);
        color: var(--color-white);
    }

    .nav__menu li.dropdown {
        position: relative !important;
        overflow: visible !important;
        z-index: 10000 !important;
    }

  

.nav__menu .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: var(--color-primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 0;
    list-style: none;
    width: 18rem;
    display: none;
    z-index: 99999 !important;
}

/* Adjust dropdown menu appearance */
.nav__menu .dropdown-menu.show {
    display: block;
    z-index: 99999 !important;
}


    header {
        height: 56vh;
        margin-bottom: 4rem;
    }
    .header__container {
        gap: 0;
        padding-bottom: 4rem;
    }

    .specialities {
        height: auto;
    }
    .specialities__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .specialities__left {
        margin-right: 0;
    }

    .services {
        margin-top: 0;
    }
    .services__container {
        grid-template-columns: 1fr ;
    }
    .service__image {
        height: 220px;
    }

    .faqs__container {
        grid-template-columns: 1fr;
    }
    .faq {
        padding: 1.5rem;
    }
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ======(PHONES)====== */
@media screen and (max-width: 600px) {
    .container {
        width: var(--container-width-sm);
    }

    .nav__menu {
        right: 3%;
        overflow: visible !important;
    }
    
    .nav__menu li.dropdown {
        position: relative !important;
        overflow: visible !important;
        z-index: 10000 !important;
    }
    
    .nav__menu .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background-color: var(--color-primary);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        padding: 0;
        list-style: none;
        width: 18rem;
        display: none;
        z-index: 99999 !important;
    }
   
    /* Adjust dropdown menu appearance */
    .nav__menu .dropdown-menu.show {
        display: block;
        z-index: 99999 !important;
    }
    header {
        height: 100vh;
    }

    .header__container {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top:1rem
        
    }
   
    .header__left p {
        margin-bottom: 1.3rem;
      
    }

    .header__right-image img {
        margin-left: 1rem;
    }

    .specialities__right {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    .speciality {
        padding: 1rem;
        border-radius: 1rem;
    }

    .category__icon {
        margin-top: 4px;
        display: inline-block;
    }

    .services__container {
        grid-template-columns: 1fr;
    }
    .service__image {
        height: 200px;
    }

    .mySwiper .swiper-slide {
        height: 400px !important;
    }

    .mySwiper .testimonial {
        height: 100% !important;
        max-height: 400px !important;
        min-height: 400px !important;
        padding: 0.5rem;
        padding-top: 1.5rem;
    }

    .testimonial__body {
        padding: 1.2rem;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer__1 p {
        margin: 1rem auto;
    }

    .footer__socials {
        justify-content: center;
    }
  
}



.nav__container h4{
    color: white;
}

/* ===== CONTINUOUS MARQUEE ===== */
        .marquee-wrapper {
            position: fixed;
            top: 5rem;
            /* below navbar */
            width: 100%;
            overflow: hidden;
            background: #ffffff;
            height: 40px;
            z-index: 10;
            display: flex;
            align-items: center;
        }

        .marquee-track {
            display: flex;
            width: max-content;
            animation: marquee-loop 25s linear infinite;
        }

        .marquee-content {
            display: flex;
            align-items: center;
        }

        .marquee-content span {
            margin-right: 4rem;
            font-size: 0.8rem;
            font-weight: bolder;
            color: #0f0f0f;
            white-space: nowrap;
        }

        /* Infinite movement */
        @keyframes marquee-loop {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        /* Pause on hover */
        .marquee-wrapper:hover .marquee-track {
            animation-play-state: paused;
        }

        /* ===== MARQUEE BUTTON ===== */
        .marquee-btn {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            background: #ffffff;
            color: #0f0f0f;
            padding: 10px 18px;
            border-radius: 2px;
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.3s ease;
            z-index: 20;
        }

        .marquee-btn:hover {
            background: #0f0f0f;
            color: #ffffff;
        }

        /* Add space so text doesn’t go behind button */
        .marquee-track {
            padding-right: 130px;
        }