:root {
    /* Color Palette - Cyber/Tech Fashion */
    --c-bg: #050a14;          /* Deep Cyber Blue */
    --c-surface: #0a1020;     /* Tech Navy */
    --c-surface-light: #151e32;
    
    --c-text: #e2e8f0;        /* Silver/Greyish text */
    --c-text-dim: #94a3b8;
    
    /* Neon Gold / Metallic Accents */
    --c-gold-light: #ffe5a3;
    --c-gold-main: #d4af37;
    --c-gold-dark: #b89121;
    --c-cyan: #0ea5e9;        /* Secondary tech accent */
    
    --g-gold: linear-gradient(135deg, var(--c-gold-light) 0%, var(--c-gold-main) 50%, var(--c-gold-dark) 100%);
    --g-gold-text: linear-gradient(to right, #ffe5a3, #d4af37 60%, #b89121);
    
    --c-border: rgba(212, 175, 55, 0.2); /* Gold border with transparency */
    --c-border-cyan: rgba(14, 165, 233, 0.2);
    
    /* Typography */
    --f-heading: 'Noto Sans TC', sans-serif; /* Modern, clean sans for tech */
    --f-en: 'Inter', sans-serif;
    --f-body: 'Noto Sans TC', sans-serif;
    
    /* Spacing */
    --s-xs: 0.5rem;
    --s-sm: 1rem;
    --s-md: 2rem;
    --s-lg: 4rem;
    --s-xl: 6rem;
    --s-xxl: 10vw;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--c-bg);
}

body {
    background-color: transparent; /* allow fixed canvas background to show */
    color: var(--c-text);
    font-family: var(--f-body);
    font-weight: 300;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Canvas & Effects */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    background: var(--c-bg);
    opacity: 0.8;
}

/* Base Glassmorphism Panels */
.blur-panel {
    background: rgba(5, 10, 20, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    color: #fff;
    line-height: 1.3;
    font-weight: 600;
}

.en, .en-sub, .scroll-down .text, .quote-icon {
    font-family: var(--f-en);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Text Utilities */
.highlight-gold {
    background: var(--g-gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--c-cyan);
    margin-bottom: var(--s-md);
    font-family: var(--f-en);
    text-transform: uppercase;
}

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

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

/* Blink Dot */
.dot-blink {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--c-cyan);
    border-radius: 50%;
    margin-left: 8px;
    box-shadow: 0 0 10px var(--c-cyan);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-sm);
    padding: 1.1rem 2.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--f-heading);
    font-weight: 500;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--c-gold-main);
    color: var(--c-bg);
}

.btn-primary:hover {
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    background: var(--c-gold-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(14, 165, 233, 0.05);
    color: var(--c-cyan);
    border: 1px solid var(--c-border-cyan);
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(14, 165, 233, 0.2);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.btn.lg {
    padding: 1.5rem 3.5rem;
    font-size: 1.1rem;
}

/* Hover Glitch Effect */
.hover-glitch {
    position: relative;
}

.hover-glitch::before, .hover-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.2s ease;
}

.hover-glitch::before { color: var(--c-cyan); z-index: -1; transform: translate(-2px, 2px); }
.hover-glitch::after { color: var(--c-gold-main); z-index: -2; transform: translate(2px, -2px); }

.hover-glitch:hover::before, .hover-glitch:hover::after {
    opacity: 0.8;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    font-family: var(--f-heading);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 0.15em;
    margin-bottom: var(--s-md);
    display: flex;
    gap: 15px;
    align-items: center;
    opacity: 0;
}

.loader-logo .en {
    color: var(--c-cyan);
    font-size: 1rem;
    font-weight: 400;
}

.loader-matrix {
    width: 250px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-matrix::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%; width: 50px;
    background: var(--g-gold);
    box-shadow: 0 0 10px var(--c-gold-main);
    animation: flow 1.5s infinite linear;
}

@keyframes flow {
    0% { transform: translateX(-50px); }
    100% { transform: translateX(300px); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--s-md) 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border-cyan);
}

.header-logo {
    font-family: var(--f-heading);
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
}

.header-logo .en-sub {
    font-size: 0.65rem;
    color: var(--c-gold-main);
    letter-spacing: 0.2em;
    border-left: 1px solid var(--c-border);
    padding-left: var(--s-sm);
}

.header-nav {
    display: flex;
    gap: var(--s-md);
    align-items: center;
}

.header-nav a:not(.btn) {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--c-text);
}

/* Mobile Menu Button - hidden by default */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.mobile-menu-btn span { width: 30px; height: 2px; background: var(--c-gold-main); }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: -5%;
    z-index: -2;
    opacity: 0.6;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2) contrast(1.1) hue-rotate(200deg);
}

/* Cyber grid overlay on image */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin-top: 5vh;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--c-border-cyan);
    color: var(--c-cyan);
    background: rgba(14, 165, 233, 0.05);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: var(--s-md);
    font-family: var(--f-en);
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    margin-bottom: var(--s-lg);
    line-height: 1.25;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 10px;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
}

.hero-cta {
    display: flex;
    gap: var(--s-md);
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: var(--s-lg);
    left: 5vw;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--c-cyan);
    transform: rotate(-90deg);
    transform-origin: left bottom;
}

.scroll-down .line-pulse {
    width: 40px;
    height: 1px;
    background: var(--c-cyan);
    animation: stretch 2s infinite ease-in-out;
}

/* Services */
.services {
    padding: var(--s-xxl) 0;
    position: relative;
}

.arrow-matrix-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--c-border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    z-index: -1;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xxl);
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin-bottom: var(--s-md);
}

.service-desc {
    font-size: 1.1rem;
    color: var(--c-text-dim);
    margin-bottom: var(--s-lg);
    max-width: 500px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
}

.service-list li {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
}

.digital-bullet {
    width: 0; 
    height: 0; 
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--c-gold-main);
    display: inline-block;
}

.service-visual .image-mask {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%); /* Cyberpunk chamfered corners */
}

.service-visual img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
}

.tech-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
    border: 1px solid var(--c-border-cyan);
    pointer-events: none;
}

.scan-line {
    width: 100%;
    height: 2px;
    background: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 15px var(--c-gold-main);
    position: absolute;
    top: 0;
    animation: scan 4s infinite linear;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Philosophy */
.philosophy {
    padding-top: var(--s-xxl);
}

.philosophy-content {
    margin-bottom: var(--s-xxl);
}

.philosophy-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: var(--s-xl);
}

.philosophy-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xl);
}

.philosophy-col p {
    margin-bottom: var(--s-md);
    font-size: 1.05rem;
    color: var(--c-text-dim);
    line-height: 2;
}

.quote-wrapper {
    position: relative;
    margin-top: var(--s-lg);
    border-left: 2px solid var(--c-cyan);
    padding-left: var(--s-md);
}

.quote-icon {
    font-size: 2rem;
    color: var(--c-cyan);
    opacity: 0.5;
    display: block;
    margin-bottom: var(--s-xs);
}

.large-quote {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    line-height: 1.6;
}

.philosophy-banner {
    width: 100%;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.philosophy-banner img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: brightness(0.5) hue-rotate(180deg) saturate(1.5);
}

.banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--c-bg), transparent 50%, var(--c-bg));
}

/* FAQ Section */
.faq-section {
    padding: var(--s-xxl) 0;
    border-top: 1px solid var(--c-border-cyan);
}

.faq-list {
    max-width: 800px;
    margin: var(--s-xl) auto 0;
}

.faq-item {
    border: 1px solid rgba(255,255,255,0.05);
    background: var(--c-surface);
    margin-bottom: var(--s-sm);
    padding: 0 var(--s-md);
    transition: border-color 0.3s;
}

.faq-item:hover, .faq-item.active {
    border-color: var(--c-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--s-md) 0;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

.faq-icon {
    width: 15px;
    height: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon .h-line, .faq-icon .v-line {
    position: absolute;
    background: var(--c-cyan);
    transition: all 0.3s;
}
.faq-icon .h-line { width: 100%; height: 2px; }
.faq-icon .v-line { width: 2px; height: 100%; }

.faq-item.active .v-line { transform: rotate(90deg); opacity: 0; }
.faq-item.active .h-line { background: var(--c-gold-main); }
.faq-item.active h3 { color: var(--c-gold-main); }

.faq-answer {
    height: 0;
    overflow: hidden;
    color: var(--c-text-dim);
    font-size: 1.05rem;
}

/* CTA */
.cta-banner {
    padding: var(--s-xxl) 0;
    position: relative;
    background: var(--c-surface-light);
    border-top: 1px solid var(--c-border);
}

.cta-banner h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    margin-bottom: var(--s-lg);
}

.relative-z {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    padding-top: var(--s-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--s-xl);
    padding-bottom: var(--s-lg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    margin-bottom: var(--s-sm);
}

.footer-desc {
    color: var(--c-text-dim);
    max-width: 400px;
    font-size: 0.95rem;
}

.footer-links-group {
    display: flex;
    gap: var(--s-xl);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.footer-links h4 {
    color: var(--c-cyan);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: var(--s-xs);
    font-family: var(--f-en);
}

.footer-links a {
    color: var(--c-text-dim);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--c-gold-main);
}

.footer-bottom {
    padding: var(--s-md) 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-family: var(--f-en);
}

/* Utils */
.delay-1 { transition-delay: 0.2s; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .service-grid, .philosophy-body, .footer-grid, .footer-links-group {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }
    .header-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--s-sm);
        text-align: center;
    }
}
