@charset "utf-8";
/* CSS Document */
	 /* 關鍵修復：防止 AOS 導致橫向拉霸 */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    :root {
        --tech-blue: #0ea5e9;
        --deep-navy: #0f172a;
        --tech-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
        --vn-red: #da251d;
        --vn-yellow: #ffcd00;
        --text-main: #1e293b;
    }

    body {
        font-family: 'Inter', sans-serif;
        color: var(--text-main);
        overflow-x: hidden;
        background: #fff;
    }

    body.menu-open { overflow: hidden; }

    /* --- 導覽列核心設計：透明轉實色 --- */
    .navbar {
        background: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem 0;
        z-index: 1050;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 下滑後的樣式 */
    .navbar.scrolled { 
        padding: 0.8rem 0; 
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    }

    /* Logo 顏色切換 */
    .navbar-brand {
        font-family: 'Outfit', sans-serif;
        font-weight: 900;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #ddd; /* 預設白色 */
        transition: color 0.4s;
    }
	.navbar-brand:hover {
        color: #ffffff; /* 預設白色 */
    }
    .navbar.scrolled .navbar-brand {
        color: var(--deep-navy);
    }

    .logo-vn-wrapper {
        background: transparent;
        color: #ffffff;
        border: 2px solid #ffffff;
        padding: 2px 12px;
        border-radius: 6px;
        margin-left: 6px;
        font-style: italic;
        font-size: 1.3rem;
        position: relative;
        transition: all 0.4s;
        display: flex;
        align-items: center;
    }
    
    /* 下滑後恢復紅黃配 */
    .navbar.scrolled .logo-vn-wrapper {
        background: var(--vn-red);
        border-color: var(--vn-red);
        color: var(--vn-yellow);
        box-shadow: 0 4px 10px rgba(218, 37, 29, 0.3);
    }

    .logo-vn-wrapper::after {
        content: '★';
        font-size: 0.6rem;
        position: absolute;
        top: 1px;
        right: 4px;
        opacity: 1;
        transition: opacity 0.4s;
    }
    .navbar.scrolled .logo-vn-wrapper::after {
        opacity: 1;
    }

    /* 選單文字顏色切換 */
    .navbar .nav-link {
        color: rgba(255, 255, 255, 0.85);
        transition: color 0.4s;
    }
    .navbar .nav-link:hover { color: #fff; }
    
    .navbar.scrolled .nav-link {
        color: var(--text-main);
    }
    .navbar.scrolled .nav-link:hover { color: var(--tech-blue); }

    /* 語言按鈕切換 */
    .lang-switch {
        display: flex;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50px;
        padding: 4px;
        transition: all 0.4s;
    }
    .navbar.scrolled .lang-switch {
        background: #f1f5f9;
        border-color: #e2e8f0;
    }
    .lang-btn {
        padding: 4px 12px;
        font-size: 0.75rem;
        font-weight: 800;
        border-radius: 50px;
        text-decoration: none;
        color: #ffffff;
        opacity: 0.6;
        transition: 0.3s;
    }
    .lang-btn.active { opacity: 1; background: white; color: var(--tech-blue); }
    .navbar.scrolled .lang-btn { color: #94a3b8; }
    .navbar.scrolled .lang-btn.active { background: white; color: var(--tech-blue); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

    /* --- Hero Carousel & Animation --- */
    .hero-carousel {
        height: 100vh;
        background: #000;
        position: relative;
        overflow: hidden;
    }
    .carousel-item {
        height: 100vh;
        min-height: 700px;
    }
    .carousel-bg {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0.5;
    }
    
    /* Ken Burns Effect 修復：第一張圖立即執行動畫 */
    @keyframes kenburns {
        0% { transform: scale(1); }
        100% { transform: scale(1.15); }
    }
    .carousel-item.active .carousel-bg {
        animation: kenburns 12s linear forwards;
    }

    .overlay-gradient {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(to bottom, 
            rgba(2, 6, 23, 0.2) 0%, 
            rgba(2, 6, 23, 0.8) 100%);
        z-index: 2;
    }

   /* --- Hero Carousel --- */
    .hero-carousel { height: 100vh; background: #000; position: relative; overflow: hidden; }
    .carousel-item { height: 100vh; min-height: 700px; }
    .carousel-bg {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-size: cover; background-position: center; opacity: 0.5;
    }
    
    @keyframes zoomBg { from { transform: scale(1); } to { transform: scale(1.15); } }
    .carousel-item.active .carousel-bg { animation: zoomBg 10s linear forwards; }

    .overlay-gradient {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(to bottom, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.8) 100%);
        z-index: 2;
    }
    .carousel-content { position: relative; z-index: 5; height: 100%; display: flex; align-items: center; }

    /* --- 修正：順暢文字進場動畫 --- */
    @keyframes heroFadeInUp {
        from { opacity: 0; transform: translateY(40px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .carousel-item .hero-tagline,
    .carousel-item .hero-title,
    .carousel-item .hero-desc,
    .carousel-item .hero-btns {
        opacity: 0; /* 預設隱藏，由動畫帶出 */
    }

    /* 這裡套用與您之前 transition 相同的 cubic-bezier，保證順滑 */
    .carousel-item.active .hero-tagline { animation: heroFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.3s; }
    .carousel-item.active .hero-title { animation: heroFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.5s; }
    .carousel-item.active .hero-desc { animation: heroFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.7s; }
    .carousel-item.active .hero-btns { animation: heroFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.9s; }

    .hero-tagline {
        display: inline-block; padding: 0.5rem 1.2rem; border-left: 4px solid var(--vn-red);
        background: rgba(255, 255, 255, 0.05); color: #fff; font-weight: 700;
        letter-spacing: 2px; margin-bottom: 1.5rem; text-transform: uppercase; font-size: 0.8rem;
    }
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 900; color: white;
        line-height: 1.1; margin-bottom: 1.5rem; font-family: 'Outfit', sans-serif; letter-spacing: -2px;
    }
    .text-gradient {
        background: linear-gradient(135deg, #fff 30%, var(--tech-blue) 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }

    /* 手機漢堡按鈕顏色切換 */
    .custom-toggler .toggler-line { background: #ffffff; }
    .navbar.scrolled .custom-toggler .toggler-line { background: var(--deep-navy); }

    /* 其他區塊樣式保持不變 */
   /* Service Section 加強版樣式 */
/* Service Section 科技感強化樣式 */
.service-tech-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, #0a192f 0%, #020617 100%);
    overflow: hidden;
}

/* 背景網格裝飾 */
.tech-bg-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    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: 0;
}

.tech-bg-glow {
    position: absolute;
    top: 20%; left: 50%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.title-underline-glow {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--vn-red), #ffeb3b);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(238, 30, 47, 0.5);
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 玻璃卡片設計 */
.glass-service-card {
    position: relative;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.glass-service-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--tech-blue);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.2);
}

.service-index {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.glass-service-card:hover .service-index {
    color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.glass-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #fff;
    transition: 0.4s;
}

.glass-service-card:hover .glass-icon-wrapper {
    background: var(--vn-red);
    box-shadow: 0 0 20px rgba(238, 30, 47, 0.4);
    transform: rotateY(180deg);
}

.glass-service-card h5 {
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
  /* Service Section 加強版樣式 */	
/* Contact Section 基礎設定 */
/* Contact Section 基礎設定：極簡白 */
.contact-clean-section {
    position: relative;
    padding: 120px 0;
    background-color: #f8fafc; /* 極淺灰藍底，增加高級感 */
    overflow: hidden;
}

/* 精密點陣背景 */
.dot-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
}

/* 小標題樣式 */
.contact-subtitle {
    display: inline-block;
    color: var(--vn-red);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.title-underline-solid {
    width: 40px;
    height: 4px;
    background: #334155; /* 深石板色，增加專業穩重感 */
    border-radius: 2px;
}

/* 淺色浮雕卡片設計 */
.clean-contact-card {
    position: relative;
    background: #ffffff;
    border-radius: 40px;
    padding: 15px;
    /* 柔和的雙層陰影，營造立體感 */
    box-shadow: 20px 20px 60px #e2e8f0, -20px -20px 60px #ffffff;
    z-index: 1;
    transition: transform 0.3s ease;
}

.clean-contact-card:hover {
    transform: translateY(-5px);
}

.card-inner-light {
    border: 1px dashed #e2e8f0; /* 內層細虛線，增加精密感 */
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
}

.contact-icon-circle {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    color: var(--tech-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: 0.4s;
}

.clean-contact-card:hover .contact-icon-circle {
    background: var(--tech-blue);
    color: #fff;
    transform: scale(1.1) rotate(-15deg);
}

.inquiry-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.email-display {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 900;
    color: #1e293b; /* 深藍黑色文字 */
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
}

.action-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin-bottom: 30px;
}

/* 潔淨按鈕樣式 */
.btn-clean-action {
    display: inline-block;
    padding: 15px 45px;
    background: #1e293b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-clean-action:hover {
    background: var(--vn-red);
    color: #ffffff;
    padding: 15px 55px;
    box-shadow: 0 10px 25px rgba(238, 30, 47, 0.3);
}
/* Contact Section 基礎設定 */

/* Footer 基礎樣式：深色收尾 */
.modern-footer {
    background-color: #050a18;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* 背景巨型裝飾字 */
.footer-bg-text {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: -10px;
    user-select: none;
    z-index: 0;
}

.footer-grid-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.footer-logo-main {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.vn-badge {
    background: var(--vn-red);
    color: var(--vn-yellow);
    padding: 0 10px;
    border-radius: 4px;
    margin-left: 5px;
    font-size: 1.8rem;
}

.footer-mission {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}

/* 銘牌式設計 (Credit Badges) */
.credit-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px;
}

.credit-badge .label {
    font-size: 0.65rem;
    color: #475569;
    letter-spacing: 2px;
    font-weight: 700;
}

.credit-badge .value {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
}

.text-highlight {
    color: var(--tech-blue) !important;
    letter-spacing: 1px;
}

/* 底部版權條 - 完全置中強化版 */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    flex-direction: column; /* 改為垂直排列，讓內容更容易對齊中線 */
    align-items: center;    /* 水平居中 */
    justify-content: center;
    gap: 15px;             /* 調整內容間距 */
    margin: 0 auto;
    width: 100%;
}

.copyright {
    font-size: 0.75rem;
    color: #475569;
    white-space: nowrap;
    letter-spacing: 1px;
}



/* 手機版適應 */
@media (max-width: 768px) {
    .footer-grid-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .credit-badge {
        align-items: flex-start;
    }
    .footer-bg-text {
        font-size: 8rem;
    }
}
/* Footer 基礎樣式：深色收尾 */
  .scroll-indicator {
            position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10;
            display: flex; flex-direction: column; align-items: center; color: white; opacity: 0.7;
        }
        .mouse {
            width: 24px; height: 40px; border: 2px solid white; border-radius: 20px;
            position: relative; margin-bottom: 8px;
        }
        .wheel {
            width: 4px; height: 8px; background: white; border-radius: 2px;
            position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
            animation: scroll-anim 2s infinite;
        }
        @keyframes scroll-anim {
            0% { opacity: 1; transform: translate(-50%, 0); }
            100% { opacity: 0; transform: translate(-50%, 15px); }
        }   
    /* 手機選單層 */
    .mobile-menu-overlay {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(20px);
        z-index: 1040; transition: 0.6s cubic-bezier(0.7,0,0.3,1);
        display: flex; flex-direction: column; justify-content: center; align-items: center;
    }
    .mobile-menu-overlay.active { right: 0; }
    .mobile-nav-link { font-size: 2.2rem; font-weight: 800; color: #fff; text-decoration: none; margin: 0.8rem 0; font-family: 'Outfit', sans-serif; }

/* 科技銘牌卡片 */
.tech-tile-card {
    position: relative;
    padding: 30px 25px;
    background: linear-gradient(145deg, #ffffff 0%, #f3f5f9 100%);
    border-radius: 16px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

/* 卡片內部的漸層光暈效果 */
.tile-bg-effect {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 122, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* 內部微細網格 */
.tile-grid-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.13) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.5;
    z-index: 0;
}

.tile-content {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.tile-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #4a5568;
    margin-right: 20px;
    transition: all 0.4s ease;
}

.tile-number {
    font-size: 0.7rem;
    font-weight: 800;
    color: #cbd5e1;
    display: block;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.tile-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
	/* 針對 Safari (iPhone/Mac) 的必要前綴 */
    -webkit-hyphens: auto;
    text-transform: uppercase;
	overflow-wrap: break-word;
	word-break: break-all;
	
	
}

/* 底部亮條 */
.tile-status-bar {
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 3px;
    background: linear-gradient(90deg, var(--vn-red), var(--tech-blue));
    transition: width 0.4s ease;
}

/* Hover 狀態 */
.tech-tile-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.tech-tile-card:hover .tile-bg-effect {
    opacity: 1;
}

.tech-tile-card:hover .tile-icon {
    background: var(--vn-red);
    color: #fff;
    transform: rotateY(180deg);
}

.tech-tile-card:hover .tile-status-bar {
    width: 100%;
}

.tech-tile-card:hover .tile-title {
    color: #000;
}

