/* CSS Variables */
:root {
  /* Colors */
  --primary: #007bff;
  --primary-dark: #0056b3;
  --secondary: #28a745;
  --accent: #ffc107;
  --danger: #dc3545;

  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-primary: 'Kanit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --border-radius: 12px;
  --border-radius-sm: 8px;

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

/* Dark Theme */
body.dark {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --border: #30363d;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.4);
  --primary: #1f6feb;
  --primary-dark: #1158c7;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-dark);
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

body.dark .header {
  background: rgba(13, 17, 23, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  display: none;
}

@media (min-width: 768px) {
  .logo-text {
    display: block;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-fast);
}

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

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Navigation Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle,
.lang-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
}

.theme-toggle:hover,
.lang-toggle:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle {
  min-width: 50px;
  color: var(--text-primary);
}

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

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

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    flex-direction: column;
    gap: 1rem;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .nav-links a {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    text-align: center;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  z-index: -2;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, var(--primary) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--secondary) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--accent) 0%, transparent 50%);
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(-10px) rotate(-1deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-text {
    text-align: left;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  color: var(--text-secondary);
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  animation: slideInUp 1s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  animation: slideInUp 1s ease-out 0.6s both;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  @media (min-width: 768px) {
    .hero-buttons {
      justify-content: flex-start;
    }
  }
}

/* CTA Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cta.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.cta.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta.secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: slideInRight 1s ease-out 0.8s both;
}

#truck-path {
  width: 100%;
  height: 400px;
  position: relative;
}

#truck-path svg {
  width: 100%;
  height: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services {
  background: var(--bg-secondary);
}

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

.service-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Why Choose Section */
.why-choose {
  background: var(--bg-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-lg);
}

.why-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.why-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.about-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 30px;
  height: 30px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.about-visual {
  position: relative;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-lg);
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder svg {
  width: 100%;
  height: 100%;
}

/* Clients Section */
.clients {
  background: var(--bg-secondary);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.875rem;
  margin-bottom: 3rem;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1rem;
  height: 96px;
  overflow: hidden;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.client-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--primary);
}

.client-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  /* object-fit: contain inside a fixed-height card — uniform across all aspect ratios */
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.client-item:hover .client-logo img {
  opacity: 0.55;
}

/* Testimonials */
.testimonials {
  margin-top: 4rem;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.testimonial-content p {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.testimonial-author strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}
/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-text h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-text p {
  margin: 0;
  color: var(--text-secondary);
}

#contact-full-address {
  white-space: pre-line;
}

/* Contact Form */
.contact-form {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--border-radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
  pointer-events: none;
  background: var(--bg-primary);
  padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary);
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: block;
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* .form-group input:valid {
  border-color: #28a745;
}

.form-group textarea:valid {
  border-color: #28a745;
} */

/* Form Notice Styles */
.form-notice {
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Security Features */
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Phone Input Specific Styles */
/* #form-phone {
  letter-spacing: 1px;
} */

#form-phone:focus {
  background-color: rgba(0, 123, 255, 0.05);
}

/* Visual feedback for numeric-only input */
#form-phone::placeholder {
  content: "เฉพาะตัวเลข 0-9";
}

/* Add number indicator */
#form-phone + label::after {
  content: " ";
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Loading Animation Enhancement */
.submit-btn.loading {
  pointer-events: none;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

.footer-logo span {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.25rem;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive Utilities */
@media (max-width: 767px) {
  .hide-mobile { display: none; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none; }
}

/* AOS Animation Overrides */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ===================================================
   HERO — MODERN DARK NAVY BACKGROUND
   =================================================== */

.hero-background {
  background: linear-gradient(155deg, #0a1628 0%, #0f2557 40%, #1a3a8a 100%);
}

body.dark .hero-background {
  background: linear-gradient(155deg, #020810 0%, #060f28 40%, #0a1d52 100%);
}

.hero .hero-title {
  background: linear-gradient(135deg, #ffffff 20%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: pre-line;
  word-break: keep-all; /* prevent mid-word breaks in Thai */
}

.hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.hero .stat-item {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.hero .stat-number {
  color: #f59e0b;
}

.hero .stat-label {
  color: rgba(255, 255, 255, 0.72);
}

.hero .cta.primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.hero .cta.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.52);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.hero .cta.secondary {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.hero .cta.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.7);
}

.scroll-arrow {
  border-color: rgba(255, 255, 255, 0.45);
}

/* ===================================================
   SERVICE CARDS — ACCENT TOP BORDER ON HOVER
   =================================================== */

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

/* 3-column grid on large screens for 6 service cards */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================================
   INDUSTRIES SECTION
   =================================================== */

.industries {
  background: var(--bg-primary);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 540px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.industry-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px var(--shadow);
  background: var(--bg-primary);
}

.industry-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.industry-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.industry-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===================================================
   GROWTH BAND SECTION
   =================================================== */

.growth-band {
  background: linear-gradient(135deg, #0f2557 0%, #1a3a8a 50%, #1d4ed8 100%);
  color: white;
  padding: 4rem 0;
}

.growth-band .section-header {
  margin-bottom: 2rem;
}

.growth-band .section-title {
  color: white;
}

.growth-band .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.growth-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .growth-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .growth-stats {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.growth-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.growth-stat:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.growth-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.growth-stat-year {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.3rem;
}

.growth-stat-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #86efac;
  font-weight: 500;
}

/* ===================================================
   PROCESS SECTION
   =================================================== */

.process {
  background: var(--bg-secondary);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
  }

  .process-steps::before {
    content: '';
    position: absolute;
    top: 44px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.22;
    z-index: 0;
  }
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px var(--shadow);
  border-color: var(--primary);
}

.process-number {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-emoji {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ===================================================
   WHY-CARD — SUBTLE BACKGROUND NUMBER
   =================================================== */

.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: attr(data-index);
  position: absolute;
  bottom: -12px;
  right: 8px;
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  font-family: var(--font-secondary);
  transition: opacity 0.3s ease;
}

.why-card:hover::after {
  opacity: 0.09;
}

/* ===================================================
   ABOUT SECTION — ENHANCED FEATURE LIST
   =================================================== */

.about-features .feature-item {
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.about-features .feature-item:hover {
  border-color: var(--primary);
  background: var(--bg-primary);
}

/* ===================================================
   MOBILE — HERO PADDING FIX
   (title too close to fixed header on small screens)
   =================================================== */

@media (max-width: 767px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 2.5rem;
  }
}

/* ===================================================
   LEAFLET MAP — ABOUT SECTION
   =================================================== */

.nksl-map {
  height: 340px;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 1;
  position: relative;
  background: var(--bg-secondary);
}

/* On desktop: map stretches to match left-column height */
@media (min-width: 768px) {
  .about-visual {
    display: flex;
    flex-direction: column;
  }

  .about-visual .nksl-map {
    flex: 1 1 0;
    height: auto;
    min-height: 220px;
  }
}

.map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  font-size: 1rem;
  gap: 0.5rem;
}

.map-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
}

.legend-dot--hq     { background: #1d4ed8; }
.legend-dot--branch { background: #16a34a; }
.legend-dot--fleet  { background: #d97706; }

/* Leaflet custom tooltip */
.nksl-tooltip.leaflet-tooltip {
  background: rgba(15, 23, 42, 0.88) !important;
  border: none !important;
  border-radius: 6px !important;
  color: white !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  font-family: var(--font-primary) !important;
  padding: 4px 10px !important;
  white-space: nowrap !important;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.nksl-tooltip.leaflet-tooltip-top::before {
  border-top-color: rgba(15, 23, 42, 0.88) !important;
}

/* Leaflet popup font */
.leaflet-popup-content-wrapper,
.leaflet-popup-content {
  font-family: var(--font-primary) !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
}

/* ===================================================
   FEATURED SERVICE CARD — CUSTOMS CLEARANCE
   =================================================== */

.service-card--featured {
  border: 2px solid var(--primary);
  background: linear-gradient(
    160deg,
    var(--bg-primary) 0%,
    color-mix(in srgb, var(--primary) 5%, var(--bg-primary)) 100%
  );
  position: relative;
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .service-card--featured {
    background: var(--bg-primary);
  }
}

.service-card--featured::before {
  transform: scaleX(1) !important; /* Always show top accent */
}

.service-card--featured .service-icon {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* "ผู้เชี่ยวชาญ" badge */
.service-card--featured::after {
  content: '\2605 ผู้เชี่ยวชาญ';
  position: absolute;
  top: -1px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.4px;
  z-index: 1;
}

/* ===================================================
   FLEET SECTION
   =================================================== */

.fleet-section {
  background: var(--bg-secondary);
}

.fleet-areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .fleet-areas {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fleet-area-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: var(--transition);
}

.fleet-area-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px var(--shadow);
}

.fleet-area-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fleet-area-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.fleet-area-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.fleet-area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

@media (min-width: 480px) {
  .fleet-area-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fleet-area-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  gap: 0.2rem;
}

.fas-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.fas-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fas-detail {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.fleet-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.04), rgba(40, 167, 69, 0.04));
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}

.fleet-cap-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  text-align: center;
  background: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  line-height: 1.4;
  flex: 1 1 140px;
  max-width: 160px;
}

.fleet-cap-item:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.fleet-cap-icon {
  font-size: 1.5rem;
}

/* ===================================================
   WHY-CARD — ICONS + 3-COLUMN GRID FOR 6 CARDS
   =================================================== */

.why-card-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.25s ease;
}

.why-card:hover .why-card-icon {
  transform: scale(1.12);
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================================
   FLEET SECTION — DARK NAVY (matches growth-band)
   =================================================== */

.fleet-section {
  background: linear-gradient(135deg, #0f2557 0%, #1a3a8a 50%, #1d4ed8 100%);
  color: white;
}

.fleet-section .section-title {
  color: white;
}

.fleet-section .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.fleet-section .fleet-area-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.fleet-section .fleet-area-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.fleet-section .fleet-area-header h3 {
  color: white;
}

.fleet-section .fleet-area-stat {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.fleet-section .fas-number {
  color: #fbbf24;
}

.fleet-section .fas-label {
  color: rgba(255, 255, 255, 0.9);
}

.fleet-section .fas-detail {
  color: rgba(255, 255, 255, 0.55);
}

.fleet-section .fleet-capabilities {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.fleet-section .fleet-cap-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}

.fleet-section .fleet-cap-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
}

/* ===================================================
   VISUAL QUALITY — MINOR POLISH
   =================================================== */

/* Better section title underline accent */
.section-title {
  position: relative;
  display: inline-block;
}

/* Smooth gradient on service icon ring animation — reduce motion */
@media (prefers-reduced-motion: reduce) {
  .service-icon::before,
  .hero-particles,
  #truck,
  .loading-spinner {
    animation: none;
  }
}

/* Improve contact icon fill on hover */
.contact-icon {
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Footer social links cleaner */
.social-links a {
  text-decoration: none;
  color: var(--text-secondary);
}

/* Testimonial quote styling */
.testimonial-content p {
  position: relative;
}

.testimonial-content p::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}