/* ================== General & Helper Classes ================== */
    html, body { overflow-x: hidden; }
    body {
        background-color: hsl(var(--background));
    }
    .py-100 { padding-top: 100px; padding-bottom: 100px; }
    .py-120 { padding-top: 120px; padding-bottom: 120px; }
    .py-hero { padding-top: 190px !important; padding-bottom: 65px !important; }
    .section-bg { background-color: hsl(var(--body-color) / 0.03); }
    .section-heading__title { font-weight: 700; margin-bottom: 0.75rem; color: hsl(var(--heading-color)); }
    .section-heading__desc { color: hsl(var(--body-color)); font-size: 1.1rem; line-height: 1.7; }
    .gradient-text {
        background: linear-gradient(90deg, hsl(var(--base)), hsl(var(--base-two)));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;
    }

    /* ================== Hero Section ================== */
    .hero--modern { position: relative; overflow: hidden; }
    .hero__title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.2; }
    .hero__description { font-size: 1.1rem; color: var(--body-color); max-width: 500px; }
    .hero__image-wrapper { animation: float 6s ease-in-out infinite; }
    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-20px); }
        100% { transform: translateY(0px); }
    }

    .hero__intro-text {
            background: #0066ff14;
    padding: 6px 20px;
    color: #0066ff !important;
    border-radius: 7px;
    font-size: 18px;
    display: inline-block;
    margin: 0 !important;
        
    }

    
    /* ================== Trusted By Section ================== */
    .scrolling-logos {
        overflow: hidden;
        padding: 20px 0;
        position: relative;
        width: 100%;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    }
    
    .logos-slide {
        display: flex;
        width: max-content;
        flex-shrink: 0;
    }
    
    .scrolling-logos[data-animated="true"] .logos-slide {
        animation: scroll 30s linear infinite;
    }
    
    .logos-slide img {
        height: 40px;
        margin: 0 40px;
        filter: grayscale(1);
        opacity: 0.6;
        transition: all .3s ease;
        flex-shrink: 0;
    }
    
    .logos-slide img:hover {
        filter: grayscale(0);
        opacity: 1;
        transform: scale(1.1);
    }
    
    @keyframes scroll {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-50%); 
        }
    }

    /* ================== Feature Item (Why Choose Us) ================== */
    .feature-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
    .feature-item__icon {
        flex-shrink: 0;
        width: 55px;
        height: 55px;
        background-color: hsl(var(--base)/ 0.1);
        color: hsl(var(--base));
        border-radius: 12px;
        display: grid;
        place-items: center;
        font-size: 1.8rem;
        transition: all 0.3s ease;
    }
    .feature-item:hover .feature-item__icon { background-color: hsl(var(--base)); color: #fff; }
    .feature-item__title { font-weight: 600; margin-bottom: 5px; }
    .feature-item__content p { color: hsl(var(--body-color)); margin-bottom: 0; line-height: 1.6; }

    .why-image-wrapper {
        position: relative;
        display: inline-block; /* Ensures the wrapper fits the image */
    }

    /* A subtle background shape for visual appeal */
    .why-image-wrapper .why-image-shape {
        position: absolute;
        bottom: -20px;
        right: -20px;
        width: 200px;
        height: 200px;
        background-color: hsl(var(--base) / 0.1);
        border-radius: 15px;
        z-index: -1;
        transition: all 0.4s ease;
    }

    .why-image-wrapper:hover .why-image-shape {
        transform: rotate(15deg) scale(1.1);
    }

    /* ================== Service Section (New Layout) ================== */
    .service-feature-image {
        position: relative;
    }

    /* Optional: Add a decorative shape behind the image */
    .service-feature-image::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 150px;
        height: 150px;
        background-color: hsl(var(--base) / 0.1);
        border-radius: 15px;
        z-index: -1;
        transition: all 0.4s ease;
    }
    .service-feature-image:hover::before {
        transform: rotate(-15deg) scale(1.1);
    }

    .service-list-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .service-item {
        display: flex;
        align-items: center;
        gap: 25px;
        background-color: hsl(var(--background));
        padding: 25px;
        border-radius: 15px;
        border: 1px solid hsl(var(--border-color));
        transition: all 0.3s ease;
    }

    .service-item:hover {
        transform: translateX(10px);
        border-color: hsl(var(--base));
        box-shadow: 0 8px 25px hsl(var(--shadow-color) / 0.07);
    }

    .service-item__icon {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        background: var(--background-gradient);
        color: #fff;
        border-radius: 12px;
        display: grid;
        place-items: center;
        font-size: 2rem;
        transition: all 0.3s ease;
    }

    .service-item:hover .service-item__icon {
        transform: rotate(10deg);
    }

    .service-item__title {
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 1.25rem;
    }

    .service-item__desc {
        color: hsl(var(--body-color));
        line-height: 1.7;
        margin-bottom: 0;
    }

    /* ================== Service Card ================== */
    /* .service-card {
        background-color: hsl(var(--background));
        padding: 40px 30px;
        border-radius: 15px;
        text-align: center;
        border: 1px solid hsl(var(--border-color));
        transition: all 0.3s ease-in-out;
        position: relative;
        overflow: hidden;
    }
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px hsl(var(--shadow-color) / 0.1);
        border-color: hsl(var(--base));
    }
    .service-card__icon { font-size: 3rem; color: hsl(var(--base)); margin-bottom: 20px; }
    .service-card__title { font-weight: 600; margin-bottom: 15px; }
    .service-card__desc { color: hsl(var(--body-color)); line-height: 1.7; }
    .service-card__link {
        display: inline-block;
        margin-top: 15px;
        color: hsl(var(--base));
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    .service-card__link:hover { color: hsl(var(--base-two)); letter-spacing: 0.5px; } */

    /* ================================================================
    About Section with Video Popup
    ================================================================ */

    .about-section {
        position: relative;
        overflow: hidden;
    }

    .about-image-wrapper {
        position: relative;
        display: inline-block; /* Ensures the wrapper fits the image */
    }

    /* === Video Play Button === */
    .video-play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
        background-color: hsl(var(--base));
        color: #fff;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 1.5rem;
        text-decoration: none;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 0 0 0 hsla(var(--base) / 0.5);
        animation: pulse 2s infinite;
    }

    .video-play-button:hover {
        transform: translate(-50%, -50%) scale(1.1);
        color: #fff;
        background-color: hsl(var(--base-two));
    }

    .video-play-button i {
        margin-left: 4px; /* Play icon is not perfectly centered, this fixes it */
    }

    /* Pulsing animation for the button */
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 hsla(var(--base) / 0.7);
        }
        70% {
            box-shadow: 0 0 0 20px hsla(var(--base) / 0);
        }
        100% {
            box-shadow: 0 0 0 0 hsla(var(--base) / 0);
        }
    }

    /* === Magnific Popup Overlay Styling === */
    .mfp-bg {
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
    }
    .mfp-iframe-holder .mfp-close {
        color: #fff;
        font-size: 30px;
        width: 44px;
        height: 44px;
        line-height: 44px;
        right: 0;
        top: -50px;
    }

    /* A subtle background shape for visual appeal */
    .about-image-wrapper .about-image-shape {
        position: absolute;
        bottom: -20px;
        left: -20px;
        width: 200px;
        height: 200px;
        background-color: hsl(var(--base) / 0.1);
        border-radius: 15px;
        z-index: -1;
        transition: all 0.4s ease;
    }

    .about-image-wrapper:hover .about-image-shape {
        transform: rotate(15deg) scale(1.1);
    }

    .section-heading__subtitle {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        color: hsl(var(--base));
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .about-feature-list {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    .about-feature-list li {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    .about-feature-list li i {
        color: hsl(var(--base));
        font-size: 1.5rem;
        margin-right: 12px;
    }
    
    /* ================== Counter Card (Statistics) ================== */
    .counter-card {
        background-color: hsl(var(--background));
        padding: 30px 25px;
        border-radius: 15px;
        border: 1px solid hsl(var(--border-color));
        text-align: center;
        transition: all 0.3s ease-in-out;
    }
    .counter-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px hsl(var(--shadow-color) / 0.08);
        border-color: hsl(var(--base));
    }
    .counter-card__icon { font-size: 2.8rem; color: hsl(var(--base)); margin-bottom: 15px; }
    .counter-card__content { margin-top: 10px; }
    .counter-card__number { font-size: 2.5rem; font-weight: 700; color: hsl(var(--heading-color)); margin-bottom: 2px; }
    .counter-card__text { font-size: 1rem; color: hsl(var(--body-color)); margin-bottom: 0; line-height: 1.4; }

    /* ================== Portfolio Card ================== */
    .portfolio-card { position: relative; overflow: hidden; border-radius: 15px; box-shadow: 0 5px 15px hsl(var(--shadow-color) / 0.05); }
    .portfolio-card__img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.4s ease; }
    .portfolio-card__overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
        padding: 30px;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }
    .portfolio-card:hover .portfolio-card__img { transform: scale(1.05); }
    .portfolio-card:hover .portfolio-card__overlay { opacity: 1; transform: translateY(0); }
    .portfolio-card__content { transition: all 0.4s ease 0.1s; }
    .portfolio-card__category { color: #e9ecef; margin-bottom: 5px; font-size: 0.9rem; }
    .portfolio-card__title { color: #fff; margin-bottom: 0; font-weight: 600; }
    .portfolio-card__icon {
        width: 45px;
        height: 45px;
        background: hsl(var(--base));
        color: #fff;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 1.2rem;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }
    .portfolio-card__icon:hover { background: hsl(var(--base-two)); transform: rotate(-45deg); }

    /* ================== Testimonial Card ================== */
    .testimonial-card {
        background: hsl(var(--background));
        padding: 40px;
        border-radius: 15px;
        border: 1px solid hsl(var(--border-color));
        position: relative;
        text-align: left;
        transition: all 0.3s ease;
    }
    .testimonial-card:hover{
        box-shadow: 0 10px 30px hsl(var(--shadow-color) / 0.1);
        border-color: hsl(var(--base));
    }
    .testimonial-card__quote-icon {
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 3rem;
        color: hsl(var(--base)/ 0.1);
        z-index: 1;
    }
    .testimonial-card__text {
        font-size: 1.05rem;
        line-height: 1.8;
        color: hsl(var(--body-color));
        margin-bottom: 25px;
        position: relative;
        z-index: 2;
    }
    .testimonial-card__author { display: flex; align-items: center; gap: 15px; }
    .testimonial-card__img { width: 60px; height: 60px; border-radius: 50%; }
    .testimonial-card__name { margin-bottom: 0; font-weight: 600; }
    .testimonial-card__position { margin-bottom: 0; color: hsl(var(--body-color)); font-size: 0.9rem; }

    .testimonial-slider .slick-dots { bottom: -40px; }
    .testimonial-slider .slick-dots li button:before { font-size: 12px; color: hsl(var(--border-color)); }
    .testimonial-slider .slick-dots li.slick-active button:before { color: hsl(var(--base)); }

    /* ================== Blog Card ================== */
    .blog-card {
        display: flex;
        flex-direction: column;
        background: hsl(var(--background));
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid hsl(var(--border-color));
        transition: all 0.3s ease;
    }
    .blog-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px hsl(var(--shadow-color) / 0.08); border-color: hsl(var(--base)); }
    .blog-card__image-link { display: block; overflow: hidden; }
    .blog-card__img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
    .blog-card:hover .blog-card__img { transform: scale(1.05); }
    .blog-card__body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
    .blog-card__category {
        display: inline-block;
        padding: 4px 12px;
        background: hsl(var(--base)/ 0.1);
        color: hsl(var(--base));
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 15px;
        align-self: flex-start;
    }
    .blog-card__title { margin-bottom: 10px; font-weight: 600; line-height: 1.4; flex-grow: 1; }
    .blog-card__title a { color: hsl(var(--heading-color)); text-decoration: none; }
    .blog-card__title a:hover { color: hsl(var(--base)); }
    .blog-card__excerpt { color: hsl(var(--body-color)); margin-bottom: 20px; }

    /* ================== Team Card ================== */
    .team-card {
        background-color: hsl(var(--background));
        border: 1px solid hsl(var(--border-color));
        border-radius: 15px;
        overflow: hidden;
        text-align: center;
        transition: all 0.35s ease;
    }
    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px hsl(var(--shadow-color) / 0.1);
        border-color: hsl(var(--base));
    }
    .team-card__image {
        position: relative;
        overflow: hidden;
    }
    .team-card__image img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: top;
        transition: transform 0.4s ease;

        /* Applying the mask */
        /* -webkit-mask-image: url('../../../images/mask.avif');
        mask-image: url('../../../images/mask.avif');
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center; */
    }
    .team-card:hover .team-card__image img {
        transform: scale(1.05);
    }
    .team-card__social {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        display: flex;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(to top, hsla(var(--base)/ 0.85), transparent);
        opacity: 0;
        transform: translateY(100%);
        transition: all 0.35s ease;
    }
    .team-card:hover .team-card__social {
        opacity: 1;
        transform: translateY(0);
    }
    .team-card__social a {
        width: 40px;
        height: 40px;
        background-color: hsla(0, 0%, 100%, 0.9);
        color: hsl(var(--base)) !important;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-size: 1.1rem;
        text-decoration: none;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }
    .team-card:hover .team-card__social a {
        transform: translateY(0);
    }
    .team-card:hover .team-card__social a:nth-child(2) { transition-delay: 0.05s; }
    .team-card:hover .team-card__social a:nth-child(3) { transition-delay: 0.1s; }

    .team-card__social a:hover {
        background-color: hsl(var(--base));
        color: #fff !important;
    }
    .team-card__content {
        padding: 25px 15px;
    }
    .team-card__name {
        font-weight: 600;
        color: hsl(var(--heading-color));
        margin-bottom: 5px;
    }
    .team-card__position {
        color: hsl(var(--base));
        font-weight: 500;
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    /* ================================================================
    Newsletter Section
    ================================================================ */
    .newsletter-section {
        background-color: var(--section-bg-color);
    }

    .newsletter-wrapper {
        background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--dark)));
        padding: 60px 80px;
        border-radius: 20px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 40px hsla(var(--base) / 0.3);
    }

    @media (max-width: 767px) {
        .py-hero {
            padding-top: 120px !important;
            padding-bottom: 50px !important;
        }
        .newsletter-wrapper {
            padding: 40px 20px;
        }

        .newsletter-form__input {
            padding: 15px 20px;
            padding-right: 120px;
        }
        .newsletter-form__button {
            padding: 10px 15px;
        }
        
        .logos-slide img {
            height: 30px; 
            margin: 0px 0px; 
        }
    }

    .newsletter-content__title {
        color: #fff;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

    .newsletter-content__desc {
        color: hsla(0, 0%, 100%, 0.85);
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 0.75rem;
    }

    .newsletter-form__group {
        position: relative;
        display: flex;
        align-items: center;
    }

    .newsletter-form__input {
        width: 100%;
        padding: 15px 170px 15px 25px; /* Right padding to make space for the button */
        border: none;
        border-radius: 50px;
        background-color: hsla(0, 0%, 100%, 0.2);
        color: #fff;
        font-size: 1rem;
        outline: none;
        transition: background-color 0.3s ease;
    }

    .newsletter-form__input::placeholder {
        color: hsla(0, 0%, 100%, 0.6);
    }

    .newsletter-form__input:focus {
        background-color: hsla(0, 0%, 100%, 0.3);
        box-shadow: none;
        color: #fff;
    }
    
    .newsletter-form__button {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        padding: 10px 25px;
        border-radius: 50px !important;
        border: none;
        box-shadow: none;
        background-color: hsl(var(--base));
        color: hsl(var(--white));
        transition: all 0.3s ease;
    }

    .newsletter-form__button:hover {
        background-color: hsl(var(--white));
        color: hsl(var(--base));
        transform: translateY(-50%) scale(1.05);
        box-shadow: none;
    }

     /*--- Menu Dropdown Final Fix --- */
     .main-menu .dropdown-item {
        color: var(--body-color)!important;
    } 

    .header .main-menu .dropdown-item {
        color: var(--body-color);
    }

    .main-menu .dropdown-item:hover,
    .main-menu .dropdown-item.active {
        color: hsl(var(--base));
        background-color: hsl(var(--base) / 0.1);
    }
    .side-Nav .mobile-menu-toggle {
        cursor: pointer;
        padding: 10px 0;
        color: var(--heading-color);
        font-weight: 500;
        border-bottom: 1px solid hsl(var(--base) / 0.2);
    }

    .side-Nav .mobile-menu-toggle i {
        transition: transform 0.3s ease;
    }

    .side-Nav .mobile-menu-toggle[aria-expanded="true"] i {
        transform: rotate(180deg);
    }

    .side-Nav .collapse ul a {
        display: block;
        padding: 8px 0;
        color: var(--body-color);
    }
    .side-Nav .collapse ul a:hover,
    .side-Nav .collapse ul a.active {
        color: hsl(var(--base));
    }

    /* ================== Who We Are (Mission & Vision) Section ================== */
    .who-we-are-section {
        position: relative;
        overflow: hidden;
    }

    .who-we-are__image-wrapper {
        position: relative;
    }
    
    .who-we-are__image-wrapper .who-we-are__image-shape {
        position: absolute;
        top: -20px;
        left: -20px;
        width: 200px;
        height: 200px;
        background-color: hsl(var(--base) / 0.1);
        border-radius: 15px;
        z-index: -1;
        transition: all 0.4s ease;
    }

    .who-we-are__image-wrapper:hover .who-we-are__image-shape {
        transform: rotate(15deg) scale(1.1);
    }

    .section-heading__subtitle {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        color: hsl(var(--base));
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mission-vision-wrapper {
        display: flex;
        flex-direction: column;
        gap: 25px;
        margin-top: 30px;
    }

    .mission-vision-item {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 20px;
        background-color: hsl(var(--background));
        border-radius: 12px;
        border: 1px solid hsl(var(--border-color));
        transition: all 0.3s ease;
    }

    .mission-vision-item:hover {
        transform: translateX(10px);
        border-color: hsl(var(--base));
        box-shadow: 0 8px 25px hsl(var(--shadow-color) / 0.07);
    }

    .mission-vision-item__icon {
        flex-shrink: 0;
        width: 55px;
        height: 55px;
        background: var(--background-gradient);
        color: #fff;
        border-radius: 12px;
        display: grid;
        place-items: center;
        font-size: 1.8rem;
        transition: all 0.3s ease;
    }

    .mission-vision-item:hover .mission-vision-item__icon {
        transform: rotate(10deg);
    }

    .mission-vision-item__title {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: hsl(var(--heading-color));
    }

    .mission-vision-item__content p {
        margin-bottom: 0;
        color: hsl(var(--body-color));
        line-height: 1.7;
    }