/* AI Section Styles */
.ai-section-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 80px 5% 60px 5%;
    background: radial-gradient(circle at 50% 50%, #111d3a 0%, #020617 100%);
    background-size: 200% 200%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', sans-serif;
    animation: nebulaPulse 20s ease infinite;
    z-index: 1;
}

@keyframes nebulaPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Star Field Effect */
.ai-section-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: galaxyMove 100s linear infinite;
}

@keyframes galaxyMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1000px 1000px;
    }
}

.ai-section-twinkle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ai-section-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: var(--opacity);
        transform: scale(1.2);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glowing Blobs for Lavish Feel */
.ai-section-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: screen;
}

.ai-section-blob-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(168, 85, 247, 0) 70%);
    top: -20%;
    left: -10%;
    animation: floatBlob 25s infinite alternate;
}

.ai-section-blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0) 70%);
    bottom: -15%;
    right: -10%;
    animation: floatBlob 30s infinite alternate-reverse;
}

.ai-section-blob-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 121, 249, 0.3) 0%, rgba(232, 121, 249, 0) 70%);
    top: 20%;
    left: 20%;
    animation: floatBlob 35s infinite linear;
}

/* Shooting Star Styles */
.ai-section-shooting-star {
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(-45deg, #fff, rgba(255, 255, 255, 0));
    border-radius: 999px;
    filter: drop-shadow(0 0 10px #fff);
    animation:
        tail var(--duration) ease-in-out forwards,
        shootingCurve var(--duration) ease-in-out forwards;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transform: rotate(var(--rotation));
    transform-origin: left center;
}

.ai-section-shooting-star::before,
.ai-section-shooting-star::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), #fff, rgba(0, 0, 255, 0));
    border-radius: 100%;
    animation: shining var(--duration) ease-in-out forwards;
}

.ai-section-shooting-star::after {
    transform: translateX(50%) rotateZ(-45deg);
}

.ai-section-shooting-star::before {
    transform: translateX(50%) rotateZ(45deg);
}

@keyframes tail {
    0% {
        width: 0;
    }

    30% {
        width: 150px;
    }

    100% {
        width: 0;
    }
}

@keyframes shining {
    0% {
        width: 0;
    }

    50% {
        width: 40px;
    }

    100% {
        width: 0;
    }
}

@keyframes shootingCurve {
    0% {
        transform: translate(0, 0) rotate(var(--rotation));
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(1200px, var(--y-offset)) rotate(var(--rotation));
        opacity: 0;
    }
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(10%, 15%) scale(1.1) rotate(10deg);
    }

    66% {
        transform: translate(-10%, 5%) scale(0.9) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

.ai-section-hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    margin-bottom: 40px;
}

.ai-section-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.11;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #a855f7 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
    margin-top: 10px;
}

.ai-section-hero-image-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: -6%;
}

.ai-section-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #94a3b8;
    margin-bottom: 30px;
    font-weight: 600;
}

.ai-section-hero-btn {
    display: inline-flex;
    align-items: center;
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #1e293b;
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    color: #fff;
    /* New additions */
    position: relative;
    z-index: 1;
}

/* Remove the transform from hover since it's already in default */
.ai-section-hero-btn:hover {
    background: #1e203b;
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.9), 0 0 60px rgba(168, 85, 247, 0.5);
    color: #fff;
    transform: translateY(-2px);
    /* Keep the same as default */
}

/* Flowing border around entire button - ALWAYS VISIBLE */
.ai-section-hero-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 52px;
    background: linear-gradient(90deg,
            #6366f1,
            #a855f7,
            #6366f1,
            #a855f7,
            #6366f1);
    background-size: 300% 100%;
    opacity: 1;
    /* Always visible */
    transition: all 0.3s ease;
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 2px;
    animation: borderFlow 3s linear infinite;
    /* Continuous animation */
}

/* On hover - just make the border glow more */
.ai-section-hero-btn:hover::before {
    filter: brightness(1.5);
    background: linear-gradient(90deg,
            #8183f5,
            #c77dff,
            #8183f5,
            #c77dff,
            #8183f5);
    background-size: 300% 100%;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
}

@keyframes borderFlow {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 300% 0;
    }
}

/* Icon styling - NO ANIMATION at all */
.ai-section-hero-btn-icon {
    margin-left: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    /* No transition */
}

/* No hover effects on icon at all */
.ai-section-hero-btn:hover .ai-section-hero-btn-icon {
    /* Keep exactly the same as default */
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

/* Ensure arrow doesn't move */
.ai-section-hero-btn-icon svg,
.ai-section-hero-btn-icon i,
.ai-section-hero-btn-icon span {
    transform: none !important;
    transition: none !important;
}

.easy-ai {
    color: #a855f7;
}

/* Hero Image Container */
.ai-section-hero-visual {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.ai-section-hero-image {
    width: 800px !important;
    /* height: 100%; */
    max-height: 700px;
    object-fit: contain;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1s ease;
    z-index: 5;
}

.ai-section-hero-image.ai-section-animated {
    transform: translateY(0);
    opacity: 1;
}

/* Floating Boxes */
.ai-section-floating-box {
    position: absolute;
    /* background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%); */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(109, 108, 108, 0.486);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 15;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.ai-section-floating-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Left Box Wrapper with Sidebar - Realigned */
.ai-section-box-left-container {
    position: absolute;
    left: -9%;
    /* Move towards left side more */
    top: -35%;
    /* Moved up from 15% */
    display: flex;
    flex-direction: row-reverse;
    /* Sidebar on the right side */
    gap: 0;
    /* Together now */
    align-items: flex-start;
    z-index: 20;
}

.ai-section-sidebar {
    /* background: rgba(30, 41, 59, 0.4); */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    left: -25%;
}

.ai-section-tab-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.ai-section-tab-btn svg{
    width: 25px;
}

.ai-section-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.ai-section-tab-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-section-box-left {
    position: relative;
    /* Remove absolute from child if Parent is container */
    left: -30%;
    margin-top: -70px;
    /* Moves it up since 'top' doesn't work in flex */
    width: 380px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}
.ai-gradient-icon {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-_mexclip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /*display: inline-block;*/
}
/* Chat Bubbles Refined */
.ai-section-chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.ai-section-message-bot {
    background: rgba(255, 255, 255, 0.08);
    /* Background for bot */
    color: #f1f5f9;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    max-width: 85%;
    align-self: flex-start;
    margin-bottom: 10px;
    margin-top: 10px;

    /* Bot on left */
}

.ai-section-hashtag {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: #fff;
}

.ai-section-reply-user {
    align-self: flex-end;
    /* Self alignment for flex items */
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 20px;
    border-bottom-right-radius: 2px;
    font-size: 0.9rem;
    color: #fff;
    width: fit-content;
    max-width: 85%;
    text-align: left;
    margin-bottom: 10px;
    margin-top: 10px;
    margin-left: auto;
    /* Push to right */
}

.ai-section-chat-details {
    margin-top: 10px;
}

.ai-section-details-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 10px;
}

.ai-section-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-section-pills-row .ai-section-pill,
.ai-section-pills-row .ai-section-pill-1,
.ai-section-pills-row .ai-section-pill-2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dummy Input Field */
.ai-section-chat-footer {
    margin-top: auto;
    padding-top: 20px;
}

.ai-section-input-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-section-input-dummy {
    font-size: 0.95rem;
    color: #94a3b8;
}

.ai-section-input-btn {
    width: 24px;
    height: 24px;
    background: #fff;
    color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.ai-section-box-right-container {
    position: absolute;
    right: 5%;
    top: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.ai-section-box-right {
    position: relative;
    width: 480px;
    padding: 20px;
    min-height: 380px;
    right: -50%;
    margin-top: -50%;
}

/* Documentation Header */
.ai-section-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.ai-section-doc-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.ai-section-doc-header-left span,
.ai-section-doc-header-left i {
    color: rgba(255, 255, 255, 0.9);
}

.ai-section-doc-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ai-section-doc-header-right span {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.ai-section-doc-header-right i {
    opacity: 0.7;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

/* Document Content */
.ai-section-doc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.ai-section-doc-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.ai-section-highlight {
    background: rgba(255, 255, 255, 0.15);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.4); */
    padding: 0 2px;
    font-weight: 600;
}

/* Toolbar */
.ai-section-toolbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.ai-section-toolbar-tool {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.9);
}

.ai-section-toolbar-tool:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.ai-section-toolbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.ai-section-box-bottom-wrapper {
    position: absolute;
    left: -15%;
    bottom: 5%;
    z-index: 18;
    width: fit-content;
}

.ai-section-box-bottom {
    position: relative;
    width: 500px;
    min-height: 280px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ai-section-email-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.ai-section-email-nav {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ai-section-email-nav span {
    opacity: 0.6;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.ai-section-email-nav span.active {
    opacity: 1;
    position: relative;
}

.ai-section-email-nav span.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
}

.ai-section-email-list {
    padding: 10px 0;
}

.ai-section-email-item {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    padding: 10px 20px;
    font-size: 0.85rem;
    align-items: center;
    transition: background 0.2s ease;
    cursor: default;
}

.ai-section-email-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ai-section-email-sender {
    font-weight: 600;
    color: #fff;
}

.ai-section-email-subject {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}

.ai-section-email-snippet {
    opacity: 0.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.9);
}

/* Floating Suggestion Bubble */
.ai-section-suggestion-bubble {
    position: absolute;
    right: -30px;
    /* Move slightly more outside */
    bottom: -20px;
    /* background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%); */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 125, 125, 0.527);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 25;
    width: 250px;
}

.ai-section-suggestion-icon {
    margin-bottom: 8px;
    color: #a855f7;
    font-size: 1.2rem;
}

.ai-section-suggestion-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #f1f5f9;
}

.ai-section-box-pills-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.ai-section-pill {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
}

.ai-section-pill-1 {
    /* background: rgba(30, 41, 59, 0.6); */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 20px;
    border-radius: 30px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    position: absolute;
    margin-top: -70%;
    right: -100%;
    transform: translateX(-50%);
    z-index: 21;
    white-space: nowrap;
}

.ai-section-pill-2 {
    /* background: rgba(30, 41, 59, 0.6); */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 20px;
    border-radius: 30px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e2e8f0;
    position: absolute;
    bottom: -80px;
    /* Positioned relative to the container bottom */
    right: -40%;
    transform: translateX(-50%);
    z-index: 21;
    white-space: nowrap;
}

.ai-section-side-icons {
    position: absolute;
    left: 35%;
    top: 30%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 6;
}

/* Simple Transparent Navbar for Desktop */
@media (min-width: 992px) {
    header {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: transparent !important;
        border-bottom: none !important;
        transition: background 0.3s ease;
    }

    .navbar-expand-md {
        background: transparent !important;
    }

    /* Upgrade Navbar Demo Button with AI Hero Style */
    header .header-btn {
        background: #1e293b !important;
        color: #fff !important;
        padding: 15px 15px !important;
        border-radius: 15px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        border: none !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        overflow: visible !important;
        height: auto !important;
        margin-left: 20px;
        margin-right: 15px;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 1;
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.3) !important;
    }

    /* Hide the old SVG border from original implementation */
    header .header-btn svg {
        display: none !important;
    }

    /* Animated flowing border for Navbar Button */
    /* header .header-btn::before {
        content: '';
        position: absolute;
        top: -1.5px;
        left: -1.5px;
        right: -1.5px;
        bottom: -1.5px;
        border-radius: 15px;
        background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1, #a855f7, #6366f1);
        background-size: 300% 100%;
        animation: borderFlow 3s linear infinite;
        z-index: -1;
        padding: 1.5px;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        -webkit-mask-composite: xor;
    } */

    header .header-btn:hover {
        background: #1e1e3b !important;
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.7), 0 0 50px rgba(168, 85, 247, 0.4) !important;
    }

    header .header-btn:hover::before {
        filter: brightness(1.3);
    }
}

/* Ensure mobile header remains solid if originally so */
@media (max-width: 991px) {
    header {
        position: relative !important;
        background: #000033 !important;
        /* Original color from style.css */
    }
}

.ai-section-icon-circle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

/* Desktop & Landscape Tablet Adjustments */
@media (max-width: 1400px) {
    .ai-section-box-left {
        width: 340px;
        min-height: 440px;
        left: -20%;
    }

    .ai-section-box-right {
        width: 420px;
        min-height: 340px;
        right: -40%;
    }

    .ai-section-box-bottom {
        width: 550px;
        min-height: 240px;
    }

    .ai-section-box-bottom-wrapper {
        left: -10%;
    }

    .ai-section-sidebar {
        left: -15%;
    }
}

@media (max-width: 1200px) {
    .ai-section-box-left {
        width: 300px;
        min-height: 400px;
        left: -10%;
    }

    .ai-section-box-right {
        width: 380px;
        min-height: 300px;
        right: -25%;
    }

    .ai-section-box-bottom {
        width: 480px;
        min-height: 220px;
    }

    .ai-section-box-bottom-wrapper {
        left: -5%;
    }

    .ai-section-sidebar {
        left: -5%;
    }

    .ai-section-hero-visual {
        height: 500px;
    }
}

/* Landscape Tablets & Small Laptops */
@media (min-width: 1025px) and (max-width: 1440px) {

    /* Scale container slightly */
    .ai-section-box-left {
        width: 280px;
        /* smaller width */
        min-height: 420px;
        margin-top: -30px;
        overflow: hidden;
        /* prevents spill */
        left: 15%;
    }

    /* Reduce inner padding */
    .ai-section-floating-box {
        padding: 15px;
    }

    /* Make chat container scroll instead of overflow */
    .ai-section-chat-container {
        gap: 10px;
        overflow-y: auto;
        max-height: 260px;
    }

    .ai-section-sidebar {
        left: 20%;
        padding: 8px;
    }

    /* Reduce bubble size */
    .ai-section-message-bot,
    .ai-section-reply-user {
        font-size: 0.85rem;
        padding: 8px 12px;
        max-width: 90%;
    }

    /* Reduce footer spacing */
    .ai-section-chat-footer {
        padding-top: 10px;
    }

    .ai-section-input-wrapper {
        padding: 8px 12px;
    }

    .ai-section-input-dummy {
        font-size: 0.85rem;
    }

    .ai-section-box-bottom {
        width: 450px;
        left: 20%;
    }

    .ai-section-box-right {
        right: -25%;
        height: auto;
    }

    .ai-section-toolbar {
        display: none;
    }

    .ai-section-pill-1 {
        right: -75%;
    }
}

/* Standard Tablets (Portrait) - Still showing boxes but further scaled */
@media (max-width: 991px) {

    /* Make hero behave like normal stacked layout */
    .ai-section-hero {
        min-height: auto;
        justify-content: flex-start;
    }

    /* Fix hero visual container */
    .ai-section-hero-visual {
        height: auto;
        display: flex;
        align-items: flex-end;
        /* stick image to bottom */
        justify-content: center;
        margin-top: 40px;
    }

    /* Force image to sit properly */
    .ai-section-hero-image {
        position: relative;
        bottom: 0;
        transform: translateY(0) !important;
        /* stop flying */
        max-height: 500px;
        margin-bottom: -8px;
    }

    /* .ai-section-hero-title{
    line-height: 1.4;
    font-weight: 600;
    font-size: 4rem;
}
.ai-section-hero-btn{
    padding: 24px 32px;
    font-size: larger;
} */
    /* Hide all floating / complex UI */
    .ai-section-floating-box,
    .ai-section-box-left-container,
    .ai-section-box-right-container,
    .ai-section-box-bottom-wrapper,
    .ai-section-sidebar,
    .ai-section-pill-1,
    .ai-section-pill-2,
    .ai-section-suggestion-bubble,
    .ai-section-side-icons {
        display: none !important;
    }

    /* Clean hero layout */
    .ai-section-hero {
        min-height: auto;
        padding-top: 80px;
        justify-content: flex-start;
    }

    .ai-section-hero-visual {
        height: auto;
        margin-top: 40px;
        align-items: flex-end;
    }

    .ai-section-hero-image {
        transform: translateY(0) !important;
        max-height: 500px;
    }

    /* Move pills behind hero image */
    .ai-section-pill-1,
    .ai-section-pill-2 {
        z-index: 1 !important;
        /* lower than image */
        opacity: 0.6;
        /* optional: softer look */
    }

    /* Ensure image stays above */
    .ai-section-hero-image {
        position: relative;
        z-index: 5;
    }

    .ai-section-hero-visual {
        height: 450px;
    }

    .ai-section-floating-box {
        transform: scale(0.75);
    }

    .ai-section-box-left-container {
        left: 0%;
        top: -15%;
    }

    .ai-section-box-right-container {
        right: 0%;
        top: 35%;
    }

    .ai-section-box-bottom-wrapper {
        left: 0%;
        bottom: 0%;
    }

    .ai-section-side-icons {
        left: 15%;
    }
}

/* Mobile & Small Handhelds - Hide all complex floating elements */
@media (max-width: 768px) {
    .ai-section-hero {
        padding-top: 60px;
        min-height: auto;
    }

    .ai-section-floating-box,
    .ai-section-box-pills-container,
    .ai-section-box-left-container,
    .ai-section-box-bottom-wrapper,
    .ai-section-box-right-container,
    .ai-section-side-icons,
    .ai-section-pill-1,
    .ai-section-pill-2,
    .ai-section-suggestion-bubble {
        display: none !important;
    }

    .ai-section-hero-visual {
        height: 350px;
        margin-top: 20px;
    }

    .ai-section-hero-image {
        max-height: 400px;
        margin-bottom: -35px;
    }

    .ai-section-hero-content {
        margin-bottom: 20px;
    }

}

/* Animations */
@keyframes aiSectionFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.ai-section-floating-box {
    animation: aiSectionFloat 4s ease-in-out infinite;
}

.ai-section-box-left {
    animation-delay: 0s;
}

.ai-section-box-right {
    animation-delay: 1s;
}

.ai-section-box-bottom {
    animation-delay: 2s;
}

/* Inner Content for boxes */
.ai-section-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-section-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6366f1;
}

.ai-section-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 8px;
}

.ai-section-line.short {
    width: 60%;
}

.ai-section-line.mid {
    width: 80%;
}

.ai-section-line.full {
    width: 100%;
}


@media (min-width: 992px) and (max-width: 1100px) {

    .ai-section-hero {
        min-height: auto;
    }

    .ai-section-hero-visual {
        height: auto;
        align-items: flex-end;
        margin-top: 40px;
    }

    .ai-section-hero-image {
        transform: translateY(0) !important;
        max-height: 550px;
    }

}

@media (min-width: 1100px) {

    .ai-section-hero {
        min-height: auto;
        /* stop forced 100vh stretch */
        justify-content: flex-start;
        /* prevent vertical centering */
    }

    .ai-section-hero-visual {
        height: auto;
        /* remove fixed 600px height */
        align-items: flex-end;
        /* keep image grounded */
        margin-top: 60px;
    }

}
@media (min-width: 1536px) and (max-width: 1700px) {

    .ai-section-box-left-container{
        left: -4%;
    }

}