/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Material Design 3 Theme)
   ========================================================================== */
:root {
    /* M3 Color Palette Tokens - Emerald Green (Excel) & Blue (AppSheet) Fusion */
    --md-sys-color-primary: #006C47; /* Tech Emerald */
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #D1E7DD;
    --md-sys-color-on-primary-container: #002112;
    
    --md-sys-color-secondary: #1A73E8; /* AppSheet Blue */
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #E8F0FE;
    --md-sys-color-on-secondary-container: #001B3D;
    
    --md-sys-color-tertiary: #6E5494; /* Automation Purple */
    --md-sys-color-on-tertiary: #FFFFFF;
    --md-sys-color-tertiary-container: #F3E5F5;
    
    --md-sys-color-background: #F7F9F8; /* Clean off-white/light gray with green tint */
    --md-sys-color-on-background: #191C1A;
    --md-sys-color-surface: #FFFFFF;
    --md-sys-color-on-surface: #191C1A;
    --md-sys-color-surface-variant: #F0F4F1;
    --md-sys-color-on-surface-variant: #404943;
    
    --md-sys-color-outline: #707973;
    --md-sys-color-outline-variant: #C0C9C2;
    --md-sys-color-error: #BA1A1A;
    --md-sys-color-success: #2E7D32;
    
    /* Font Families */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Elevations (Shadows) */
    --md-elevation-0: none;
    --md-elevation-1: 0px 1px 3px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.04);
    --md-elevation-2: 0px 4px 12px 0px rgba(0,0,0,0.08), 0px 1px 4px 0px rgba(0,0,0,0.04);
    --md-elevation-3: 0px 8px 24px 0px rgba(0,0,0,0.12), 0px 2px 8px 0px rgba(0,0,0,0.06);
    --md-elevation-4: 0px 12px 32px 0px rgba(0,0,0,0.16), 0px 4px 12px 0px rgba(0,0,0,0.08);
    
    /* Shape Corners */
    --md-shape-corner-small: 8px;
    --md-shape-corner-medium: 12px;
    --md-shape-corner-large: 16px;
    --md-shape-corner-extra-large: 28px;
    --md-shape-corner-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
    --transition-normal: 0.3s cubic-bezier(0.2, 0, 0, 1);
    --transition-slow: 0.5s cubic-bezier(0.2, 0, 0, 1);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--md-sys-color-on-background);
    background-color: var(--md-sys-color-background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--md-sys-color-on-background);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

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

/* ==========================================================================
   BUTTONS & TYPOGRAPHY UTILITIES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--md-shape-corner-full);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Touch target minimum */
}

.btn-filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: var(--md-elevation-1);
}

.btn-filled::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-filled:hover {
    box-shadow: var(--md-elevation-2);
    transform: translateY(-2px);
}

.btn-filled:hover::after {
    opacity: 1;
}

.btn-filled:active {
    box-shadow: var(--md-elevation-1);
    transform: translateY(0);
}

.btn-outlined {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 2px solid var(--md-sys-color-primary);
}

.btn-outlined:hover {
    background-color: rgba(0, 108, 71, 0.05);
    transform: translateY(-2px);
}

.btn-outlined:active {
    transform: translateY(0);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--md-sys-color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.btn-text:hover {
    color: var(--md-sys-color-secondary);
}

.btn-text:hover span.material-symbols-rounded {
    transform: translateX(4px);
}

.btn-text span.material-symbols-rounded {
    transition: var(--transition-fast);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: 6px 16px;
    border-radius: var(--md-shape-corner-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: var(--md-shape-corner-small);
    font-size: 0.8rem;
    font-weight: 600;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--md-elevation-1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--md-shape-corner-medium);
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, var(--md-sys-color-secondary) 100%);
    color: #FFFFFF;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--md-sys-color-on-background);
}

.logo-text span {
    color: var(--md-sys-color-primary);
    font-weight: 400;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface-variant);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--md-sys-color-primary);
    transition: var(--transition-fast);
}

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

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

.nav-link.active {
    color: var(--md-sys-color-primary);
}

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

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--md-sys-color-on-background);
    padding: 4px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(26, 115, 232, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(0, 108, 71, 0.04) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 40px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--md-sys-color-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
}

/* 3D Visual CSS Mockups */
.hero-visual {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Laptop Mockup CSS */
.laptop-mockup {
    position: absolute;
    width: 480px;
    height: 300px;
    left: 20px;
    top: 40px;
    z-index: 1;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transform-style: preserve-3d;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}

.laptop-screen {
    background: #2a2a2a;
    border-radius: 12px 12px 0 0;
    padding: 8px;
    border: 3px solid #e0e0e0;
    height: 280px;
    overflow: hidden;
}

.laptop-keyboard {
    background: linear-gradient(to bottom, #e0e0e0, #bdbdbd);
    height: 16px;
    border-radius: 0 0 16px 16px;
    position: relative;
    border-bottom: 4px solid #9e9e9e;
}

.laptop-keyboard::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: rgba(0,0,0,0.15);
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

/* Inside Laptop (Excel Dashboard UI) */
.excel-dashboard {
    background-color: #FFFFFF;
    height: 100%;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 10px;
}

.excel-header {
    background-color: #107C41; /* Excel green theme */
    color: #FFFFFF;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.excel-dots {
    display: flex;
    gap: 4px;
}

.excel-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
}

.excel-title {
    font-weight: 600;
}

.excel-body {
    flex: 1;
    display: flex;
    height: calc(100% - 22px);
}

.excel-sidebar {
    width: 40px;
    background-color: #f3f2f1;
    border-right: 1px solid #edebe9;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    height: 8px;
    background-color: #e1dfdd;
    border-radius: 2px;
}

.sidebar-item.active {
    background-color: #107C41;
}

.excel-content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.excel-cards {
    display: flex;
    gap: 8px;
}

.excel-card {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-green {
    background-color: #E8F5E9;
    border-left: 3px solid #2E7D32;
    color: #2E7D32;
}

.card-blue {
    background-color: #E3F2FD;
    border-left: 3px solid #1565C0;
    color: #1565C0;
}

.excel-card .card-title {
    font-weight: 500;
    font-size: 8px;
    opacity: 0.8;
}

.excel-card .card-value {
    font-size: 14px;
    font-weight: 700;
    margin: 2px 0;
}

.excel-card .card-trend {
    font-size: 7px;
    font-weight: 600;
}

.text-up { color: #2e7d32; }

.excel-chart-box {
    flex: 1;
    border: 1px solid #edebe9;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.excel-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.bar-chart-container {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    border-bottom: 1px solid #edebe9;
}

.chart-bar {
    width: 16px;
    background: linear-gradient(to top, #107C41, #33ab6f);
    border-radius: 3px 3px 0 0;
    height: var(--bar-h);
    position: relative;
    animation: bar-grow 1.5s ease-out forwards;
    transform-origin: bottom;
}

.chart-bar span {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: #8a8886;
}

@keyframes bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* Phone Mockup CSS */
.phone-mockup {
    position: absolute;
    width: 180px;
    height: 360px;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    transform: perspective(1000px) rotateY(12deg) rotateX(4deg);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.18));
}

.phone-screen {
    background: #000;
    border-radius: 28px;
    padding: 6px;
    border: 3px solid #ffffff;
    height: 100%;
    overflow: hidden;
}

.appsheet-app {
    background-color: #f7f9fa;
    height: 100%;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 8px;
}

.appsheet-header {
    background-color: #1A73E8; /* AppSheet Blue theme */
    color: #FFFFFF;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.appsheet-header span {
    font-size: 12px;
}

.appsheet-header .app-title {
    font-weight: 600;
}

.appsheet-body {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-search {
    background-color: #FFFFFF;
    border: 1px solid #e1e4e6;
    border-radius: 12px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8c969d;
}

.app-search span {
    font-size: 10px;
}

.app-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-title {
    font-weight: 700;
    color: #4b5257;
}

.app-scan-btn {
    background: linear-gradient(135deg, #1A73E8 0%, #0050b3 100%);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
}

.app-scan-btn span {
    font-size: 11px;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-list-item {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.item-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.item-icon span { font-size: 10px; }

.green-bg { background-color: #2E7D32; }

.red-bg { background-color: #C62828; }

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
}

.item-time {
    font-size: 6px;
    color: #8c969d;
}

.status-badge {
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 6px;
    font-weight: 700;
}

.green-badge { background-color: #E8F5E9; color: #2E7D32; }

.blue-badge { background-color: #E3F2FD; color: #1565C0; }

.appsheet-nav {
    border-top: 1px solid #e1e4e6;
    background-color: #FFFFFF;
    height: 32px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.appsheet-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8c969d;
}

.appsheet-nav .nav-item span {
    font-size: 10px;
}

.appsheet-nav .nav-item span:last-child {
    font-size: 5px;
    margin-top: 1px;
}

.appsheet-nav .nav-item.active {
    color: #1A73E8;
}

/* ==========================================================================
   PAIN POINTS & SOLUTIONS SECTION
   ========================================================================== */
.pain-points-section {
    background-color: var(--md-sys-color-surface-variant);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.pain-card {
    background-color: var(--md-sys-color-surface);
    padding: 40px 32px;
    border-radius: var(--md-shape-corner-large);
    box-shadow: var(--md-elevation-1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-normal);
}

.pain-card:hover {
    box-shadow: var(--md-elevation-3);
    transform: translateY(-8px);
    border-color: rgba(0, 108, 71, 0.15);
}

.pain-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--md-shape-corner-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pain-icon span {
    font-size: 28px;
}

.card-excel-accent {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.card-mobile-accent {
    background-color: #E3F2FD;
    color: #1565C0;
}

.card-cost-accent {
    background-color: #FFE0B2;
    color: #E65100;
}

.pain-card-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.pain-card-desc {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
}

.pain-conclusion {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(0, 108, 71, 0.08) 0%, rgba(26, 115, 232, 0.08) 100%);
    border-radius: var(--md-shape-corner-large);
    padding: 24px 32px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0,108,71,0.1);
}

.pain-conclusion span:first-child {
    font-size: 32px;
    color: var(--md-sys-color-primary);
    flex-shrink: 0;
}

.pain-conclusion span:last-child {
    font-size: 1.05rem;
    color: var(--md-sys-color-on-background);
}

/* ==========================================================================
   CORE SERVICES COMPARISON (EXCEL VS APPSHEET)
   ========================================================================== */
.services-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.service-col {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-shape-corner-extra-large);
    box-shadow: var(--md-elevation-1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-normal);
}

.service-col:hover {
    box-shadow: var(--md-elevation-3);
}

.service-excel:hover {
    border-color: rgba(0, 108, 71, 0.2);
}

.service-appsheet:hover {
    border-color: rgba(26, 115, 232, 0.2);
}

.service-header-box {
    padding: 40px;
    background-color: #FAFBFB;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--md-shape-corner-full);
    font-weight: 700;
    font-size: 0.85rem;
}

.excel-badge {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.appsheet-badge {
    background-color: #E3F2FD;
    color: #1565C0;
}

.service-col-title {
    font-size: 1.75rem;
}

.service-col-subtitle {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 1rem;
}

.service-body-box {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-feature-group h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
}

.service-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
}

.service-features-list li span.material-symbols-rounded {
    font-size: 18px;
    color: #757575;
    margin-top: 2px;
}

.highlight-list li span.material-symbols-rounded {
    color: var(--md-sys-color-primary);
}

.service-appsheet .highlight-list li span.material-symbols-rounded {
    color: var(--md-sys-color-secondary);
}

.highlight-list li strong {
    color: var(--md-sys-color-on-surface);
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */
.benefits-section {
    background-color: var(--md-sys-color-surface-variant);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    background-color: var(--md-sys-color-surface);
    padding: 32px;
    border-radius: var(--md-shape-corner-large);
    box-shadow: var(--md-elevation-1);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-card:hover {
    box-shadow: var(--md-elevation-2);
    transform: scale(1.02);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 108, 71, 0.08);
    border-radius: var(--md-shape-corner-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-primary);
}

.benefit-icon span { font-size: 24px; }

.benefit-card h3 {
    font-size: 1.25rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* ==========================================================================
   PORTFOLIO / CASE STUDIES
   ========================================================================== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--md-shape-corner-full);
    border: 1px solid var(--md-sys-color-outline-variant);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    min-height: 40px;
}

.filter-btn:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: var(--md-sys-color-primary);
}

.filter-btn.active {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: var(--md-sys-color-primary);
    box-shadow: var(--md-elevation-1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portfolio-card {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-shape-corner-large);
    box-shadow: var(--md-elevation-1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    border: 1px solid rgba(0,0,0,0.03);
}

.portfolio-card:hover {
    box-shadow: var(--md-elevation-3);
}

.portfolio-card:hover .portfolio-mockup-bg span {
    transform: scale(1.15) rotate(5deg);
}

.portfolio-img {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.06);
}

.portfolio-mockup-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.portfolio-mockup-bg span.icon-large {
    font-size: 64px;
    transition: var(--transition-normal);
}

.bg-gradient-blue { background: linear-gradient(135deg, #1A73E8 0%, #0052D4 100%); }

.bg-gradient-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }

.bg-gradient-purple { background: linear-gradient(135deg, #7F00FF 0%, #E100FF 100%); }

.portfolio-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    background-color: rgba(0, 108, 71, 0.06);
    padding: 2px 8px;
    border-radius: var(--md-shape-corner-small);
}

.portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.portfolio-desc {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 20px;
    flex: 1;
}

/* ==========================================================================
   WORKING PROCESS TIMELINE (Material Timeline)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--md-sys-color-outline-variant);
    top: 0;
    bottom: 0;
    left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

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

.timeline-badge {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--md-sys-color-primary);
    color: #FFFFFF;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 25px;
    top: 10px;
    z-index: 1;
    font-size: 0.9rem;
    box-shadow: 0 0 0 4px var(--md-sys-color-background);
}

.timeline-panel {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-shape-corner-large);
    padding: 24px 32px;
    box-shadow: var(--md-elevation-1);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: var(--transition-normal);
}

.timeline-panel:hover {
    box-shadow: var(--md-elevation-2);
    transform: translateX(4px);
}

.timeline-icon {
    display: inline-flex;
    color: var(--md-sys-color-primary);
    margin-bottom: 12px;
}

.timeline-icon span { font-size: 24px; }

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.timeline-desc {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
}

/* ==========================================================================
   TESTIMONIALS SLIDER & PARTNER LOGOS (Social Proof)
   ========================================================================== */
.testimonials-section {
    background-color: var(--md-sys-color-surface-variant);
    overflow: hidden;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.slider-wrapper {
    display: flex;
    transition: transform var(--transition-slow);
    width: 200%; /* for 2 slides */
}

.testimonial-slide {
    width: 50%; /* since wrapper is 200% */
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonial-content {
    background-color: var(--md-sys-color-surface);
    border-radius: var(--md-shape-corner-large);
    padding: 40px;
    box-shadow: var(--md-elevation-1);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 24px;
    right: 32px;
    color: rgba(0, 108, 71, 0.08);
}

.quote-icon span { font-size: 72px; }

.testimonial-content p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--md-sys-color-outline-variant);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    width: 28px;
    border-radius: 5px;
    background-color: var(--md-sys-color-primary);
}

/* Logos Marquee Running loop */
.partner-logos-marquee {
    margin-top: 40px;
    text-align: center;
}

.marquee-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.marquee-content {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

.marquee-content::before,
.marquee-content::after {
    content: '';
    position: absolute;
    top: 0; width: 100px; height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-content::before {
    left: 0;
    background: linear-gradient(to right, var(--md-sys-color-surface-variant), transparent);
}

.marquee-content::after {
    right: 0;
    background: linear-gradient(to left, var(--md-sys-color-surface-variant), transparent);
}

.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.logo-item {
    display: inline-block;
    margin: 0 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--md-sys-color-on-surface-variant);
    opacity: 0.6;
    letter-spacing: -0.5px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* Track has 2 identical sets, move by 50% */
}

/* ==========================================================================
   CONTACT & LEAD CAPTURE (Material Design 3 Forms)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

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

.contact-info-panel .contact-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

.contact-info-panel .contact-desc {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 16px 0;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    border-radius: var(--md-shape-corner-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon span { font-size: 24px; }

.item-text {
    display: flex;
    flex-direction: column;
}

.item-text span {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant);
}

.item-text strong {
    font-size: 1.1rem;
    color: var(--md-sys-color-on-background);
}

.contact-badges {
    display: flex;
    gap: 12px;
}

/* Form Styles */
.contact-form-panel {
    background-color: var(--md-sys-color-surface);
    padding: 40px;
    border-radius: var(--md-shape-corner-extra-large);
    box-shadow: var(--md-elevation-3);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.contact-form h3 {
    font-size: 1.5rem;
}

.contact-form p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.9rem;
    margin-top: -16px;
    margin-bottom: 8px;
}

/* Material 3 Outlined Input Fields with Floating Labels */
.form-group {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 16px;
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-shape-corner-small);
    color: var(--md-sys-color-on-surface);
    outline: none;
    transition: border-color var(--transition-fast), border-width var(--transition-fast);
}

/* Textarea specifically */
.text-control {
    min-height: 100px;
    resize: vertical;
}

/* Label overlay */
.form-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--md-sys-color-surface);
    padding: 0 4px;
    font-size: 1rem;
    color: var(--md-sys-color-on-surface-variant);
    pointer-events: none;
    transition: top var(--transition-fast), transform var(--transition-fast), font-size var(--transition-fast), color var(--transition-fast);
}

/* Adjust label for textarea */
textarea.form-control ~ .form-label {
    top: 24px;
    transform: translateY(-50%);
}

/* Label floating behavior on focus / autocomplete / filled state */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    left: 12px;
    color: var(--md-sys-color-primary);
    font-weight: 600;
}

.form-control:focus {
    border-color: var(--md-sys-color-primary);
    border-width: 2px;
}

/* Form Dropdown */
.select-group {
    display: flex;
    align-items: center;
}

.select-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    color: var(--md-sys-color-outline);
    pointer-events: none;
}

.select-label {
    top: 50%;
}

/* Form Submit feedback info */
.form-status {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
}

.form-status.success { color: var(--md-sys-color-success); }

.form-status.error { color: var(--md-sys-color-error); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #191C1A; /* Dark theme */
    color: #E2E3E1;
    padding: 80px 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .logo-text {
    color: #FFFFFF;
}

.brand-desc {
    color: #A3A3A3;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4,
.footer-info h4 {
    color: #FFFFFF;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

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

.footer-links a {
    color: #A3A3A3;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--md-sys-color-primary-container);
    padding-left: 4px;
}

.footer-info p {
    font-size: 0.95rem;
    color: #A3A3A3;
    margin-bottom: 12px;
}

.footer-info p strong {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #757575;
    font-size: 0.85rem;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (Zalo FAB)
   ========================================================================== */
.zalo-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background-color: #1A73E8; /* Zalo/Google Blue */
    border-radius: 50%;
    box-shadow: var(--md-elevation-3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-normal);
}

.zalo-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.zalo-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--md-elevation-4);
}

/* Tooltip on Hover */
.fab-tooltip {
    position: absolute;
    right: 70px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: var(--md-shape-corner-medium);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--md-elevation-1);
    pointer-events: none;
}

.zalo-fab:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Periodical ripple animation */
.zalo-fab::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #1A73E8;
    z-index: -1;
    opacity: 0.6;
    animation: fab-ripple 2s infinite;
}

@keyframes fab-ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   PORTFOLIO MODAL DETAIL SYSTEM
   ========================================================================== */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    background-color: var(--md-sys-color-surface);
    width: 90%;
    max-width: 680px;
    border-radius: var(--md-shape-corner-extra-large);
    box-shadow: var(--md-elevation-4);
    position: relative;
    z-index: 2001;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    max-height: 85vh;
}

.modal.open .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--md-sys-color-surface-variant);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--md-sys-color-on-surface-variant);
    transition: var(--transition-fast);
    z-index: 2002;
}

.modal-close-btn:hover {
    background-color: var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
}

.modal-content {
    padding: 40px;
    overflow-y: auto;
    max-height: 85vh;
}

/* Modal detail classes */
.modal-project-header {
    margin-bottom: 24px;
}

.modal-project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.modal-project-title {
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.modal-project-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--md-sys-color-primary);
}

.modal-project-body p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
}

.modal-project-body ul {
    list-style-type: disc;
    margin-left: 20px;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--md-shape-corner-medium);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   LAZY LOAD VISIBILITY CLASS FOR INTERSECTION OBSERVER
   ========================================================================== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    section {
        padding: 80px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.85rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        width: 100%;
    }
    
    .hero-visual {
        height: 380px;
    }
    
    .laptop-mockup {
        width: 380px;
        height: 240px;
        left: 50%;
        transform: translate(-50%, -20px) rotateY(-4deg);
        top: 0;
    }
    
    .laptop-screen {
        height: 220px;
    }
    
    .phone-mockup {
        width: 130px;
        height: 260px;
        right: 10%;
        bottom: 0;
        transform: rotateY(5deg);
    }
    
    .pain-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-comparison {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* Navigation System on Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--md-sys-color-surface);
        box-shadow: var(--md-elevation-3);
        z-index: 999;
        transition: right var(--transition-normal);
        padding: 80px 24px 40px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .header-cta {
        display: none; /* Hide in header, show in menu or just let user scroll down */
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-badge {
        left: 5px;
    }
}

/* SmartPhones */
@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .hero-visual {
        display: none; /* Hide complex 3D CSS art on small phones for readability */
    }
    
    .pain-conclusion {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slide {
        padding: 0;
    }
    
    .testimonial-content {
        padding: 24px;
    }
    
    .contact-form-panel {
        padding: 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .zalo-fab {
        bottom: 20px;
        right: 20px;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .modal-project-title {
        font-size: 1.5rem;
    }
}
