@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. PREMIUM DESIGN SYSTEM & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

:root {
    --bg-color: #030303;
    --surface-color: #08080a;
    --surface-card: #0c0c0e;
    --surface-card-hover: #121215;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.055);
    --border-subtle: rgba(255, 255, 255, 0.03);
    --accent-color: #ffffff;
    --accent-glow: rgba(0, 240, 255, 0.04);
    --success-color: #10b981;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-speed: 0.4s;
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.6);

    --primary-color: #0088ff;
    --primary-hover: #33a3ff;
    --primary-gradient: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --primary-shadow: rgba(0, 136, 255, 0.15);
    --primary-shadow-hover: rgba(0, 136, 255, 0.25);
}

[data-theme="light"] {
    --bg-color: #f8f8fb;
    --surface-color: #ffffff;
    --surface-card: #f3f3f6;
    --surface-card-hover: #eaeaee;
    --text-main: #09090b;
    --text-muted: #71717a;
    --border-color: rgba(0, 0, 0, 0.06);
    --accent-color: #000000;
    --accent-glow: rgba(0, 136, 255, 0.03);
    
    --primary-color: #0066cc;
    --primary-hover: #0051a8;
    --primary-gradient: linear-gradient(135deg, #0088ff 0%, #0066cc 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --primary-shadow: rgba(0, 102, 204, 0.1);
    --primary-shadow-hover: rgba(0, 102, 204, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px),
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 136, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.65;
    transition: background-color var(--transition-speed) var(--easing),
                color var(--transition-speed) var(--easing);
}

[data-theme="light"] body {
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px),
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 102, 204, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(48, 179, 80, 0.03) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s var(--easing), opacity 0.8s var(--easing);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   2. NAVIGATION HEADER
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 3, 3, 0.45);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition-speed) var(--easing),
                border-color var(--transition-speed) var(--easing),
                box-shadow var(--transition-speed) var(--easing);
}

header.header-scrolled {
    background: rgba(3, 3, 3, 0.85);
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] header {
    background: rgba(248, 248, 251, 0.45);
    border-bottom-color: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] header.header-scrolled {
    background: rgba(248, 248, 251, 0.88);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    transition: padding var(--transition-speed) var(--easing);
}

header.header-scrolled .navbar {
    padding: 14px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: filter var(--transition-speed) var(--easing);
}

[data-theme="light"] .logo-img {
    filter: invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.65;
    position: relative;
    padding: 6px 0;
    transition: opacity 0.3s var(--easing), color 0.3s var(--easing);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--text-main);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transition: transform 0.3s var(--easing);
    transform-origin: center;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta {
    padding: 9px 20px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--easing);
}

.theme-toggle:hover {
    background: var(--border-color);
    border-color: var(--text-main);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    fill: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    margin: 4px 0;
    transition: 0.3s;
}

/* ==========================================================================
   3. SECTIONS & BUTTONS GENERAL
   ========================================================================== */
section {
    padding: 110px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    margin-bottom: 56px;
    max-width: 700px;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header.centered p {
    margin-left: auto;
    margin-right: auto;
}

.section-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.25;
    background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
}

[data-theme="light"] .section-header h1,
[data-theme="light"] .section-header h2 {
    background: linear-gradient(135deg, #09090b 30%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #09090b;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 640px;
}

.tagline {
    display: inline-block;
    border: 1px solid rgba(0, 136, 255, 0.25);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(0, 136, 255, 0.05);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 136, 255, 0.05);
}

[data-theme="light"] .tagline {
    border-color: rgba(0, 102, 204, 0.18);
    background: rgba(0, 102, 204, 0.04);
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.25s var(--easing);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 2px 12px var(--primary-shadow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--primary-shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .btn-secondary {
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* ==========================================================================
   4. CARDS & GRID COMPONENTS
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 40px;
}

.card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--easing);
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--surface-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.15);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.icon-box svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
    stroke-width: 1.75;
}

.icon-box.success {
    background: rgba(48, 179, 80, 0.08);
    border-color: rgba(48, 179, 80, 0.15);
}

.icon-box.success svg {
    color: var(--success-color);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
}

.tech-icon {
    width: 32px;
    height: 32px;
    color: var(--text-main);
    display: inline-block;
    vertical-align: middle;
    transition: color 0.3s var(--easing);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 25px;
    border-bottom: 1px solid transparent;
    transition: border var(--transition-speed);
}

.card-link:hover {
    border-color: var(--text-main);
}

/* ==========================================================================
   5. FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s var(--easing);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

[data-theme="light"] .form-control {
    background: rgba(0, 0, 0, 0.015);
}

[data-theme="light"] .form-control:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .form-control:focus {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

[data-theme="light"] select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid var(--success-color);
    color: #34c759;
}

.form-status.error {
    display: block;
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid #ff453a;
    color: #ff453a;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
footer {
    background: var(--surface-color);
    padding: 72px 0 36px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.7;
    font-size: 0.875rem;
}

.footer-links-group h4 {
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s var(--easing);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   7. PRELOADER SCREEN
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s var(--easing), visibility 0.6s;
}

.preloader-logo {
    width: 56px;
    height: auto;
    opacity: 0.9;
}

[data-theme="light"] .preloader-logo {
    filter: invert(1);
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loading-bar {
    0% { left: -50px; }
    100% { left: 100px; }
}

.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   8. FLOATING LINE CHATBOT WIDGET
   ========================================================================== */
#floating-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: inherit;
}

#chat-widget-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06C755 0%, #05a647 100%);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(6, 199, 85, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    transition: transform 0.25s var(--easing), box-shadow 0.25s;
}

#chat-widget-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(6, 199, 85, 0.5);
}

.chat-trigger-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(6, 199, 85, 0.4);
    top: 0;
    left: 0;
    z-index: -1;
    display: none; /* Disable pulsing animation */
}

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

#chat-window-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 330px;
    height: 480px;
    background: rgba(12, 12, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 199, 85, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9;
}

[data-theme="light"] #chat-window-container {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.chat-window-header {
    background: rgba(6, 199, 85, 0.15);
    border-bottom: 1px solid rgba(6, 199, 85, 0.25);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .chat-window-header {
    background: rgba(6, 199, 85, 0.1);
    border-bottom: 1px solid rgba(6, 199, 85, 0.2);
    color: #09090b;
}

.chat-window-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-brand-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-brand-details h5 {
    font-size: 0.85rem;
    font-weight: 600;
}

.chat-status-dot {
    font-size: 0.65rem;
    opacity: 0.9;
}

#chat-window-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

[data-theme="light"] #chat-window-close {
    color: #09090b;
}

#chat-window-close:hover {
    opacity: 1;
}

.chat-window-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-option-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="light"] .chat-option-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.chat-option-item:hover {
    background: rgba(6, 199, 85, 0.1);
    border-color: #06C755;
    transform: translateX(4px);
}

.chat-window-footer {
    padding: 12px 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
    gap: 10px;
}

.chat-input-placeholder {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.chat-send-btn {
    background: #06C755;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.chat-send-btn:hover {
    opacity: 0.9;
}

/* ==========================================================================
   9. GLOBAL RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-cta {
        display: none;
    }

    /* Mobile Drawer dim overlay */
    body.mobile-nav-active::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        pointer-events: auto;
    }

    section {
        padding: 70px 0;
    }
    
    .navbar {
        padding: 12px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-area {
        gap: 8px;
        font-size: 1.15rem;
        order: 1;
    }
    
    .logo-img {
        height: 28px;
    }

    .navbar nav {
        display: contents; /* Hide container wrapper box from flex flow while rendering contents */
    }

    .nav-controls {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .mobile-nav-toggle {
        display: block;
        order: 3;
        z-index: 1001;
    }
    
    .mobile-nav-active .mobile-nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .mobile-nav-active .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-active .mobile-nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--surface-color);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 100px 24px 40px;
        gap: 30px;
        transition: right 0.4s var(--easing);
        z-index: 999;
        overflow-y: auto;
    }
    
    .mobile-nav-active .nav-links {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .nav-links a::after {
        display: none; /* Hide slide underlining on mobile menu */
    }
    
    .cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .logo-area span {
        font-size: 1.05rem;
    }
    
    .logo-img {
        height: 24px;
    }
    
    #floating-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    #chat-window-container {
        width: calc(100vw - 40px);
        max-width: 330px;
    }
}

/* ==========================================================================
   14. CUSTOM UPGRADED STYLES (SyncAeverything Showcase Systems)
   ========================================================================== */

/* Signpost Cards */
.signpost-section {
    padding: 80px 0;
    background: var(--bg-color);
}
.signpost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.signpost-card {
    position: relative;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) var(--easing), 
                border-color var(--transition-speed) var(--easing), 
                box-shadow var(--transition-speed) var(--easing);
}
.signpost-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 113, 227, 0.15);
}
.signpost-card.smart-supply:hover {
    border-color: var(--success-color);
    box-shadow: 0 20px 40px rgba(52, 199, 89, 0.15);
}
.card-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.08) 0%, transparent 60%);
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}
.signpost-card.smart-supply .card-bg-glow {
    background: radial-gradient(circle at top right, rgba(52, 199, 89, 0.08) 0%, transparent 60%);
}
.signpost-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.signpost-icon-wrapper {
    margin-bottom: 25px;
}
.signpost-card-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}
.signpost-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.signpost-list-items {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.signpost-list-items li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.signpost-list-items li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}
.signpost-card.smart-supply .signpost-list-items li::before {
    color: var(--success-color);
}
.signpost-action-btn {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}
.signpost-card:hover .signpost-action-btn {
    gap: 10px;
}
.signpost-card.smart-supply .signpost-action-btn {
    color: var(--success-color);
}

/* Trust Signals Review Cards */
#trust-signals {
    padding: 80px 0;
    background: var(--bg-color);
}
.review-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Services Price Calculator */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}
@media (max-width: 900px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 30px;
    }
}
.calc-checkbox-container input[type="checkbox"]:checked + .calc-text {
    color: var(--text-main);
    font-weight: 500;
}

/* Booking Calendar cell */
.cal-day-cell:hover:not([style*="cursor: not-allowed"]) {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Wholesaler login toggle */
.role-toggle-group button {
    transition: all 0.3s;
}

/* Shopping Cart Drawer */
#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100%;
    height: 100vh;
    background: var(--surface-card);
    border-left: 1px solid var(--border-color);
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s var(--easing);
    box-sizing: border-box;
}

#cart-drawer.open {
    transform: translateX(0);
}

/* Omnichannel Connect */
.omnichannel-quick-connect {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}
.omni-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.omni-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.omni-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}
.omni-btn:hover {
    opacity: 0.85;
}
.omni-btn.line {
    background: #06C755;
}
.omni-btn.messenger {
    background: #0084FF;
}
.omni-btn.whatsapp {
    background: #25D366;
}

/* Modal Animation Keyframes */
@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 768px) {
    .signpost-grid {
        grid-template-columns: 1fr;
    }
    .booking-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* ==========================================================================
   14. MODERN WEB PLATFORM ENHANCEMENTS
   ========================================================================== */

/* Native Cross-Document View Transitions */
@view-transition {
    navigation: auto;
}

/* Modern Minimalist Scrollbars */
html {
    scrollbar-color: var(--primary-color) var(--bg-color);
    scrollbar-width: thin;
}

/* Native Auto-Resizing Form Fields */
textarea {
    field-sizing: content;
    min-height: 100px;
}

/* ==========================================================================
   15. CREDIBILITY & TRUST SYSTEMS
   ========================================================================== */

/* Trust Partners Logo Banner */
.partners-section {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.005);
    border-bottom: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.partners-slider {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0.45;
    transition: opacity 0.3s;
}

.partners-slider:hover {
    opacity: 0.75;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.3s var(--easing);
}

.partner-logo:hover {
    transform: translateY(-2px);
}

.partner-logo svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* General FAQ Accordion */
.faq-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.faq-grid {
    max-width: 820px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    transition: all 0.3s var(--easing);
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.05);
}

.faq-item summary {
    padding: 22px 28px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
    color: var(--text-main);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 28px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Security Badges block */
.security-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.security-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.005);
    backdrop-filter: blur(10px);
}

.security-badge-item svg {
    width: 16px;
    height: 16px;
    color: var(--success-color);
}

/* Custom Cursor Reticle */
@media (min-width: 1024px) {
    .custom-cursor {
        width: 8px;
        height: 8px;
        background-color: var(--primary-color);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 999999;
        transition: width 0.2s, height 0.2s, background-color 0.2s;
    }
    .custom-cursor-ring {
        width: 32px;
        height: 32px;
        border: 1px solid rgba(0, 113, 227, 0.4);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 999998;
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background-color 0.3s;
    }
    
    /* Cursor hover expand rules */
    body.cursor-hovering .custom-cursor {
        width: 4px;
        height: 4px;
        background-color: #ffffff;
    }
    body.cursor-hovering .custom-cursor-ring {
        width: 48px;
        height: 48px;
        border-color: rgba(255, 255, 255, 0.8);
        background-color: rgba(0, 113, 227, 0.1);
    }

    body.cursor-hovering-green .custom-cursor {
        width: 4px;
        height: 4px;
        background-color: #ffffff;
    }
    body.cursor-hovering-green .custom-cursor-ring {
        width: 48px;
        height: 48px;
        border-color: rgba(52, 199, 89, 0.8);
        background-color: rgba(52, 199, 89, 0.1);
    }
}

/* Floating Developer Console HUD */
#dev-hud-trigger {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(18, 18, 24, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s var(--easing);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
[data-theme="light"] #dev-hud-trigger {
    background: rgba(255, 255, 255, 0.85);
}
#dev-hud-trigger:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 0 15px rgba(0, 113, 227, 0.25);
}

#dev-hud-drawer {
    position: fixed;
    bottom: 85px;
    left: 25px;
    width: 280px;
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 113, 227, 0.05);
    padding: 18px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #a0a0ab;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
}
[data-theme="light"] #dev-hud-drawer {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1), 0 0 30px rgba(0, 0, 0, 0.02);
}
#dev-hud-drawer.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.dev-hud-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
[data-theme="light"] .dev-hud-title {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
.dev-hud-title span.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-green 1.5s infinite;
}

.dev-hud-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.dev-hud-row span.label {
    color: var(--text-muted);
}
.dev-hud-row span.val {
    color: var(--text-main);
    font-weight: bold;
}

.dev-hud-toggle-btn {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
[data-theme="light"] .dev-hud-toggle-btn {
    background: rgba(0, 0, 0, 0.02);
}
.dev-hud-toggle-btn:hover {
    background: rgba(0, 113, 227, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.dev-hud-toggle-btn.active {
    background: rgba(48, 179, 80, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

/* Developer Mode Outlines Overlay */
body.dev-mode-active * {
    outline: 1px dashed rgba(0, 240, 255, 0.2) !important;
}
body.dev-mode-active section {
    outline: 2px dashed rgba(0, 113, 227, 0.5) !important;
    outline-offset: -2px;
}
body.dev-mode-active .container {
    outline: 2px dashed rgba(52, 199, 89, 0.4) !important;
    outline-offset: -1px;
}
body.dev-mode-active header, body.dev-mode-active footer {
    outline: 2px dashed rgba(255, 149, 0, 0.4) !important;
}


