/* Chinese Website Translator - Dark Futuristic Styles */
/* Created by Thiago de Maria */

:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-bg: #16213e;
    --primary-text: #e0e6ed;
    --secondary-text: #b0b8c1;
    --accent-text: #606070;
    --primary-accent: #00d4ff;
    --secondary-accent: #ff0096;
    --success-color: #00ff88;
    --warning-color: #ffd93d;
    --error-color: #ff6b6b;
    --border-color: #404055;
    --glow-color: rgba(0, 212, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #00d4ff, #0099cc);
    --gradient-secondary: linear-gradient(135deg, #ff0096, #cc0077);
    --gradient-bg: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    background: var(--gradient-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(-100px) rotate(180deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--glow-color);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-accent);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-accent);
    background: rgba(0, 212, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--glow-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px var(--glow-color);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-color);
}

.cta-button.secondary:hover {
    background: var(--primary-accent);
    color: white;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.translation-demo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.demo-card {
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 280px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.demo-card:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 4px 20px var(--glow-color);
}

.demo-card.chinese {
    border-color: var(--secondary-accent);
}

.card-header {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    font-size: 1.1rem;
    color: var(--primary-text);
    font-weight: 500;
}

.translation-arrow {
    font-size: 2rem;
    color: var(--primary-accent);
    animation: pulse 2s infinite;
}

/* Translator Section */
.translator-section {
    padding: 6rem 0;
    background: rgba(26, 31, 46, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-accent);
    text-shadow: 0 0 20px var(--glow-color);
}

.translator-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.input-panel,
.output-panel {
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.language-label {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.language-select {
    background: rgba(64, 64, 85, 0.5);
    border: 1px solid var(--border-color);
    color: var(--primary-text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 10px var(--glow-color);
}

.text-input {
    width: 100%;
    height: 200px;
    background: rgba(64, 64, 85, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--primary-text);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 15px var(--glow-color);
}

.text-input::placeholder {
    color: var(--accent-text);
}

.text-output {
    min-height: 200px;
    background: rgba(64, 64, 85, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--primary-text);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.input-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.translate-button {
    flex: 1;
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.translate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-color);
}

.translate-button.loading {
    pointer-events: none;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.clear-button {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--secondary-text);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-button:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.copy-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.translation-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-text);
}

.demo-texts {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.demo-label {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-text-btn {
    display: block;
    width: 100%;
    background: rgba(64, 64, 85, 0.3);
    border: 1px solid var(--border-color);
    color: var(--primary-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.demo-text-btn:hover {
    border-color: var(--primary-accent);
    background: rgba(0, 212, 255, 0.1);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 8px 30px var(--glow-color);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: rgba(26, 31, 46, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
}

.about-text.animate-in {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.about-text p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-stack {
    margin-top: 2rem;
}

.tech-stack h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.code-preview {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.code-header {
    background: rgba(64, 64, 85, 0.5);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-text);
}

.code-dots span:nth-child(1) { background: var(--error-color); }
.code-dots span:nth-child(2) { background: var(--warning-color); }
.code-dots span:nth-child(3) { background: var(--success-color); }

.code-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.keyword { color: #ff79c6; }
.function { color: #50fa7b; }
.param { color: #ffb86c; }
.variable { color: #8be9fd; }
.property { color: #bd93f9; }

/* Credits Section */
.credits-section {
    padding: 6rem 0;
}

.credits-content {
    max-width: 800px;
    margin: 0 auto;
}

.creator-card {
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
}

.creator-card.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.creator-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 8px 30px var(--glow-color);
}

.creator-name {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
}

.creator-title {
    color: var(--secondary-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creator-description {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.creator-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(64, 64, 85, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-link:hover {
    border-color: var(--primary-accent);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.social-link.github:hover { border-color: #333; background: rgba(51, 51, 51, 0.2); }
.social-link.linkedin:hover { border-color: #0077b5; background: rgba(0, 119, 181, 0.2); }
.social-link.huggingface:hover { border-color: #ff9d00; background: rgba(255, 157, 0, 0.2); }

.link-icon {
    font-size: 1.2rem;
}

.acknowledgments {
    text-align: center;
}

.acknowledgments h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.acknowledgments p {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tech-credits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-credits span {
    background: rgba(64, 64, 85, 0.3);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* Footer */
.footer {
    background: rgba(10, 10, 15, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-accent);
}

.footer-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--accent-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .translator-interface {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .creator-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .input-panel,
    .output-panel {
        padding: 1.5rem;
    }
    
    .creator-card {
        padding: 2rem;
    }
    
    .creator-name {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-accent);
}

