/* Final Comprehensive Improvements */

/* 1. Welcome Loading Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: curtainOpen 2.5s ease-in-out 1.5s forwards;
}

.welcome-content {
    text-align: center;
    animation: fadeInScale 1s ease-out;
}

.welcome-logo {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.welcome-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #94a3b8;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin: 30px auto 0;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    animation: loading 1.5s ease-in-out;
}

@keyframes curtainOpen {
    0% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: inset(0 0 100% 0);
        pointer-events: none;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loading {
    from { width: 0; }
    to { width: 100%; }
}

/* 2. Hero Video Background */
.hero-section {
    position: relative !important;
    overflow: hidden !important;
}

.hero-video-bg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 0 !important;
    opacity: 0.8 !important;
    object-fit: cover !important;
}

.hero-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.3) 100%) !important;
    z-index: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
}

/* 3. Founder Section - Reduced Image Size */
.founder-image-wrapper {
    max-width: 400px !important;
    margin: 0 auto !important;
}

.founder-image {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    object-fit: cover !important;
}

.founder-content {
    align-items: center !important;
}

/* 4. Fixed Testimonials Carousel */
.testimonials-section .section-title {
    color: white !important;
}

.testimonials-slider {
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 40px 0 !important;
    position: relative !important;
}

.testimonials-track {
    display: flex !important;
    gap: 25px !important;
    animation: testimonials-scroll 40s linear infinite !important;
    width: max-content !important;
}

.testimonials-track:hover {
    animation-play-state: paused !important;
}

@keyframes testimonials-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-slide {
    flex: 0 0 380px !important;
    opacity: 1 !important;
    position: relative !important;
    pointer-events: auto !important;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 35px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 300px !important;
    transition: all 0.3s ease !important;
}

.testimonial-content:hover {
    transform: translateY(-10px) !important;
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.15) !important;
}

.slider-controls {
    display: none !important;
}

/* 5. Enhanced Chatbot */
.chat-window {
    width: 400px !important;
    max-height: 600px !important;
    bottom: 85px !important;
}

.chat-body {
    max-height: 450px !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

.chat-body::-webkit-scrollbar {
    width: 6px !important;
}

.chat-body::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 10px !important;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #6366f1 !important;
    border-radius: 10px !important;
}

.chat-intro {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 15px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.chat-intro h3 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
}

.chat-intro p {
    font-size: 14px !important;
    opacity: 0.9 !important;
}

/* 6. Language Selector */
.language-selector {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-right: 20px !important;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 8px 30px 8px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    transition: all 0.3s ease !important;
}

.language-selector select:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: #6366f1 !important;
}

.language-selector select option {
    background: #1e293b !important;
    color: white !important;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .welcome-logo {
        width: 100px !important;
    }

    .welcome-text {
        font-size: 20px !important;
    }

    .founder-image-wrapper {
        max-width: 100% !important;
    }

    .founder-image {
        max-height: 400px !important;
    }

    .testimonial-slide {
        flex: 0 0 320px !important;
    }

    .chat-window {
        width: calc(100vw - 40px) !important;
        right: 20px !important;
    }

    .language-selector {
        margin-right: 10px !important;
    }

    .language-selector select {
        padding: 6px 25px 6px 10px !important;
        font-size: 13px !important;
    }
}

/* Make hero text visible on video */
.hero-content {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.hero-title {
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6) !important;
}

.hero-badge {
    background: rgba(99, 102, 241, 0.8) !important;
    backdrop-filter: blur(10px) !important;
}

.hero-buttons a {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Gradient text animation matching logo theme */
.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #8b5cf6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: gradient-shift 3s ease-in-out infinite !important;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
