@charset "utf-8";

/* CSS Document */
:root {
    --bg-dark: #080b18;
    --bg-card: rgba(13, 22, 45, 0.7);
    --border-cyan: #00d2ff;
    --accent-blue: #0052d4;
    --neon-cyan: #00f2fe;
    --text-gray: #a0aec0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #010816;
    color: #ffffff;
    font-family: 'Noto Sans TC', sans-serif;
    overflow-x: hidden;
    background-image: url(../images/main-banner.jpg);
    background-repeat: no-repeat;
    background-position: center 3.5rem;
    background-size: contain;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;

    /* 用 overflow-x: clip 替代 overflow-x: hidden，防止手機 fixed 定位被滾動拉扯 */
    overflow-x: clip !important;
}

/* 導覽列 */
.navbar {
    background-color: rgba(8, 11, 24, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);

    /* 關鍵：強制鎖定在最頂端，禁止任何偏移 */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;

    /* 避免受到任何 CSS transform 動畫影響 */
    z-index: 1030 !important;

    /* 確保層級永遠在最上方 */
}

#mainNavbar,
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;

    /* 關鍵：強制啟用 3D 硬體加速，讓導覽列獨立於滾動層之外 */
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;

    /* 確保支援全螢幕手機頂部安全區域 (劉海屏/挖孔屏) */
    padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
    z-index: 9999 !important;
}

.navbar-brand .logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: #e2e8f0 !important;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan) !important;
}

/* 按鈕樣式 */
.btn-gradient-primary {
    background: linear-gradient(135deg, #0052d4 0%, #4364f7 50%, #6fb1fc 100%);
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(0, 114, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 114, 255, 0.7);
}

.btn-gradient-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #3a7bd5;
    backdrop-filter: blur(5px);
}

.btn-gradient-outline:hover {
    background: rgba(58, 123, 213, 0.2);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

/* 區塊標題外觀 */
.section-title-badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(135deg, #00f3ff, #a100ff) 1;
    text-shadow: 0 0 5px BLACK, 0 0 5px BLACK;
}

/* 科技感玻璃光澤卡片 */
.tech-card {
    background: url("../images/about-bg.jpg");
    background-size: cover;
    border: 1px solid rgb(0 210 255);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-card-2 {
    background: rgb(0 10 47 / 80%);
    background-size: cover;
    border: 1px solid rgb(0 210 255);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px #00f4ff70, 0 0 8px #00abff54;
}

.tech-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.25);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 80px;
    background: radial-gradient(ellipse at top, rgba(13, 71, 161, 0.3) 0%, transparent 70%);
}

.hero-section .title-text {
    font-weight: 800;
    background: linear-gradient(45deg, #ffffff, #5995f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 服務卡片圖示 */
.service-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
}

#bg-wp {
    background: url(../images/body-bg.jpg) no-repeat center / cover;
    background-position-y: 1rem;
}

/* 技術標籤 Pill */
.tech-badge {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 跳動數字與霓虹漸層 */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* 數字卡片圖示 */
.stat-card-icon {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

/* 合作流程步驟圖示 */
.step-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 22%, #29ffe3 0%, #2f86b1 30%, #00043a 80%);
    border: 1px solid #05081e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--neon-cyan);

    /* 移除 margin 的左右 auto，改由父容器統一控制居中 */
    margin: 0 0 15px 0;
    box-shadow: 0 0 0 5px rgb(5 8 30), 0 0 0 8px rgb(74 98 189), inset -2px -1px 5px #ffffff38, inset 0 0 10px #170060, inset 0 0 10px #4b02c2, inset 0 0 6px #00f8ff;
}

/* 步驟卡片容器：鎖定相對定位基準 */
.process-step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    /* 確保圓圈與下方文字絕對居中 */
}

/* 箭頭獨立定位：掛在圓圈右側，不佔用空間也不影響文字 */
.process-arrow {
    position: absolute;
    top: 50px;

    /* 正好是 100px 圓圈的垂直中心點 */
    right: -6%;

    /* 橫向拉到兩個圓圈的正中間，可依需求調 -10% ~ -20% */
    transform: translateY(-50%);
    color: #38f1fd;
    font-size: 1.5rem;
    z-index: 2;
}

/* CTA Banner */
.banner-cta {
    background: url(../images/call-bg.jpg) center/cover;
    border: 1px solid var(--border-cyan);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 114, 255, 0.2);
}

.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.d-s {
    filter: drop-shadow(0 0 5px #00f3ff);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        /* 使用 100dvh (Dynamic Viewport Height) 自動適應手機網址列縮放 */
        max-height: calc(100dvh - 75px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        /* iOS 彈性滑動 */
        padding-bottom: 1.5rem;

        /* 避免底部選項貼邊 */
    }
}

/* 2. iOS Safari backdrop-filter 前綴相容性 */
.navbar {
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 767.98px) {
    .process-arrow {
        display: none;
    }
}

@media (max-width: 650px) {
    body {
        background-position: center 16.5rem;
        background-size: 176%;
    }

    .hero-section {
        padding: 108px 0 80px;
    }

    .py-5 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #bg-wp {
        background-size: 380%;
        background-repeat: repeat-y;
    }

    #services .tech-card-2 ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #services .tech-card-2 li {
        width: 50%;
    }
}

@media (max-width: 450px) {
    .logo-text-s {
        font-size: .9rem;
    }

    .f-t-a {
        font-size: 0.75rem;
    }
}
