/* ============================================
   Crossbite Studio - Stylesheet
   Dark theme | Blue/Cyan accent
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --bg-dark: #0a0e1a;
    --bg-darker: #060912;
    --bg-card: #111827;
    --bg-card-hover: #151f33;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 212, 255, 0.3);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #00d4ff;
    --accent-2: #3b82f6;
    --accent-glow: rgba(0, 212, 255, 0.4);
    --gradient: linear-gradient(135deg, #00d4ff 0%, #3b82f6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);

    --success: #10b981;
    --facebook: #1877f2;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);

    --container: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] {
    --bg-dark: #f6f8fb;
    --bg-darker: #eef1f6;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --border: rgba(15, 23, 42, 0.1);
    --border-hover: rgba(0, 160, 220, 0.4);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent: #0091c7;
    --accent-2: #2563eb;
    --accent-glow: rgba(0, 145, 199, 0.25);
    --gradient: linear-gradient(135deg, #00a8dd 0%, #2563eb 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0, 168, 221, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);

    --shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 145, 199, 0.12);
}

/* override จุดที่ hardcode สีเข้มใน dark theme */
html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.75);
}
html[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .floating-card {
    background: rgba(255, 255, 255, 0.95);
}
html[data-theme="light"] .btn-outline {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--border);
    color: var(--text-primary);
}
html[data-theme="light"] .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 168, 221, 0.08);
}
html[data-theme="light"] .server-unit {
    background: var(--bg-darker);
}
html[data-theme="light"] .cta-banner {
    background:
        linear-gradient(135deg, rgba(0, 168, 221, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%),
        var(--bg-dark);
}
html[data-theme="light"] .hero-glow {
    opacity: 0.25;
}
html[data-theme="light"] .cta-card-glow {
    opacity: 0.08;
}
html[data-theme="light"] .contact-item-facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.12) 0%, var(--bg-card) 100%);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Prompt', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-soft);
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient);
    color: #001220;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
    color: var(--accent);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.nav-cta {
    padding: 10px 18px;
    font-size: 0.88rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(6, 9, 18, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
}
.logo-img { width: 34px; height: 34px; }
.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent); }

.nav-menu {
    display: flex;
    gap: 2px;
    margin: 0 auto;
}
.nav-link {
    padding: 8px 13px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}
.lang-btn {
    padding: 4px 8px;
    color: var(--text-muted);
    transition: var(--transition);
    border-radius: 4px;
}
.lang-btn.active { color: var(--accent); }
.lang-btn:hover { color: var(--text-primary); }
.lang-divider { color: var(--text-muted); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}
.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}
.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -100px;
    left: -100px;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--gradient-soft);
    border: 1px solid var(--border-hover);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.trust-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
.server-graphic {
    position: relative;
    width: 100%;
    max-width: 380px;
}
.server-rack {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow), var(--shadow-glow);
}
.server-unit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}
.server-unit:last-child { margin-bottom: 0; }
.server-unit:hover { border-color: var(--border-hover); transform: translateX(4px); }
.server-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ledBlink 2s infinite;
}
.led-green { background: var(--success); box-shadow: 0 0 8px var(--success); animation-delay: 0s; }
.led-blue { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation-delay: 0.5s; }
.server-unit .server-led:nth-child(1) { animation-delay: 0s; }
.server-unit .server-led:nth-child(2) { animation-delay: 0.3s; }
.server-unit .server-led:nth-child(3) { animation-delay: 0.6s; }
.server-line {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
    border-radius: 2px;
}
@keyframes ledBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}
.floating-card .card-icon { font-size: 1.4rem; }
.floating-card strong { display: block; font-size: 0.9rem; }
.floating-card small { color: var(--text-muted); font-size: 0.75rem; }
.card-1 { top: 10%; left: -30px; animation-delay: 0s; }
.card-2 { top: 45%; right: -40px; animation-delay: 1s; }
.card-3 { bottom: 10%; left: -20px; animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== STATS ===== */
.stats {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-darker);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}
.service-featured {
    border-color: var(--border-hover);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, var(--bg-card) 100%);
}
.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #001220;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--accent);
}
.service-icon svg { width: 28px; height: 28px; }
.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}
.service-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.service-price span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}
.service-features {
    margin-bottom: 24px;
}
.service-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 24px;
}
.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===== WHY US ===== */
.why { background: var(--bg-darker); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}
.why-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}
.why-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1;
}
.why-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.why-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== PRICING ===== */
.pricing-block {
    margin-bottom: 60px;
}
.pricing-block:last-child { margin-bottom: 0; }
.pricing-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.pricing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 12px var(--accent);
}
/* จุดหัวข้อ VPS i9 (สีทอง ต่างจาก Xeon) */
.pricing-dot-i9 {
    background: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
/* แพ็กเกจ VPS 4 การ์ด */
.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
    .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .pricing-grid-4 { grid-template-columns: 1fr; }
}
.price-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
/* ป้ายลดราคา -50% บนการ์ดราคา */
.price-discount {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f43f5e 0%, #ef4444 100%);
    color: #fff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    z-index: 2;
}
/* ป้าย -50% ใน service card */
.sale-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f43f5e 0%, #ef4444 100%);
    color: #fff;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 6px;
}

/* ===== SOLD OUT ===== */
/* การ์ดที่ขายหมด */
.price-card-soldout {
    opacity: 0.75;
}
.price-card-soldout:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}
/* ป้าย SOLD OUT ด้านบนการ์ด */
.price-soldout-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #f9fafb;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 2;
}
/* ปุ่ม Sold Out (แทนปุ่มสั่งซื้อ) */
.btn-soldout {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: not-allowed;
    user-select: none;
}
.btn-soldout:hover {
    transform: none;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--text-muted);
    box-shadow: none;
}
.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}
.price-popular {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.06) 0%, var(--bg-card) 100%);
    box-shadow: var(--shadow-glow);
}
.price-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient);
    color: #001220;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}
.price-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.price-amount small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}
.price-features {
    flex: 1;
    margin-bottom: 24px;
}
.price-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 28px;
}
.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ===== TECHNOLOGY ===== */
.technology { background: var(--bg-darker); }
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}
.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.tech-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tech-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.tech-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-darker); }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.testimonial-stars {
    color: #f59e0b;
    letter-spacing: 3px;
    margin-bottom: 16px;
    font-size: 1rem;
}
.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: #001220;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author small { color: var(--text-muted); font-size: 0.8rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 80px 0;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%),
        var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.08;
}
.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ===== CONTACT ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.contact-lead {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.05rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: var(--transition);
}
.contact-item:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    background: var(--bg-card-hover);
}
.contact-item-facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, var(--bg-card) 100%);
    border-color: rgba(24, 119, 242, 0.3);
}
.contact-item-facebook:hover {
    border-color: var(--facebook);
}
.contact-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: var(--radius-sm);
    color: var(--accent);
    flex-shrink: 0;
}
.contact-item-facebook .contact-icon-wrap {
    color: var(--facebook);
    background: rgba(24, 119, 242, 0.1);
}
.contact-icon-wrap svg { width: 22px; height: 22px; }
.contact-text {
    flex: 1;
    min-width: 0;
}
.contact-text strong {
    display: block;
    font-size: 1rem;
}
.contact-text span {
    color: var(--text-muted);
    font-size: 0.88rem;
}
.contact-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}
.contact-item:hover .contact-arrow { color: var(--accent); transform: translateX(4px); }

.contact-placeholder {
    border-style: dashed;
    opacity: 0.85;
}
.contact-placeholder-tag {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Contact CTA Card */
.contact-cta-card {
    position: relative;
    background: linear-gradient(180deg, rgba(24, 119, 242, 0.08) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(24, 119, 242, 0.3);
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
}
.cta-card-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: var(--facebook);
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}
.cta-card-icon {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--facebook);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}
.cta-card-icon svg { width: 36px; height: 36px; }
.contact-cta-card h3 {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-card-desc {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 24px;
}
.cta-card-points {
    position: relative;
    text-align: left;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.cta-card-points li {
    padding: 6px 0 6px 28px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    position: relative;
}
.cta-card-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}
.cta-card-alt {
    position: relative;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.cta-card-alt a {
    color: var(--accent);
    font-weight: 600;
}
.cta-card-alt a:hover { text-decoration: underline; }

/* Big primary contact item */
.contact-item-big { padding: 22px 22px; }
.contact-item-big .contact-icon-wrap { width: 52px; height: 52px; }
.contact-item-big .contact-icon-wrap svg { width: 26px; height: 26px; }
.contact-item-big .contact-text strong { font-size: 1.1rem; }
.primary-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    background: var(--gradient);
    color: #001220;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    vertical-align: middle;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: 320px;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-social a:hover {
    color: var(--facebook);
    border-color: var(--facebook);
    transform: translateY(-2px);
}
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--accent);
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.btn-facebook {
    background: var(--facebook);
    color: #fff;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.35);
    gap: 10px;
}
.btn-facebook:hover {
    background: #1565d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.5);
}

/* ===== FLOATING BUTTONS ===== */
.float-fb {
    position: fixed;
    bottom: 24px;
    left: 24px;               /* ย้ายไปซ้ายล่าง เพื่อไม่ชน chat box Messenger (ขวาล่าง) */
    right: auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--facebook);
    border-radius: 50%;
    color: white;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    z-index: 999;
    transition: var(--transition);
}
.float-fb:hover { transform: scale(1.1); }
.float-fb svg { width: 28px; height: 28px; }

.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--gradient);
    color: #001220;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-trust { justify-content: center; }
    .hero-visual { order: -1; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(6, 9, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: var(--transition);
        gap: 4px;
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-link { padding: 12px 16px; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .floating-card { display: none; }
    .hero { min-height: auto; padding-top: 110px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .contact-form-wrap { padding: 24px; }
}

/* ===== FACEBOOK MESSENGER CHAT ===== */
.fb-customerchat {
    z-index: 1000;
}
html[data-theme="light"] .fb-customerchat {
    filter: none;
}

/* ===== THEME SWITCH ===== */
html, body {
    transition: background-color 0.3s ease, color 0.3s ease;
}
html[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
}
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
