/* ==========================================================================
   CapyparaLabs - Premium Corporate Design System (Brand CI)
   Symmetric Layout & Size Contrast Optimized
   ========================================================================== */

/* --- Custom Properties (CI Colors & UI Parameters) --- */
:root {
    --primary-orange: #FF7A1A;
    --primary-blue: #0066CC;
    --neutral-dark: #121212;
    --neutral-gray: #4A5568;
    --light-gray: #FAFBFD;
    --white: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.05);

    /* Semantic Variables for Dark/Light theme */
    --bg-color: #FFFFFF;
    --text-color: #4A5568;
    --card-bg: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.85);
    --bg-light: #FAFBFD;
    
    /* Font Pairing: Nunito for Latin/Numbers, Kanit for Thai */
    --font-family: 'Nunito', 'Kanit', sans-serif;
    
    /* Transparent variations */
    --primary-orange-light: rgba(255, 122, 26, 0.06);
    --primary-blue-light: rgba(0, 102, 204, 0.05);
    --primary-blue-mid: rgba(0, 102, 204, 0.12);
    --dark-overlay: rgba(18, 18, 18, 0.015);
    
    /* Global Border Radius */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    /* Soft Premium Shadows */
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.015);
    --shadow-medium: 0 16px 40px rgba(0, 0, 0, 0.03);
}

body.dark-mode {
    --bg-color: #0b0f19;
    --text-color: #94a3b8;
    --neutral-dark: #f8fafc;
    --neutral-gray: #94a3b8;
    --light-gray: #151e2e;
    --white: #111b27;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --card-bg: #111b27;
    --header-bg: rgba(11, 15, 25, 0.85);
    --bg-light: #151e2e;
    
    --primary-orange-light: rgba(255, 122, 26, 0.15);
    --primary-blue-light: rgba(0, 102, 204, 0.15);
    --primary-blue-mid: rgba(0, 102, 204, 0.3);
    --dark-overlay: rgba(255, 255, 255, 0.02);
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 16px 40px rgba(0, 0, 0, 0.35);
}

body.dark-mode #nav-logo {
    filter: invert(1) hue-rotate(180deg);
}

body.dark-mode select option {
    background-color: #111b27;
    color: #f8fafc;
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.essence-card, .matrix-pillar, .tab-btn, .project-sheet, .contact-grid-card, .op-node, .roadmap-content, .trendradar-card, #main-header, input, select, textarea, .side-card-flat {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Comfortable Grid Systems helper */
.grid-2-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.center-aligned {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    padding: 120px 0;
    position: relative;
}

.bg-light {
    background-color: var(--light-gray);
}

/* --- Typography Hierarchy (Contrast Optimized) --- */
h1, h2, h3, h4, h5, h6, p, li, blockquote, span, label, cite {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--neutral-dark);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.8rem; /* Scaled down for corporate credibility */
    font-weight: 800;
}

h2 {
    font-size: 2.2rem; /* Scaled down for corporate credibility */
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.4rem; /* Scaled down for corporate credibility */
    margin-bottom: 12px;
}

p {
    font-size: 1.08rem;
    color: var(--neutral-gray);
    margin-bottom: 16px;
}

/* --- Buttons & UI Elements --- */
.btn {
    display: inline-block;
    padding: 14px 34px;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #E05B00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 26, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue-light);
    transform: translateY(-2px);
}

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

.underline {
    width: 32px;
    height: 4px;
    background-color: var(--primary-orange);
    margin: 16px 0;
    border-radius: 2px;
}

.center .underline {
    margin: 16px auto;
}

.badge {
    display: inline-block;
    padding: 6px 18px;
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--primary-blue-mid);
}

/* --- Header / Navigation Bar --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

#main-header.scrolled {
    height: 75px;
    box-shadow: var(--shadow-soft);
    border-bottom-color: var(--border-color);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    order: 2;
}

/* --- Language Visibility Control --- */
body:not(.lang-en) .lang-en {
    display: none !important;
}
body.lang-en .lang-th {
    display: none !important;
}

/* Language Switcher Button */
.lang-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neutral-gray);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.lang-toggle-btn:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

body:not(.lang-en) .lang-toggle-btn .lang-label-th {
    color: var(--primary-blue);
}
body.lang-en .lang-toggle-btn .lang-label-en {
    color: var(--primary-blue);
}

.lang-toggle-btn .lang-label-th,
.lang-toggle-btn .lang-label-en {
    transition: color 0.3s ease;
}

.lang-toggle-btn::before {
    content: '/';
    order: 1;
    color: var(--border-color);
}
.lang-toggle-btn .lang-label-th {
    order: 0;
}
.lang-toggle-btn .lang-label-en {
    order: 2;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--neutral-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background-color: var(--light-gray);
    transform: scale(1.05);
}

.theme-toggle-btn .theme-icon {
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

body:not(.dark-mode) .theme-toggle-btn .sun-icon {
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

body:not(.dark-mode) .theme-toggle-btn .moon-icon {
    transform: rotate(0) scale(1);
    opacity: 1;
}

body.dark-mode .theme-toggle-btn .sun-icon {
    transform: rotate(0) scale(1);
    opacity: 1;
}

body.dark-mode .theme-toggle-btn .moon-icon {
    transform: rotate(-90deg) scale(0);
    opacity: 0;
}

#nav-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

#main-header.scrolled #nav-logo {
    height: 40px;
}

#nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-gray);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.contact-btn {
    border: 2px solid var(--primary-orange);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    color: var(--primary-orange);
    transition: all 0.3s ease;
}

.contact-btn::after {
    display: none;
}

.contact-btn:hover, .contact-btn.active {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* --- Mobile Navigation Trigger --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle .bar {
    width: 24px;
    height: 3px;
    background-color: var(--neutral-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Hero Section (Comfortable Split Layout) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    background-color: var(--bg-color);
    overflow: hidden;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center top;
    z-index: 1;
}

body.dark-mode .grid-background {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
}

.hero-container.grid-2-col {
    z-index: 2;
    position: relative;
    align-items: center;
}

.hero-content.left-aligned {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--neutral-dark);
    line-height: 1.15;
}

.hero-title .highlight {
    color: var(--primary-orange);
}

.hero-tagline {
    font-size: 1.4rem; /* Scaled down slightly */
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero-desc {
    font-size: 1.05rem; /* Scaled down slightly */
    color: var(--text-color);
    margin-bottom: 36px;
    max-width: 700px;
    line-height: 1.8;
}

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

.hero-visual-side {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.visual-wrapper {
    width: 100%;
    position: relative;
}

.hero-svg {
    width: 100%;
    height: auto;
}

/* Beaker bubbles floating animation */
@keyframes floatUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-80px);
        opacity: 0;
    }
}

.bubble {
    animation: floatUp 4s infinite linear;
    transform-origin: center;
}

.b1 { animation-delay: 0s; animation-duration: 3.5s; }
.b2 { animation-delay: 1.2s; animation-duration: 4.5s; }
.b3 { animation-delay: 2.2s; animation-duration: 3s; }
.b4 { animation-delay: 3s; animation-duration: 4s; }

/* --- Section Headers --- */
.section-header {
    margin-bottom: 70px;
}

.section-header.center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-gray);
    font-weight: 500;
}

/* --- Who We Are Section (Comfortable Split Layout) --- */
.about-grid {
    align-items: flex-start;
    gap: 80px;
}

.about-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.about-content-left .section-header.left {
    margin-bottom: 32px;
    text-align: left;
}

.about-content-left .section-header.left .underline {
    margin: 16px 0;
}

.about-heading {
    font-size: 2rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-align: left;
    color: var(--neutral-dark);
}

.about-para {
    font-size: 1.15rem;
    text-align: left;
    margin-bottom: 0;
    line-height: 1.8;
}

.about-features-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.metric-lbl {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neutral-gray);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.about-quote-box {
    background-color: var(--light-gray);
    border-top: 4px solid var(--primary-orange);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: left;
    width: 100%;
}

.about-quote-box blockquote {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--neutral-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.about-quote-box cite {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* --- Brand Essence Cards (Comfort Layout) --- */
.essence-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.essence-intro-side {
    position: sticky;
    top: 130px;
}

.essence-intro-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.essence-cards-side {
    width: 100%;
}

.essence-grid-comfort {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.featured-essence {
    grid-column: span 2;
}

.essence-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.essence-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 102, 204, 0.1);
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.icon-circle.orange {
    background-color: var(--primary-orange-light);
    color: var(--primary-orange);
}

.icon-circle.blue {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
}

.essence-card h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.essence-card .th-desc {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.essence-card .card-desc {
    font-size: 0.96rem;
    color: var(--neutral-gray);
    margin-bottom: 0;
}

/* --- Ecosystem Matrix Section --- */
.ecosystem-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.matrix-pillar {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.matrix-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.pillar-header {
    padding: 36px 32px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.pillar-header.blue {
    background-color: var(--primary-blue);
}

.pillar-header.orange {
    background-color: var(--primary-orange);
}

.pillar-header.dark {
    background-color: var(--neutral-dark);
}

.pillar-icon {
    opacity: 0.9;
}

.pillar-header h3 {
    color: var(--white);
    font-size: 1.45rem;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.pillar-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.85;
}

.pillar-body {
    padding: 40px 32px;
}

.pillar-desc {
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 24px;
    font-size: 1rem;
    text-align: center;
}

.pillar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pillar-list li {
    font-size: 0.95rem;
    position: relative;
    padding-left: 16px;
}

.pillar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-orange);
}

/* --- Deep Dive Portfolio Section --- */
.tabs-navigator {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    background-color: var(--light-gray);
    padding: 12px;
    border-radius: 24px; /* Big rounded shape enclosing project names */
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px; /* Large rounded corners */
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.tab-btn .tab-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.tab-btn .tab-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neutral-gray);
    letter-spacing: 0.5px;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Individual Color Accents for Project Buttons */
.tab-btn.color-visionglass.active {
    background-color: rgba(0, 102, 204, 0.06);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.08);
}
.tab-btn.color-visionglass.active .tab-title {
    color: var(--primary-blue);
}
.tab-btn.color-visionglass.active .tab-subtitle {
    color: var(--primary-blue);
}

.tab-btn.color-wallprint.active {
    background-color: rgba(255, 122, 26, 0.06);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 25px rgba(255, 122, 26, 0.08);
}
.tab-btn.color-wallprint.active .tab-title {
    color: var(--primary-orange);
}
.tab-btn.color-wallprint.active .tab-subtitle {
    color: var(--primary-orange);
}

.tab-btn.color-forgex.active {
    background-color: rgba(13, 148, 136, 0.06);
    border-color: #0d9488;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.08);
}
.tab-btn.color-forgex.active .tab-title {
    color: #0d9488;
}
.tab-btn.color-forgex.active .tab-subtitle {
    color: #0d9488;
}

.tab-btn.color-aquawall.active {
    background-color: rgba(79, 70, 229, 0.06);
    border-color: #4f46e5;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.08);
}
.tab-btn.color-aquawall.active .tab-title {
    color: #4f46e5;
}
.tab-btn.color-aquawall.active .tab-subtitle {
    color: #4f46e5;
}

.tab-btn.color-event.active {
    background-color: rgba(147, 51, 234, 0.06);
    border-color: #9333ea;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.08);
}
.tab-btn.color-event.active .tab-title {
    color: #9333ea;
}
.tab-btn.color-event.active .tab-subtitle {
    color: #9333ea;
}

/* Project Detail Sheets container */
.project-details-container {
    position: relative;
    min-height: 480px;
}

/* Accent Colors definition per sheet */
#proj-visionglass { --project-color: var(--primary-blue); }
#proj-wallprint { --project-color: var(--primary-orange); }
#proj-forgex { --project-color: #0d9488; }
#proj-aquawall { --project-color: #4f46e5; }
#proj-event { --project-color: #9333ea; }

.project-sheet {
    display: none;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    border-top: 6px solid var(--project-color); /* Thematic top border */
    padding: 56px;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-sheet.active {
    display: block;
}

/* --- Portfolio Summary Card at the top --- */
.portfolio-summary-card {
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    border-left: 4px solid var(--project-color);
    margin-bottom: 24px;
}

.portfolio-summary-card .summary-thesis {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

.summary-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.summary-meta-item .lbl {
    font-size: 0.74rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neutral-gray);
    display: block;
    letter-spacing: 0.5px;
}

.summary-meta-item .val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-top: 6px;
    display: block;
    line-height: 1.4;
}

/* --- Collapsible Accordion Wrapper --- */
.portfolio-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.portfolio-collapsible > .collapsible-wrapper {
    min-height: 0;
}

.portfolio-collapsible.expanded {
    grid-template-rows: 1fr;
    border-top: 1px solid var(--border-color);
    margin-top: 32px;
    padding-top: 32px;
}

.portfolio-expand-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background-color: var(--light-gray);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--project-color);
    transition: all 0.3s ease;
}

.portfolio-expand-btn:hover {
    background-color: var(--primary-blue-light);
    border-color: var(--project-color);
    transform: translateY(-1px);
}

.portfolio-expand-btn .chevron-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-expand-btn.expanded .chevron-icon {
    transform: rotate(180deg);
}

.sheet-title-area {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.sheet-grid-comfort {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Asymmetric for reading comfort */
    gap: 48px;
    text-align: left;
}

.thesis-text {
    font-size: 1.15rem; /* Larger font size for core thesis to read easily */
    color: var(--neutral-dark);
    line-height: 1.7;
    margin-bottom: 24px;
}

.sheet-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-orange);
    display: block;
    margin-bottom: 8px;
}

.sheet-title-area h2 {
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.sheet-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0;
}

.info-group {
    margin-bottom: 32px;
}

.info-group h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--neutral-dark);
    margin-bottom: 16px;
    border-left: 3px solid var(--project-color);
    padding-left: 12px;
    display: inline-flex;
    align-items: center;
    width: 100%;
}

.pictogram {
    display: inline-block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.tab-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    margin-bottom: 8px;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.tab-btn:hover .tab-icon {
    transform: scale(1.1);
}

.tab-btn.active .tab-icon {
    stroke: var(--primary-blue);
    transform: scale(1.15);
}

.nobr {
    white-space: nowrap;
}

.sheet-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sheet-bullet-list li {
    font-size: 0.98rem;
    position: relative;
    padding-left: 24px;
}

.sheet-bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: var(--project-color);
    opacity: 0.8;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.side-card-flat {
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.side-card-flat h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.flat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.side-item {
    margin-bottom: 0;
}

.side-item .lbl {
    font-size: 0.74rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neutral-gray);
    display: block;
    letter-spacing: 0.5px;
}

.side-item .val {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-top: 6px;
    display: block;
    line-height: 1.4;
}

/* TrendRadar Card */
.trendradar-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-top: 48px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.trendradar-card:hover {
    box-shadow: var(--shadow-medium);
}

.trendradar-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 0 0 0 var(--radius-md);
    letter-spacing: 1px;
}

.trendradar-icon {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 32px;
    flex-shrink: 0;
}

.trendradar-text h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.trendradar-text p {
    font-size: 0.98rem;
    margin-bottom: 0;
}

/* --- Operating Model Section --- */
.operating-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
}

.op-node {
    flex: 1;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.op-node:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.node-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px auto;
}

.node-icon.orange {
    background-color: var(--primary-orange-light);
    color: var(--primary-orange);
}

.node-icon.blue {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
}

.node-icon.dark {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--neutral-dark);
}

.op-node h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.node-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--neutral-gray);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.node-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.op-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
}

.op-connector .arrow {
    width: 24px;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
}

.op-connector .arrow::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    transform: rotate(45deg);
}

/* --- Long-Term Vision Vertical Timeline (Comfort & Readability Optimized) --- */
.vision-timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
    padding-left: 56px; /* Space for the timeline axis on the left */
}

/* Vertical line */
.vision-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline badge (number) */
.timeline-badge {
    position: absolute;
    left: -56px;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-badge {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--white);
    transform: scale(1.1);
}

/* Timeline text block */
.timeline-panel {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 24px 32px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.timeline-item:hover .timeline-panel {
    box-shadow: var(--shadow-medium);
    transform: translateX(4px);
    border-color: rgba(0, 102, 204, 0.1);
}

.timeline-panel h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--neutral-dark);
}

.timeline-panel p {
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.7;
    color: var(--text-color);
}

/* --- Contact Section (Comfortable 2-Column Grid Card) --- */
.contact-grid-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 56px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
    text-align: left;
}

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

.contact-info-side h2 {
    font-size: 2.2rem;
    margin-bottom: 0;
    color: var(--neutral-dark);
    line-height: 1.2;
}

.contact-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-gray);
    margin-bottom: 8px;
}

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

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

.contact-detail-item svg {
    color: var(--primary-orange);
    flex-shrink: 0;
}

.contact-detail-item span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
}

.contact-form-side {
    width: 100%;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.98rem;
    color: var(--neutral-dark);
    transition: all 0.3s ease;
    background-color: var(--light-gray);
}

body.dark-mode .form-group input, 
body.dark-mode .form-group select, 
body.dark-mode .form-group textarea {
    color: var(--neutral-dark);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    background-color: var(--card-bg);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

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

/* --- Footer (Fixed Dark Theme) --- */
#main-footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 24px;
}

#footer-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.footer-brand-text h4 {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-brand-text p {
    color: var(--primary-orange);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-link-group h5 {
    color: #ffffff;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-link-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-group ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-link-group ul a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    background-color: #070a10;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-tagline-bottom {
    font-weight: 700;
    color: var(--primary-blue);
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    h1 {
        font-size: 3.2rem;
    }
    
    .sheet-grid-comfort {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .vision-timeline {
        padding-left: 36px;
        margin-top: 40px;
    }
    
    .vision-timeline::before {
        left: 10px;
    }
    
    .timeline-badge {
        left: -36px;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .timeline-panel {
        padding: 20px 24px;
    }
    
    .flat-grid {
        grid-template-columns: 1fr;
    }

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

    .essence-intro-side {
        position: static;
    }

    .essence-grid-comfort {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-grid-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    h2 {
        font-size: 2.1rem;
    }
    
    /* Mobile Menu Drawer style */
    .mobile-nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        padding: 100px 32px;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }
    
    #nav-menu.active {
        right: 0;
    }
    
    #nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    
    .mobile-menu-active .mobile-nav-toggle .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-active .mobile-nav-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-active .mobile-nav-toggle .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }
    
    /* Hero layout */
    .hero-container.grid-2-col {
        padding-top: 40px;
        gap: 40px;
    }
    
    .hero-content.left-aligned {
        align-items: center;
        text-align: center;
    }
    
    .hero-content.left-aligned .hero-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        width: 100%;
        justify-content: center;
    }
    
    /* About grid layout */
    .metric-row-centered, .metric-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        flex-direction: row;
    }
    
    /* Matrix layout */
    .ecosystem-matrix-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    /* Tabs navigator layout */
    .tabs-navigator {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 10px;
        gap: 10px;
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - 10px);
        border-radius: 14px;
        padding: 16px 8px;
    }
    
    /* Diagram layout */
    .operating-diagram {
        flex-direction: column;
        gap: 28px;
    }
    
    .op-connector {
        transform: rotate(90deg);
        height: 24px;
    }
    
    /* Contact layout */
    .contact-details-vertical {
        align-items: center;
    }
    
    /* Footer layout */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .trendradar-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }
    
    .trendradar-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .essence-grid-comfort {
        grid-template-columns: 1fr;
    }
    
    .featured-essence {
        grid-column: span 1;
    }
}
