/*Site.css*/
.page-wrapper {
    transform: none !important;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #f8fafc;
    --accent-color: #fef3c7;
    --text-color: #1e293b;
    --light-bg: #f1f5f9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gradient-start: #6366f1;
    --gradient-end: #8b5cf6;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
        color: white;
        text-decoration: none;
    }

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #b99cf4;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    background: #fafafa;
}

main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #bfd9e0 0%, #dad9f8 100%);
    padding: 140px 0 100px;
    color: #1e293b;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
        z-index: 1;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        top: 20%;
        right: -15%;
        width: 700px;
        height: 700px;
        background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
        border-radius: 50%;
        z-index: 1;
    }

    .hero-section .container {
        position: relative;
        z-index: 2;
    }

.display-4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.lead {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem !important;
}

.cta-button {
    background: white;
    color: #b99cf4;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.2);
        color: #b99cf4;
        text-decoration: none;
        scale: 1.02;
    }

    .cta-button i {
        transition: transform 0.3s ease;
    }

    .cta-button:hover i {
        transform: translateX(4px);
    }

/* Features Section */
#features {
    background: linear-gradient(180deg, #fafafb 0%, white 50%, #f8fafc 100%);
    padding: 120px 0;
    position: relative;
}

    #features::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(180deg, #dad9f8 0%, transparent 100%);
        opacity: 0.03;
    }

    #features h2 {
        font-weight: 700;
        color: var(--text-color);
        margin-bottom: 4rem;
        font-size: clamp(2rem, 4vw, 2.5rem);
        letter-spacing: -0.02em;
        position: relative;
    }

        #features h2::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, #b99cf4, #7bb5cf);
            border-radius: 2px;
        }

.feature-card {
    padding: 3rem 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: 0 4px 30px rgba(0,0,0,0.04);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.05);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(135deg, #b99cf4, #7bb5cf);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .feature-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .feature-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 60px rgba(59, 130, 246, 0.12);
    }

        .feature-card:hover::before {
            opacity: 1;
        }

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* Image styling */
.image-popup {
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

    .image-popup:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
    }

/* Audio and interaction elements */
#micButton.listening {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

#speakToggleButton.active {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Demographic modal styles */
#demographicModal .btn-outline-primary {
    border-width: 2px;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    color: #b99cf4;
    border-color: #b99cf4;
    border-radius: 12px;
    font-weight: 600;
}

    #demographicModal .btn-outline-primary:hover {
        background-color: rgba(59, 130, 246, 0.08);
        transform: translateY(-2px);
    }

#demographicModal .btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    border-color: #b99cf4;
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* List items */
.list-item {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.list-number {
    font-weight: 700;
    margin-right: 12px;
    min-width: 24px;
    color: #b99cf4;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Avatar and status */
.avatar-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 4px solid white;
}

#statusIcon {
    transition: all 0.3s ease;
    font-size: 2.5rem;
}

/* Audio wave animation */
.audio-wave {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .audio-wave span {
        display: inline-block;
        width: 6px;
        height: 6px;
        background: linear-gradient(135deg, #b99cf4, #7bb5cf);
        border-radius: 6px;
        transition: height 0.2s ease;
    }

    .audio-wave.active span, .audio-wave.speaking span {
        animation: wave 1.2s infinite ease-in-out;
    }

        .audio-wave.active span:nth-child(1), .audio-wave.speaking span:nth-child(1) {
            animation-delay: 0s;
        }

        .audio-wave.active span:nth-child(2) {
            animation-delay: 0.15s;
        }

        .audio-wave.speaking span:nth-child(2) {
            animation-delay: 0.1s;
        }

        .audio-wave.active span:nth-child(3) {
            animation-delay: 0.3s;
        }

        .audio-wave.speaking span:nth-child(3) {
            animation-delay: 0s;
        }

        .audio-wave.active span:nth-child(4) {
            animation-delay: 0.15s;
        }

        .audio-wave.speaking span:nth-child(4) {
            animation-delay: 0.1s;
        }

        .audio-wave.active span:nth-child(5), .audio-wave.speaking span:nth-child(5) {
            animation-delay: 0.25s;
        }

/* Security badge */
.security-badge {
    background: linear-gradient(135deg, #f8fafc, white);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    margin: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

/* Error message */
.error-message {
    background: linear-gradient(135deg, #fef2f2, #fff8f8);
    border-left: 4px solid var(--danger-color);
    border-radius: 8px;
    padding: 1rem;
}

    .error-message i.bi-exclamation-triangle {
        color: var(--danger-color);
        margin-right: 8px;
    }

.retry-button {
    margin-left: 12px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Page transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b99cf4, #7bb5cf);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    .page-transition.active {
        opacity: 1;
        pointer-events: all;
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wave {
    0%, 100% {
        height: 6px;
    }

    50% {
        height: 45px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 80px;
        text-align: center;
    }

        .hero-section::after {
            width: 400px;
            height: 400px;
            right: -50%;
        }

    .display-4 {
        font-size: 2.5rem;
        margin-bottom: 1rem !important;
    }

    .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem !important;
    }

    .cta-button {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 20px;
    }

    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    #features {
        padding: 80px 0;
    }

        #features h2 {
            margin-bottom: 3rem;
            font-size: 2rem;
        }

    .avatar-circle {
        width: 100px;
        height: 100px;
    }

    #statusIcon {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 2rem;
    }
}

/* Hover effects for interactive elements */
.btn, .cta-button, .feature-card {
    cursor: pointer;
}

    /* Focus states for accessibility */
    .cta-button:focus {
        outline: 3px solid rgba(59, 130, 246, 0.3);
        outline-offset: 2px;
    }

/* Smooth scrolling for navigation */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.delete -chat - btn {
    color: #dc3545;
    border - color: #dc3545;
}

    .delete -chat - btn:hover {
        background - color: #dc3545;
        color: white;
    }