/* AI Bar Styles - Separated for better organization and debugging */

.ai-bar-wrap {
    position: fixed;
    top: 50%;
    right: 5.5rem;
    left: auto;
    transform: translateY(-50%);
    width: auto;
    max-width: 700px;
    z-index: 1000;
    pointer-events: auto;
    display: block;
    opacity: 1;
    transition: none;
}

.ai-bar-wrap.visible {
    display: block !important; /* Force display when visible */
    opacity: 1 !important; /* Show when visible class is added */
}




.ai-bar-wrap.transitioning {
    /* Allow GSAP to handle positioning during transitions */
    transition: none !important;
}

/* AI Bar Container - positioned within demo section */
#aiBarContainer {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%; /* Match the final bar width */
    max-width: 800px; /* Match the final bar max-width */
    height: auto;
    pointer-events: auto;
    z-index: 1000;
}

/* When container has bar, make it take space */
#aiBarContainer:has(#barWrap) {
    height: auto;
    pointer-events: auto;
}


.ai-bar-container {
    padding: 0; /* Remove padding since we're positioning on the right */
}

.ai-bar-main-wrapper {
    margin-top: 0; /* Remove top margin */
}

@media (min-width: 768px) { /* md breakpoint */
    .ai-bar-main-wrapper {
        margin-top: 0; /* Remove top margin */
    }
}

.ai-bar {
    position: relative;
    margin-left: 0; /* Align to left within the wrap */
    max-width: 700px; /* Further increased width */
    min-width: 600px; /* Increased minimum width */
    border-radius: 1rem; /* Further reduced border radius for sleeker look */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    background-color: #272443e3;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    padding-left: 0.75rem; /* Slightly increased horizontal padding for better spacing */
    padding-right: 0.75rem;
    padding-top: 0.875rem; /* Further reduced vertical padding for flatter look */
    padding-bottom: 0.875rem;
}

/* Hide main electron bar on mobile since we have mobile-only version */
@media (max-width: 1023px) {
    .ai-bar-wrap {
        display: none !important;
    }
}

.ai-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribute space evenly */
    gap: 1rem; /* Better spacing */
}

@media (min-width: 768px) { /* md breakpoint */
    .ai-bar-content {
        gap: 1.25rem; /* Increased gap for desktop */
        padding: .1rem /* More padding on desktop */
    }
}

.orb-canvas {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
}

@media (min-width: 768px) { /* md breakpoint */
    .orb-canvas {
        width: 90px;
        height: 90px;
    }
}

.prompt-shortcuts-wrapper {
    flex: 1 1 auto; /* Allow it to grow and shrink as needed */
    min-width: 250px; /* Increased minimum width for better text display */
    max-width: 400px; /* Increased maximum width to utilize more space */
}

.prompt-line-one {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
}

@media (min-width: 768px) { /* md breakpoint */
    .prompt-line-one {
        gap: 0.75rem; /* 12px */
    }
}

.prompt-text {
    font-size: 0.95rem; /* Slightly reduced */
    font-weight: 500;
    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0; /* Remove any default margin */
}

@media (min-width: 768px) { /* md breakpoint */
    .prompt-text {
        font-size: 1rem; /* Reduced from 18px */
        padding-right: 6px;
    }
}

.prompt-description {
    font-size: 0.7rem; /* Slightly reduced */
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.125rem; /* Reduced margin */
    margin-bottom: 0;
}

@media (min-width: 768px) { /* md breakpoint */
    .prompt-description {
        font-size: 0.8rem; /* Reduced */
    }
}

.right-controls-wrapper {
    display: flex; /* Always show controls */
    align-items: center;
    gap: 0.5rem; /* Reduced gap for better fit */
    flex-shrink: 0; /* Prevent shrinking */
}

@media (min-width: 768px) { /* md breakpoint */
    .right-controls-wrapper {
        gap: 0.75rem; /* Slightly larger gap on desktop */
    }
}

.shortcut-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    font-size: 0.875rem; /* 14px */
    color: rgba(255, 255, 255, 0.8);
}

.shortcut-text {
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.25rem; /* 4px */
}

/* Typing effect styles */
.typing-container {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    min-height: 1.5rem;
}

.typing-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-family: 'Inter', sans-serif;
    padding-right: 6px;
}

.typing-cursor {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* AI Response Window Styles - Following electron bar dark theme (scaled down) */
.ai-response-window {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -30%) scale(0.95); /* Combined single transform */
    width: 85%; /* Scaled down from 95% */
    max-width: 800px; /* Scaled down from 1000px */
    background: #272443e3;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.6s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    overflow: hidden;
    margin-top: 1rem; /* Reduced from 2rem */
}

.ai-response-window.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Single combined transform */
}

.response-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
    justify-content: flex-start;
}

.response-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-avatar {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.response-title {
    /* font-size: 1rem;
    font-weight: 500; */
    color: rgba(255, 255, 255, 0.9);
    /* margin: 0; */
}

.response-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
    text-align: right;
    margin-right: 12px;
}

.response-actions {
    display: flex;
    gap: 8px;
}

.copy-btn, .close-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-btn:hover, .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.response-body {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-size: 0.95rem;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}

.response-body * {
    color: rgba(255, 255, 255, 0.9) !important;
}

.response-body h3 {
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
}

.response-body p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0.75rem 0;
}

.response-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.response-body ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.response-body li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.response-body li strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
}

.response-body strong {
    color: rgba(255, 255, 255, 0.95) !important;
}

.response-body a {
    color: #4a9eff !important;
    text-decoration: none;
}

.response-body a:hover {
    text-decoration: underline;
    color: #66b3ff !important;
}

/* AI Input Area - Following electron bar dark theme (scaled down) */
.ai-input-area {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%; /* Scaled down from 95% */
    max-width: 800px; /* Scaled down from 1000px */
    z-index: 1000;
}

.input-container {
    display: flex;
    background: #272443e3;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.ai-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    font-family: 'Inter', sans-serif;
}

.ai-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 16px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

/* Carousel Section */
.carousel-section {
    background: #ffffff;
    padding: 3rem 0 0 0;
    position: relative;
    overflow: hidden;
}

/* Ensure background shapes are visible in carousel section */
.carousel-section .shape {
    position: absolute;
    filter: blur(40px);
    mix-blend-mode: multiply;
    opacity: 0.3;
    z-index: 1;
}

.carousel-section .shape.pink {
    width: 440px;
    height: 440px;
    top: 50px;
    left: -100px;
    background: #ff9292;
    border-radius: 220px;
}

.carousel-section .shape.orange {
    width: 320px;
    height: 320px;
    bottom: 100px;
    right: -80px;
    background: #ff8a00;
    border-radius: 160px;
}

.carousel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Carousel Title and Description */
.carousel-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1340;
    margin: 0;
    line-height: 1.2;
}

.carousel-wrapper p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 0 0;
    margin-bottom: 0;
    max-width: 900px;
}

/* Left Navigation Menu */
.vertical-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

.vertical-nav h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1340;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.vertical-nav p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.nav-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-item:hover {
    background: rgba(74, 144, 226, 0.05);
    border-color: rgba(74, 144, 226, 0.1);
}

.nav-item.active {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
}

.nav-icon {
    width: 48px;
    height: 48px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    background: #4a90e2;
    color: white;
}

.nav-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1c1340;
    line-height: 1.3;
}

.nav-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

/* 3D Carousel Container */
.carousel-3d-container {
    position: relative;
    height: 475px;
    perspective: 2000px; /* Increased perspective for more dramatic 3D effect */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.carousel-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    position: absolute;
    width: 800px;
    height: auto;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.6;
    cursor: pointer;
}

/* Active slide - front and center */
.carousel-slide.active {
    opacity: 1;
    z-index: 4;
    transform: translate(-50%, -50%) translateZ(0px) scale(1);
}

/* Second slide - positioned to the right, behind */
.carousel-slide:nth-child(1):not(.active) {
    opacity: 0.8;
    z-index: 3;
    transform: translate(-20%, -50%) translateZ(-120px) scale(0.9) rotateY(-15deg);
}

/* Third slide - positioned to the left, behind */
.carousel-slide:nth-child(2):not(.active) {
    opacity: 0.8;
    z-index: 2;
    transform: translate(-80%, -50%) translateZ(-120px) scale(0.9) rotateY(15deg);
}

/* Fourth slide - positioned further right, deeper behind */
.carousel-slide:nth-child(3):not(.active) {
    opacity: 0.6;
    z-index: 1;
    transform: translate(10%, -50%) translateZ(-200px) scale(0.8) rotateY(-25deg);
}

/* Fifth slide - positioned further left, deeper behind */
.carousel-slide:nth-child(4):not(.active) {
    opacity: 0.6;
    z-index: 1;
    transform: translate(-110%, -50%) translateZ(-200px) scale(0.8) rotateY(25deg);
}

/* Hover effects */
.carousel-slide:hover:not(.active) {
    opacity: 0.9;
    transform: translate(-50%, -50%) translateZ(-100px) scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .carousel-wrapper {
        gap: 0;
    }
    
    .vertical-nav {
        order: 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .carousel-3d-container {
        order: 1;
        height: 600px;
    }
    
    .carousel-slide {
        width: 600px;
    }
    
    .nav-item {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 2rem 0 0 0;
    }
    
    .carousel-wrapper {
        gap: 0;
        padding: 0 1rem;
    }
    
    .vertical-nav {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .vertical-nav h2 {
        font-size: 2rem;
    }
    
    .vertical-nav p {
        font-size: 1.1rem;
    }
    
    .carousel-3d-container {
        height: 500px;
    }
    
    .carousel-slide {
        width: 500px;
    }
    
    .nav-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
    }
    
    .nav-content h4 {
        font-size: 1rem;
    }
    
    .nav-content p {
        font-size: 0.85rem;
    }
    
    /* Simpler horizontal 3D effect on mobile */
    .carousel-slide:nth-child(1):not(.active) {
        transform: translate(-30%, -50%) translateZ(-80px) scale(0.9) rotateY(-10deg);
    }
    
    .carousel-slide:nth-child(2):not(.active) {
        transform: translate(-70%, -50%) translateZ(-80px) scale(0.9) rotateY(10deg);
    }
    
    .carousel-slide:nth-child(3):not(.active) {
        transform: translate(-10%, -50%) translateZ(-140px) scale(0.8) rotateY(-20deg);
    }
}

@media (max-width: 480px) {
    .vertical-nav h2 {
        font-size: 1.75rem;
    }
    
    .vertical-nav p {
        font-size: 1rem;
    }
    
    .carousel-3d-container {
        height: 450px;
    }
    
    .carousel-slide {
        width: 400px;
    }
    
    .nav-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .nav-content {
        text-align: center;
    }
    
    /* Even simpler horizontal arrangement on small mobile */
    .carousel-slide {
        width: 95%;
    }
    
    .carousel-slide:nth-child(1):not(.active) {
        transform: translate(-35%, -50%) translateZ(-50px) scale(0.9) rotateY(-8deg);
    }
    
    .carousel-slide:nth-child(2):not(.active) {
        transform: translate(-65%, -50%) translateZ(-50px) scale(0.9) rotateY(8deg);
    }
    
    .carousel-slide:nth-child(3):not(.active) {
        transform: translate(-15%, -50%) translateZ(-100px) scale(0.8) rotateY(-15deg);
    }
}

/* Override default feature margin for carousel and about sections */
.about-section , .carousel-section{
    margin-bottom: 0 !important;
}
/* Fix why section images to fit perfectly and be fully visible */
.why .item img {
    width: 100% !important;
    max-width: 500px !important;
    height: 350px !important;
    object-fit: contain !important;
    margin-bottom: 1.5rem !important;
}

/* Add spacing between why section items */
.why .item {
    margin-right: 3rem !important;
}

/* Remove hover effects for why section images */
.why .item img:hover {
    transform: none !important;
}

/* Mobile-only slider styles */
.visible-mobile {
    display: none;
}

.mobile-slider {
    width: 100%;
    max-width: none;
    margin: 2rem 0;
}

.mobile-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mobile-slide {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.mobile-slide.active {
    display: block;
}

.mobile-slider-dots {
    text-align: center;
    margin-top: 1rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #ff8c42;
}

/* Fix carousel title centering and images on small screens */
@media (max-width: 768px) {
    .visible-mobile {
        display: block !important;
    }
    #carouselTitle {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        display: block !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    
    #carouselDescription {
        text-align: center !important;
        margin: 0 auto !important;
        width: 100% !important;
        display: block !important;
    }
    
    .carousel-wrapper {
        text-align: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .carousel-3d-container {
        height: 400px !important;
    }
    
    .carousel-slide {
        width: 350px !important;
        height: auto !important;
        max-width: 95vw !important;
    }
}

@media (max-width: 480px) {
    .carousel-3d-container {
        height: 350px !important;
    }
    
    .carousel-slide {
        width: 300px !important;
        height: auto !important;
        max-width: 90vw !important;
    }
}

/* Email signup form styles */
.email-signup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.email-signup .button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
}

.email-input {
    width: 100%;
    max-width: 400px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.email-input::placeholder {
    color: rgba(51, 51, 51, 0.6);
}

.email-input:focus {
    border-color: #ff8c42;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

/* Form message styles */
.form-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    animation: slideIn 0.3s ease;
}

.form-message.success {
    background: none;
    color: #38a169;
    border: none;
}

.form-message.error {
    background: none;
    color: #e53e3e;
    border: none;
}

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

/* Mobile-only: Position AI bar in hero section only */
@media (max-width: 768px) {
    .ai-bar-wrap {
        display: block !important;
        position: absolute !important;
        top: 80px !important;
        left: 35% !important;
        transform: translateX(-50%) scale(0.8) !important;
        z-index: 999 !important;
        width: 100% !important;
        max-width: 387px !important;
    }
    
    /* Ensure hero section has relative positioning for absolute child */
    header {
        position: relative !important;
        min-height: 60px !important; /* Ensure enough space */
    }
    
    /* Add padding to hero text to make room for AI bar */
    .hero {
        padding-top: 100px !important; /* Reduced gap for AI bar */
    }
    
    /* Scale down AI bar components more for mobile fit */
    .ai-bar-container {
        transform: scale(0.8) !important;
    }
    
    .ai-input-area {
        transform: scale(0.7) !important;
    }
    
    .ai-response-window {
        transform: translate(-50%, -30%) scale(0.6) !important;
        max-width: 280px !important;
    }
}



