:root {
    --bg-dark: #0a0a0c;
    --bg-graphite: #141418;
    --text-main: #f0f0f5;
    --text-muted: #8e8e9f;
    --neon-cyan: #00f0ff;
    --neon-blue: #0066ff;
    --neon-purple: #9d00ff;
    --glass-bg: rgba(20, 20, 24, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Grid Background */
.css-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.15), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--text-main), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    margin-left: 1.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-btn:hover {
    color: var(--neon-cyan);
}

/* General Layout */
main {
    padding-top: 100px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: text-shadow 0.3s;
}

a:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: rgba(0, 102, 255, 0.1);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-primary:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Architecture Shapes */
.abstract-shape {
    position: absolute;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 240, 255, 0.02);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.shape-1 {
    width: 200px;
    height: 200px;
    transform: rotateX(60deg) rotateZ(45deg);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 250px;
    border-color: var(--neon-blue);
    transform: rotateX(50deg) rotateZ(-30deg) translateZ(50px);
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    border-color: var(--neon-purple);
    transform: rotateX(70deg) rotateZ(15deg) translateZ(100px);
    animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(60deg) rotateZ(45deg); }
    50% { transform: translateY(-20px) rotateX(65deg) rotateZ(50deg); }
}

/* Cards (Glassmorphism) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

/* What We Build (Grid) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.glass-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.en-sub {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-card p:not(.en-sub) {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Technology Showcase (Dynamic Tiles) */
.feature-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tile {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20,20,24,0.8), rgba(10,10,12,0.9));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tile:hover::before {
    transform: translateX(100%);
}

.tile:hover {
    border-color: var(--neon-purple);
}

.tile-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.tile-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Company Card */
.company-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.company-card h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.company-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 8rem 2rem;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations (Classes to be triggered by JS) */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
    transform: translateY(20px);
}

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

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
    }

    .hero-visual {
        margin-top: 3rem;
        height: 300px;
    }

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

    .feature-tiles {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        display: none; /* simple mobile handling for nav */
    }

    .info-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}