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

:root {
    --bg: #f8f9fa;
    --text: #1a1a2e;
    --primary: #1a1a2e;
    --accent: #f0c040;
    --accent2: #e6b800;
    --card: #ffffff;
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --glass: rgba(255,255,255,0.7);
    --radius: 20px;
    --transition: 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dark {
    --bg: #0f0f1a;
    --text: #e0e0e0;
    --primary: #1a1a2e;
    --accent: #f0c040;
    --accent2: #d4a800;
    --card: #1e1e32;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --glass: rgba(30,30,50,0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
}

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

/* === Header & Navigation === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background var(--transition);
}

.dark header {
    background: rgba(15,15,26,0.85);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
}

/* === Hero Banner === */
.hero {
    position: relative;
    margin-top: 70px;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-slides {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.8s ease;
}

.hero-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(240,192,64,0.08), transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #1a1a2e;
    box-shadow: 0 8px 30px rgba(240,192,64,0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(240,192,64,0.5);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(240,192,64,0.1);
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dots button.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* === Sections Common === */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text);
    opacity: 0.8;
    font-size: 1.1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

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

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

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(240,192,64,0.15), rgba(240,192,64,0.05));
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === About / Story === */
.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    opacity: 0.85;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3rem;
    font-weight: 800;
}

/* === Data === */
.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.data-item .number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.2;
}

.data-item .label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 8px;
}

/* === Team === */
.team-card {
    text-align: center;
    padding: 32px 20px;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent), #e6b800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* === Testimonials === */
.testimonial-card {
    padding: 32px 28px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1a2e;
}

/* === News === */
.news-card .date {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    opacity: 0.75;
}

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

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

.faq-question .icon {
    font-size: 1.4rem;
    transition: transform 0.3s;
    color: var(--accent);
}

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

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

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

/* === Contact === */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.contact-info svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* === Footer === */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    margin-top: 0;
}

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

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

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

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

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

/* === Back to Top === */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #1a1a2e;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(240,192,64,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    z-index: 999;
}

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

.back-top:hover {
    transform: translateY(-4px);
}

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

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

/* === Search Overlay === */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-box {
    background: var(--card);
    padding: 32px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.search-box input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    font-size: 1.1rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.search-box .close-search {
    display: block;
    margin-top: 16px;
    text-align: right;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
}

/* === Lazy Image Placeholder === */
.lazy-img {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    min-height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2rem;
}

/* === 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 {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px 32px;
        gap: 16px;
        transform: translateY(-120%);
        transition: transform 0.4s;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.open {
        transform: translateY(0);
    }
    .menu-toggle {
        display: block;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .hero {
        min-height: 70vh;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    section {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .data-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}