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

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --gold: #f0c040;
    --gold-light: #f5d76e;
    --text: #e0e0e0;
    --text-dark: #1a1a2e;
    --bg-card: rgba(255,255,255,0.08);
    --glass: rgba(255,255,255,0.12);
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.3s ease;
}

body.dark-mode {
    --primary: #121212;
    --secondary: #1e1e1e;
    --accent: #2a2a2a;
    --gold: #d4a017;
    --gold-light: #e6b800;
    --text: #cccccc;
    --bg-card: rgba(255,255,255,0.05);
    --glass: rgba(255,255,255,0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

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

a:hover {
    color: var(--gold-light);
}

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

/* ===== Header & Nav ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26,26,46,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(240,192,64,0.15);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

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

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--text);
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
}

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

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

nav a:hover {
    color: var(--gold);
}

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

.search-btn,
.dark-toggle,
.menu-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover,
.dark-toggle:hover,
.menu-toggle:hover {
    background: var(--glass);
    color: var(--gold);
}

.menu-toggle {
    display: none;
}

/* ===== Mobile Nav ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26,26,46,0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    border-bottom: 1px solid rgba(240,192,64,0.2);
}

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

.mobile-nav a {
    color: var(--text);
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 100px 20px 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

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

.breadcrumb span {
    color: rgba(255,255,255,0.4);
}

/* ===== Banner ===== */
.banner {
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    overflow: hidden;
}

.banner-slide {
    display: none;
    animation: fadeSlide 0.8s ease;
}

.banner-slide.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    font-weight: 800;
}

.banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.8);
}

.banner .btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(240,192,64,0.3);
}

.banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240,192,64,0.5);
}

.banner-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.banner-nav button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.banner-nav button.active {
    background: var(--gold);
}

/* ===== Section Common ===== */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--gold);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
    border-radius: 3px;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(240,192,64,0.2);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ===== About ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.85);
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--primary);
}

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

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

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

.team-card svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* ===== Products ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.product-card svg {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

/* ===== Partners ===== */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ===== Testimonials ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    font-style: italic;
}

.testimonial-card .author {
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
}

/* ===== Articles ===== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    display: flex;
    flex-direction: column;
}

.article-card .date {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.article-card p {
    flex: 1;
    color: rgba(255,255,255,0.75);
    margin-bottom: 15px;
}

.article-card .read-more {
    align-self: flex-start;
    color: var(--gold);
    font-weight: 600;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(240,192,64,0.05);
}

.faq-question .icon {
    transition: var(--transition);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
    color: rgba(255,255,255,0.8);
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

/* ===== HowTo ===== */
.howto-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.06);
}

.howto-section h3 {
    color: var(--gold);
    margin: 25px 0 15px;
}

.howto-section ul,
.howto-section ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.howto-section li {
    margin-bottom: 8px;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info strong {
    color: var(--gold);
}

.map-placeholder {
    background: var(--bg-card);
    border-radius: var(--radius);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ===== Footer ===== */
footer {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(240,192,64,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col a,
.footer-col p {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: var(--gold);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--text-dark);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(240,192,64,0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(240,192,64,0.5);
}

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

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

.search-modal-content {
    background: var(--secondary);
    padding: 40px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(240,192,64,0.2);
}

.search-modal input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

.search-modal input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-modal .close-search {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: var(--gold);
    cursor: pointer;
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Counter ===== */
.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
}

/* ===== Dark Mode Override ===== */
body.dark-mode header {
    background: rgba(18,18,18,0.9);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .banner h1 {
        font-size: 2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.6rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}