/* ===== CSS Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8f9fc;
    color: #1a1a2e;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ===== Glassmorphism ===== */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.dark .glass {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Card ===== */
.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark .card {
    background: #1a1a2e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ===== Button ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ===== Hero Banner ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.15), transparent 60%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* ===== Navigation ===== */
nav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dark nav {
    background: rgba(15, 15, 26, 0.95);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: #eee;
    font-weight: 500;
    transition: color 0.3s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.95rem;
    color: #666;
}

.dark .breadcrumb {
    color: #aaa;
}

.breadcrumb span {
    margin: 0 6px;
}

/* ===== Section ===== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 12px auto 0;
    border-radius: 4px;
}

/* ===== Grid ===== */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

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

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 12px;
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* ===== Carousel ===== */
.carousel {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 40px 20px;
}

/* ===== Stat Number ===== */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
    cursor: pointer;
}

.dark .faq-item {
    border-color: #333;
}

.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-top: 12px;
}

/* ===== Friend Links ===== */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.friend-links a {
    padding: 6px 18px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.friend-links a:hover {
    background: rgba(102, 126, 234, 0.25);
}

/* ===== Footer ===== */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.dark footer {
    background: #0a0a12;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.footer-grid a {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-grid a:hover {
    color: #ffd700;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 30px;
    font-size: 0.85rem;
}

/* ===== Back to Top ===== */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    border: none;
    z-index: 999;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== Dark Toggle ===== */
.dark-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Search Box ===== */
.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.search-box button {
    padding: 8px 18px;
    border-radius: 30px;
    border: none;
    background: #ffd700;
    color: #1a1a2e;
    cursor: pointer;
}

/* ===== Scroll Animation ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SVG Placeholder ===== */
.svg-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea22, #764ba222);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #888;
}