/* Dark Theme Variables */
:root {
    --primary-color: #181a20;
    --secondary-color: #23272f;
    --logo-red: #2a0a0e;
    --logo-green: #0a1f17;
    --accent-color: #0bb276;
    --highlight-color: #ff555c;
    --text-primary: #eaeaea;
    --text-secondary: #b0b3b8;
    --text-light: #f5f5f5;
    --bg-primary: #181a20;
    --bg-section: #23272f;
    --border-color: #23272f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-light);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

/* Navigation */
.navbar {
    background: var(--secondary-color);
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    width: auto;
    color: var(--accent-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 28px;
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--highlight-color) !important;
}

/* Language Switcher */
.dropdown-toggle::after {
    margin-left: 0.5em;
}

.dropdown-menu {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--accent-color);
    color: #fff;
}

.dropdown-item:focus {
    background: var(--accent-color);
    color: #fff;
}

#currentLangText {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--logo-red) 0%, var(--logo-green) 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-light);
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.5;
}

.hero-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
}

.hero-form input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    background: var(--secondary-color);
    border-radius: 12px;
    outline: none;
    color: var(--text-light);
}

.hero-form input::placeholder {
    color: var(--text-secondary);
}

.hero-form button {
    background: var(--highlight-color);
    color: #fff;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(11,178,118,0.12);
}

.hero-form button:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--bg-section);
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    text-align: left;
    padding: 0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--logo-green);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--bg-primary);
    color: var(--text-light);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--bg-section);
    text-align: center;
    color: var(--text-light);
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 480px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--bg-section);
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.footer-note {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--accent-color);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-form {
        flex-direction: column;
        gap: 8px;
    }
    .hero-form button {
        padding: 18px 28px;
    }
    .cta-title {
        font-size: 2.2rem;
    }
    .features-grid {
        gap: 32px;
    }
    .stats-grid {
        gap: 24px;
    }
}

/* Alert styles */
.alert-message {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
