:root {
    --tech-cyan: #57cbcc;
    --tech-dark: #1a1a1a;
    --neon-glow: 0 0 15px rgba(87, 203, 204, 0.5);
}

/* 全局背景：科技網格 */
body {
    background-color: #ffffff;
    background-image: radial-gradient(var(--tech-cyan) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 左上角 Logo 強化 */
.navbar-brand .brand-text {
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--tech-cyan);
    font-size: 28px;
    font-family: 'Consolas', 'Monaco', monospace;
    text-shadow: var(--neon-glow);
}

/* 卡片設計優化：毛玻璃與邊框動畫 */
.service-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(87, 203, 204, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 4px; height: 0;
    background: var(--tech-cyan);
    transition: height 0.3s ease;
}

.service-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(87, 203, 204, 0.15);
    border-color: var(--tech-cyan) !important;
}

.service-item:hover::before {
    height: 100%;
}

/* 英雄區背景科技感 */
.hero-area {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 3px solid var(--tech-cyan);
}

/* iOS Safari 不支援 fixed 背景且效能較差，手機/平板改回一般捲動背景 */
@media (max-width: 992px) {
    .hero-area {
        background-attachment: scroll;
    }
}

.hero-title-tech {
    font-weight: 800;
    line-height: 1.25;
    font-size: 56px;
}

@media (max-width: 992px) {
    .hero-title-tech { font-size: 42px; }
}

@media (max-width: 576px) {
    .hero-title-tech { font-size: 30px; line-height: 1.35; }
}

.hero-sub-tech {
    font-size: 19px;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 576px) {
    .hero-sub-tech { font-size: 15px; }
}

.tech-code-bg {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(87, 203, 204, 0.2);
    position: absolute;
    top: 20px;
    right: 20px;
    pointer-events: none;
    text-align: left;
    line-height: 1.2;
}

.section-padding { padding: 120px 0; }

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

.category-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--tech-cyan);
    font-weight: bold;
    background: rgba(87, 203, 204, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

/* 數據面板外框 */
.stat-box {
    border-left: 2px solid var(--tech-cyan);
    padding-left: 20px;
    margin-bottom: 20px;
}

.btn-main {
    background: var(--tech-cyan);
    border: none;
    box-shadow: var(--neon-glow);
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 50px;
    padding: 15px 35px;
    color: #fff;
    display: inline-block;
}

.btn-main:hover {
    background: #45b3b4;
    box-shadow: 0 0 25px rgba(87, 203, 204, 0.8);
    color: #fff;
}

/* 次頁標題區塊 (contact / 其他子頁面共用) */
.page-title-tech {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('../images/slider-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 160px 0 90px;
    border-bottom: 3px solid var(--tech-cyan);
    color: #fff;
    text-align: center;
}

.page-title-tech h1 {
    font-weight: 800;
    letter-spacing: 1px;
}

.page-title-tech p {
    opacity: 0.8;
    font-size: 17px;
}

.page-title-tech-h1 {
    font-size: 44px;
}

@media (max-width: 768px) {
    .page-title-tech { padding: 130px 0 70px; }
    .page-title-tech-h1 { font-size: 32px; }
}

@media (max-width: 480px) {
    .page-title-tech-h1 { font-size: 26px; }
}

/* 表單元件套用科技風 */
.tech-form .form-control,
.tech-form textarea.form-control {
    border: 1px solid rgba(87, 203, 204, 0.3);
    border-radius: 8px;
    padding: 14px 16px;
    height: auto;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.9);
}

.tech-form .form-control:focus {
    border-color: var(--tech-cyan);
    box-shadow: 0 0 0 3px rgba(87, 203, 204, 0.15);
    outline: none;
}

.contact-info-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(87, 203, 204, 0.15);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info-card i {
    color: var(--tech-cyan);
    font-size: 20px;
    width: 30px;
    display: inline-block;
}

.alert-tech-success {
    background: rgba(87, 203, 204, 0.12);
    border: 1px solid var(--tech-cyan);
    color: #1a7a7b;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 30px;
}

.alert-tech-error {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 30px;
}
