:/* CSS Variables & Reset */
:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --primary-dark: #0f2a44;
    --accent: #e8a838;
    --accent-light: #f0c060;
    --bg-light: #f5f7fa;
    --bg-dark: #0d1b2a;
    --text-dark: #1a1a2e;
    --text-light: #f0f0f0;
    --glass-bg: rgba(255,255,255,0.15);
    --glass-border: rgba(255,255,255,0.3);
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-hover: 0 12px 48px rgba(0,0,0,0.2);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --max-width: 1200px;
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background 0.4s, color 0.4s;
    overflow-x: hidden;
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-light);
}

body.dark-mode .section-title,
body.dark-mode .card,
body.dark-mode .glass-card {
    color: var(--text-light);
}

body.dark-mode .card,
body.dark-mode .glass-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode nav {
    background: rgba(13,27,42,0.95);
}

body.dark-mode .nav-link {
    color: var(--text-light);
}

body.dark-mode footer {
    background: #0a1520;
}

body.dark-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(13,27,42,0.85), rgba(26,58,92,0.7));
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .section-subtitle {
    color: #aaa;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a2e;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(232,168,56,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #1a1a2e;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: background 0.4s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-logo svg {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary);
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--text-dark);
}

body.dark-mode .theme-toggle svg {
    fill: var(--text-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    fill: var(--text-dark);
}

body.dark-mode .menu-toggle svg {
    fill: var(--text-light);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
}

body.dark-mode .mobile-menu {
    background: rgba(13,27,42,0.98);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,58,92,0.88), rgba(15,42,68,0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
}

.hero-indicator.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Scroll animation base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

body.dark-mode .stat-number {
    color: var(--accent);
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
}

body.dark-mode .stat-label {
    color: #aaa;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 16px 0;
}

body.dark-mode .faq-item {
    border-color: rgba(255,255,255,0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 0;
    user-select: none;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 16px;
    color: #555;
}

body.dark-mode .faq-answer {
    color: #bbb;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 12px 16px 16px;
}

/* Team */
.team-card {
    text-align: center;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.team-role {
    color: #888;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Timeline / History */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

body.dark-mode .timeline-year {
    color: var(--accent);
}

/* Footer */
footer {
    background: #0f2a44;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #aaa;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Search modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-modal.open {
    display: flex;
}

.search-modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

body.dark-mode .search-modal-content {
    background: #1a2a3a;
    color: var(--text-light);
}

.search-modal input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1.1rem;
    outline: none;
    transition: border 0.3s;
}

.search-modal input:focus {
    border-color: var(--accent);
}

.search-results {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(0,0,0,0.05);
}

body.dark-mode .search-result-item:hover {
    background: rgba(255,255,255,0.05);
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb a {
    color: var(--primary-light);
}

.breadcrumb span {
    margin: 0 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .hero {
        min-height: 80vh;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .container {
        padding: 0 16px;
    }
}

/* Lazy load placeholder */
.lazy-placeholder {
    background: linear-gradient(135deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    min-height: 200px;
}

body.dark-mode .lazy-placeholder {
    background: linear-gradient(135deg, #2a3a4a 25%, #3a4a5a 50%, #2a3a4a 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Additional */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    min-height: 80px;
    font-weight: 600;
    color: #888;
    border: 1px solid rgba(0,0,0,0.05);
}

body.dark-mode .partner-logo {
    border-color: rgba(255,255,255,0.05);
    color: #aaa;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

body.dark-mode .testimonial-card {
    background: rgba(255,255,255,0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-role {
    color: #888;
    font-size: 0.9rem;
}

.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

body.dark-mode .news-card {
    background: rgba(255,255,255,0.05);
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
}

.news-card-date {
    font-size: 0.85rem;
    color: #888;
}

.news-card-title {
    font-weight: 700;
    margin: 8px 0;
    font-size: 1.1rem;
}

/* HowTo */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.howto-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: #1a1a2e;
}