@media (max-width: 991px) {
    html, body {
        max-width: 100vw !important;
        width: 100% !important;
        overflow-x: clip !important;
    }
}

.navbar-brand img {
    max-width: 65vw !important;
    height: 40px !important;
    object-fit: contain;
}

@media (max-width: 767px) {
    .no-border-mobile {
        border-right: 0 !important;
    }
}

@keyframes breath-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
        border-color: rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px 5px rgba(59, 130, 246, 0.3);
        border-color: rgba(59, 130, 246, 0.8);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
        border-color: rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
}

@keyframes ambient-pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
}

@keyframes subtle-card-glow {
    0% {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
    }

    50% {
        box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
    }

    100% {
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
    }
}

.hero-promo-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    animation: breath-glow 4s infinite ease-in-out;
}

    .hero-promo-card:hover {
        background: rgba(15, 23, 42, 0.8);
        animation-play-state: paused;
        transform: translateY(-5px);
        border-color: var(--accent-color);
    }

.showcase-wrapper {
    position: relative;
    padding: 20px;
}

.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    filter: blur(60px);
    z-index: 0;
    animation: ambient-pulse 6s infinite ease-in-out;
}

.showcase-container {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
}

body.dark-mode .showcase-container {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8);
}

.showcase-video {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

.module-card-home {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

    .module-card-home::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--module-color);
        opacity: 0.9;
    }

body.dark-mode .module-card-home {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.module-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 20px var(--module-bg) inset;
}

.module-card-home.featured-module {
    animation: subtle-card-glow 4s infinite ease-in-out;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

    .module-card-home.featured-module:hover {
        animation-play-state: paused;
        box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2), 0 0 20px var(--module-bg) inset;
    }

.corner-ribbon {
    width: 200px;
    background: var(--module-color);
    position: absolute;
    top: 30px;
    right: -55px;
    text-align: center;
    line-height: 35px;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
}

.module-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: var(--module-bg);
    color: var(--module-color);
}

.module-price-text {
    color: #111827;
}

body.dark-mode .module-price-text {
    color: #f8fafc;
}

.module-btn {
    background: transparent;
    border: 1px solid var(--module-color);
    color: #111827;
    transition: 0.3s;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

body.dark-mode .module-btn {
    color: #f8fafc;
}

.module-btn:hover {
    background: var(--module-color) !important;
    color: #fff !important;
    box-shadow: 0 0 15px var(--module-bg);
}

.module-btn-solid {
    background: var(--module-color) !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 5px 15px var(--module-bg);
    transition: 0.3s;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

    .module-btn-solid:hover {
        transform: translateY(-2px);
        background: var(--module-color) !important;
        color: #fff !important;
        filter: brightness(1.15);
        box-shadow: 0 8px 25px var(--module-bg);
    }

body.dark-mode .feature-display:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

    body.dark-mode .feature-display:hover .feature-overlay-blur {
        background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%) !important;
    }

    body.dark-mode .feature-display:hover .h4,
    body.dark-mode .feature-display:hover p {
        color: #ffffff !important;
        text-shadow: 0 2px 5px rgba(0,0,0,0.9);
    }

/* --- Before/After Image Slider --- */
.image-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
    --position: 50%;
}

body.dark-mode .image-slider-container {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8);
}

.slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

    .slider-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        user-select: none;
        pointer-events: none;
    }

.image-before {
    z-index: 1;
}

.image-after {
    z-index: 2;
    clip-path: polygon(0 0, var(--position) 0, var(--position) 100%, 0 100%);
}

.slider-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
    z-index: 10;
}

.slider-line {
    position: absolute;
    inset: 0;
    width: 3px;
    height: 100%;
    background: #fff;
    left: var(--position);
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 5;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #0d6efd;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.slider-input:active ~ .slider-line .slider-button,
.slider-input:hover ~ .slider-line .slider-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-label {
    position: absolute;
    top: 24px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2 !important;
    pointer-events: none;
}

.label-before {
    right: 24px;
}

.label-after {
    left: 24px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.6));
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}






/* Ensure the container handles overflow and aspect ratio */
.feature-display {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* Matches your design */
    width: 100%;
    height: 100%;
    min-height: 400px; /* Adjust based on your design needs */
}

/* Fix the video to fill the div exactly like an image */
.feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video fill the container without stretching */
    display: block;
}

/* Ensure the image version also behaves the same */
.feature-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
