:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --accent: #2DD4BF;
    --accent-dark: #14B8A6;
    --bg-dark: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-white: #F8FAFC;
    --text-gray: #94A3B8;
    --white: #FFFFFF;
    --gray-100: #F1F5F9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility Classes */
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.w-100 { width: 100%; }
.text-muted { color: var(--text-gray); }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mr-3 { margin-right: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Navbar Specific Fixes */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-btns { flex-direction: column; gap: 1rem; }
}

/* Layout Utilities */
.section { padding: 80px 0; }
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 212, 191, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Navbar */
.navbar {
    height: 80px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.logo-accent {
    color: var(--accent);
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Lang Selector */
.lang-selector { position: relative; }
.btn-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    min-width: 120px;
    padding: 8px;
    margin-top: 5px;
}

.dropdown-menu.active { display: flex; }

.dropdown-menu button {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 8px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-menu button:hover { background: var(--primary); }

/* Hero */
.hero {
    background: radial-gradient(circle at 100% 0%, #1e1b4b 0%, #0f172a 100%);
    padding: 120px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content { flex: 1; }
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero-content .lead {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Stats */
.stats {
    background: var(--bg-dark);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; color: var(--accent); font-weight: 800; }
.stat-label { color: var(--text-gray); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Features */
.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.feature-card p { color: #64748b; font-size: 0.95rem; }

/* Logo Wall */
.logo-wall {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    opacity: 0.6;
}

.logo-wall i:hover { color: var(--primary); opacity: 1; }

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #4c1d95 100%);
    color: var(--white);
    padding: 100px 0;
}

.cta-banner h2 { font-size: 2.5rem; margin-bottom: 1rem; }

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
    color: var(--white);
}

.footer h5 { margin-bottom: 20px; font-size: 1.1rem; color: var(--accent); }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: var(--text-gray); text-decoration: none; transition: var(--transition); }
.footer ul li a:hover { color: var(--white); }

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    opacity: 0.7;
    transition: var(--transition);
}

.social-links a:hover { opacity: 1; color: var(--accent); }

@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
}
