/* style.css - 全部科技感樣式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=Noto+Sans+TC:wght@400;700;900&display=swap');

:root {
    --font-primary: 'Noto Sans TC', 'Inter', 'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', 'Helvetica Neue', sans-serif;
    --font-body: var(--font-primary);
    --font-heading: var(--font-primary);
}

body {
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    /* ?W?[?r?Z?A??????P */
    line-height: 1.65;
    /* ?W?[???A????\???A?? */
}

.heading-1 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.heading-2 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.body-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.caption {
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: #cbd5e1;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
    /* ?????????????????????????????*/
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    background: #0ea5e9;
    color: #0b1224;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    z-index: 9999;
    transition: left 0.2s ease, box-shadow 0.2s ease;
}

.skip-link:focus {
    left: 1rem;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

/* Active Nav Link - Neon Glow */
.nav-active {
    color: #00e0ff !important;
    text-shadow: 0 0 15px rgba(0, 224, 255, 0.9), 0 0 30px rgba(0, 224, 255, 0.5);
    position: relative;
    font-weight: 700;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00e0ff, #3b82f6);
    box-shadow: 0 0 15px #00e0ff, 0 0 25px rgba(0, 224, 255, 0.5);
    animation: navLine 0.3s ease-out forwards;
}

@keyframes navLine {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    pointer-events: none;
    opacity: 0;
    transform: translateY(-20px);
}

#mobile-menu:not(.hidden) {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(circle at top, #0a1128 0%, #000000 100%);
}

/* 手機最高 700px，電腦最高 800px，永遠不會再空一大塊 */
@media (max-height: 800px) {
    .hero-section {
        height: 70vh !important;
    }
}

@media (min-height: 801px) {
    .hero-section {
        height: 80vh !important;
    }
}

#header-push {
    height: 110px;
    /* 手機版 header 高度 */
}

@media (min-width: 768px) {
    #header-push {
        height: 150px;
    }

    /* 平板 */
}

@media (min-width: 1024px) {
    #header-push {
        height: 170px;
    }

    /* 電腦版，跟你 logo 大小完美匹配 */
}


/* 玻璃擬態 */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 霓虹文字 */
.gradient-text {
    background: linear-gradient(90deg, #00e0ff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon {
    text-shadow: 0 0 30px #00e0ff, 0 0 60px #00e0ff;
}

/* 漂浮動畫 */
.floating {
    will-change: transform;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-25px)
    }
}

/* Loading Screen Animations */
@keyframes spin-reverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.animate-spin-reverse {
    animation: spin-reverse 3s linear infinite;
}

/* 卡片懸浮特效 */
.card-hover {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 80px rgba(0, 224, 255, 0.35);
}

/* 群組發光外框（服務項目、產業應用常用） */
.group-relative {
    position: relative;
}

.group-relative .glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, #00e0ff, #3b82f6);
    border-radius: inherit;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.6s;
}

.group-relative:hover .glow {
    opacity: 0.8;
}

/* 發光陰影特效 */
.drop-shadow-glow-cyan {
    filter: drop-shadow(0 0 15px #00e0ff);
}

.drop-shadow-glow-cyan-intense {
    filter: drop-shadow(0 0 30px #00e0ff);
}

.drop-shadow-glow-purple {
    filter: drop-shadow(0 0 15px #a78bfa);
}

.drop-shadow-glow-purple-intense {
    filter: drop-shadow(0 0 30px #a78bfa);
}

.drop-shadow-glow-emerald {
    filter: drop-shadow(0 0 15px #34d399);
}

.drop-shadow-glow-emerald-intense {
    filter: drop-shadow(0 0 30px #34d399);
}

.drop-shadow-glow-yellow {
    filter: drop-shadow(0 0 15px #fbbf24);
}



.ia-card-left {
    min-height: 350px;
}

.ia-card-right {
    min-height: 350px;
}


/* 讓三個小數字框永遠等高、等寬、完美對齊 */
.fixed-benefit-box {
    @apply p-8 rounded-3xl bg-white/5 backdrop-blur-sm border border-white/10;
    height: 180px;
    /* 固定高度（可自行調整 160~200 都好看） */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直置中 */
    align-items: center;
    /* 水平置中 */
    transition: all 0.4s ease;
}

/* 滑鼠移上去更帥（可選） */
.fixed-benefit-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.2);
    border-color: #00e0ff;
}


/* 超帥圖標動畫 - 呼吸浮動 + 懸浮發光 */
.floating-pro {
    will-change: transform;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* 滑鼠移上去更誇張 */
.floating-pro:hover {
    animation-play-state: paused;
    filter: brightness(1.3) drop-shadow(0 0 30px currentColor);
}








.benefit-box-horizontal {
    @apply rounded-3xl bg-white/5 backdrop-blur-sm border border-white/10;
    padding: 2rem 1.5rem;
    height: 160px;
    /* 高度固定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.benefit-number {
    font-weight: 900;
    line-height: 1;
    /* 關鍵：用 text-balance + 自動縮小 */
    font-size: 4rem;
    /* 基礎大小 */
    font-size: clamp(2.5rem, 7vw, 4rem);
    /* 自動縮小，永遠 fit */
    white-space: nowrap;
}

.benefit-label {
    @apply mt-3 text-lg font-medium opacity-90;
}

/* 懸浮特效 */
.benefit-box-horizontal:hover {
    transform: translateY(-16px);
    box-shadow: 0 30px 60px rgba(0, 224, 255, 0.3);
    border-color: #00e0ff;
}

/* 導航欄樣式優化 - 確保英文也不會換行 */
nav .hidden.lg\:flex {
    gap: 1.5rem;
    /* 稍微縮小間距 */
}

nav .hidden.lg\:flex a:not(.gradient-text) {
    white-space: nowrap;
    font-size: 0.95rem;
    /* 稍微縮小以容納英文 */
    line-height: 1.2;
}

/* 在更大的螢幕上可以稍微放大 */
@media (min-width: 1280px) {
    nav .hidden.lg\:flex {
        gap: 1.75rem;
    }

    nav .hidden.lg\:flex a:not(.gradient-text) {
        font-size: 1rem;
    }
}

/* 在超大螢幕上恢復原始大小 */
@media (min-width: 1536px) {
    nav .hidden.lg\:flex {
        gap: 2rem;
    }

    nav .hidden.lg\:flex a:not(.gradient-text) {
        font-size: 1.125rem;
    }
}

/* 頂部導覽列隱藏樣式 */
nav.fixed {
    transition: transform 0.3s ease-in-out;
}

.nav-scrolled {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(0, 224, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.nav-hidden {
    transform: translateY(-100%);
}

/* 右側懸浮導覽列樣式 */
#right-nav .right-nav-active div {
    background-color: #00e0ff;
    border-color: #00e0ff;
    transform: scale(1.5);
    box-shadow: 0 0 15px #00e0ff, 0 0 30px rgba(0, 224, 255, 0.5);
}

#right-nav .right-nav-active span {
    opacity: 1;
    transform: translateX(0);
    color: #00e0ff;
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
    border-color: rgba(0, 224, 255, 0.5);
    background: rgba(0, 224, 255, 0.1);
}

.copy-max {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .copy-max {
        max-width: 78ch;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .floating,
    .floating-pro,
    .animate-spin,
    .animate-spin-reverse,
    .animate-ping {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }

    #loading-screen {
        transition: none !important;
    }
}
