/* =====================================================
   AI Voice Assistant - Glass Theme Stylesheet
   Modern Glassmorphism Design (Blue/Teal/Cyan Theme)
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #00ffcc;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #00ffcc 100%);
    --gradient-2: linear-gradient(135deg, #0099cc 0%, #00d4ff 100%);
    --gradient-3: linear-gradient(135deg, #001a33 0%, #003366 50%, #004d66 100%);
    --font-primary: 'Poppins', sans-serif;
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 153, 204, 0.1) 0%, transparent 50%),
        var(--darker-bg);
    z-index: -1;
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Glass Effect Base Class */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.glass-card-inner {
    background: rgba(0, 20, 40, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* =====================================================
   Hero Section - Advanced Design
   ===================================================== */
.hero-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 255, 204, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 212, 255, 0.5), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 204, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(0, 212, 255, 0.4), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(0, 255, 204, 0.5), transparent);
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.hero-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    padding: 1rem 1.5rem;
    text-align: center;
    position: relative;
}

.hero-title {
    margin-bottom: 0.5rem;
}

.title-line {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
}

.title-line.gradient-text {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Old hero-stats - keeping for backward compatibility */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* =====================================================
   Stats Section - Separate Section Below Hero
   ===================================================== */
.stats-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.stats-container .stat-item {
    padding: 1rem;
    position: relative;
}

.stats-container .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--glass-border);
}

.stats-container .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stats-container .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-container .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .stats-container .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr 1fr;
        padding: 1.5rem 1rem;
    }
    
    .stats-container .stat-item::after {
        display: none;
    }
    
    .stats-container .stat-number {
        font-size: 1.6rem;
    }
    
    .stats-container .stat-label {
        font-size: 0.8rem;
    }
}

/* End Stats Section */

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.cta-btn.primary {
    background: var(--gradient-1);
    color: var(--dark-bg);
    border: none;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.cta-btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* =====================================================
   Voice Assistant Interface
   ===================================================== */
.voice-assistant-container {
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
}

.assistant-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
}

.avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-1);
    padding: 4px;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.8); }
}

.avatar-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.avatar-core.listening {
    color: var(--accent-color);
    animation: corePulse 0.5s ease-in-out infinite;
}

.avatar-core.speaking {
    color: #ff6b6b;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Sound Waves Animation */
.sound-waves {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sound-waves.active {
    opacity: 1;
}

.sound-waves span {
    width: 4px;
    height: 20px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: soundWave 0.5s ease-in-out infinite;
}

.sound-waves span:nth-child(1) { animation-delay: 0s; }
.sound-waves span:nth-child(2) { animation-delay: 0.1s; }
.sound-waves span:nth-child(3) { animation-delay: 0.2s; }
.sound-waves span:nth-child(4) { animation-delay: 0.1s; }
.sound-waves span:nth-child(5) { animation-delay: 0s; }

@keyframes soundWave {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

/* Status Display */
.status-display {
    margin-bottom: 0.75rem;
}

#statusText {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.language-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 1rem;
    background: var(--gradient-1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dark-bg);
    font-weight: 600;
}

/* Control Buttons */
.controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    background: var(--gradient-1);
    color: var(--dark-bg);
    border-color: transparent;
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn.active {
    background: var(--gradient-1);
    color: var(--dark-bg);
    animation: btnPulse 1s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(0, 212, 255, 0); }
}

/* Chat Container */
.chat-container {
    max-height: 250px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 150px;
}

.message {
    display: flex;
    gap: 10px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--gradient-2);
}

.message-content {
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 12px;
    max-width: 80%;
}

.message-content p {
    margin: 0;
    word-break: break-word;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Chat Input */
.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-1);
    color: var(--dark-bg);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* =====================================================
   Tools Section - Advanced Cards
   ===================================================== */
.tools-section {
    padding: 4rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
}

.tool-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

.tool-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
}

.tool-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-card:hover .tool-glow {
    opacity: 1;
}

.tool-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--dark-bg);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.3s ease;
    z-index: -1;
}

.tool-btn:hover::before {
    left: 0;
}

.tool-btn:hover {
    color: var(--dark-bg);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.tool-btn i {
    transition: transform 0.3s ease;
}

.tool-btn:hover i {
    transform: translateX(4px);
}
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Remove duplicate section-subtitle - now in tools section */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
}

/* Tool card styles now in advanced section above */

/* Tool Modal - Keep for fallback */
.tool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.tool-modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.modal-body {
    padding: 1.5rem;
}

#toolInput {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: var(--transition);
    margin-bottom: 1rem;
}

#toolInput:focus {
    border-color: var(--primary-color);
}

.process-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--gradient-1);
    color: var(--dark-bg);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.process-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-height: 100px;
    white-space: pre-wrap;
    word-break: break-word;
    display: none;
}

.tool-result.active {
    display: block;
}

/* =====================================================
   Features Section
   ===================================================== */
.features-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
}

.feature-card i {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* =====================================================
   FAQ Section
   ===================================================== */
.faq-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

/* =====================================================
   Ad Containers
   ===================================================== */
.ad-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.ad-placeholder {
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top {
    margin-top: 70px;
    margin-bottom: 0;
}

/* =====================================================
   Footer
   ===================================================== */
.glass-footer {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-1);
    color: var(--dark-bg);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .title-line {
        font-size: 2.5rem;
    }
    
    .title-line.gradient-text {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 26, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        padding: 1rem 0.75rem 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .title-line {
        font-size: 2rem;
    }
    
    .title-line.gradient-text {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .tools-section {
        padding: 2rem 0.75rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .tool-icon-wrap {
        width: 75px;
        height: 75px;
        margin-bottom: 1rem;
    }
    
    .tool-icon {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .assistant-avatar {
        width: 120px;
        height: 120px;
    }

    .avatar-core {
        font-size: 2.5rem;
    }
    
    .ad-container {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }
    
    .ad-top {
        margin-top: 70px;
    }
    
    .features-section {
        padding: 2rem 0.75rem;
    }
    
    .faq-section {
        padding: 2rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .title-line {
        font-size: 1.6rem;
    }
    
    .title-line.gradient-text {
        font-size: 1.9rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-divider {
        height: 30px;
    }

    .chat-input {
        font-size: 0.9rem;
    }
    
    .tool-card h3 {
        font-size: 1.15rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
}

/* =====================================================
   Utility Classes
   ===================================================== */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}
