/* ===== 全域溢出修復 ===== */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    max-width: 100%;
}

/* 例外：fixed 和 absolute 元素 */
.navbar,
.background-animation,
.fab-whatsapp-container,
.messages-container {
    max-width: 100vw;
}

/* ===== 完整優化 CSS 代碼 ===== */

:root {
    --bg-color: #050505;
    --accent-color: #00f2ff;
    --secondary-accent: #7000ff;
    --text-color: #ffffff;
    --grid-color: rgba(0, 242, 255, 0.05);
    --card-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.1);

    /* Z-index 標準化 */
    --z-background: -1;
    --z-base: 0;
    --z-content: 1;
    --z-dropdown: 1000;
    --z-navbar: 50;
    --z-fab: 9999;
    --z-overlay: 200;
}

/* ===== 更好的 Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===== 減少動畫偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Background Animations ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    overflow: hidden;
}

.grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    from { transform: perspective(500px) rotateX(60deg) translateY(0); }
    to { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* ===== 移動設備關閉背景動畫 ===== */
@media (max-width: 768px) {
    .background-animation .grid {
        animation: none;
        transform: perspective(500px) rotateX(60deg);
    }

    .glow {
        animation: none;
        opacity: 0.5;
    }
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 60px;
}

/* ── Logo：支援 <div> 和 <a> 兩種寫法 ── */
.logo,
a.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-color);
    text-decoration: none;      /* 拿掉底線 */
    z-index: var(--z-content);
    flex-shrink: 0;
    margin-right: auto;         /* ★ 把 nav-links 推到最右邊 */
    transition: opacity 0.2s ease;
}

/* 所有狀態都不顯示底線 */
a.logo:hover,
a.logo:visited,
a.logo:focus,
a.logo:active {
    text-decoration: none;
    opacity: 0.85;
}

.logo span,
a.logo span {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* ===== 隱藏核取方塊 ===== */
.menu-toggle {
    display: none;
}

/* ===== 漢堡按鈕 ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 9998;
    padding: 8px;
    background: none;
    border: none;
    outline: none;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== 桌面導航 ===== */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    /* margin-right: auto 已在 .logo 處理，nav-links 自然靠右 */
}

/* ── 導航連結基礎樣式 ── */
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.6;
    transition: opacity 0.25s ease,
                color 0.25s ease,
                text-shadow 0.25s ease;
    position: relative;
    padding-bottom: 4px;
}

/* ── 懸停底線：從中間向兩邊展開（掃光效果）── */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-color),
        transparent
    );
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                left  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* ── 懸停：文字發光 ── */
.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    text-shadow:
        0 0 8px  rgba(0, 242, 255, 0.6),
        0 0 20px rgba(0, 242, 255, 0.2);
}

/* ── 當前頁面 active 狀態 ── */
.nav-links a.nav-active {
    opacity: 1;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

.nav-links a.nav-active::after {
    width: 100%;
    left: 0;
    background: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}

/* ── PLAN 連結：邊框樣式（突出獨立頁面）── */
.nav-links a.nav-plan {
    opacity: 0.85;
    border: 1px solid rgba(0, 242, 255, 0.35);
    border-radius: 4px;
    padding: 5px 14px;
    transition: opacity 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease;
}

.nav-links a.nav-plan::after {
    display: none; /* 有邊框就不需要底線 */
}

.nav-links a.nav-plan:hover {
    opacity: 1;
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.07);
    box-shadow: 0 0 14px rgba(0, 242, 255, 0.25);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5);
}

/* ===== 移動端響應式 - 側邊欄選單 ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 5%;
        min-height: 56px;
    }

    .logo,
    a.logo {
        font-size: 1.2rem;
        letter-spacing: 3px;
        margin-right: 0; /* 手機版不需要 margin-right，漢堡按鈕自動靠右 */
    }

    /* 顯示漢堡按鈕 */
    .hamburger {
        display: flex;
    }

    /* 側邊欄選單 - 從右邊滑入 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.95) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 80px 0 0 0;
        margin: 0;
        z-index: 9997;
        transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        border-left: 1px solid rgba(0, 242, 255, 0.1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    /* 當核取方塊被勾選時顯示選單 */
    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    /* 漢堡按鈕動畫 */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* 選單項目樣式 */
    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 3px;
        padding: 18px 30px;
        opacity: 0.9;
        border-bottom: 1px solid rgba(0, 242, 255, 0.05);
        transition: all 0.3s ease;
        display: block;
        text-shadow: none;
    }

    .nav-links a:hover {
        opacity: 1;
        color: var(--accent-color);
        background: rgba(0, 242, 255, 0.08);
        padding-left: 40px;
        text-shadow: none;
    }

    .nav-links a::after {
        display: none;
    }

    /* 手機版 PLAN：取消邊框，統一側邊欄樣式 */
    .nav-links a.nav-plan {
        border: none;
        border-radius: 0;
        padding: 18px 30px;
        margin: 0;
        background: none;
        box-shadow: none;
    }

    .nav-links a.nav-plan:hover {
        padding-left: 40px;
        background: rgba(0, 242, 255, 0.08);
        border: none;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 4%;
        min-height: 50px;
    }

    .logo,
    a.logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }

    .nav-links {
        width: 100%;
        max-width: none;
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 2px;
        padding: 15px 20px;
    }

    .nav-links a:hover {
        padding-left: 30px;
    }

    .nav-links a.nav-plan:hover {
        padding-left: 30px;
    }
}

/* ===== Hero Section ===== */
.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    padding-top: 80px;
}

.hero-content {
    z-index: var(--z-content);
}

.glitch-text {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: clamp(5px, 2vw, 10px);
    margin-bottom: 1rem;
    position: relative;
    color: white;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(16px, 9999px, 78px, 0); }
    60% { clip: rect(84px, 9999px, 14px, 0); }
    80% { clip: rect(53px, 9999px, 36px, 0); }
    100% { clip: rect(91px, 9999px, 62px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(12px, 9999px, 58px, 0); }
    40% { clip: rect(82px, 9999px, 33px, 0); }
    60% { clip: rect(45px, 9999px, 89px, 0); }
    80% { clip: rect(27px, 9999px, 71px, 0); }
    100% { clip: rect(10px, 9999px, 44px, 0); }
}

.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: clamp(2px, 1vw, 5px);
    opacity: 0.6;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* ===== Buttons ===== */
.cta-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 18px 50px;
    text-decoration: none;
    font-size: clamp(0.8rem, 1vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    min-width: clamp(150px, 20vw, 180px);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    height: auto;
    min-height: 60px;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: var(--z-background);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    box-shadow:
        0 0 20px rgba(0, 242, 255, 0.4),
        inset 0 0 20px rgba(0, 242, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.05);
    box-shadow:
        0 0 30px rgba(0, 242, 255, 0.3),
        inset 0 0 20px rgba(0, 242, 255, 0.05);
    transform: translateY(-5px) scale(1.02);
}

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        padding: 20px 30px;
        min-height: 56px;
        min-width: 200px;
    }
}

/* ===== Sections ===== */
.section {
    padding: clamp(30px, 8%, 150px) clamp(12px, 4%, 120px);
    margin: clamp(30px, 8%, 120px) 0;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    z-index: 2;
}


@media (max-width: 768px) {
    .section {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 15px;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: clamp(6px, 2vw, 12px);
    color: var(--accent-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: titleSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    animation: lineExpand 0.8s ease-out 0.3s forwards;
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 60px; }
}

.section-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    opacity: 0.3;
    letter-spacing: clamp(4px, 1vw, 8px);
    margin-bottom: clamp(3rem, 10vh, 5rem);
    text-transform: uppercase;
}

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

/* ===== Vision Section ===== */
.main-text {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: clamp(3rem, 8vh, 5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.vision-item {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.vision-item:nth-child(1) { animation-delay: 0.1s; }
.vision-item:nth-child(2) { animation-delay: 0.2s; }
.vision-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vision-item:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.tag {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
    padding: 5px 15px;
    border: 1px solid var(--accent-color);
}

/* ===== Core Cards ===== */
.core-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .core-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.core-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.core-card:nth-child(1) { animation-delay: 0.1s; }
.core-card:nth-child(2) { animation-delay: 0.2s; }
.core-card:nth-child(3) { animation-delay: 0.3s; }
.core-card:nth-child(4) { animation-delay: 0.4s; }

.core-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.05), transparent);
    transition: 0.5s;
    z-index: var(--z-base);
}

.core-card:hover::before {
    left: 100%;
}

.core-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 242, 255, 0.15),
        inset 0 0 30px rgba(0, 242, 255, 0.05);
}

.card-num {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 242, 255, 0.03);
    position: absolute;
    top: 10px;
    right: 20px;
}

.core-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
    position: relative;
    z-index: var(--z-content);
}

.card-desc {
    font-size: 0.95rem;
    opacity: 0.5;
    margin-bottom: 30px;
    position: relative;
    z-index: var(--z-content);
}

.card-list {
    list-style: none;
    margin-bottom: 30px;
    position: relative;
    z-index: var(--z-content);
}

.card-list li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.card-list li::before {
    content: '>';
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

.card-value {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 2px;
    border-top: 1px solid rgba(0, 242, 255, 0.2);
    padding-top: 20px;
    position: relative;
    z-index: var(--z-content);
}

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
}

.project-item {
    position: relative;
    width: 100%;
    height: 280px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    background: #050505;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-item:hover {
    transform: translateY(-8px);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    z-index: var(--z-base);
}

.project-item:hover::before {
    left: 100%;
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-base);
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-item-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-content);
    background: linear-gradient(
        135deg,
        rgba(5, 5, 5, 0.95) 0%,
        rgba(5, 5, 5, 0.85) 50%,
        rgba(5, 5, 5, 0.75) 100%
    );
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 480px) {
    .project-item-content {
        padding: 25px;
    }
}

.project-item:hover .project-item-content {
    background: linear-gradient(
        135deg,
        rgba(5, 5, 5, 0.8) 0%,
        rgba(5, 5, 5, 0.7) 50%,
        rgba(5, 5, 5, 0.6) 100%
    );
    border-color: var(--accent-color);
    box-shadow:
        0 0 20px rgba(0, 242, 255, 0.3),
        inset 0 0 20px rgba(0, 242, 255, 0.05);
}

.project-title {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
    color: #fff;
}

.project-description {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    opacity: 0.8;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    text-shadow: 0 0 15px var(--accent-color);
    letter-spacing: 3px;
}

/* ===== Project Animation Directions ===== */
.slide-left-to-right .project-image {
    transform: translateX(-100%);
    animation: slideInFromLeft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-left-to-right:hover .project-image {
    transform: translateX(8px);
}

.slide-right-to-left .project-image {
    transform: translateX(100%);
    animation: slideInFromRight 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.slide-right-to-left:hover .project-image {
    transform: translateX(-8px);
}

.slide-top-to-bottom .project-image {
    transform: translateY(-100%);
    animation: slideInFromTop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInFromTop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.slide-top-to-bottom:hover .project-image {
    transform: translateY(8px);
}

.slide-bottom-to-top .project-image {
    transform: translateY(100%);
    animation: slideInFromBottom 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInFromBottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.slide-bottom-to-top:hover .project-image {
    transform: translateY(-8px);
}

.slide-scale-in .project-image {
    transform: scale(0.8);
    opacity: 0;
    animation: scaleInCenter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleInCenter {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.slide-scale-in:hover .project-image {
    transform: scale(1.05);
}

.slide-rotate-in .project-image {
    transform: rotate(-5deg) scale(0.9);
    opacity: 0;
    animation: rotateInCenter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes rotateInCenter {
    from {
        transform: rotate(-5deg) scale(0.9);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.slide-rotate-in:hover .project-image {
    transform: rotate(2deg) scale(1.03);
}

/* ===== Flow Section ===== */
.flow-container {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

@media (max-width: 1024px) {
    .flow-step {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .flow-step {
        gap: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .flow-step {
        gap: 15px;
        margin-bottom: 30px;
    }
}

.flow-step::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 70px;
    width: 1px;
    height: calc(100% - 30px);
    background: var(--border-color);
    opacity: 0;
    animation: lineGrow 0.8s ease-out forwards;
}

@media (max-width: 768px) {
    .flow-step::after {
        left: 50%;
        top: 80px;
        height: calc(100% - 10px);
        width: 1px;
    }
}

.flow-step:nth-child(1)::after { animation-delay: 0.2s; }
.flow-step:nth-child(2)::after { animation-delay: 0.3s; }
.flow-step:nth-child(3)::after { animation-delay: 0.4s; }
.flow-step:nth-child(4)::after { animation-delay: 0.5s; }
.flow-step:last-child::after { display: none; }

@keyframes lineGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: calc(100% - 30px);
        opacity: 1;
    }
}

.step-icon {
    width: 70px;
    height: 70px;
    border: 1px solid var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
    background: var(--bg-color);
    z-index: var(--z-content);
    transition: 0.3s;
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

.step-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: stepPulse 2s ease-out infinite;
}

@keyframes stepPulse {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.flow-step:hover .step-icon {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px var(--accent-color);
}

.step-content {
    flex: 1;
}

@media (max-width: 480px) {
    .step-content {
        text-align: center;
    }
}

.step-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: 10px;
    color: #fff;
}

.step-content p {
    opacity: 0.5;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

/* ===== Contact Section ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-subtext {
    opacity: 0.6;
    margin-bottom: 40px;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.method {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== Form ===== */
.contact-form {
    max-width: 500px;
    width: 100%;
}

@media (max-width: 768px) {
    .contact-form {
        max-width: 100%;
    }
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
textarea {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
    padding: 18px 15px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    min-height: 50px;
    -webkit-appearance: none;
    border-radius: 4px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    background: rgba(0, 242, 255, 0.05);
    border-color: var(--accent-color);
    box-shadow:
        0 0 20px rgba(0, 242, 255, 0.2),
        inset 0 0 10px rgba(0, 242, 255, 0.05);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary[type="submit"] {
    width: 100%;
    padding: 18px 30px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: #000;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 1vw, 0.85rem);
    min-height: 56px;
    border-radius: 4px;
}

.btn-primary[type="submit"]:hover {
    background: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

/* ===== Custom Select ===== */
/* ===== 自訂下拉選單 ===== */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
    overflow: visible !important; /* 確保選項不被裁切 */
}

.select-trigger {
    width: 100%;
    padding: 18px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--accent-color);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    min-height: 50px;
    border-radius: 4px;
}

.select-trigger:hover {
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.05);
}

.select-value.placeholder {
    opacity: 0.6;
}

.select-arrow {
    font-size: 12px;
    transition: transform 0.3s;
    pointer-events: none;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

/* 選項清單 - 預設隱藏，展開時顯示 */
.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border: 1px solid var(--accent-color);
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-select.open .select-options {
    max-height: 200px !important;
    overflow-y: auto !important;
}

.select-options li {
    padding: 15px 20px;
    color: var(--accent-color);
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    transition: all 0.2s ease;
}

.select-options li:hover {
    background: rgba(0, 242, 255, 0.15);
    padding-left: 25px;
}

.select-options li:last-child {
    border-bottom: none;
}

/* 父容器允許溢出 */
.form-group {
    overflow: visible !important;
}
.contact-form {
    overflow: visible !important;
}
.contact-wrapper {
    overflow: visible !important;
}
/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 40px clamp(20px, 5%, 60px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    opacity: 0.6;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    letter-spacing: 2px;
}

/* ===== FAB WhatsApp 掛件 CSS - 修復版 ===== */

.fab-whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-fab);
    pointer-events: none;
}

@media (max-width: 768px) {
    .fab-whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .fab-whatsapp-container {
        bottom: 15px;
        right: 15px;
    }
}

.fab-whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .fab-whatsapp-button {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .fab-whatsapp-button {
        width: 50px;
        height: 50px;
    }
}

/* 脈衝效果 */
.fab-whatsapp-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.6);
    animation: fab-pulse 2s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes fab-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.fab-whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.6);
}

.fab-whatsapp-button:active {
    transform: scale(0.95);
}

/* FAB 圖示 */
.fab-icon {
    width: 32px;
    height: 32px;
    display: block;
    color: #000000;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .fab-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .fab-icon {
        width: 26px;
        height: 26px;
    }
}

/* 提示文字 */
.fab-tooltip {
    position: absolute;
    right: 115px;
    bottom: 50%;
    transform: translateY(50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 480px) {
    .fab-tooltip {
        display: none;
    }
}

.fab-whatsapp-button:hover .fab-tooltip {
    opacity: 1;
}

.fab-whatsapp-button:focus-visible {
    outline: 2px solid rgba(0, 255, 255, 0.8);
    outline-offset: 2px;
}

@media print {
    .fab-whatsapp-container {
        display: none;
    }
}


/* PLAN  */

/* ===== PLAN PAGE CSS ===== */

/* Plan Hero Section */
#plan {
    padding: clamp(80px, 15vh, 120px) clamp(20px, 5%, 60px);
    text-align: center;
}

#plan .section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

#plan .section-title span {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-color);
}

/* Compare Table */
.plan-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    margin-bottom: 4rem;
    border-radius: 4px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .plan-compare {
        grid-template-columns: 1fr;
    }
}

.plan-compare-cell {
    background: var(--bg-color);
    padding: 25px;
    border-right: 1px solid rgba(0, 242, 255, 0.1);
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-compare-cell:nth-child(2n) {
    border-right: none;
}

.plan-compare-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.plan-compare-header {
    background: rgba(0, 242, 255, 0.05);
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.plan-compare-name {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.plan-compare-meta {
    font-size: 0.85rem;
    opacity: 0.6;
}

.plan-compare-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 8px;
}

/* Plan Cards */
.plan-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 60px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plan-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15);
}

.plan-card-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 50px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    align-items: center;
}

@media (max-width: 768px) {
    .plan-card-header {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
}

.plan-card-left h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 15px 0;
    letter-spacing: 2px;
}

.plan-card-en-sub {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.plan-card-fit-for {
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.6;
}

.plan-card-price-label {
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.plan-card-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.plan-card-price-note {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 15px;
}

.plan-card-price-include {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
}

.plan-card-body {
    padding: 50px;
}

@media (max-width: 768px) {
    .plan-card-body {
        padding: 30px;
    }
}

.plan-feature-group {
    margin-bottom: 40px;
}

.plan-feature-group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.plan-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .plan-feature-list {
        grid-template-columns: 1fr;
    }
}

.plan-feature-list li {
    font-size: 0.95rem;
    opacity: 0.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-feature-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
}

.plan-renew-bar {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 30px;
    border-radius: 6px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
}

@media (max-width: 768px) {
    .plan-renew-bar {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.plan-renew-label {
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-renew-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-color);
}

.plan-renew-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

.plan-addon-group,
.plan-exclude-group {
    margin-bottom: 30px;
}

.plan-addon-group-title,
.plan-exclude-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.plan-addon-list,
.plan-exclude-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .plan-addon-list,
    .plan-exclude-list {
        grid-template-columns: 1fr;
    }
}

.plan-addon-list li,
.plan-exclude-list li {
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.plan-addon-list li::before {
    content: '+';
    color: var(--accent-color);
    font-weight: bold;
    flex-shrink: 0;
}

.plan-exclude-list li::before {
    content: '–';
    color: #ff6b6b;
    font-weight: bold;
    flex-shrink: 0;
}

.plan-card-footer {
    padding: 30px 50px;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .plan-card-footer {
        flex-direction: column;
        padding: 20px 30px;
    }
}

.plan-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.2), transparent);
    margin: 80px 0;
}

.plan-bottom-cta {
    text-align: center;
    padding: 60px 40px;
    background: rgba(0, 242, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 60px;
}

.plan-bottom-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.plan-bottom-cta p {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 30px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .plan-bottom-cta {
        padding: 40px 20px;
    }

    .plan-bottom-cta h3 {
        font-size: 1.4rem;
    }

    .plan-bottom-cta p {
        font-size: 0.95rem;
    }
}


/* ===== TECH CARDS IN HOME ===== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.05), transparent);
    transition: 0.5s;
    z-index: var(--z-base);
}

.tech-card:hover::before {
    left: 100%;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
}

.tech-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: var(--z-content);
}

.tech-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    max-width: 48px;
    max-height: 48px;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.2));
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    background: rgba(0, 242, 255, 0.15);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transform: scale(1.08) rotate(2deg);
}

.tech-card:hover .tech-icon svg {
    filter: drop-shadow(0 0 12px rgba(0, 242, 255, 0.4));
    transform: scale(1.1);
}

.tech-card h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin: 0;
}

.tech-card-body {
    position: relative;
    z-index: var(--z-content);
}

.tech-core {
    background: rgba(0, 242, 255, 0.05);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
}

.tech-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tech-core p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.tech-description {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 25px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== 響應式調整 ===== */
@media (max-width: 768px) {
    .tech-icon {
        width: 60px;
        height: 60px;
    }

    .tech-icon svg {
        max-width: 40px;
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .tech-icon {
        width: 50px;
        height: 50px;
    }

    .tech-icon svg {
        max-width: 32px;
        max-height: 32px;
    }
}

/* ===== Messages 通知框 ===== */
.messages-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    text-align: center;
    pointer-events: none;
}

.alert {
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 4px;
    border: 1px solid;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: alertSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 成功：青色（主色調） */
.alert-success {
    background: rgba(0, 242, 255, 0.08);
    color: #00f2ff;
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 242, 255, 0.1);
}

/* 錯誤：紅色（保留語意，但暗化） */
.alert-error {
    background: rgba(255, 80, 80, 0.08);
    color: #ff6b6b;
    border-color: rgba(255, 80, 80, 0.4);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 80, 80, 0.1);
}

/* 資訊：紫色（次要強調色） */
.alert-info {
    background: rgba(112, 0, 255, 0.08);
    color: #a855f7;
    border-color: rgba(112, 0, 255, 0.4);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(112, 0, 255, 0.1);
}

/* 警告：琥珀色 */
.alert-warning {
    background: rgba(255, 180, 0, 0.08);
    color: #fbbf24;
    border-color: rgba(255, 180, 0, 0.4);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 180, 0, 0.1);
}

/* ===== 強制修復下拉選單被裁剪 ===== */
.section {
    overflow: visible !important;
}

.container {
    overflow: visible !important;
}

.contact-wrapper {
    overflow: visible !important;
}

.contact-form {
    overflow: visible !important;
}

.form-group {
    overflow: visible !important;
    position: relative;
}

.custom-select {
    overflow: visible !important;
    position: relative;
    z-index: 100 !important;
}

/* 展開時提高 z-index */
.custom-select.open {
    z-index: 9999 !important;
}

.select-options {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important; /* 極高優先級 */
    background: #0a0a0a !important;
    border: 1px solid var(--accent-color) !important;
    border-top: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

.custom-select.open .select-options {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 0 !important;
}