/* Shared Variables & Reset (Consistent with index.html) */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #6366f1;
    --accent: #06b6d4;
    --dark-bg: #0f172a;
    --section-bg: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.6);
    --text-light: #f8fafc;
    --text-dim: #cbd5e1;
    --text-gray: #94a3b8;
    --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --glass: rgba(15, 23, 42, 0.85);
    /* Slightly more opaque for content focus */
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul,
ol {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--gradient-main);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 6px;
    transform: rotate(45deg);
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
}

nav a:hover,
nav a.active {
    color: var(--text-light);
}

/* Page Hero */
.page-hero {
    padding: 180px 0 80px;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1), transparent 40%);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}

/* Intro Section */
.intro-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.1rem;
    color: var(--text-dim);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
}

/* Mission & Vision */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

.mv-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-main);
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Core Values */
.values-section {
    background: var(--section-bg);
    padding: 6rem 0;
    margin-bottom: 6rem;
    border-radius: 30px;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.value-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.value-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 8rem;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

/* Clear floats/flex issues if any */
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    width: 45%;
    text-align: right;
    padding-right: 3rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.timeline-content {
    width: 45%;
    padding-left: 3rem;
    color: var(--text-dim);
    font-size: 1.1rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--dark-bg);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--primary);
}

/* Alternate timeline positions */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    padding-left: 0;
    padding-right: 3rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

figure.team-member {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: 0.3s;
}

.team-member:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

figcaption {
    padding: 1.5rem;
}

figcaption h4 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

figcaption span {
    color: var(--primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

figcaption p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Industries */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.industry-tag {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    color: var(--text-dim);
    transition: 0.3s;
}

.industry-tag:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    border-color: var(--primary);
}

/* Footer (Same as index) */
footer {
    background: #020617;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-list li {
    margin-bottom: 1rem;
    color: var(--text-gray);
    display: flex;
    gap: 10px;
}

.copyright {
    text-align: center;
    color: #475569;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline Mobile Fix */
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
        border-left: 2px solid transparent;
        /* spacing holder */
        margin-bottom: 2.5rem;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        width: 100%;
        text-align: left;
        padding-left: 2rem;
        padding-right: 0;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        text-align: left;
        padding-left: 2rem;
        padding-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}