@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2332;
    --bg-card: rgba(17, 24, 39, 0.8);
    
    --neon-cyan: #00f5ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-orange: #f97316;
    --neon-green: #22c55e;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(0, 245, 255, 0.3);
    
    --shadow-glow: 0 0 20px rgba(0, 245, 255, 0.15);
    --shadow-purple: 0 0 20px rgba(168, 85, 247, 0.15);
    
    --gradient-cyber: linear-gradient(135deg, #00f5ff 0%, #a855f7 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e17 0%, #111827 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.navbar {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
    opacity: 0.5;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-logo {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gradient-cyber);
    padding: 3px;
    box-shadow: var(--shadow-glow);
    border: 2px solid rgba(0, 245, 255, 0.3);
    transition: all 0.3s ease;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.15); }
    50% { box-shadow: 0 0 30px rgba(0, 245, 255, 0.3); }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-cyber);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
}

.nav-link:hover {
    color: var(--neon-cyan);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-cyber);
    transition: width 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 4px;
}

.toggle-bar {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

main {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cyber);
}

main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0, 245, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 245, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.intro-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
}

.intro-section p {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.input-control-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.input-section {
    margin-bottom: 0;
    align-self: start;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.control-section {
    margin-bottom: 0;
    align-self: flex-start;
}

.input-header {
    margin-bottom: 25px;
}

.input-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.input-header h2 {
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-clear {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.btn-clear:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.2);
}

.text-stats {
    display: flex;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    min-width: 65px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-overlay {
    position: absolute;
    bottom: 15px;
    right: 20px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.input-hint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(10, 14, 23, 0.95);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.input-wrapper:has(textarea:not(:placeholder-shown)) .input-overlay,
.input-wrapper:has(textarea:focus) .input-overlay {
    opacity: 0;
    visibility: hidden;
}

#textInput {
    width: 100%;
    min-height: 280px;
    padding: 25px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1rem;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.4s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    position: relative;
}

#textInput::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

#textInput:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow), 0 0 40px rgba(0, 245, 255, 0.1);
    background: var(--bg-tertiary);
    transform: translateY(-3px);
}

#textInput:hover {
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.1);
}

.results-section {
    margin-top: 30px;
    position: relative;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.results-header h3 {
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

.results-summary {
    display: flex;
    gap: 25px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.summary-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.summary-value {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.results-container {
    display: grid;
    gap: 15px;
}

.result-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-cyber);
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.15);
    border-color: rgba(0, 245, 255, 0.3);
}

.result-content {
    position: relative;
    z-index: 1;
}

.result-summary-line {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.status-container {
    margin-top: 20px;
}

.status-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.status-icon {
    font-size: 1.1rem;
}

.control-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.control-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.control-header h3 {
    font-family: 'Orbitron', monospace;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

.control-badge {
    background: var(--gradient-cyber);
    color: var(--bg-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
}

.api-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 18px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.api-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.api-option {
    display: flex;
    align-items: center;
    padding: 18px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.api-option:hover {
    border-color: rgba(0, 245, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.1);
}

.api-option input:focus {
    outline: none;
}

.api-option input:checked + .api-icon {
    background: var(--gradient-cyber);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.api-option input:checked ~ .api-info .api-name {
    color: var(--neon-cyan);
}

.api-option input:checked {
    border-color: var(--neon-cyan);
}

.api-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 16px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.api-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.api-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
}

.api-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.api-option input {
    margin-right: 16px;
    width: 20px;
    height: 20px;
    accent-color: var(--neon-cyan);
    cursor: pointer;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-cyber);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 1.1rem;
}

.control-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 245, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--neon-cyan);
}

.tip-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.tip-item span:last-child {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.qa-section {
    margin-top: 60px;
    padding: 50px 0;
    position: relative;
}

.qa-container {
    max-width: 1000px;
    margin: 0 auto;
}

.qa-header {
    text-align: center;
    margin-bottom: 50px;
}

.qa-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.qa-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.qa-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.qa-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.qa-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-cyber);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.category-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 1px;
}

.category-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.qa-article {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 25px;
    transition: all 0.3s ease;
}

.qa-article:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateX(5px);
}

.qa-article h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.article-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content ul {
    list-style: none;
    padding-left: 0;
}

.article-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.article-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: bold;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 6px;
    background: var(--neon-cyan);
    color: var(--bg-primary);
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-cyber);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-container {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 18px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.progress-text {
    font-weight: 600;
    color: var(--neon-cyan);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@media (max-width: 1024px) {
    .input-control-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .control-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    main {
        padding: 25px;
        border-radius: 16px;
    }
    
    .intro-section p {
        font-size: 1.1rem;
    }
    
    .input-header h2 {
        font-size: 1.3rem;
    }
    
    .text-stats {
        flex-wrap: wrap;
    }
    
    .qa-category {
        padding: 25px;
    }
    
    .category-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar-container {
        height: 70px;
    }
    
    .brand-logo {
        width: 38px;
        height: 38px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
    }
    
    main {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    .input-actions {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-cyber);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0, 245, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 245, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-links {
    margin-bottom: 40px;
}

.footer-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-cyber);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

.footer-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.footer-link-text {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-link-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-cyber);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.footer-link-text:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.15);
}

.footer-link-text:hover::before {
    transform: scaleY(1);
}

.footer-link-text:active {
    transform: translateY(-1px);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-copyright p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-cyber);
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-links-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer-link-text {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 20px;
        margin-top: 30px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-links {
        margin-bottom: 30px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .footer-copyright {
        padding-top: 25px;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
}
