/* Core Settings */
:root {
    --brand-red: #C8102E;
    --dark: #0a0a0a;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scroll on mobile */
}

/* Lenis Smooth Scroll Config */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Animations */
/* 1. Reveal Text */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Reveal Fade */
.reveal-fade {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.reveal-fade.active {
    opacity: 1;
}

/* 3. Reveal Slide */
.reveal-slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-right.active,
.reveal-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee2 {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
    }
}

.animate-marquee {
    animation: marquee 35s linear infinite;
}

.animate-marquee2 {
    animation: marquee2 35s linear infinite;
}

/* Pulse Glow */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.08;
        transform: scale(1);
    }

    50% {
        opacity: 0.12;
        transform: scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Navbar Active State */
.nav-active {
    background-color: #7A0000;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.4);
    transition: all 0.3s ease;
}

.nav-active:hover {
    background-color: #000 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Chat Window */
#chat-window.open {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* Service Card */
.service-card {
    will-change: transform, filter, opacity;
}

/* Swiper Configuration */
.swiper {
    overflow: visible !important;
}

.swiper-slide {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.4s ease-in-out !important;
    filter: blur(4px);
    opacity: 0.4 !important;
    transform: scale(0.85);
    z-index: 0 !important;
    height: auto;
}

/* Active Slide Styling */
.swiper-slide-active {
    filter: blur(0px) !important;
    opacity: 1 !important;
    transform: scale(1);
    z-index: 50 !important;
    background-color: #0f172a !important;
    /* Dark Blue/Black */
    border: 1px solid #334155 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

/* Text Colors inside Slides */
.swiper-slide p,
.swiper-slide h4,
.swiper-slide .text-xs {
    color: #0f172a !important;
}

.swiper-slide-active p,
.swiper-slide-active h4,
.swiper-slide-active .text-xs {
    color: #ffffff !important;
}

/* Pagination Dots */
.swiper-pagination-bullet-active {
    background-color: #C8102E !important;
}

/* Chatbot Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 20px;
}

/* Navbar Glass Effect */
#nav-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 1);
    backdrop-filter: none;
}

.nav-item {
    outline: none;
    border: none;
}

/* Preloader Letters */
#loader-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.letter {
    display: inline-block;
    opacity: 1;
    max-width: 100px;
    transform: translateZ(0);
    transition: all 2s cubic-bezier(0.25, 1, 0.5, 1);
}

.letter.squeeze {
    max-width: 0px;
    opacity: 0;
    margin: 0;
    padding: 0;
}