/* ==========================================
   Nestech Corporate Design System (style_v2.css)
   Theme: Minimalist Tech Elegant / Enterprise Executive Style
   ========================================== */

:root {
    --bg-color: #ffffff;
    --bg-card: #ffffff;
    --bg-alt: #f8fafc;
    --border: rgba(148, 163, 184, 0.15);
    
    --primary: #1e3a8a; /* Deep Royal Blue */
    --primary-light: #eff6ff;
    --secondary: #0ea5e9; /* Sky Blue */
    --accent: #0f766e; /* Professional Teal */
    
    --text: #475569; /* Slate 600 */
    --text-heading: #0f172a; /* Slate 900 */
    --text-light: #94a3b8; /* Slate 400 */

    --font-heading: 'Outfit', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 80px;
    --container-width: 1200px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-color);
    background-image: url('circuit_pattern_bg.png');
    background-repeat: repeat;
    background-size: 600px 600px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* General Container Utility */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Sticky Header styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-heading);
    font-family: var(--font-heading);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
}

.logo-img {
    width: auto;
    height: 70px;
    object-fit: contain;
    border-radius: 0;
}

.logo-text-accent {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile toggle & menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 22px;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background-color: #172554;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-heading);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 2. Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #0b0f19;
    background-image: radial-gradient(circle at center, rgba(11, 15, 25, 0.25) 0%, rgba(11, 15, 25, 0.92) 100%), url('img/pcba.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Dark Hero Theme Overrides */
.hero .hero-title {
    color: #ffffff;
}

.hero .text-gradient {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .hero-desc {
    color: #cbd5e1;
}

.hero .hero-badge {
    background-color: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #38bdf8;
}

.hero .btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.hero .system-diagram {
    background-color: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero .sys-node {
    background-color: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.06);
}

.hero .sys-node span {
    color: #e2e8f0;
}

.hero .sys-node-active {
    background-color: rgba(14, 165, 233, 0.15);
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

.hero .sys-node-active span {
    color: #38bdf8;
}

.hero .sys-node-active .sys-icon {
    color: #38bdf8;
}

.hero .sys-line {
    background-color: rgba(255, 255, 255, 0.1);
}

/* System Flow Diagram (v2 Visualizer) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.system-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 280px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.sys-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.sys-node span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
}

.sys-icon {
    font-size: 20px;
    color: var(--text-light);
}

.sys-node-active {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.sys-node-active .sys-icon {
    color: var(--primary);
}

.sys-line {
    width: 2px;
    height: 30px;
    background-color: var(--border);
    position: relative;
}

.sys-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-light);
}

/* 3. Core Capabilities */
.services {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.92);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header .badge {
    display: inline-flex;
    background: var(--primary-light);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-heading);
}

.section-header p.lead {
    font-size: 16px;
    max-width: 650px;
    color: var(--text);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 138, 0.2);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-heading);
}

.service-card p {
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags li {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 4px;
}

/* 4. Architecture Section */
.architecture-section {
    padding: 100px 0;
    background-color: rgba(248, 250, 252, 0.93);
    border-top: 1px solid var(--border);
}

.arch-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.arch-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arch-menu-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.arch-menu-btn i {
    font-size: 18px;
    color: var(--text-light);
    transition: var(--transition);
}

.arch-menu-btn span {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
}

.arch-menu-btn:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.arch-menu-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.arch-menu-btn.active i,
.arch-menu-btn.active span {
    color: #ffffff;
}

.arch-detail-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.arch-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.arch-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.arch-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.arch-desc {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.arch-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.arch-specs li {
    font-size: 13.5px;
    color: var(--text);
}

.arch-specs li strong {
    color: var(--text-heading);
}

/* 5. Qualcomm Banner */
.partners {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.92);
}

.partners-banner {
    background: linear-gradient(135deg, #1e3a8a, #0369a1);
    border-radius: 20px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.partner-badge {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.partners-content h2 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 20px;
}

.partners-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
}

.partners-logo-box {
    display: flex;
    justify-content: center;
}

.qualcomm-logo {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px 48px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Ecosystem Partners Grid */
.partners-grid-container {
    margin-top: 60px;
    text-align: center;
}

.partners-grid-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.01em;
}

.partners-grid-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 99px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.partner-item {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.partner-item img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* 6. Process Section (Horizontal Timeline) */
.process {
    padding: 100px 0;
    background-color: rgba(248, 250, 252, 0.93);
    border-top: 1px solid var(--border);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.process-step-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 12px;
}

.process-step-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.process-step-item p {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.6;
}

/* 7. Contact / Consultation */
.contact {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--border);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.detail-item span {
    font-size: 15px;
    color: var(--text-heading);
}

.contact-form-container {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-heading);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* 8. Footer */
.footer {
    background-color: #0f172a; /* grounded dark Slate 900 footer */
    color: #e2e8f0;
    padding: 80px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 360px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 13.5px;
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 24px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }

.toast-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-heading);
}

.toast-content p {
    font-size: 12.5px;
    color: var(--text);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-caret {
    font-size: 10px;
    opacity: 0.6;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: var(--transition);
    z-index: 1200;
}

.lang-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-dropdown button {
    text-align: left;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.lang-dropdown button:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.lang-dropdown button.active {
    color: var(--primary);
    font-weight: 700;
    background-color: var(--primary-light);
}

/* RWD Queries */
@media (max-width: 1150px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .hero {
        background-image: radial-gradient(circle at center, rgba(11, 15, 25, 0.35) 0%, rgba(11, 15, 25, 0.95) 100%), url('img/pcba.jpg');
        background-position: center center;
        background-size: cover;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 38px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .arch-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .partners-banner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding: 40px;
    }

    .partners-logo-box {
        justify-content: center;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .form-group-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Circular Flag Icons (i18n) */
.flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    position: relative;
}

.flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.flag::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* i18n Font Stacks (JA / TH) */
body.lang-ja,
body.lang-ja h1, body.lang-ja h2, body.lang-ja h3,
body.lang-ja h4, body.lang-ja h5, body.lang-ja h6,
body.lang-ja .btn {
    font-family: 'Noto Sans JP', 'Inter', system-ui, sans-serif;
}

body.lang-th,
body.lang-th h1, body.lang-th h2, body.lang-th h3,
body.lang-th h4, body.lang-th h5, body.lang-th h6,
body.lang-th .btn {
    font-family: 'Noto Sans Thai', 'Inter', system-ui, sans-serif;
}

body.lang-th { line-height: 1.75; }

/* Footer CTA buttons (Cell-Nexus / Space / Cellbedell / Godspeed) */
.footer-cta {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px 40px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13.5px;
    color: #ffffff;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
}

.btn-cta-nexus {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-cta-space {
    background-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-cta-cbd {
    background-color: #1a98d7;
    box-shadow: 0 4px 14px rgba(26, 152, 215, 0.3);
}

.btn-cta-godspeed {
    background-color: #4f46e5;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

@media (max-width: 1100px) {
    .footer-cta {
        flex-wrap: wrap;
    }
}

/* ==========================================================
   Corporate History (Timeline) & Latest News (Subpages)
   ========================================================== */

/* Subpage Hero Banner */
.subpage-hero {
    position: relative;
    padding: 120px 24px 80px 24px;
    background-color: #0b0f19;
    background-image: radial-gradient(circle at center, rgba(14, 165, 233, 0.12) 0%, transparent 70%), url('img/pcba.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.8) 0%, #0b0f19 100%);
    z-index: 1;
}

.subpage-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.subpage-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.subpage-hero-desc {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Timeline Layout */
.timeline-section {
    padding: 80px 24px;
    background-color: #f8fafc;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(14, 165, 233, 0.1) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-badge {
    position: absolute;
    top: 26px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -9px;
}

.timeline-content {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.timeline-year {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
    display: inline-block;
}

.timeline-milestone {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        margin-bottom: 40px;
    }
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        padding-left: 45px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 45px;
    }
    .timeline-item:nth-child(odd) .timeline-badge,
    .timeline-item:nth-child(even) .timeline-badge {
        left: 11px;
    }
}

/* News Layout */
.news-section {
    padding: 80px 24px;
    background-color: #f8fafc;
}

.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.news-card-img {
    height: 200px;
    background-color: #0b0f19;
    background-image: radial-gradient(circle at center, rgba(14, 165, 233, 0.2) 0%, transparent 80%), url('img/pcba.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    height: 68px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-card-btn {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.news-card-btn:hover {
    color: #2563eb;
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Modal Styling */
.news-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.news-modal-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-modal.active .news-modal-wrapper {
    transform: scale(1);
}

.news-modal-header-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.news-modal-close-btn:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 35px;
}

.news-modal-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.news-modal-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.news-modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.news-modal-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================================
   Navigation Dropdown Menu
   ========================================================== */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}

.nav-caret {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-item-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.96) transparent;
    pointer-events: none;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

@media (max-width: 1150px) {
    .nav-item-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }
    
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--bg-alt);
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px 0 0 0;
        min-width: unset;
        width: 100%;
        box-shadow: none !important;
    }
    
    .nav-dropdown-menu a {
        padding: 8px 0;
        text-align: center;
    }
}

/* ==========================================================
   Achievements, Patents, Papers details styling
   ========================================================== */
.history-details-section {
    padding: 80px 24px;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 30px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.achievement-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background-color: var(--primary);
    opacity: 0.8;
}

.achievement-card.award-card::before {
    background-color: #f59e0b; /* Amber for award cards */
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.ach-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

.achievement-card.award-card .ach-year {
    color: #b45309;
    background-color: #fef3c7;
}

.achievement-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.achievement-card p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.patents-section-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.subsection-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    padding-bottom: 10px;
}

.subsection-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.patents-list,
.papers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.patent-item,
.paper-item {
    display: flex;
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
}

.patent-item:hover,
.paper-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.patent-icon,
.paper-icon {
    font-size: 24px;
    color: var(--primary);
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.patent-info,
.paper-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.patent-date,
.paper-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.patent-info h4,
.paper-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
}

.patent-info p,
.paper-info p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

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