/* ==========================================================================
   Google Fonts: Noto Sans TC
   Theme Colors: 科技藍 (Primary), 純淨白 (White), 深海灰 (Dark)
   ========================================================================== */

:root {
    --bs-primary: #0d6efd;
    /* 科技藍 */
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary: #6c757d;
    --bs-dark: #212529;
    /* 深海灰 */
    --bs-light: #f8f9fa;
    --font-family-base: 'Noto Sans TC', sans-serif;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.nav-link,
.btn,
.navbar-brand {
    font-family: var(--font-family-base) !important;
}

body {
    color: #495057;
    line-height: 1.6;
}




/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */

.bg-tech-grid {
    background-color: #fdfdfd;
    background-image: linear-gradient(rgba(13, 110, 253, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 110, 253, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-tech-dots {
    background-color: #f8f9fa;
    background-image: radial-gradient(circle, rgba(13, 110, 253, 0.08) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.divider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

/* Object Fit util for IE/Edge older version if needed, but handled by bs5 object-fit-cover */
.object-fit-cover {
    object-fit: cover;
}

/* ==========================================================================
   About Us Section (Core Values)
   ========================================================================== */

.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

#main-navbar {
    transition: all 0.3s ease-in-out;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Used by jQuery when scrolling down */
#main-navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Logo 圖片陰影 */
#main-navbar .navbar-brand img {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

#main-navbar .nav-link {
    font-weight: 500;
    color: var(--bs-dark);
    transition: color 0.3s ease;
}

#main-navbar .nav-link:hover,
#main-navbar.scrolled .nav-link:hover,
#main-navbar .nav-link.active,
#main-navbar.scrolled .nav-link.active {
    color: var(--bs-primary) !important;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero_office_ai.png?v=1') !important;
    /* 載入 AI 生成的辦公室/工作場景照片作為底圖 */
    background-color: var(--bs-primary);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 配合淺色/科技感，調降白色遮罩的不透明度，讓背景照片更清晰且不刺眼 */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 243, 245, 0.7) 100%);
    z-index: 1;
    /* Stay behind the text content but above background image */
}

.hero-section>.container {
    z-index: 2;
    /* Bring text above overlay */
}

/* ==========================================================================
   Services Section (Cards)
   ========================================================================== */

.service-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.service-card img {
    transition: transform 0.7s ease;
}

.service-card:hover img {
    transform: scale(1.08);
}

.overlay-transition {
    transition: opacity 0.4s ease;
}

.service-card:hover .overlay-transition {
    opacity: 0.2 !important;
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}