/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a237e;
    --primary-purple: #4a148c;
    --primary-burgundy: #800020;
    --secondary-blue: #283593;
    --secondary-purple: #6a1b9a;
    --dark-bg: #0a0e27;
    --darker-bg: #050813;
    --card-bg: #121633;
    --text-light: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-gradient: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-burgundy));
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-glow: rgba(138, 43, 226, 0.3);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(26, 35, 126, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 20, 140, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(128, 0, 32, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--darker-bg);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.language-switcher {
    display: flex;
    gap: 1rem;
}

.lang-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.lang-link:hover {
    background: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--hover-glow);
}

.lang-link.active {
    background: var(--accent-gradient);
    border-color: transparent;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-image {
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.hero-text {
    max-width: 900px;
    margin: 2rem auto 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: left;
}

.hero-text p {
    margin-bottom: 1rem;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.content-section.alt-section {
    background: var(--card-bg);
    position: relative;
}

.content-section.alt-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-light);
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-align: justify;
}

.content-section a {
    color: #8a2be2;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-section a:hover {
    color: #ba55d3;
    border-bottom-color: #ba55d3;
}

.content-image {
    margin: 2rem 0;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

/* Comparison Table */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

table th {
    background: var(--accent-gradient);
    color: var(--text-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background: rgba(138, 43, 226, 0.1);
}

/* FAQ Section */
.faq-section {
    background: var(--card-bg);
    padding: 4rem 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.2);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-light);
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(138, 43, 226, 0.1);
}

.faq-question.active {
    background: rgba(138, 43, 226, 0.15);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-purple);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--darker-bg);
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .language-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .content-section p {
        text-align: left;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 0.75rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .language-switcher {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
}
