/* Dark Theme Modern Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Red Theme Color Palette */
    --bg-primary: #1a0a0a;
    --bg-secondary: #2d1414;
    --bg-tertiary: #321a1a;
    --bg-card: #2b1e1e;
    --bg-hover: #3d2525;
    
    --primary-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --secondary-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --accent-gradient: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    --dark-gradient: linear-gradient(135deg, #4b1a1a 0%, #7f1d1d 100%);
    
    --primary-color: #dc2626;
    --secondary-color: #ef4444;
    --accent-color: #f87171;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #4a2a2a;
    --border-light: #5a3a3a;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(220, 38, 38, 0.3);
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Dark Red Header with Glassmorphism */
.header {
    background: rgba(45, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-glow);
}

.navbar {
    padding: 1.25rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    position: relative;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.1);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.2);
}

.lang-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Dark Red Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--text-primary);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Dark Red Content Sections */
.content-section {
    padding: 4rem 0;
    position: relative;
    background: var(--bg-primary);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.content-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.3;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid;
    border-image: var(--primary-gradient) 1;
    letter-spacing: -0.5px;
}

.content-section h3 {
    font-size: clamp(1.35rem, 3vw, 1.875rem);
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    padding-left: 1rem;
}

.content-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--accent-gradient);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.content-section p {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    font-weight: 600;
}

.content-section a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--primary-color);
}

.content-section a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Dark Red Image Blocks */
.image-block {
    margin: 3rem 0;
    text-align: center;
    position: relative;
}

.image-block::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--primary-gradient);
    opacity: 0;
    border-radius: 16px;
    filter: blur(20px);
    transition: var(--transition-slow);
    z-index: -1;
}

.image-block:hover::before {
    opacity: 0.4;
}

.image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-height: 600px;
    object-fit: contain;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.image-block:hover img {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.4), var(--shadow-glow);
    border-color: var(--primary-color);
}

/* Dark Red FAQ Styles */
.faq-container {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--border-light);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-fast);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: var(--transition-normal);
    flex-shrink: 0;
    margin-left: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
}

.faq-answer.active {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Dark Red Internal Links Section */
.internal-links {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 5rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.internal-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.internal-links h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    position: relative;
    display: inline-block;
    width: 100%;
}

.internal-links h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.link-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    transition: var(--transition-normal);
    z-index: 0;
}

.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--primary-color);
}

.link-card:hover::before {
    left: 0;
}

.link-card span {
    position: relative;
    z-index: 1;
}

/* Dark Red Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-glow);
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Dark Red Block Styles */
.block-feature {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2.5rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.block-feature:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.block-highlight {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(244, 63, 94, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2.5rem 0;
    border-left: 5px solid;
    border-image: var(--secondary-gradient) 1;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.block-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

.block-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 5px solid;
    border-image: var(--accent-gradient) 1;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Dark Red Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .content-section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
        align-items: stretch;
    }

    .nav-menu a {
        text-align: center;
        padding: 1rem;
    }

    .nav-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .language-switcher {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .content-section h2 {
        font-size: 1.75rem;
        padding-left: 1rem;
        border-left-width: 3px;
    }

    .content-section h3 {
        font-size: 1.35rem;
    }

    .content-section p {
        font-size: 1rem;
        text-align: left;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .link-card {
        padding: 2rem;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .image-block img {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .image-block img {
        max-height: 300px;
        border-radius: 12px;
    }

    .block-feature,
    .block-highlight,
    .block-info {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .internal-links {
        padding: 3rem 0;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .internal-links {
        display: none;
    }
    
    .content-section {
        padding: 1rem 0;
        background: white;
        color: black;
    }
}
