/* ========================================
   AUTOPILOT.UZ - Welcome Page Styles
   ======================================== */

/* Asosiy shrift sifatida Inter ni sozlash */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Mobil uchun responsive sozlamalar */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* Gradientli sarlavhalar uchun yordamchi klass */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #3b82f6, #1e40af);
}

/* "Eng ommabop" nishonchasi */
.badge-popular {
    position: absolute;
    transform: rotate(45deg);
    right: -65px;
    top: 20px;
    width: 200px;
}

/* ========================================
   HERO SLIDER ANIMATIONS
   ======================================== */

#hero-slider-content {
    opacity: 0;
    transform: scale(0.95) rotateX(5deg);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#hero-image {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes slideScaleOut {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.1) rotate(3deg);
    }
}

.slider-dot {
    cursor: pointer;
}

.slider-dot:hover {
    transform: scale(1.2);
}

/* ========================================
   DEMO MODAL STYLES
   ======================================== */

.demo-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.demo-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demo-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 0 100px rgba(59, 130, 246, 0.3);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

/* Mobil uchun modal to'liq ekran */
@media (max-width: 640px) {
    .demo-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .demo-modal-overlay {
        padding: 0;
    }

    .demo-chat-container {
        height: calc(100vh - 300px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Futuristik header */
.demo-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.demo-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.demo-header-content {
    position: relative;
    z-index: 1;
}

/* Chat container */
.demo-chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    will-change: scroll-position;
}

.demo-chat-container::-webkit-scrollbar {
    width: 6px;
}

.demo-chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.demo-chat-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

/* Message bubbles */
.demo-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.4s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.demo-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-message.user .demo-message-avatar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.demo-message.ai .demo-message-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: 0;
}

.demo-message.ai .demo-message-avatar:hover {
    transform: scale(1.1);
}

.demo-message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    color: #e2e8f0;
    line-height: 1.6;
    flex: 1;
    backdrop-filter: blur(10px);
    min-height: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.demo-message.ai .demo-message-content {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 0.375rem;
    padding: 0.5rem 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Input area */
.demo-input-area {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.demo-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.demo-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
                0 0 20px rgba(59, 130, 246, 0.2);
}

.demo-input::placeholder {
    color: rgba(226, 232, 240, 0.4);
}

.demo-send-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: none;
    border-radius: 12px;
    padding: 0 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.demo-send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.demo-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.demo-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.demo-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Suggestion chips */
.demo-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.demo-suggestion-chip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #60a5fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-suggestion-chip:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Highlight effect for numbers */
.highlight-number {
    color: #10b981;
    font-weight: 700;
    font-size: 1.1em;
}

.highlight-success {
    color: #34d399;
    font-weight: 600;
}

.highlight-warning {
    color: #fbbf24;
    font-weight: 600;
}

/* ========================================
   AVATAR LIGHTBOX
   ======================================== */

.avatar-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease-out;
}

.avatar-lightbox.active {
    display: flex;
}

.avatar-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 25px 100px rgba(59, 130, 246, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   LIMIT MODAL STYLES
   ======================================== */

.limit-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.limit-modal-overlay.active {
    display: flex;
}

.limit-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 100px rgba(59, 130, 246, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.limit-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.limit-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.limit-modal-header h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 0;
}

.limit-modal-content {
    padding: 2rem;
    color: #e2e8f0;
}

.limit-modal-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.limit-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.register-btn {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.7);
    }
}

.later-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.later-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile responsiveness for limit modal */
@media (max-width: 640px) {
    .limit-modal {
        max-width: 100%;
        margin: 1rem;
    }

    .limit-modal-buttons {
        flex-direction: column;
    }

    .limit-modal-header h2 {
        font-size: 1.5rem;
    }

    .limit-modal-content {
        padding: 1.5rem;
    }

    .limit-modal-header {
        padding: 1.5rem;
    }

    .feature-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   ABOUT US MODAL STYLES
   ======================================== */

.about-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100001;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.about-modal-overlay.active {
    display: flex;
}

.about-modal {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    box-shadow: 0 25px 100px rgba(59, 130, 246, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.about-modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.about-modal-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 1;
}

.about-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.about-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.about-modal-content {
    padding: 2rem;
    color: #e2e8f0;
    overflow-y: auto;
    flex: 1;
}

.about-modal-content::-webkit-scrollbar {
    width: 8px;
}

.about-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.about-modal-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

.about-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

.about-section-title {
    color: #3b82f6;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
}

.about-section-title:first-child {
    margin-top: 0;
}

.about-text {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.about-text-bold {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.about-feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.about-feature-title {
    color: #60a5fa;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.about-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.about-benefits li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-footer-text {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
}

/* Mobile responsiveness for about modal */
@media (max-width: 768px) {
    .about-modal {
        max-width: 100%;
        margin: 0.5rem;
        max-height: 90vh;
    }

    .about-modal-header {
        padding: 1rem 1.5rem;
    }

    .about-modal-title {
        font-size: 1.25rem;
    }

    .about-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .about-modal-content {
        padding: 1.5rem;
    }

    .about-section-title {
        font-size: 1.25rem;
    }

    .about-feature {
        padding: 1rem;
    }

    .about-feature-title {
        font-size: 1rem;
    }

    .benefit-icon {
        font-size: 1.25rem;
    }
}
