:root {
    --primary: #ff1f5a;
    --secondary: #790162;
    --accent: #a14e75;
    --light-bg: #f8f9fa;
    --dark-bg: #121212;
    --light-text: #f8f9fa;
    --dark-text: #212529;
    --transition-speed: 0.5s;
}

body {
    font-family: 'Poppins', sans-serif;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

/* === PRELOADER === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.loader {
    width: 100px;
    height: 100px;
    position: relative;
    animation: pulse 2s infinite;
}

.logo-path {
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    animation: draw 10s forwards infinite alternate;
    animation-play-state: running;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}
/* === PRELOADER === */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
    padding: 1rem 0rem;
}

.dark-mode .navbar {
    background: rgba(18, 18, 18, 0.8);
}

.dark-mode .navbar-toggler {
    border: 2px solid var(--primary);

}

.dark-mode .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    /* Change this color */
    transition: var(--transition-speed);
}

.logo {
    height: 50px;
    width: 200px;
    /* Added width to maintain aspect ratio */
    background-image: url('/images/logo-dark.webp');
    background-size: contain;
    /* Ensures the image fits properly */
    background-repeat: no-repeat;
    /* Prevents image from repeating */
    background-position: center;
    /* Centers the image */
    transition: var(--transition);
}

.dark-mode .logo {
    width: 200px;
    /* Added width to maintain aspect ratio */
    height: 50px;
    background-image: url('/images/logo-white.webp');
    transition: var(--transition);
}

.nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    margin: 0 10px;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {

    /* Toggled navbar background */
    .navbar-collapse {
        background-color: #ffffff65;
        padding: 1rem;
        border-radius: 10px;
    }

    .navbar .navbar-brand .logo {
        position: fixed;
        top: 20px;
        left: 0px;
        z-index: 1000;
        max-width: 150px;
    }

    .dark-mode .navbar-collapse {
        background-color: #11111165;
        padding: 1rem;
        border-radius: 10px;
    }

    /* Customize nav links inside toggled menu */
    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Last link - no border */
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Add spacing or margin between links */
    .navbar-nav .nav-item {
        margin-bottom: 10px;
    }

    /* Hover effect for toggled links */
    .navbar-nav .nav-link:hover {
        background-color: none;
        border-radius: 5px;
    }

    .dark-mode .navbar-nav .nav-link:hover {
        background-color: #222;
        border-radius: 5px;
    }

    /* Optional: animate dropdown */
    .navbar-collapse.collapse.show {
        animation: slideDown 0.3s ease-in-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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


/* .dark-mode .nav-link {
    color: var(--light-text) !important;
} */

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.custom-cursor {
    position: fixed;
    z-index: 9999;
}

/* ===DARK MODE BUTTONS === */

.theme-switch {
    --toggle-size: 10px;
    --container-width: 5.625em;
    --container-height: 2.5em;
    --container-radius: 6.25em;
    /* radius 0 - minecraft mode :) */
    --container-light-bg: #3D7EAE;
    --container-night-bg: #1D1F2C;
    --circle-container-diameter: 3.375em;
    --sun-moon-diameter: 2.125em;
    --sun-bg: #ECCA2F;
    --moon-bg: #C4C9D1;
    --spot-color: #959DB1;
    --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
    --stars-color: #fff;
    --clouds-color: #F3FDFF;
    --back-clouds-color: #AACADF;
    --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
    --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch,
.theme-switch *,
.theme-switch *::before,
.theme-switch *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: var(--toggle-size);
}

.theme-switch__container {
    width: var(--container-width);
    height: var(--container-height);
    background-color: var(--container-light-bg);
    border-radius: var(--container-radius);
    overflow: hidden;
    cursor: pointer;
    -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
    box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 1), 0em 0.20em 0.125em rgb(109, 109, 109);
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    position: relative;
}

.theme-switch__container::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
    box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
    border-radius: var(--container-radius)
}

.theme-switch__checkbox {
    display: none;
}

.theme-switch__circle-container {
    width: var(--circle-container-diameter);
    height: var(--circle-container-diameter);
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    left: var(--circle-container-offset);
    top: var(--circle-container-offset);
    border-radius: var(--container-radius);
    -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transition: var(--circle-transition);
    -o-transition: var(--circle-transition);
    transition: var(--circle-transition);
    pointer-events: none;
}

.theme-switch__sun-moon-container {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    width: var(--sun-moon-diameter);
    height: var(--sun-moon-diameter);
    margin: auto;
    border-radius: var(--container-radius);
    background-color: var(--sun-bg);
    -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
    box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
    -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
    filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
    overflow: hidden;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.theme-switch__moon {
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    background-color: var(--moon-bg);
    border-radius: inherit;
    -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    position: relative;
}

.theme-switch__spot {
    position: absolute;
    top: 0.75em;
    left: 0.312em;
    width: 0.75em;
    height: 0.75em;
    border-radius: var(--container-radius);
    background-color: var(--spot-color);
    -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
    box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
    width: 0.375em;
    height: 0.375em;
    top: 0.937em;
    left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
    width: 0.25em;
    height: 0.25em;
    top: 0.312em;
    left: 0.812em;
}

.theme-switch__clouds {
    width: 1.25em;
    height: 1.25em;
    background-color: var(--clouds-color);
    border-radius: var(--container-radius);
    position: absolute;
    bottom: -0.625em;
    left: 0.312em;
    -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
    box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
    -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
    -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
    transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
    position: absolute;
    color: var(--stars-color);
    top: -100%;
    left: 0.312em;
    width: 2.75em;
    height: auto;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

/* actions */

.theme-switch__checkbox:checked+.theme-switch__container {
    background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__circle-container {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__circle-container:hover {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
    left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__moon {
    -webkit-transform: translate(0);
    -ms-transform: translate(0);
    transform: translate(0);
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__clouds {
    bottom: -4.062em;
}

.theme-switch__checkbox:checked+.theme-switch__container .theme-switch__stars-container {
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.navbar-toggler .theme-switch {
    left: 50%;
}

/*=====END DARK MODE BUTTONS=====*/

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 8rem 0rem 3rem 0rem;
}

/* Hero title styling with gradient text effect */
.hero-title {
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    /* For webkit browsers */
    background-clip: text;
    /* For other modern browsers */
    color: transparent;
    /* Makes the text color transparent */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Subtle text shadow for effect */
    position: relative;
    animation: fadeInUp 1s ease-out;
    /* Optional fade-in animation */
    height: 210px;
}

/* Animation for cursor blinking effect */
.typing-cursor {
    display: inline-block;
    opacity: 1;
    /* Starts fully visible */
    animation: cursor-blink 1s step-start infinite;
    /* Blinking cursor effect */
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    /* Cursor color */
}

.dark-mode .hero-title {
    background: linear-gradient(45deg, var(--primary), var(--light-bg));
    -webkit-background-clip: text;
    /* For webkit browsers */
    background-clip: text;
    /* For other modern browsers */
    color: transparent;
}
.dark-mode .typing-cursor {
    background: linear-gradient(45deg, var(--primary), var(--light-bg));
    -webkit-background-clip: text;
}

/* Cursor blinking keyframes */
@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
        /* Visible */
    }

    50% {
        opacity: 0;
        /* Invisible */
    }
}

/* Optional fade-in-up animation for hero title */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: both;
}

.hero-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.7s;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.hero-btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.dark-mode .btn-outline {
    color: var(--light-text);
    border-color: var(--primary);
}

.theme-switch:hover {
    transform: scale(1.1);
}

.hero-image {
    position: relative;
    animation: floatAnimation 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.2;
    z-index: 0;
}

.shape1 {
    top: 10%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 15s ease-in-out infinite;
}

.shape2 {
    bottom: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--secondary);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphing 15s ease-in-out infinite reverse;
}

.shape3 {
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--accent);
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
    animation: morphing 20s ease-in-out infinite alternate;
    transform: translate(-50%, -50%);
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem !important;
        height: 210px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .shape1,
    .shape2,
    .shape3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 772px) {
    .hero-title {
        font-size: 2.5rem !important;
        height: 150px;
    }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    width: 70%;
    display: block;
    margin: 0 auto;
    /* filter: brightness(1.2) contrast(1.2) saturate(1.5) hue-rotate(150deg); */
}

@media (max-width: 768px) {
    .hero-image img {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .hero-image img {
        width: 95%;
    }

    .hero-title {
        font-size: 2.0rem !important;
        height: 180px;
    }
}

/* --------Our Services---------- */

.services-section {
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.dark-mode .section-title h2 {
    color: var(--primary);
}

.service-card {
    background: #e7e7e73b;
    border-radius: 20px;
    overflow: hidden;
    height: auto;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.dark-mode .service-card {
    background: #1e1e1e60;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(255, 31, 90, .8);
}

.dark-mode .service-card:hover {
    box-shadow: 0 20px 40px rgba(255, 31, 90, 0.3);
}

.service-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 31, 90, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 1.5s ease;
    opacity: 0;
    z-index: -1;
}

.service-card:hover:before {
    animation: shine 1.5s ease;
    opacity: 1;
}

@keyframes shine {
    0% {
        left: -50%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

.service-icon {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
    filter: brightness(110%);
}

.service-icon:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--light-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 2;
}

.service-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 31, 90, 0.7) 0%, rgba(121, 1, 98, 0.7) 100%);
    opacity: 0;
    transition: all var(--transition-speed) ease;
    z-index: 1;
}

.service-card:hover .service-icon:before {
    opacity: 0.7;
}

.dark-mode .service-icon:after {
    background: #1e1e1ec4;
}

/* Image caption overlay effect */
.service-icon .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.473) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    transform: translateY(100%);
    transition: all var(--transition-speed) ease;
    z-index: 3;
    text-align: center;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-card:hover .service-icon .caption {
    transform: translateY(0);
}

/* Add image zoom effect */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.service-card.floating .service-icon img {
    animation: zoomInOut 10s ease-in-out infinite;
}

.service-content {
    padding: 30px 25px;
    position: relative;
    z-index: 5;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary);
    transition: all var(--transition-speed) ease;
}

.dark-mode .service-content h3 {
    color: var(--primary);
}

.service-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--dark-text);
    transition: all var(--transition-speed) ease;
}

.dark-mode .service-content p {
    color: var(--light-text);
}

.service-link {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateZ(30px);
}

.service-link:hover {
    transform: translateZ(50px) scale(1.1);
    box-shadow: 0 10px 20px rgba(121, 1, 98, 0.3);
    color: white;
}


/* 3D floating animation */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating:nth-child(2n) {
    animation-delay: 1s;
}

.floating:nth-child(3n) {
    animation-delay: 2s;
}

/* -----Slider-------- */
.certificate-section {
    background-color: transparent;
}

.slider-container {
    background: transparent;
    /* box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125); */
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-container::before,
.slider-container::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
}

.dark-mode .slider-container::before,
.dark-mode .slider-container::after {
    background: linear-gradient(to right, var(--dark-bg) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 15%;
    z-index: 2;
}

.slider-container::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider-container::before {
    left: 0;
    top: 0;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

/* Second track running in the opposite direction for more variety */
/* .slide-track-reverse {
    animation: scroll-reverse 35s linear infinite;
    display: flex;
    width: calc(250px * 14);
    margin-top: 10px;
} */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(calc(-250px * 7));
    }

    100% {
        transform: translateX(0);
    }
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-container {
        height: 80px;
    }

    .slide {
        height: 80px;
        width: 200px;
    }

    .slide-track,
    .slide-track-reverse {
        width: calc(200px * 14);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-200px * 7));
        }
    }

    /* @keyframes scroll-reverse {
        0% { transform: translateX(calc(-200px * 7)); }
        100% { transform: translateX(0); }
    } */
}

@media (max-width: 576px) {
    .slider-container {
        height: 60px;
    }

    .slide {
        height: 60px;
        width: 150px;
    }

    .slide-track,
    .slide-track-reverse {
        width: calc(150px * 14);
    }

    .section-title h2 {
        font-size: 1.7em;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-150px * 7));
        }
    }

    /* @keyframes scroll-reverse {
        0% { transform: translateX(calc(-150px * 7)); }
        100% { transform: translateX(0); }
    } */

    .slider-container::before,
    .slider-container::after {
        width: 10%;
    }
}



/* ======Testimonials Section Styles ======*/

.testimonials-section {
    position: relative;
    padding: 100px 0px 40px 0px;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease;
}

/* Improved Row-based Testimonial Styles */
.testimonials-container {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    z-index: 1;
    overflow: hidden;
}

.testimonial-rows {
    position: relative;
}

.testimonial-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: none;
}

.testimonial-row:nth-child(odd) {
    animation-name: slideLeft;
}

.testimonial-row:nth-child(even) {
    animation-name: slideRight;
}

/* Improved keyframes for seamless loop */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-330px * 4));
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(calc(-330px * 4));
    }

    100% {
        transform: translateX(0);
    }
}

.testimonial-card {
    flex: 0 0 400px;
    /* background: linear-gradient(145deg, var(--light-bg) 0%,#ff1f5b36 100%); */
    background-color: #ffffff57;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    padding: 30px;
    transition: all 0.4s ease;
    opacity: 0.9;
    transform-origin: center;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    opacity: 1;
    box-shadow: 0 15px 40px var(--accent);
    z-index: 10;
}

.dark-mode .testimonial-card {
    background-color: #1e1e1e6b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.418);
}

.dark-mode .testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(255, 31, 90, 0.3);
}

.testimonial-icon {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

.testimonial-content {
    position: relative;
    padding-top: 10px;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    margin-bottom: 25px;
    min-height: 130px;
    transition: color var(--transition-speed) ease;
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
}

.testimonial-content p::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 50px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -25px;
    left: -5px;
    line-height: 1;
}

.testimonial-content p::after {
    content: '"';
    font-family: Georgia, serif;
    font-size: 50px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    bottom: -35px;
    right: -5px;
    line-height: 1;
}

.dark-mode .testimonial-content p {
    color: var(--light-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.dark-mode .testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    transition: color var(--transition-speed) ease;
}

.dark-mode .testimonial-info h4 {
    color: var(--light-text);
}

.testimonial-info span {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
    margin-bottom: 5px;
    transition: color var(--transition-speed) ease;
}

.dark-mode .testimonial-info span {
    color: #9ca3af;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Fade effect on sides */
.fade-overlay-left,
.fade-overlay-right {
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.fade-overlay-left {
    left: 0;
    background: linear-gradient(to right, var(--light-bg) 0%, rgba(248, 249, 250, 0) 100%);
}

.fade-overlay-right {
    right: 0;
    background: linear-gradient(to left, var(--light-bg) 0%, rgba(248, 249, 250, 0) 100%);
}

.dark-mode .fade-overlay-left {
    background: linear-gradient(to right, var(--dark-bg) 0%, rgba(18, 18, 18, 0) 100%);
}

.dark-mode .fade-overlay-right {
    background: linear-gradient(to left, var(--dark-bg) 0%, rgba(18, 18, 18, 0) 100%);
}

/* Responsive styles */
@media (max-width: 991px) {
    .testimonial-card {
        flex: 0 0 280px;
    }

    @keyframes slideLeft {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-310px * 4));
        }
    }

    @keyframes slideRight {
        0% {
            transform: translateX(calc(-310px * 4));
        }

        100% {
            transform: translateX(0);
        }
    }
}

@media (max-width: 575px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-card {
        flex: 0 0 250px;
        padding: 20px;
    }

    .testimonial-content p {
        min-height: 100px;
        font-size: 0.9rem;
    }

    @keyframes slideLeft {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-280px * 4));
        }
    }

    @keyframes slideRight {
        0% {
            transform: translateX(calc(-280px * 4));
        }

        100% {
            transform: translateX(0);
        }
    }

    .testimonial-icon {
        left: 20px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}


/* Client/Collaborators Section Styles */
.client-section {
    padding: 0px 0px 100px 0px;
    position: relative;
    overflow: hidden;
}

.client-card {
    background: rgba(255, 255, 255, 0.226);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 100%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    text-align: center;
}

.dark-mode .client-card {
    background: rgba(30, 30, 30, 0.048);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.client-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 31, 90, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.client-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(255, 31, 90, 0.2);
    border-color: var(--primary);
}

.client-card:hover::before {
    top: 100%;
    left: 100%;
}

.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    filter: grayscale(80%);
    transition: all 0.5s ease;
}

.client-logo img {
    max-height: 80px;
    max-width: 100%;
    transition: transform 0.5s ease;
}

.client-card:hover .client-logo {
    filter: grayscale(0%);
}

.client-card:hover .client-logo img {
    transform: scale(1.1);
}

.client-name {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.client-location {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.dark-mode .client-name {
    color: var(--primary);
}

.client-card:hover .client-name {
    color: var(--primary);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
    z-index: 0;
}

.shape4 {
    background: var(--primary);
    width: 300px;
    height: 300px;
    top: 200px;
    left: -100px;
    animation: float 8s infinite alternate;
}

.shape5 {
    background: var(--secondary);
    width: 400px;
    height: 400px;
    top: 50%;
    right: -150px;
    animation: float 12s infinite alternate-reverse;
}

.shape6 {
    background: var(--accent);
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 50%;
    animation: floating 10s infinite alternate;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(180deg);
    }

    100% {
        transform: translate(-30px, 50px) rotate(360deg);
    }
}

/* Footer Styles */
.footer {
    background-color: var(--light-bg);
    color: var(--dark-bg);
    padding: 50px 0 0;
    position: relative;
    overflow: hidden;
}

.footer {
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: -50px;
        /* Extends above the footer */
        left: 0;
        right: 0;
        height: 200px;
        /* Increased height for better blur effect */
        background: linear-gradient(to bottom,
                #ff1f5b6b,
                var(--light-bg));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1;
    }

    background-color:var(--light-bg);
}

.dark-mode .footer {
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: -50px;
        /* Extends above the footer */
        left: 0;
        right: 0;
        height: 200px;
        /* Increased height for better blur effect */
        background: linear-gradient(to bottom,
                #ff1f5b1e,
                var(--dark-bg));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1;
    }

    background-color:var(--dark-bg);
}

.footer-logo {
    width: 180px;
    height: 100px;
    background-image: url('/images/logo-dark.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: var(--transition);
    margin: 0 auto;
    /* Center horizontally */
    display: block;
    /* Needed for margin auto to work */
}

.dark-mode .footer-logo {
    background-image: url('/images/logo-white.webp');
    transition: var(--transition);
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    opacity: 0.8;
    line-height: 1.8;
    color: var(--dark-bg);
    text-align: justify;
}

.dark-mode .footer-description {
    color: var(--light-text);
}

.footer-links-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark-bg);
    padding-bottom: 10px;
    position: relative;
}

.dark-mode .footer-links-title {
    color: var(--light-bg);
}

.dark-mode .contact-info {
    color: var(--light-text);
}

.footer-links-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-col:hover .footer-links-title::after {
    width: 70px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.dark-mode .footer-links a {
    color: var(--light-text);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.322);
    color: var(--dark-bg);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.dark-mode .social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50%;
    z-index: -1;
}

.social-icon:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 31, 90, 0.3);
}

.social-icon:hover::before {
    transform: scale(1);
}

.contact-info {
    margin-top: 20px;
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    min-width: 25px;
    margin-right: 15px;
    color: var(--primary);
}

.contact-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.copyright-bar {
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.dark-mode .copyright-bar {
    background: rgba(0, 0, 0, 0.4);
    color: var(--light-bg)
}

.copyright-text {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-shapes .bg-shape {
    opacity: 0.03;
}

@media (max-width: 991px) {
    .client-section .section-title h2 {
        font-size: 2.5rem;
    }

    .footer-col {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .client-section {
        padding: 0px 0;
    }

    .client-section .section-title h2 {
        font-size: 1.5rem;
    }

    .footer-title {
        font-size: 2rem;
    }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.63);
    transition: all var(--transition-speed) ease;
    z-index: 999;
}

@media screen and (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 5em;
    right: .9em;
    z-index: 999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Modified Chatbot Button Styles */
.chatbot-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 70px;
    /* Increased default size */
    height: 70px;
    /* Increased default size */
    transition: var(--transition);
    position: relative;
    padding: 0;
    /* Remove padding to prevent unwanted spacing */
    display: flex;
    /* Use flex to ensure proper centering of the image */
    align-items: center;
    justify-content: center;
}

.chatbot-button img {
    width: 100%;
    /* Make image fill the button */
    height: 100%;
    /* Make image fill the button */
    object-fit: contain;
    transition: var(--transition);
    border-radius: 50%;
    /* Add circular shape */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    /* Add subtle shadow */
}

.chatbot-button:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(225, 0, 255, 0.4));
}

/* Welcome Bubble - Improved Responsive Design */
.welcome-bubble {
    position: absolute;
    bottom: 80px;
    /* Position above the button */
    right: 0;
    background: var(--light-bg);
    border-radius: 15px;
    padding: 12px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 250px;
    /* Increased max-width */
    width: max-content;
    /* Allow the bubble to size with content */
    font-size: 14px;
    /* Slightly larger font */
    line-height: 1.4;
    /* Improved line height */
    color: var(--text-dark);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom-right-radius: 4px;
    z-index: 1000;
    /* Ensure it stays above other elements */
}

.welcome-bubble:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    /* Adjusted positioning */
    width: 15px;
    height: 15px;
    background: white;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: rotate(45deg);
}

.welcome-bubble.active {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.chatbot-window.active {
    transform: scale(1);
    opacity: 1;
}

.chatbot-header {
    padding: 15px 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.chatbot-title h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-title p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.chatbot-actions button {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}

.chatbot-actions button:hover {
    transform: scale(1.2);
}

.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(225, 0, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(0, 82, 204, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, rgba(241, 90, 36, 0.05) 0%, transparent 15%);
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message-bot {
    align-self: flex-start;
    margin-right: auto;
}

.message-user {
    align-self: flex-end;
    margin-left: auto;
}

.message-content {
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.message-bot .message-content {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.message-user .message-content {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 5px;
    text-align: right;
}

.message-time {
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.6;
}

.message-bot .message-time {
    margin-left: 5px;
}

.message-user .message-time {
    margin-right: 5px;
    text-align: right;
}

.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background: white;
    border-radius: 18px;
    width: fit-content;
    animation: fadeIn 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 5px;
}

.typing-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    margin: 0 2px;
    animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.typing-dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes typingAnimation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.chatbot-footer {
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-input-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 5px 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
}

.chatbot-input-container:focus-within {
    box-shadow: 0 2px 15px rgba(225, 0, 255, 0.2);
}

.chatbot-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 14px;
    background: transparent;
}

.chatbot-send {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-send:hover {
    transform: scale(1.1);
}

.chatbot-send:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.option-btn {
    padding: 8px 15px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.option-btn:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(225, 0, 255, 0.2);
}

/* Dark mode support */
.dark-mode .chatbot-window {
    background: rgba(18, 18, 18, 0.9);
    color: var(--text-light);
}

.dark-mode .chatbot-body {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(225, 0, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(0, 82, 204, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, rgba(241, 90, 36, 0.1) 0%, transparent 15%);
}

.dark-mode .message-bot .message-content {
    background: #2a2a2a;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .typing-indicator {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .typing-dot {
    background-color: rgba(255, 255, 255, 0.5);
}

.dark-mode .chatbot-footer {
    background: rgba(18, 18, 18, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .chatbot-input-container {
    background: #2a2a2a;
}

.dark-mode .chatbot-input {
    color: var(--text-light);
}

.dark-mode .option-btn {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.dark-mode .welcome-bubble {
    background: #2a2a2a;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .welcome-bubble:after {
    background: #2a2a2a;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (min-width: 1200px) {

    /* Larger screens */
    .chatbot-button {
        width: 85px;
        height: 85px;
    }

    .welcome-bubble {
        max-width: 300px;
        font-size: 15px;
        padding: 15px 20px;
    }

    .chatbot-window {
        width: 400px;
        height: 550px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {

    /* Medium screens */
    .chatbot-button {
        width: 75px;
        height: 75px;
    }

    .welcome-bubble {
        max-width: 270px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {

    /* Small screens */
    .chatbot-button {
        width: 65px;
        height: 65px;
    }

    .welcome-bubble {
        max-width: 250px;
        bottom: 75px;
    }

    .chatbot-window {
        width: 320px;
        height: 480px;
    }
}

@media (max-width: 575px) {

    /* Extra small screens */
    .chatbot-container {
        bottom: 4em;
        right: 20px;
    }

    .chatbot-button {
        width: 60px;
        height: 60px;
    }

    .welcome-bubble {
        max-width: 220px;
        bottom: 70px;
        font-size: 13px;
        padding: 10px 15px;
        right: 0;
    }

    .welcome-bubble:after {
        right: 20px;
    }

    .chatbot-window {
        width: 90vw;
        max-width: 300px;
        height: 450px;
        bottom: 80px;
    }

    .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {

    /* Very small screens */
    .chatbot-button {
        width: 50px;
        height: 50px;
    }

    .welcome-bubble {
        max-width: 200px;
        font-size: 12px;
        bottom: 60px;
    }

    .chatbot-window {
        height: 400px;
    }
}


/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

.dark-mode ::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}