/* ============================================
   เพชรศิลาโฮมเซ็นเตอร์ - Website Stylesheet
   Enhanced with Viral Mind + Millionaire Mind + Creator Framework
   ============================================ */

/* ============================================
   1. CSS Variables - Premium Design System
   ============================================ */
:root {
    /* Primary - Deep Trust Blue */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.25);

    /* Secondary - Attention Gold */
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;

    /* Accent - Success Green */
    --accent-green: #10b981;
    --accent-red: #ef4444;

    /* Text Hierarchy */
    --text-color: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Backgrounds */
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --bg-gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #2563eb 100%);

    /* Borders & Shadows - Depth System */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-glow-primary: 0 4px 20px rgba(30, 64, 175, 0.3);
    --shadow-glow-secondary: 0 4px 20px rgba(245, 158, 11, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   2. Reset & Base (รีเซ็ตและพื้นฐาน)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary-color);
    color: white;
}

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

ul {
    list-style: none;
}

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

/* ============================================
   3. Layout (เลย์เอาท์)
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ============================================
   4. Components - Buttons (ปุ่ม)
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-full {
    width: 100%;
}

/* ============================================
   5. Components - Section Header (หัวข้อ Section)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.7;
}

/* ============================================
   6. Components - Placeholders (ตัวยึดตำแหน่งรูป)
   ============================================ */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.placeholder-text {
    font-size: 1rem;
    font-weight: 500;
}

.placeholder-size {
    font-size: 0.75rem;
    opacity: 0.7;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.placeholder-mini {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.placeholder-mini:hover {
    transform: scale(1.05);
}

/* Dynamic Image States (โหลดจาก API) */
.portfolio-placeholder.has-image,
.lblock-placeholder.has-image {
    background: transparent;
}

.portfolio-placeholder.has-image img,
.lblock-placeholder.has-image img,
.lblock-thumb.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lblock-thumb.has-image {
    background: transparent;
}

/* ============================================
   7. Navigation (เมนูนำทาง)
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    padding: 20px 0;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.navbar.scrolled {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   8. Hero Section (ส่วนแรก)
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-gradient-hero);
    overflow: hidden;
}

/* Animated Background Shapes - Pattern Interrupt */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    animation: heroFloat 10s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 40px) scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 120px 0 100px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

/* Underline Highlight Effect */
.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(245, 158, 11, 0.4);
    border-radius: 3px;
    z-index: -1;
}

.hero-tagline {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 1;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--secondary-light);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 35px;
    opacity: 0.85;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-buttons .btn-primary {
    padding: 16px 36px;
    font-size: 1.05rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-secondary {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary-light);
    line-height: 1;
    margin-bottom: 6px;
}

.trust-label {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 300;
}

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

/* Scroll Reveal Animation */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: revealUp 0.6s ease forwards;
}

/* ============================================
   9. Services Section (บริการของเรา)
   ============================================ */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(59, 130, 246, 0.08));
    border-radius: 20px;
    transition: var(--transition-bounce);
    color: var(--primary-color);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-pain {
    color: var(--accent-red);
    font-size: 0.88rem;
    font-style: italic;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.06);
    border-radius: 8px;
    display: inline-block;
}

.service-solution {
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.7;
}

/* ============================================
   10. Portfolio Section (ผลงานของเรา)
   ============================================ */
.portfolio {
    background-color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-item:hover .portfolio-placeholder {
    transform: scale(1.05);
}

.portfolio-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.portfolio-info {
    padding: 20px;
    background: white;
}

.portfolio-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.portfolio-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
}

.portfolio-cta p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* ============================================
   11. Testimonials Section (ลูกค้าพูดถึงเรา)
   ============================================ */
.testimonials {
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-rating {
    margin-bottom: 16px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.author-location {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   12. L-Block Section (กำแพงกันดิน)
   ============================================ */
.lblock-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.lblock-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.lblock-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lblock-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.lblock-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.lblock-tagline {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 30px;
}

/* L-Block Pain Points */
.lblock-pain {
    background: #fef2f2;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #dc2626;
}

.lblock-pain h3 {
    color: #dc2626;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.lblock-pain ul {
    list-style: none;
}

.lblock-pain li {
    padding: 5px 0;
    color: #7f1d1d;
}

/* L-Block Solution */
.lblock-solution {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #16a34a;
}

.lblock-solution h3 {
    color: #16a34a;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.lblock-solution ul {
    list-style: none;
}

.lblock-solution li {
    padding: 5px 0;
    color: var(--text-color);
}

/* L-Block CTA - Urgency & Action */
.lblock-cta {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.lblock-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-light));
}

.lblock-price {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.lblock-price strong {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.lblock-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.lblock-urgency {
    margin-top: 18px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lblock-cta .btn-primary {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* L-Block Visual */
.lblock-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lblock-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

/* L-Block Gallery */
.lblock-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.lblock-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

/* L-Block Features */
.lblock-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.lblock-feature {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.lblock-feature .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-light);
}

.lblock-feature span:last-child {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* ============================================
   13. About Section (เกี่ยวกับเรา)
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 25px 0 15px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    padding: 8px 0;
    color: var(--text-color);
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-glow-primary);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.4);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   14. Why Us Section (ทำไมต้องเลือกเรา)
   ============================================ */
.why-us {
    background-color: var(--bg-light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-item {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
}

.feature-item:hover::after {
    width: 100%;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(59, 130, 246, 0.08));
    border-radius: 14px;
    transition: var(--transition-bounce);
    color: var(--primary-color);
}

.feature-icon svg {
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-primary);
    color: #fff;
}

.feature-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   15. Contact Section (ติดต่อเรา)
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Form - Conversion Optimized */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 22px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background-color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.contact-form .btn-primary {
    padding: 16px;
    font-size: 1.05rem;
    margin-top: 8px;
}

/* ============================================
   16. Footer (ส่วนท้าย)
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #070c18 100%);
    color: white;
    padding: 70px 0 20px;
}

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

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

.footer-brand .logo {
    margin-bottom: 0;
}

.footer-brand .logo-img {
    height: 60px;
    width: auto;
}

.footer-brand p {
    color: white;
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

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

.footer-services ul li {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-contact p a {
    color: rgba(255, 255, 255, 0.7);
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links .social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.social-links .social-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ============================================
   16.5 Floating Contact Buttons (ปุ่มติดต่อลอย)
   ============================================ */
.floating-btns {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.12);
}

.float-phone {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.float-phone:hover {
    box-shadow: var(--shadow-glow-primary);
}

.float-messenger {
    background: linear-gradient(135deg, #0084ff, #00a6ff);
}

.float-messenger:hover {
    box-shadow: 0 4px 20px rgba(0, 132, 255, 0.4);
}

/* Placeholder SVG styling */
.placeholder-icon svg {
    opacity: 0.7;
}

/* ============================================
   16.6 Toast Notification (แจ้งเตือน)
   ============================================ */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
}

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

.toast-success {
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
}

.toast-error {
    background: rgba(239, 68, 68, 0.95);
    color: #fff;
}

/* ============================================
   17. Responsive - Tablet (หน้าจอ 992px)
   ============================================ */
@media (max-width: 992px) {
    /* --- Layout --- */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        max-width: 500px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    /* --- L-Block --- */
    .lblock-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lblock-visual {
        order: -1;
    }

    /* --- Hero --- */
    .hero-trust {
        gap: 25px;
    }
}

/* ============================================
   18. Responsive - Mobile (หน้าจอ 768px)
   ============================================ */
@media (max-width: 768px) {
    /* --- Section ทั่วไป --- */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* --- Navigation (เมนูมือถือ) --- */
    .navbar {
        padding: 15px 0;
    }

    .logo-img {
        height: 40px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: var(--transition);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links a {
        color: white;
        font-size: 1.1rem;
    }

    /* --- Hero Section --- */
    .hero {
        min-height: auto;
        padding-top: 80px;
    }

    .hero-content {
        padding: 60px 0;
    }

    .hero-tagline {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        text-align: center;
    }

    .hero-trust {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 35px;
        padding-top: 25px;
    }

    .trust-item {
        min-width: 80px;
    }

    .trust-number {
        font-size: 1.4rem;
    }

    .trust-label {
        font-size: 0.75rem;
    }

    /* --- Services Section --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-pain {
        font-size: 0.8rem;
    }

    .service-solution {
        font-size: 0.9rem;
    }

    /* --- Portfolio Section --- */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .portfolio-placeholder {
        height: 150px;
    }

    .portfolio-info {
        padding: 15px;
    }

    .portfolio-info h4 {
        font-size: 0.95rem;
    }

    .portfolio-info p {
        font-size: 0.8rem;
    }

    .portfolio-tag {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    /* --- Placeholder --- */
    .placeholder-icon {
        font-size: 2rem;
    }

    .placeholder-text {
        font-size: 0.8rem;
    }

    .placeholder-size {
        font-size: 0.65rem;
    }

    /* --- Testimonials Section --- */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    /* --- L-Block Section --- */
    .lblock-section {
        padding: 60px 0;
    }

    .lblock-info h2 {
        font-size: 1.6rem;
    }

    .lblock-tagline {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .lblock-pain,
    .lblock-solution {
        padding: 15px;
        margin-bottom: 20px;
    }

    .lblock-pain h3,
    .lblock-solution h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .lblock-pain li,
    .lblock-solution li {
        font-size: 0.9rem;
        padding: 4px 0;
    }

    .lblock-placeholder {
        height: 200px;
    }

    .lblock-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .lblock-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .lblock-feature {
        padding: 12px 8px;
    }

    .lblock-feature .feature-icon {
        font-size: 1.2rem;
    }

    .lblock-feature span:last-child {
        font-size: 0.7rem;
    }

    .lblock-cta {
        padding: 20px 15px;
    }

    .lblock-price {
        font-size: 1.1rem;
    }

    .lblock-price strong {
        font-size: 1.3rem;
    }

    .lblock-note {
        font-size: 0.75rem;
    }

    /* --- About Section --- */
    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-lead {
        font-size: 1rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .about-list li {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* --- Why Us Section --- */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 20px;
        gap: 15px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-item h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    /* --- Contact Section --- */
    .contact-item {
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .contact-details h4 {
        font-size: 0.9rem;
    }

    .contact-details p {
        font-size: 0.85rem;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        gap: 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: column;
        margin-bottom: 15px;
    }

    .footer-brand .logo-img {
        height: 50px;
    }

    .footer-brand p {
        color: white;
        font-size: 0.85rem;
        text-align: center;
    }

    .footer h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li,
    .footer-services ul li {
        margin-bottom: 8px;
        font-size: 0.8rem;
    }

    .footer-contact p {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }

    .social-links a {
        font-size: 1.3rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* ============================================
   19. Responsive - Small Mobile (หน้าจอ 480px)
   ============================================ */
@media (max-width: 480px) {
    /* --- Container --- */
    .container {
        padding: 0 15px;
    }

    /* --- Section --- */
    section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    /* --- Hero --- */
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-trust {
        gap: 15px;
    }

    .trust-item {
        min-width: 70px;
    }

    .trust-number {
        font-size: 1.2rem;
    }

    /* --- Portfolio --- */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-placeholder {
        height: 180px;
    }

    /* --- L-Block --- */
    .lblock-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .lblock-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lblock-feature {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .lblock-feature .feature-icon {
        margin-bottom: 0;
    }

    /* --- About Stats --- */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* --- Buttons --- */
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* --- Contact Form --- */
    .contact-form-wrapper {
        padding: 20px 15px;
    }
}
