/* =========================================
   AGGRESSIVE MODERNIZATION - YEITS
   ========================================= */

/* 1. Typography Import (Outfit) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2F5CE9;
    --primary-dark: #162452;
    --accent-color: #00d2ff;
    --text-dark: #1A1A1A;
    --text-light: #F9FAFB;
    --card-bg: #FAFBFC;
    --glass-bg: rgba(250, 251, 252, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 30px -10px rgba(47, 92, 233, 0.15);
    --shadow-hover: 0 20px 40px -10px rgba(47, 92, 233, 0.25);
    --gradient-primary: linear-gradient(135deg, #2F5CE9 0%, #1a3b9e 100%);
    --gradient-overlay: linear-gradient(45deg, rgba(22, 36, 82, 0.95), rgba(47, 92, 233, 0.85));
}

/* 2. Global Resets & Typography */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div {
    font-family: 'Outfit', sans-serif !important;
}

body {
    background-color: #F8F9FA !important;
    /* Softer off-white for reduced eye strain */
    color: var(--text-dark);
}

/* 3. Header Transformation */
.main-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.main-menu__list>li>a {
    font-weight: 600 !important;
    color: var(--primary-dark) !important;
    font-size: 16px !important;
    letter-spacing: -0.01em;
}

/* 4. Hero Section V2 */
.main-header__logo img {
    height: 70px !important;
    /* Increased for better readability */
    width: auto !important;
}

.hero-modern {
    position: relative;
    padding: 200px 0 140px;
    background: var(--gradient-overlay), url('../images/backgrounds/main-slider-bg-1-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: #fff;
    overflow: hidden;
}

.hero-modern__content {
    position: relative;
    z-index: 5;
    max-width: 900px;
}

.hero-modern__tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 30px;
    display: inline-block;
    color: #fff;
}

.hero-modern__title {
    font-size: 4.5rem !important;
    /* Massive logic */
    line-height: 1.1 !important;
    font-weight: 800 !important;
    margin-bottom: 24px;
    color: #fff !important;
    letter-spacing: -0.03em;
}

.hero-modern__text {
    font-size: 1.35rem !important;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    max-width: 650px;
    margin-bottom: 50px;
}

@media (max-width: 991px) {
    .hero-modern__title {
        font-size: 3rem !important;
    }
}

/* 5. Modern Buttons */
.btn-modern {
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.btn-modern--primary {
    background: #fff;
    color: var(--primary-color) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-modern--primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: #fff;
    color: var(--primary-dark) !important;
}

.btn-modern--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    margin-left: 15px;
}

.btn-modern--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-4px);
}

/* 6. Feature Cards Redesign */
.features-one__card,
.service-card,
.funfact-one__card {
    background: #FAFBFC !important;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden;
    position: relative;
}

.features-one__card:hover,
.service-card:hover,
.funfact-one__card:hover {
    transform: translateY(-12px) !important;
    box-shadow: var(--shadow-hover) !important;
}

/* Gradient borders/accents for cards */
.features-one__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.features-one__card:hover::before {
    opacity: 1;
}

.features-one__card__title,
.service-card__title {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: var(--primary-dark) !important;
}

/* 7. Icon Boxes */
.features-one__card__icon,
.service-card__icon,
.solution-one__icon {
    background: rgba(47, 92, 233, 0.1) !important;
    color: var(--primary-color) !important;
    border-radius: 16px !important;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* 8. Section Tweaks */
.sec-title__tagline {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px !important;
    background: rgba(47, 92, 233, 0.08);
    /* Highlight badge */
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
}

.sec-title__title {
    font-weight: 800 !important;
    color: var(--primary-dark) !important;
    letter-spacing: -0.02em;
    margin-top: 15px;
}

/* 9. Contact Form */
.form-one__control input,
.form-one__control textarea,
.form-one__control select {
    background: #FAFBFC !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.form-one__control input:focus,
.form-one__control textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(47, 92, 233, 0.1) !important;
    outline: none;
}

/* 10. Footer */
.main-footer {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.footer-widget__title {
    color: #fff !important;
    font-weight: 700 !important;
}

.footer-widget__text,
.footer-widget__links li a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s;
}

.footer-widget__links li a:hover {
    color: #fff !important;
    padding-left: 5px;
}

/* Remove default shapes/bg images that clash with clean modern look */
.features-one__bg,
.contact-one__bg {
    opacity: 0.05 !important;
    /* Fade them out significantly */
}

/* 11. Clean Testimonials Redesign */
.custom-testi-item {
    background: #FAFBFC;
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 20px 10px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.custom-testi-item .testimonials-one__quote {
    font-size: 24px !important;
    line-height: 1.6 !important;
    font-weight: 300 !important;
    color: var(--primary-dark) !important;
    font-style: normal !important;
    max-width: 800px;
    margin: 0 auto;
}

.custom-testi-item .testimonials-one__name {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 5px;
    color: var(--primary-color) !important;
}

.custom-testi-item .testimonials-one__designation {
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888 !important;
    margin: 0;
}

.custom-testi-item .eolexi-ratings {
    color: #FFB400;
    font-size: 14px;
}

/* Hide default nav/dots overrides if needed */
.testimonials-one__carousel .owl-dots {
    margin-top: 30px !important;
}

.testimonials-one__carousel .owl-dot span {
    background: rgba(47, 92, 233, 0.2) !important;
    width: 12px !important;
    height: 12px !important;
    transition: all 0.3s ease;
}

.testimonials-one__carousel .owl-dot.active span {
    background: var(--primary-color) !important;
    transform: scale(1.2);
}

/* 12. Fix Funfacts/Stats Visibility */
.funfact-one__card {
    background: #FAFBFC !important;
    padding: 30px 20px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
}

.funfact-one__card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(47, 92, 233, 0.15) !important;
}

.funfact-one__card__count {
    color: var(--primary-color) !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.funfact-one__card__text {
    color: #555 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    opacity: 1 !important;
    /* Force visibility */
    display: block !important;
}

.funfact-one__card__icon {
    font-size: 40px !important;
    color: var(--primary-dark) !important;
    margin-bottom: 20px !important;
    display: inline-block !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

/* Override text color on hover to white because background likely turns blue */
.funfact-one__card:hover .funfact-one__card__text,
.funfact-one__card:hover .funfact-one__card__count,
.funfact-one__card:hover .funfact-one__card__icon {
    color: #ffffff !important;
}

.funfact-one__card:hover .funfact-one__card__count {
    color: #ffffff !important;
}

/* 13. Mobile Menu Fix */
.mobile-nav__content {
    background-color: var(--primary-dark) !important;
    /* Dark Navy Background */
}

.mobile-nav__content .main-menu__list>li>a {
    color: #ffffff !important;
    /* White text for top level */
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.mobile-nav__content .main-menu__list>li>a:hover {
    color: var(--primary-color) !important;
    /* Blue hover */
}

.mobile-nav__btn>span {
    background-color: var(--primary-dark) !important;
}

/* Close button and other icons in mobile menu */
.mobile-nav__close {
    color: #fff !important;
}

.mobile-nav__contact,
.mobile-nav__contact li a,
.mobile-nav__social a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.mobile-nav__contact li a:hover,
.mobile-nav__social a:hover {
    color: #fff !important;
}

/* =========================================
   14. PROMOTIONAL SHOWCASE SECTION
   ========================================= */

.promotion-showcase {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.promotion-showcase__carousel {
    margin-top: 50px;
}

.promotion-card {
    background: #FAFBFC;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.promotion-card::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.promotion-card:hover::after {
    opacity: 1;
}

.promotion-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 92, 233, 0.7);
    z-index: 5;
    transition: all 0.3s ease;
}

.promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(47, 92, 233, 0.15);
}

.promotion-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.promotion-card a.poster-popup {
    display: block;
    position: relative;
    z-index: 1;
}

.promotion-card:hover img {
    transform: scale(1.05);
}

/* Carousel Navigation Styles */
.promotion-showcase__carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    font-size: 20px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.promotion-showcase__carousel .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 8px 25px rgba(47, 92, 233, 0.2);
}

.promotion-showcase__carousel .owl-nav .owl-prev {
    left: -25px;
}

.promotion-showcase__carousel .owl-nav .owl-next {
    right: -25px;
}

/* Dots Styling */
.promotion-showcase__carousel .owl-dots {
    margin-top: 40px !important;
    text-align: center;
}

.promotion-showcase__carousel .owl-dot {
    display: inline-block;
    margin: 0 6px;
}

.promotion-showcase__carousel .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    background: rgba(47, 92, 233, 0.2) !important;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.promotion-showcase__carousel .owl-dot.active span {
    background: var(--primary-color) !important;
    transform: scale(1.3);
}

.promotion-showcase__carousel .owl-dot:hover span {
    background: rgba(47, 92, 233, 0.5) !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .promotion-showcase__carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px !important;
    }

    .promotion-showcase__carousel .owl-nav .owl-prev {
        left: -15px;
    }

    .promotion-showcase__carousel .owl-nav .owl-next {
        right: -15px;
    }
}

@media (max-width: 767px) {
    .promotion-showcase {
        padding: 60px 0;
    }

    .promotion-card {
        border-radius: 16px;
        margin: 0 5px;
    }

    .promotion-card img {
        aspect-ratio: 3/4;
        max-height: 500px;
    }

    .promotion-showcase__carousel .owl-nav button {
        display: none !important;
        /* Hide navigation arrows on mobile */
    }

    .promotion-showcase__carousel .owl-dots {
        margin-top: 30px !important;
    }

    .sec-title__title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 575px) {
    .promotion-card img {
        aspect-ratio: 3/4;
        max-height: 450px;
    }
}

/* Loading Optimization - Placeholder background while images load */
.promotion-card img {
    background: #f0f0f0;
}

/* Animation for items entering view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Magnific Popup Animation */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}