/* ============================================================
   CHATA INSTRUMENTS — Corporate Design System
   Premium enterprise-grade CSS for chata-inst.com
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Brand Colors */
  --primary:        #2D6EB5;
  --primary-dark:   #1E4F8A;
  --primary-light:  #4A8FD4;
  --primary-50:     rgba(45, 110, 181, 0.08);
  --primary-100:    rgba(45, 110, 181, 0.15);

  --accent:         #D42B2B;
  --accent-dark:    #B01E1E;
  --accent-light:   #E85454;

  --navy:           #0F1B33;
  --navy-light:     #1A2B4A;
  --navy-medium:    #243B5E;

  --slate-50:       #F8FAFC;
  --slate-100:      #F1F5F9;
  --slate-200:      #E2E8F0;
  --slate-300:      #CBD5E1;
  --slate-400:      #94A3B8;
  --slate-500:      #64748B;
  --slate-600:      #475569;
  --slate-700:      #334155;
  --slate-800:      #1E293B;

  --white:          #FFFFFF;
  --black:          #0A0A0A;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2D6EB5, #1E4F8A);
  --gradient-hero:    linear-gradient(135deg, rgba(15, 27, 51, 0.88) 0%, rgba(45, 110, 181, 0.75) 100%);
  --gradient-card:    linear-gradient(180deg, rgba(45, 110, 181, 0.05) 0%, rgba(45, 110, 181, 0.02) 100%);
  --gradient-accent:  linear-gradient(135deg, #D42B2B, #B01E1E);
  --gradient-dark:    linear-gradient(180deg, #0F1B33 0%, #1A2B4A 100%);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl:    0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-card:  0 4px 20px rgba(45, 110, 181, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(45, 110, 181, 0.15);
  --shadow-btn:   0 4px 15px rgba(212, 43, 43, 0.3);

  /* Typography */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-th: 'Noto Sans Thai', 'Inter', sans-serif;
  --font-base: var(--font-th);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-base);
  color: var(--slate-700);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate-600);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  opacity: 0.4;
}

/* Specific Layout Alignment Overrides */
.about-text .section-label,
.trust-content .section-label,
.expertise-text .section-label {
  justify-content: flex-start;
}

.expertise-text .section-label {
  color: var(--primary-light);
}

.expertise-text .section-label::after {
  background: var(--primary-light);
}

.section-title {
  margin-bottom: 16px;
}

.section-title .highlight {
  color: var(--accent);
}

.section-desc {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--slate-500);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 43, 43, 0.4);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

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

.btn-blue {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(45, 110, 181, 0.3);
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 110, 181, 0.4);
}

.btn i, .btn svg {
  font-size: 1.1em;
}

/* ── Navigation ───────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition-base);
  background: transparent;
}

.topbar.scrolled {
  background: rgba(15, 27, 51, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.topbar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.topbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1010;
}

.topbar .logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition-base);
}

.topbar .logo-text {
  display: flex;
  flex-direction: column;
}

.topbar .logo-text .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.topbar .logo-text .brand-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-menu a {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  border-radius: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

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

/* Language Switcher */
.lang-switch {
  position: relative;
  z-index: 100;
}

.lang-switch-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.lang-switch-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-switch-toggle .flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-switch-toggle .chevron {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.lang-switch.open .lang-switch-toggle .chevron {
  transform: rotate(180deg);
}

.lang-switch-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  overflow: hidden;
}

.lang-switch.open .lang-switch-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-700);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-switch-option:hover {
  background: var(--slate-50);
}

.lang-switch-option.active {
  background: rgba(45, 110, 181, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.lang-switch-option .flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.lang-switch-option .check {
  margin-left: auto;
  color: var(--primary);
  font-size: 1rem;
  opacity: 0;
}

.lang-switch-option.active .check {
  opacity: 1;
}

/* Contact CTA in Nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-accent);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-base);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 43, 43, 0.4);
}

.nav-cta::after { display: none; }

/* Phone Number in Nav */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  transition: all var(--transition-fast);
}

.nav-phone:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-phone i {
  color: var(--accent-light);
}

/* Mobile Menu Toggle */
/* Desktop default state */
.mobile-nav-hero {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1010;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all var(--transition-base);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero .hero-brand {
  color: var(--accent-light);
}

.hero .hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin: 0 auto 24px auto;
  max-width: 580px;
}

.hero .hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Floating shapes for hero */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.08;
  background: var(--white);
}

.hero-shapes .shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-shapes .shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  opacity: 0.12;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-shapes .shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 20%;
  animation: float 6s ease-in-out infinite;
}

.hero-shapes .shape-4 {
  width: 150px;
  height: 150px;
  bottom: 25%;
  left: 15%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

/* Hero Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-stats-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-en);
  line-height: 1.2;
}

.stat-number span {
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* ── Page Banner (for inner pages) ────────────────────────── */
.page-banner {
  position: relative;
  padding: 160px 0 80px;
  background: var(--gradient-dark);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(45, 110, 181, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 85% 40%, rgba(212, 43, 43, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(45, 110, 181, 0.25) 0%, transparent 50%);
}

/* Animated shimmer sweep */
.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  animation: bannerShimmer 5s ease-in-out infinite;
  z-index: 1;
}

@keyframes bannerShimmer {
  0% { left: -60%; }
  50% { left: 110%; }
  100% { left: 110%; }
}

/* Floating orb 1 - blue */
.page-banner .grid-pattern::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 110, 181, 0.28) 0%, transparent 65%);
  top: -120px;
  right: -80px;
  animation: floatOrb1 7s ease-in-out infinite;
  z-index: 0;
}

/* Floating orb 2 - red accent */
.page-banner .grid-pattern::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 43, 43, 0.22) 0%, transparent 65%);
  bottom: -60px;
  left: 5%;
  animation: floatOrb2 9s ease-in-out infinite;
  z-index: 0;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.15); }
  66% { transform: translate(35px, -20px) scale(0.9); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -35px) scale(1.2); }
}

/* Bottom gradient fade */
.page-banner-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: linear-gradient(to top, var(--slate-50), transparent);
  z-index: 1;
}

/* Floating particles */
.page-banner-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.page-banner-particles span {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.page-banner-particles span:nth-child(1) { left: 12%; top: 25%; animation-duration: 10s; animation-delay: 0s;   width: 6px; height: 6px; }
.page-banner-particles span:nth-child(2) { left: 30%; top: 65%; animation-duration: 13s; animation-delay: 1.5s; width: 4px; height: 4px; }
.page-banner-particles span:nth-child(3) { left: 50%; top: 15%; animation-duration: 8s;  animation-delay: 3s;   width: 7px; height: 7px; }
.page-banner-particles span:nth-child(4) { left: 72%; top: 50%; animation-duration: 12s; animation-delay: 0.5s; width: 5px; height: 5px; }
.page-banner-particles span:nth-child(5) { left: 88%; top: 72%; animation-duration: 9s;  animation-delay: 2s;   width: 6px; height: 6px; }
.page-banner-particles span:nth-child(6) { left: 8%;  top: 78%; animation-duration: 11s; animation-delay: 4s;   width: 5px; height: 5px; }
.page-banner-particles span:nth-child(7) { left: 42%; top: 82%; animation-duration: 7s;  animation-delay: 1s;   width: 4px; height: 4px; }
.page-banner-particles span:nth-child(8) { left: 62%; top: 10%; animation-duration: 14s; animation-delay: 2.5s; width: 5px; height: 5px; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 0.8; }
  100% { transform: translateY(-150px) translateX(40px); opacity: 0; }
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.page-banner .breadcrumb a:hover {
  color: var(--white);
}

.page-banner .breadcrumb .separator {
  color: var(--accent);
}

.page-banner .breadcrumb .current {
  color: var(--accent-light);
}

/* Grid patterns for banner */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-100);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-100);
}

.card-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 12px 30px rgba(26, 60, 106, 0.25), inset 0 2px 5px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 2.8rem;
  color: var(--white);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
}

.card-icon i {
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.card:hover .card-icon {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.35), inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  padding-top: 16px;
  transition: gap var(--transition-fast);
}

.service-link:hover {
  gap: 12px;
  color: var(--primary);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.card p {
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.7;
}

.card-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.card:hover .card-accent-line { transform: scaleX(1); }

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-100);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.product-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--slate-50);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

.product-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: var(--gradient-accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.product-card-body p {
  font-size: 0.88rem;
  color: var(--slate-500);
  margin-bottom: 16px;
}

.product-card-link {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.product-card-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* Project Card */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 27, 51, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background var(--transition-base);
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(15, 27, 51, 0.95) 0%, rgba(45, 110, 181, 0.3) 100%);
}

.project-card-overlay h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.project-card-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.project-card-overlay .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 10px;
  width: fit-content;
}

/* ── About / Info Section ─────────────────────────────────── */
.about-section {
  padding: var(--section-padding);
  background: var(--white);
}

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

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gradient-accent);
  color: var(--white);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-image-badge .badge-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-en);
  line-height: 1;
}

.about-image-badge .badge-text {
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 2px;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}

.about-feature-item i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 2px;
}

/* ── Services Section ─────────────────────────────────────── */
.services-section {
  padding: var(--section-padding);
  background: var(--slate-50);
}

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

/* ── Products Section ─────────────────────────────────────── */
.products-section {
  padding: var(--section-padding);
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-500);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--white);
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(45, 110, 181, 0.3);
}

/* ── Projects Section ─────────────────────────────────────── */
.projects-section {
  padding: var(--section-padding);
  background: var(--slate-50);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Clients Section ──────────────────────────────────────── */
.clients-section {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}

.clients-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.client-logo {
  height: 52px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: all var(--transition-base);
}

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

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  padding: 100px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(212, 43, 43, 0.15) 0%, transparent 40%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-section {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-base);
  color: var(--slate-700);
  transition: all var(--transition-fast);
  background: var(--slate-50);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Contact Info Sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--white);
}

.contact-info-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(45, 110, 181, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact-info-item .info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-info-item .info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.contact-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

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

/* Map Container */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 260px;
}

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

/* ── Expertise / Why Us ───────────────────────────────────── */
.expertise-section {
  padding: var(--section-padding);
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.expertise-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(45, 110, 181, 0.12) 0%, transparent 50%);
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.expertise-text .section-label {
  color: var(--primary-light);
}

.expertise-text .section-label::after { background: var(--primary-light); }

.expertise-text h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.expertise-text p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 30px;
}

.expertise-bars {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.expertise-bar {
  width: 100%;
}

.expertise-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.expertise-bar-header span {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.expertise-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  overflow: visible;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.expertise-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, rgba(45, 110, 181, 0.5), #3b82f6, #93c5fd);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.expertise-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -2px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(59, 130, 246, 0.8);
}

.expertise-bar-fill.accent {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.5), #ef4444, #fca5a5);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}

.expertise-bar-fill.accent::after {
  box-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(220, 38, 38, 0.8);
}

/* ── Process / Timeline ───────────────────────────────────── */
.process-section {
  padding: var(--section-padding);
  background: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--slate-200);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-number {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-en);
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(45, 110, 181, 0.3);
  position: relative;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--slate-500);
}

.faq-grid {
  max-width: 800px;
  margin: 40px auto 0;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(220, 53, 69, 0.15), 0 0 15px rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--slate-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  outline: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question i {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question.active {
  color: var(--primary);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--slate-600);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--slate-50);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--slate-100);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.testimonial-text {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-author-info h4 {
  font-size: 0.92rem;
  color: var(--navy);
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 80%, rgba(45, 110, 181, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(212, 43, 43, 0.05) 0%, transparent 50%);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  animation: bannerShimmer 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 2;
  padding: 70px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.3fr 1.6fr;
  gap: 40px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

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

.footer-brand .logo-text .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
}

.footer-brand .logo-text .brand-tagline {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--primary-light);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item i {
  color: var(--primary-light);
  font-size: 1rem;
  margin-top: 3px;
}

.footer-contact-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

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

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}

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

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

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

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}

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

/* ── Service Detail Cards (alternating) ───────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 50px 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-detail-img:hover img {
  transform: scale(1.05);
}

.service-detail-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--accent); /* Red text */
  position: relative;
  padding-left: 16px;
  display: flex;
  align-items: center;
}

.service-detail-text h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  width: 4px;
  background: var(--primary); /* Blue line */
  border-radius: 4px;
}

.service-detail-text p {
  margin-bottom: 16px;
  color: var(--slate-600);
}

.service-detail-list {
  margin: 20px 0;
}

.service-detail-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--slate-600);
}

.service-detail-list li i {
  color: var(--primary);
}

/* ── Scroll Animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-up:nth-child(6) { transition-delay: 0.3s; }
.stagger-children .fade-up:nth-child(7) { transition-delay: 0.35s; }
.stagger-children .fade-up:nth-child(8) { transition-delay: 0.4s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid,
  .expertise-grid,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

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

  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

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

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .topbar-inner {
    height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 4px;
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    right: 0;
  }

  .topbar.menu-open .logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
  }

  .mobile-nav-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    top: 24px;
    left: 24px;
    margin-bottom: 20px;
  }

  .mobile-nav-hero img {
    width: 45px;
    height: 45px;
    background: #ffffff;
    padding: 4px;
    border-radius: 4px;
    object-fit: contain;
  }

  .mobile-nav-brand {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-brand .m-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
  }

  .mobile-nav-brand .m-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
  }

  .nav-menu a {
    font-size: 1.05rem;
    padding: 14px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(45, 110, 181, 0.15);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hamburger {
    display: flex;
  }

  .nav-phone {
    display: none;
  }

  .hero {
    min-height: 85vh;
    padding-bottom: 220px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 24px;
  }

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

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .services-grid,
  .products-grid,
  .projects-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  .footer-brand,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

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

  .page-banner {
    padding: 130px 0 60px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

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

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

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

  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 75vh;
    padding-bottom: 240px;
  }

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

  .topbar .logo-text .brand-name {
    font-size: 1rem;
  }

  .topbar .logo img {
    height: 40px;
  }
}

/* ── Mobile Menu Overlay ──────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Loading Animation ────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* ── Utility Classes ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-white  { color: var(--white); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }

.mt-0  { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.bg-slate { background: var(--slate-50); }
.bg-white { background: var(--white); }
.bg-dark  { background: var(--gradient-dark); }



/* ── Product Modal ───────────────────────────────────────── */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 51, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: 24px;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.pm-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-spring);
  opacity: 0;
}

.product-modal.active .pm-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pm-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  border: none;
  font-size: 1.5rem;
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-base);
}

.pm-close:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: rotate(90deg);
}

.pm-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 460px;
}

.pm-img-container {
  background: var(--slate-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.pm-img-container img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

.pm-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pm-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.pm-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  margin-bottom: 32px;
  line-height: 1.7;
}

.pm-info ul {
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  list-style: none !important;
}

.pm-info ul li {
  margin-bottom: 8px;
  position: relative;
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.6;
  padding-left: 20px;
}

.pm-info ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.6;
}

.pm-info > p {
  margin-left: 0 !important;
  padding-left: 0 !important;
  font-size: 1.05rem;
  color: var(--slate-600);
}

.pm-actions {
  display: flex;
  gap: 16px;
  margin-top: auto;
}

.pm-btn {
  padding: 14px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  .pm-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .pm-info {
    padding: 32px 24px;
  }
  .pm-img-container {
    padding: 32px;
  }
  .pm-title {
    font-size: 1.6rem;
  }
  .pm-close {
    position: sticky;
    top: 16px;
    right: auto;
    align-self: flex-end;
    margin-top: 16px;
    margin-right: 16px;
    margin-bottom: -60px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.8rem;
  }
}

/* --- Fix Layout Jumps on Language Switch --- */
@media (min-width: 992px) {
  .about-grid, 
  .trust-grid-layout,
  .expertise-grid {
    align-items: center !important;
  }
  
  .about-text,
  .expertise-text {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .trust-content {
    min-height: 700px; /* Trust section Thai text is longer, requires larger anchor */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .about-image, 
  .trust-image,
  .expertise-grid > div:last-child {
    display: flex;
    align-items: center; 
  }

  .about-image img, 
  .trust-image img,
  .expertise-grid > div:last-child img {
    height: 480px !important;
    object-fit: cover !important;
    width: 100%;
    border-radius: 16px;
  }
}

/* ── Project Detail Modal ──────────────────────────── */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 10, 30, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  padding: 24px;
}

.project-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 64px rgba(0,0,0,0.35);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-modal-overlay.active .project-modal {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--navy);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.project-modal-close:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: rotate(90deg);
}

.project-modal-img {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-body {
  padding: 32px 36px 36px;
}

.project-modal-tag {
  display: inline-block;
  padding: 5px 16px;
  background: var(--gradient-accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.project-modal-body h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.4;
}

.project-modal-details h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.project-modal-details ul {
  list-style: none;
  padding: 0;
}

.project-modal-details ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-modal-details ul li:last-child {
  border-bottom: none;
}

.project-modal-details ul li strong {
  color: var(--navy);
  font-weight: 600;
  min-width: 110px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .project-modal-img {
    height: 220px;
  }
  .project-modal-body {
    padding: 24px 20px 28px;
  }
  .project-modal-body h2 {
    font-size: 1.2rem;
  }
  .project-modal-close {
    position: sticky;
    top: 12px;
    right: auto;
    margin-left: auto;
    margin-top: 12px;
    margin-right: 12px;
    margin-bottom: -52px;
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.8rem;
  }
}

/* ─── Process Section ─── */
.process-section {
  padding: 100px 0;
  background-color: var(--slate-50);
}

.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 80px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--slate-200);
  z-index: 1;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 12px rgba(45, 110, 181, 0.08); /* This creates the outer ring effect seen in the image */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .step-number {
  transform: translateY(-5px);
  box-shadow: 0 0 0 16px rgba(45, 110, 181, 0.12);
}

.step-title {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .hero-shapes .shape-1,
  .hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
  }
  
  .hero-shapes .shape-3,
  .hero-shapes .shape-4 {
    width: 80px;
    height: 80px;
  }
}

.step-desc {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    gap: 60px;
  }
  .process-steps::before {
    display: none;
  }
}
