:root {
  --bg-dark: #09090b;
  --card-bg: rgba(255, 255, 255, 0.03);
  --primary-glow: #00f260;
  --secondary-glow: #0575e6;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --nav-glass: rgba(9, 9, 11, 0.85);
}

body {
  font-family: "Kanit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  margin: 0;
}

/* --- [NEW] Lenis Scroll CSS Fix --- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- NAVBAR STYLES --- */
.navbar-custom {
  background-color: var(--nav-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.brand-highlight {
  color: var(--primary-glow);
  text-shadow: 0 0 15px rgba(0, 242, 96, 0.6);
  margin-left: 5px;
  font-style: italic;
}

.nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  margin: 0 12px;
  position: relative;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-glow) !important;
  text-shadow: 0 0 10px rgba(0, 242, 96, 0.4);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--primary-glow);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-nav-cta {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-nav-cta:hover {
  background: var(--primary-glow);
  color: black;
  border-color: var(--primary-glow);
  box-shadow: 0 0 20px rgba(0, 242, 96, 0.4);
  transform: scale(1.05);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 180px 0 120px;
  background-image: url("admin-apartment-exasperated-by-annoying-bugs-while-programming.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: -86px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(9, 9, 11, 0.98) 0%,
    rgba(9, 9, 11, 0.85) 60%,
    rgba(5, 117, 230, 0.2) 100%
  );
  z-index: 0;
  backdrop-filter: blur(3px);
}

/* --- LOADING SCREEN --- */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #09090b;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  z-index: 2;
  animation: logo-pulse 2s infinite ease-in-out;
}

.loader-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary-glow);
  border-right-color: rgba(0, 242, 96, 0.3);
  animation: ring-spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(0, 242, 96, 0.2);
}

.loader-ring::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--secondary-glow);
  animation: ring-spin 2s linear infinite reverse;
  opacity: 0.7;
}

@keyframes ring-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 20px rgba(0, 242, 96, 0.5);
  }
  50% {
    transform: scale(0.95);
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(0, 242, 96, 0.2);
  }
}

/* --- BADGE --- */
.badge-pill {
  background: linear-gradient(
    90deg,
    rgba(6, 199, 85, 0.1),
    rgba(5, 117, 230, 0.1)
  );
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(6, 199, 85, 0.15);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.badge-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-25deg);
  animation: badge-shine 3s infinite;
}

@keyframes badge-shine {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}

.badge-pill i {
  color: #00f260;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px rgba(0, 242, 96, 0.5));
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 25px;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 45px;
  line-height: 1.8;
  border-left: 3px solid var(--secondary-glow);
  padding-left: 20px;
}

.btn-line {
  background: linear-gradient(90deg, #06c755 0%, #00d400 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(6, 199, 85, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-line:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(6, 199, 85, 0.6);
}

.hero-img-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- SECURITY PARTNER SLIDER --- */
.security-section {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.security-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 35px;
  gap: 20px;
}

.security-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.security-icon {
  font-size: 1.3rem;
  color: var(--primary-glow);
  filter: drop-shadow(0 0 8px rgba(0, 242, 96, 0.5));
  animation: pulse-shield 2s infinite ease-in-out;
}

@keyframes pulse-shield {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.security-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2));
}
.security-line.right {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
}

.slider {
  width: 100%;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  padding: 10px 0;
}

.slide-track {
  display: flex;
  width: calc(250px * 10);
  animation: scroll 20s linear infinite;
}

.slide {
  width: 250px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  height: auto;
  max-height: 45px;
  filter: none;
  opacity: 1;
  transition: all 0.4s ease;
}

.slide img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 5));
  }
}

/* --- SERVICES SECTION --- */
.services-section {
  padding: 120px 0;
  background-color: #0c0c0e;
  position: relative;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 40px 40px;
  pointer-events: none;
}

.section-header h2 {
  font-weight: 700;
  color: white;
  font-size: 2.8rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-header p {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 70px;
  font-size: 1.1rem;
}

.service-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px 30px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* [NEW] Add transform style for tilt */
  transform-style: preserve-3d;
}

.service-card:hover {
  border-color: var(--primary-glow);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: 0 10px 40px rgba(0, 242, 96, 0.15);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-glow),
    transparent
  );
  opacity: 0;
  transition: 0.3s;
}

.service-card:hover::after {
  opacity: 1;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: white;
  transition: 0.3s;
  /* [NEW] Translate Z for 3D effect */
  transform: translateZ(20px);
}

.service-card:hover .icon-circle {
  background: var(--primary-glow);
  color: black;
  box-shadow: 0 0 20px var(--primary-glow);
}

.service-card h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
  transition: 0.3s;
  transform: translateZ(20px);
}

.service-card:hover h4 {
  color: var(--primary-glow);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 30px;
  font-weight: 300;
  transform: translateZ(20px);
}

.btn-detail {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 0.9rem;
  width: 100%;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  transform: translateZ(20px);
}

.btn-detail:hover {
  background: var(--primary-glow);
  color: black;
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(0, 242, 96, 0.3);
  font-weight: 600;
}

/* --- PRICING SECTION --- */
.pricing-section {
  padding: 100px 0 140px;
  background-color: #09090b;
  position: relative;
  overflow: hidden;
  z-index: 1;
  scroll-margin-top: 80px;
}

.pricing-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 242, 96, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 96, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  z-index: -2;
  pointer-events: none;
}

.pricing-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 117, 230, 0.08) 0%,
    rgba(0, 242, 96, 0.03) 40%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 50px 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transform-style: preserve-3d;
}

.pricing-card.highlight {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--primary-glow);
  box-shadow: 0 0 40px rgba(0, 242, 96, 0.1);
  z-index: 10;
}

.pricing-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
}

.badge-popular {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) translateZ(30px);
  background: var(--primary-glow);
  color: black;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(0, 242, 96, 0.5);
}

.pricing-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateZ(20px);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 5px;
  color: var(--text-muted);
}
.period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  transform: translateZ(20px);
}

.feature-list li {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
}

.feature-list li i {
  color: var(--primary-glow);
  margin-right: 12px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pricing-card.enterprise .feature-list li i {
  color: var(--secondary-glow);
}
.pricing-card.enterprise:hover {
  border-color: var(--secondary-glow);
  box-shadow: 0 0 30px rgba(5, 117, 230, 0.2);
}

.btn-price {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: white;
  font-weight: 600;
  margin-top: 30px;
  transition: 0.3s;
  transform: translateZ(20px);
}

.btn-price:hover {
  background: white;
  color: black;
}

.btn-price.primary {
  background: var(--primary-glow);
  color: black;
  border: none;
  box-shadow: 0 0 20px rgba(0, 242, 96, 0.3);
}

.btn-price.primary:hover {
  box-shadow: 0 0 40px rgba(0, 242, 96, 0.6);
  transform: translateY(-2px);
}

/* --- HERO VIDEO STYLES --- */
.hero-video {
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 242, 96, 0.15);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  object-fit: cover;
  aspect-ratio: 1/1;
  background: #000;
  position: relative;
  z-index: 2;
}

.hero-img-wrapper:hover .hero-video {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(0, 242, 96, 0.3);
  border-color: rgba(0, 242, 96, 0.5);
}

.video-decoration-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) perspective(1000px) rotateY(-10deg)
    rotateX(5deg);
  width: 100%;
  max-width: 450px;
  height: 100%;
  border-radius: 24px;
  z-index: 1;
  background: linear-gradient(
    45deg,
    var(--primary-glow),
    var(--secondary-glow)
  );
  opacity: 0.2;
  filter: blur(20px);
  transition: all 0.6s ease;
}

.hero-img-wrapper:hover .video-decoration-bg {
  transform: translate(-50%, -50%) perspective(1000px) rotateY(0deg)
    rotateX(0deg) scale(1.05);
  opacity: 0.4;
  filter: blur(30px);
}

html {
  scroll-behavior: smooth;
}

.services-section {
  padding-bottom: 40px !important;
  border-bottom: none;
  scroll-margin-top: 80px;
}

.pricing-section {
  padding-top: 40px !important;
  scroll-margin-top: 100px;
}

.section-connector {
  position: relative;
  height: 2px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-glow),
    transparent
  );
  opacity: 0.3;
  z-index: 5;
}

.section-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 4px;
  background: #fff;
  border-radius: 4px;
  box-shadow:
    0 0 10px #fff,
    0 0 20px var(--primary-glow),
    0 0 40px var(--primary-glow);
}

/* --- CONTACT SECTION STYLES --- */
.contact-section {
  padding: 100px 0 150px;
  background-color: #09090b;
  position: relative;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  transition: transform 0.3s;
}

.contact-item:hover {
  transform: translateX(10px);
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 242, 96, 0.1);
  color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item .value {
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.contact-item .value:hover {
  color: var(--primary-glow);
}

.contact-form-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
}

.contact-form-card h3,
.contact-info-card h3 {
  color: white;
  font-weight: 600;
}

.custom-input {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white !important;
  border-radius: 10px;
}

.custom-input:focus {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(0, 242, 96, 0.2);
}

.form-floating label {
  color: #94a3b8;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-glow);
  opacity: 1;
}

/* --- MODAL STYLES --- */
.custom-modal {
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0, 242, 96, 0.15);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-title {
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-floating > .form-control,
.form-floating > .form-select {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border-radius: 12px;
  height: 58px;
}

.form-floating > label {
  color: #94a3b8 !important;
  background-color: transparent !important;
  padding: 1rem 0.75rem;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(0, 242, 96, 0.15);
}

select.custom-input {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  cursor: pointer;
}

select.custom-input option:disabled {
  color: #6c757d;
}

.form-label {
  letter-spacing: 0.5px;
  font-weight: 300;
}

.form-select option {
  background-color: #1a1a1a;
  color: white;
  padding: 10px;
}

/* --- COOKIE BANNER STYLE --- */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0f172a;
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  animation: slideUp 0.5s ease-out;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.cookie-icon {
  font-size: 1.5rem;
  color: #fff;
}

.btn-accept {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Kanit", sans-serif;
  transition: 0.2s;
  white-space: nowrap;
}

.btn-accept:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .cookie-content {
    justify-content: center;
    text-align: center;
  }
  .cookie-text {
    flex-direction: column;
    gap: 10px;
  }
  .btn-accept {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }

  .hero-section {
    padding: 120px 0 60px;
    text-align: center;
  }

  .hero-desc {
    font-size: 1rem;
    padding: 0 15px;
    margin-bottom: 30px;
    border-left: none;
  }

  .hero-img-wrapper {
    margin-top: 40px;
    transform: none !important;
  }

  .hero-video {
    transform: none !important;
    max-width: 100%;
  }

  .navbar-collapse {
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .btn-nav-cta {
    width: 100%;
    margin-top: 15px;
    text-align: center;
  }

  .service-card,
  .pricing-card {
    margin-bottom: 15px;
  }

  .pricing-section::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .pricing-price {
    font-size: 2.5rem;
  }
  .btn-line {
    width: 100%;
  }
  .slide {
    width: 150px;
    padding: 0 20px;
  }
}

/* =========================================
   [เพิ่มเติม] ปรับแต่งมือถือให้สมบูรณ์ขึ้น (Mobile UI/UX Fixes)
   ========================================= */

@media (max-width: 991px) {
  /* 1. ลดช่องว่างระหว่าง Section ไม่ให้โล่งเกินไปเวลาไถหน้าจอมือถือ */
  .services-section, 
  .contact-section {
    padding: 80px 0 !important;
  }
  .pricing-section {
    padding: 80px 0 100px !important;
  }

  /* 2. ลด Padding ของกล่องติดต่อเรา ไม่ให้กินพื้นที่ขอบจอมือถือ */
  .contact-info-card, 
  .contact-form-card {
    padding: 25px !important;
  }
}

@media (max-width: 576px) {
  /* 3. แก้บั๊กแอนิเมชันโลโก้ Partner กระตุก */
  /* เนื่องจากโค้ดเดิมปรับให้ slide เล็กลงเหลือ 150px บนมือถือ เราจึงต้องคำนวณระยะเลื่อนใหม่ */
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-150px * 5)); /* แก้ระยะให้ตรงกับความกว้างใหม่ */
    }
  }

  /* 4. ปรับขนาดฟอนต์หัวข้อ (H2) ของแต่ละ Section ให้เล็กลงพอดีกับหน้าจอมือถือ */
  .section-header h2 {
    font-size: 2rem !important;
  }

  /* 5. ปรับให้ปุ่มติดต่อในแพ็กเกจราคา กดง่ายขึ้น (ปุ่มเต็มจอ) */
  .btn-price {
    padding: 15px;
    font-size: 1rem;
  }
}

/* ===========================================
   ABOUT PAGE STYLES (from about.html)
   =========================================== */

/* --- ABOUT HERO HEADER --- */
.about-header {
  padding: 120px 0 80px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 242, 96, 0.1), transparent 70%);
}

.about-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- ABOUT CONTENT SECTIONS --- */
.content-section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-highlight {
  color: var(--primary-glow);
  font-weight: 600;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: 0.3s;
}
.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary-glow);
  box-shadow: 0 0 20px rgba(0, 242, 96, 0.1);
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.stat-label {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1.1rem;
}

/* --- ABOUT CORE VALUES --- */
.value-card {
  padding: 20px;
}
.value-icon {
  font-size: 2.5rem;
  color: var(--primary-glow);
  margin-bottom: 15px;
}

/* --- BACK BUTTON --- */
.btn-back {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  transition: 0.3s;
}
.btn-back:hover {
  color: var(--primary-glow);
  transform: translateX(-5px);
}

/* ===========================================
   ARTICLES PAGE STYLES (from articles.html)
   =========================================== */

/* --- ARTICLE LIST HEADER --- */
.article-header {
  padding: 150px 0 80px;
  background: radial-gradient(circle at top center, rgba(5, 117, 230, 0.15), transparent 70%);
  text-align: center;
}

.article-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- BLOG CARDS --- */
.blog-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-glow);
  box-shadow: 0 10px 40px rgba(0, 242, 96, 0.1);
}

.blog-img-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}

.blog-card:hover .blog-img {
  transform: scale(1.1);
}

.blog-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-glow);
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
  line-height: 1.4;
}

.blog-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.read-more {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: 0.3s;
}

.read-more:hover {
  color: var(--primary-glow);
  transform: translateX(5px);
}

/* --- FEATURED CARD --- */
.featured-card {
  display: flex;
  flex-direction: row;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 60px;
}

.featured-img-col {
  flex: 1.2;
  min-height: 400px;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- HEADER DESC TEXT --- */
.header-desc-text {
  color: #e2e8f0 !important;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
}

/* --- BADGE SHINE EFFECT --- */
.badge-shine {
  position: relative;
  overflow: hidden;
  background: rgba(0, 242, 96, 0.1);
  border: 1px solid #00f260;
  color: #00f260;
  box-shadow: 0 0 20px rgba(0, 242, 96, 0.3);
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 20px !important;
  display: inline-block;
}

.badge-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine-swipe 4s infinite;
}

@keyframes shine-swipe {
  0% { left: -150%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

/* --- READ MORE LINK --- */
.read-more-link,
.read-more {
  color: #ffffff !important;
  text-decoration: none;
  transition: 0.3s;
}

.read-more-link:hover,
.read-more:hover {
  color: var(--primary-glow) !important;
  transform: translateX(5px);
}

/* --- ARTICLES RESPONSIVE --- */
@media (max-width: 991px) {
  .featured-card { flex-direction: column; }
  .featured-img-col { height: 300px; }
  .featured-content { padding: 30px; }
  .article-title { font-size: 2.5rem; }
}

/* ===========================================
   ARTICLE DETAIL PAGES (shared styles)
   =========================================== */

/* --- ARTICLE HERO --- */
.article-hero {
  position: relative;
  padding: 120px 0 60px;
  text-align: center;
}

.article-badge {
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: inline-block;
  font-weight: 600;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.hero-img {
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 60px;
  object-fit: cover;
  transition: transform 0.5s;
}
.hero-img:hover {
  transform: scale(1.02);
}

/* --- CONTENT AREA --- */
.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.content-area h2 {
  font-size: 1.8rem;
  margin-top: 50px;
  margin-bottom: 20px;
  font-weight: 600;
}

.content-area p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* --- HIGHLIGHT BOX (SEO / Speed articles) --- */
.highlight-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--primary-glow);
  padding: 25px;
  margin: 30px 0;
  border-radius: 0 10px 10px 0;
}

/* --- QUOTE BOX (Design article) --- */
.quote-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--design-color, #f94144);
  padding: 30px;
  margin: 40px 0;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 1.2rem;
  color: white;
}

/* ===========================================
   ARTICLE-DESIGN PAGE (Design theme)
   =========================================== */

/* --- COLOR PALETTE BOX --- */
.palette-box {
  display: flex;
  gap: 15px;
  margin: 30px 0;
  justify-content: center;
}
.color-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}
.color-dot:hover {
  transform: scale(1.1);
  border-color: white;
}

/* ===========================================
   ARTICLE-SPEED PAGE (Speed/Performance theme)
   =========================================== */

/* --- STAT GRID --- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffc107;
  line-height: 1;
}
.stat-desc {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 5px;
}

/* --- ARTICLE DETAIL RESPONSIVE --- */
@media (max-width: 768px) {
  .article-title { font-size: 1.8rem; }
  .stat-grid { grid-template-columns: 1fr; }
}