body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Bootstrap CSS Variables for Custom Colors */
:root {
    --softRed: #EE2F50;
    --primary: #EE2F50;
    --bs-primary: #EE2F50;
    --bs-primary-rgb: 238, 47, 80;
}

/* Custom Utility Classes */
.text-shadow-softRed {
    text-shadow: 0 2px 10px rgba(238, 47, 80, 0.55);
}

.hover-softRed:hover {
    color: var(--softRed) !important;
}

.bg-softRed {
    background-color: var(--softRed) !important;
}

.text-softRed {
    color: var(--softRed) !important;
}

.border-softRed {
    border-color: var(--softRed) !important;
}

.text-primary {
    color: var(--softRed) !important;
}

.bg-primary {
    background-color: var(--softRed) !important;
}

.bg-primary-hover:hover {
    background-color: #d62843 !important;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(238, 47, 80, 0.3);
}

.shadow-glow-hover:hover {
    box-shadow: 0 0 30px rgba(238, 47, 80, 0.5);
}


.btn-softRed {
    background-color: var(--softRed) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-softRed:hover {
    background-color: #d62843 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(238, 47, 80, 0.5);
}

.logo-box {
    width: 180px;
    height: 55px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: rgb(238, 47, 80);
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active-nav::after {
    width: 100%;
}

.softRed-gradient {
    background: linear-gradient(135deg,
            rgba(238, 47, 80, 0.8) 0%,
            rgba(255, 120, 140, 0.8) 100%);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: brightness(1.2);
}

.dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform-origin: top;
    transform: scaleY(0.95);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    pointer-events: none;
}

.dropdown:hover>.dropdown-menu,
.group:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scaleY(1);
    pointer-events: auto;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.mobile-menu {
    width: 16rem;
    transform: translateX(-100%);
    transition: .3s ease;
    overflow-y: auto;
    z-index: 1000;
}

.mobile-menu .dropdown-item {
    white-space: normal !important;
}

@media (max-width: 360px) {
    .mobile-menu {
        width: 85% !important;
        padding: 1.5rem !important;
    }

    .mobile-menu nav {
        gap: 1.5rem !important;
    }

    .fs-1 {
        font-size: 2rem !important;
    }

    .fs-5 {
        font-size: 1.15rem !important;
    }

    .dropdown-item {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Hero Section Redesign */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.hero-black-bg {
    background-color: #000000 !important;
    position: absolute;
    z-index: 1;
}

@media (max-width: 1056px) and (min-width: 992px) {
    .hero-illustration {
        width: 380px !important;
    }

    .hero-black-bg {
        height: 170% !important;
    }
}

@media (min-width: 992px) {
    .hero-black-bg {
        /* top: -10%; */
        right: -100px;
        width: 120%;
        height: 140%;
        border-radius: 50% 0 0 50%;
        transform: scaleY(1.15) translateY(-2%);
        z-index: 1;
    }

    .hero-black-bg::after {
        content: "";
        position: absolute;
        top: 0;
        left: 100%;
        width: 100vw;
        height: 100%;
        background-color: #000;
    }
}

@media (max-width: 991.98px) {
    .hero-black-bg {
        left: 50%;
        transform: translateX(-50%);
        width: 150%;
        height: 100%;
        border-radius: 50% 50% 0 0 / 15% 15% 0 0;
        z-index: 1;
    }
}

.hero-illustration {
    max-width: 500px;
    width: 100%;
    transition: transform 0.5s ease;
    z-index: 5;
}

@media (max-width: 1199.98px) {
    .hero-illustration {
        max-width: 420px;
    }
}

@media (max-width: 991.98px) {
    .hero-illustration {
        max-width: 350px;
        margin-top: -2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-illustration {
        max-width: 300px;
    }
}

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 16rem;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(0, 0, 0, 0.15) 70%,
            rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 40;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.btn-glow-softRed {
    box-shadow: 0px 2px 8px rgba(238, 47, 80, 0.85) !important;
    transition: box-shadow 0.3s ease;
}

.btn-glow-softRed:hover {
    box-shadow: 0 0 15px rgba(238, 47, 80, 0.95) !important;
}

/* Feature Card Styling */
.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(238, 47, 80, 0.05);
    border-color: rgba(238, 47, 80, 0.2);
}

.feature-card:hover .feature-icon-box {
    background-color: var(--softRed) !important;
    color: white !important;
}

.feature-card:hover .feature-title {
    color: var(--softRed) !important;
}


/* Scroll Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    animation: scroll 40s linear infinite;
}

.pause-on-hover:hover {
    animation-play-state: paused;
}

/* Client Card Styling */
.client-card {
    transition: all 0.3s;
}

.client-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 8px 25px rgba(238, 47, 80, 0.25) !important;
}

.client-card img {
    transform: scale(1.1);
    transition: all 0.3s;
}

.client-card:hover img {
    transform: scale(1.25);
}

/* Footer Social Icons - Premium Sliding Effect */
.footer-social-icon {
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    text-decoration: none;
    z-index: 1;
}

.footer-social-icon i {
    position: relative;
    z-index: 3;
    transition: all 0.5s ease;
    font-size: 1.25rem;
}

.footer-social-icon:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transition: all 0.5s ease;
    z-index: 2;
}

.footer-social-icon:hover {
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.footer-social-icon:hover:before {
    top: 0;
}

.footer-social-icon:hover i {
    color: var(--softRed) !important;
    transform: rotateY(360deg);
}

/* Floating Action Buttons */
.fab-whatsapp {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    text-decoration: none;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab-whatsapp svg {
    width: 2rem;
    height: 2rem;
}

#scrollTopBtn {
    width: 3rem;
    height: 3rem;
    background-color: var(--softRed);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

#scrollTopBtn.show {
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    background-color: #d62a48;
}

#scrollTopBtn svg {
    width: 1.5rem;
    height: 1.5rem;
}


/* ---------------- TESTIMONIALS ---------------- */

.testimonial-track {
    transition: transform 0.7s ease;
}

/* Card sizing for responsive layout (1 / 2 / 3 cards visible) */
.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 32%;
        max-width: 32%;
    }
}

/* ---------------- FAQ SECTION ---------------- */
.faq-question {
    transition: all 0.3s;
}

.faq-item:hover .faq-question span {
    color: var(--softRed) !important;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    background-color: var(--softRed) !important;
    color: white !important;
}

.faq-question.active .faq-icon svg {
    stroke: white !important;
}

.faq-question.active span {
    color: var(--softRed) !important;
}

.faq-icon {
    transition: all 0.3s ease;
}

/* Ensure footer is relative to position the absolute span correctly if needed */
#main-footer {
    position: relative;
}

/* Text Shadow Flow Animation */
@keyframes shadowFlow {
    0% {
        background-position: 200% 0;
        /* Start from right (or left depending on definition) - Actually for L->R with this gradient... 
           Gradient has shadow in middle. 
           If pos is 200% (right), bg is shifted. 
           Let's use a standard "Shimmer" logic: 
           Start: -100% (Left) 
           End: 200% (Right) 
           To be safe and match "Start from Left", we'll use -150% to 150%? 
           Let's stick to the previous direction but ensure it's "From Left". 
           If previous was -100 to 200 and worked, we keep direction. */
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.text-shadow-flow {
    /* Gradient: SoftRed -> DarkRed (Shadow) -> SoftRed */
    background: linear-gradient(110deg,
            #EE2F50 40%,
            #A62138 50%,
            #EE2F50 60%);
    background-size: 200% auto;
    color: transparent !important;
    /* Force transparent text for background clip */
    -webkit-background-clip: text;
    background-clip: text;
    animation: shadowFlow 5s linear infinite;
    display: inline-block;
}

/* ---------------- SUCCESS MODAL & VALIDATION ---------------- */

/* Error Message Transition */
.error-msg {
    transition: all 0.3s ease;
}

/* Modal Animation States */
#successModal {
    /* Ensure transitions work for the overlay too */
    transition: visibility 0s linear 0.5s;
    /* Delay visibility toggling */
}

#successModal.show {
    transition-delay: 0s;
}

#successModal.show #modalOverlay {
    opacity: 1;
}

#successModal.show #modalCard {
    opacity: 1;
    transform: scale(1);
}

/* Override utility transition for "butter smooth" feel */
#modalCard {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Custom spring-like bezier */
}

#modalOverlay {
    transition: opacity 0.5s ease-in-out;
}

/* Tick Animation */
.check-icon .draw-path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: drawCheck 0.6s 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Optional: Additional grain/pulse if not using animate-ping */
.animate-spin-slow {
    animation: spinAround 8s linear infinite;
}


@keyframes spinAround {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ---------------- SPLASH SCREEN ---------------- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

#splash-logo {
    width: 280px;
    height: auto;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

#splash-screen.active #splash-logo {
    transform: scale(1.2);
    /* Zoom in when active */
    opacity: 1;
}

#splash-screen.zoom-out #splash-logo {
    transform: scale(0.9);
    /* Silky zoom out when disappearing */
    opacity: 0;
}