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

/* ============================================
   TIDATIP.COM - REFRACTORY MATERIALS DISTRIBUTOR
   Design System & Styles
   Theme: White-Orange-Black Professional
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Primary Colors - Orange */
  --primary: #FF6B21;
  --primary-dark: #E55A10;
  --primary-light: #FF8C4A;
  --primary-bg: #FFF8F5;

  /* Neutral Colors */
  --black: #1A1A1A;
  --dark: #2D2D2D;
  --gray-800: #3D3D3D;
  --gray-600: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;

  /* Semantic Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Typography */
  --font-primary: 'Kanit', sans-serif;
  --font-heading: 'Kanit', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-orange: 0 10px 40px -10px rgba(255, 107, 33, 0.4);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
/* Font import moved to top */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-600);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
}

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

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

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

ul,
ol {
  list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary);
}

.text-dark {
  color: var(--black);
}

.text-gray {
  color: var(--gray-600);
}

.text-white {
  color: var(--white);
}

.bg-white {
  background-color: var(--white);
}

.bg-light {
  background-color: var(--gray-100);
}

.bg-dark {
  background-color: var(--black);
}

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

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

.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-col {
  flex-direction: column;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px -10px rgba(255, 107, 33, 0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition-base);
  pointer-events: none;
  /* Allow clicks through empty space */
}

.header.scrolled {
  padding: 0.5rem 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(20, 20, 20, 0.85);
  /* Dark Glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  /* Pill Shape */
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  /* Re-enable clicks */
  margin: 0 auto;
  max-width: 1200px;
  width: 95%;
  /* Responsive width */
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--white);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}

.lang-btn {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.header .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.6rem 1.8rem;
  box-shadow: none;
}

.header .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

/* ============================================
   SCROLL SLIDE-IN ANIMATIONS
   ============================================ */
.slide-in-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-section.slide-in-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .slide-in-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

/* Hero Background Slider (T1-T5) */
.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* ปุ่มเลื่อนรูปพื้นหลัง Hero */
.hero-nav {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.hero-nav svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.hero-nav:hover svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transform: scale(1.15);
}

.hero-nav:active svg {
  transform: scale(0.95);
}

.hero-nav-prev { left: var(--space-4); }
.hero-nav-next { right: var(--space-4); }

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--white);
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(255, 107, 33, 0.2);
  z-index: -1;
  border-radius: var(--radius-sm);
}

.hero-description {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-10);
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  justify-content: center;
}

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

.hero-stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
}

.hero-stat-number span {
  color: var(--primary);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.hero-image {
  display: none;
}

.hero-image-main {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-image-main img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.hero-image-float.top-right {
  top: -20px;
  right: -20px;
}

.hero-image-float.bottom-left {
  bottom: 40px;
  left: -30px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ============================================
   PARTNERS/CLIENTS SECTION
   ============================================ */
.partners {
  position: relative;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, #fafafa 100%);
  padding: var(--space-10) 0;
  overflow: hidden;
}

/* เงาพื้นหลังเท่ๆ */
.partners::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 107, 33, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.partners::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 140, 74, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.partners-title {
  position: relative;
  z-index: 1;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-6);
  text-align: center;
}

/* Slider wrapper: หนึ่งแถว, ปิด overflow, รองรับการปัด */
.partners-slider {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  margin: 0 auto;
}

/* ปุ่มเลื่อนซ้าย-ขวา (แสดงเฉพาะ PC) */
.partners-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  justify-content: center;
}

/* ไอคอนสีขาว + เงาเข้มให้มองเห็นบนพื้นอ่อน */
.partners-nav svg {
  width: 32px;
  height: 32px;
  color: var(--white);
  stroke: var(--white);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.partners-nav:hover svg {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transform: scale(1.15);
}

.partners-nav:active svg {
  transform: scale(0.95);
}

.partners-nav-prev {
  left: 8px;
}

.partners-nav-next {
  right: 8px;
}

/* แสดงปุ่มบน PC (min-width: 768px) */
@media (min-width: 768px) {
  .partners-nav {
    display: flex;
  }

  .partners-slider {
    padding: 0 56px;
  }

  .partners-nav-prev {
    left: 0;
  }

  .partners-nav-next {
    right: 0;
  }
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-8);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-6);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.partners-grid::-webkit-scrollbar {
  display: none;
}

/* ทุกรูปอยู่ในแถวเดียวกัน, ขนาดเท่ากันสำหรับ snap */
.partner-logo {
  height: 60px;
  width: auto;
  min-width: 120px;
  max-width: 140px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: all var(--transition-base);
  flex-shrink: 0;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}

.section-title span {
  color: var(--primary);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--gray-600);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: var(--text-2xl);
  color: var(--primary);
  transition: all var(--transition-base);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2px;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-description {
  color: var(--gray-600);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ============================================
   ABOUT PREVIEW SECTION
   ============================================ */
.about-preview {
  position: relative;
  overflow: hidden;
  background: url('/image/ผู้เชี่ยวชาญด้านวัสดุทนไฟที่คุณไว้วางใจได้.jpg') no-repeat center center;
  background-size: cover;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
}

.about-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-preview-text {
  color: var(--white);
}

.about-preview-text .section-label::before,
.about-preview-text .section-label::after {
  background: var(--white);
}

.about-preview-text .section-title {
  color: var(--white);
}

.about-preview-text .section-title span {
  color: var(--primary-light);
}

.about-preview-text p {
  color: var(--gray-400);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  font-weight: 500;
}

.about-feature-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
}

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

.about-stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.about-stat-number span {
  color: var(--primary);
}

.about-stat-label {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-us {
  background: var(--gray-100);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.why-us-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.why-us-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.why-us-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-3xl);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.why-us-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 2px;
}

.why-us-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.why-us-description {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  display: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.cta-title {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  font-weight: 500;
}

.cta-contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.92)), url('/image/พร้อมเริ่มต้นโครงการของคุณ.jpg');
  background-size: cover;
  background-position: center;
  color: var(--gray-400);
  padding-top: var(--space-16);
}

.footer-main {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr 1fr 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: start;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--gray-800);
}

.footer-brand {
  max-width: 100%;
}

.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-4);
}

.footer-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 400px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Inline styles removed to revert to vertical layout */

.footer-link {
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: var(--space-2);
}

.footer-link--nowrap {
  white-space: nowrap;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-contact-icon {
  width: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

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

/* ============================================
   PAGE HERO (For inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
  padding: calc(80px + var(--space-16)) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 107, 33, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}

.page-hero-title span {
  color: var(--primary);
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.page-hero-breadcrumb a {
  color: var(--gray-600);
}

.page-hero-breadcrumb a:hover {
  color: var(--primary);
}

.page-hero-breadcrumb span {
  color: var(--primary);
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  font-weight: 700;
  color: var(--gray-400);
  font-size: var(--text-xl);
}

.client-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.client-logo-img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.product-image {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-6);
}

.product-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

.product-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.product-description {
  color: var(--gray-600);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.product-subcategories {
  margin-bottom: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--gray-100);
}

.product-subcategories-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.product-subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-subcategories-list li {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--gray-600);
  background: var(--gray-100);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
}

/* หน้าแรก: แสดงสินค้า 3 รายการ */
.products-preview {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--gray-200);
}

.products-preview .section-header {
  margin-bottom: var(--space-8);
}

.products-grid--preview {
  margin-bottom: var(--space-8);
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card-link:hover .product-title {
  color: var(--primary);
}

.products-preview-cta {
  text-align: center;
}

.products-preview-cta .btn {
  min-width: 200px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: var(--text-2xl);
  color: var(--primary);
}

.value-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.value-description {
  color: var(--gray-600);
  font-size: var(--text-sm);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.contact-info-content p {
  color: var(--gray-600);
  font-size: var(--text-base);
  margin-bottom: 0;
}

/* ============================================
   GALLERY SECTION (6x6 grid + Lightbox)
   ============================================ */
.gallery {
  background: var(--gray-100);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--gray-200);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

/* Lightbox เต็มจอ พร้อมปุ่มซ้าย-ขวา */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
}

.gallery-lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  transition: background var(--transition-base);
  z-index: 10;
}

.gallery-lightbox-close:hover {
  background: var(--primary);
}

/* ปุ่มเลื่อนซ้าย-ขวา (ไอคอนขาว) */
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.2s ease;
}

.gallery-lightbox-prev {
  left: var(--space-4);
}

.gallery-lightbox-next {
  right: var(--space-4);
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  transform: translateY(-50%) scale(1.15);
}

.gallery-lightbox-prev svg,
.gallery-lightbox-next svg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* เลขลำดับรูป */
.gallery-lightbox-counter {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  z-index: 10;
}

/* ============================================
   YOUTUBE VIDEOS SECTION
   ============================================ */
.section.videos {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.video-channel-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
}

.video-channel-link {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
}

.video-channel-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.video-channel-link:hover .video-channel-card {
  border-color: var(--primary);
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

.video-channel-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff0000;
  color: var(--white);
  border-radius: var(--radius-lg);
}

.video-channel-name {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--gray-800);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-4);
}

.video-card {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--gray-200);
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.video-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-orange);
  transform: translateY(-4px);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-200);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 33, 0.95);
  color: var(--white);
  border-radius: 50%;
  transition: transform var(--transition-base);
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
  margin-left: 4px;
}

.video-content {
  padding: var(--space-5);
}

.video-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-1);
  line-height: 1.4;
}

.video-card:hover .video-title {
  color: var(--primary);
}

.video-meta {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* เล่นวิดีโอ inline ในช่อง ไม่เต็มจอ */
.video-embed-wrap {
  display: none;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--black);
  overflow: hidden;
}

.video-embed-wrap .video-embed-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-embed-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  z-index: 5;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-embed-close:hover {
  background: var(--primary);
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   FAQ SECTION (Dark Theme)
   ============================================ */
.faq {
  background: #0a0a0a;
  /* Almost black background */
  padding: var(--space-20) 0;
  position: relative;
  color: var(--white);
}

.faq .section-title {
  color: var(--white);
  /* Red/Primary color as per image */
  text-transform: uppercase;
}

.faq .section-title span {
  color: var(--primary);
}

.faq .section-description {
  color: var(--gray-400);
}

.faq-grid {
  display: grid;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: #1A1A1A;
  /* Dark card background */
  border: 1px solid #333;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item:hover {
  border-color: #555;
  background: #222;
  transform: translateY(-2px);
}

.accordion-item.active {
  border-color: var(--primary);
  background: #222;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--white);
  transition: all var(--transition-base);
}

.accordion-header:hover {
  color: var(--primary);
}

.accordion-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: var(--space-4);
  transition: transform 0.3s ease;
  color: #666;
  display: block;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  background: transparent;
}

.accordion-content-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-300);
  line-height: 1.6;
  font-size: var(--text-base);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-item.active .accordion-content-inner {
  padding-top: 1rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--black);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  background: var(--white);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-map {
  margin-top: var(--space-12);
  border-radius: var(--radius-xl);
  background: var(--gray-100);
}

.contact-social-btn:hover div {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.contact-social-btn:active div {
  transform: translateY(0) scale(0.95);
}

/* ============================================
   INDUSTRIES WE SERVE
   ============================================ */
.industries {
  background: var(--white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  justify-items: center;
}

.industry-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.industry-icon {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.industry-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners {
  background: var(--gray-50);
  padding: var(--space-12) 0;
  text-align: center;
}

.partners-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  font-weight: 700;
  color: var(--gray-800);
}

.partners-grid {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: nowrap;
}

.partner-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.partner-logo-img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-preview::before {
    display: none;
  }

  .about-preview-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-features {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .header-inner {
    padding: 0.5rem 1rem;
    height: auto;
    min-height: 60px;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    border-radius: var(--radius-xl);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

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

  .nav-link {
    color: var(--white);
    display: block;
    width: 100%;
    text-align: center;
    padding: var(--space-3) 0;
  }

  .nav-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
    position: relative;
  }

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

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

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

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-xl);
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--space-12);
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-6);
    justify-content: center;
    align-items: flex-start;
  }

  .hero-stat {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }

  .hero-stat-number {
    font-size: var(--text-2xl);
  }

  .hero-image-float {
    display: none;
  }

  .partners-grid {
    gap: var(--space-6);
  }

  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }

  .footer-links {
    align-items: center !important;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-contact-info {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.4s ease-out forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.4s ease-out forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.4s ease-out forwards;
}

/* Delay classes */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

/* Ensure body doesn't break fixed positioning */
body {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

/* ============================================
   FLOATING SOCIAL MENU
   ============================================ */
.floating-menu {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  display: flex;
  flex-direction: column;
  /* Stack Top-to-Bottom (Icons Top, Button Bottom) */
  align-items: center;
  gap: 15px;
  transform: none !important;
  /* Ensure no self-transform breaks fixed */
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.floating-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background-color: var(--primary);
  z-index: -1;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.floating-menu.active .floating-toggle-btn::before {
  animation: none;
  opacity: 0;
}

.floating-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 12px rgba(255, 107, 33, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.floating-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 107, 33, 0.5);
}

.floating-toggle-btn svg {
  position: absolute;
  transition: all 0.3s ease;
}

.floating-toggle-btn .icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.floating-toggle-btn .icon-share {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Active State for Toggle Button */
.floating-menu.active .floating-toggle-btn .icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.floating-menu.active .floating-toggle-btn .icon-share {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* Social Buttons Container */
.social-buttons {
  display: flex;
  flex-direction: column-reverse;
  /* Stack bottom-up: LINE (1st) at Bottom, Phone (3rd) at Top */
  gap: 12px;
  pointer-events: none;
  /* Ignore clicks when hidden */
}

.floating-menu.active .social-buttons {
  pointer-events: auto;
}

/* Social Button Base Styles */
.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  position: relative;
}

.social-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Active State for Social Buttons (Staggered Animation) */
.floating-menu.active .social-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.floating-menu.active .social-btn:nth-child(1) {
  transition-delay: 0.2s;
  /* Phone */
}

.floating-menu.active .btn-phone {
  transition-delay: 0.05s;
}

.floating-menu.active .btn-facebook {
  transition-delay: 0.1s;
}

.floating-menu.active .btn-line {
  transition-delay: 0.15s;
}

/* Brand Colors */
.btn-line {
  background-color: #06C755;
}

.btn-facebook {
  background-color: #1877F2;
}

.btn-phone {
  background-color: #FF6B21;
}

/* Tooltip */
.social-tooltip {
  position: absolute;
  right: 60px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.social-btn:hover .social-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   ENGINEERING SECTION
   ============================================ */
.engineering {
  background-color: var(--gray-100);
  padding: var(--space-20) 0;
}

.engineering-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .engineering-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.engineering-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  border: 1px solid var(--gray-100);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.engineering-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.engineering-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

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

.engineering-card-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-4);
}

.engineering-card-description {
  color: var(--gray-600);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.engineering-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
}

.engineering-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--gray-800);
  font-weight: 500;
}

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

.check-icon {
  color: var(--primary);
  font-weight: bold;
}