:root {
    --primary-color: #8E44AD;
    /* Deep Purple - Creativity/Wisdom */
    --secondary-color: #2980B9;
    /* Blue - Tech/Professionalism */
    --accent-color: #F39C12;
    /* Orange - Energy/Innovation */
    --text-color: #333;
    --light-text: #f4f4f4;
    --bg-color: #ffffff;
    --section-bg: #f9f9f9;
    --font-main: 'Noto Sans TC', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #732d91;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.8), rgba(142, 68, 173, 0.8)), url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 60px;
    /* Offset for fixed nav */
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Fallback if image not loaded yet */
.hero {
    background-color: #2c3e50;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-slogan {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-subtext {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    background-color: white;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Mission Section */
.mission-section {
    background-color: var(--section-bg);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mission-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(142, 68, 173, 0.1);
    position: absolute;
    top: -10px;
    right: 10px;
}

.mission-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Values Section */
.values-section {
    background-color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-item {
    padding: 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
}

.value-item:hover {
    background: var(--section-bg);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services-section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.services-list li {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.services-list li:hover {
    transform: scale(1.05);
    color: var(--primary-color);
}

.service-icon {
    font-size: 1.5rem;
}

/* Market Positioning */
.market-section {
    background-color: white;
}

.market-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.market-block {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
}

.market-block.full-width {
    grid-column: 1 / -1;
    border-left-color: var(--accent-color);
}

.strengths-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.strengths-list li {
    position: relative;
    padding-left: 1.5rem;
}

.strengths-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Team Section */
.team-section {
    background-color: var(--section-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 1.5rem;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #ddd;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
}

.team-role {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.team-info p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    background-color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 80px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hero-slogan {
        font-size: 2.5rem;
    }

    .contact-wrapper,
    .market-content {
        grid-template-columns: 1fr;
    }
}