:root {
  /* Slate 900 for a deep, premium background */
  --bg-dark: #0f172a; 
  --card-bg: rgba(255, 255, 255, 0.05);
  
  /* Sky 400 for a trustworthy tech primary color */
  --primary-glow: #38bdf8; 
  /* Amber 400 for a standout secondary color (warnings, speed) */
  --secondary-glow: #fbbf24; 
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --nav-glass: rgba(15, 23, 42, 0.85);

  /* --- IMPECCABLE GLOBAL TYPOGRAPHY --- */
  --font-primary-th: "Prompt", sans-serif;
  --font-secondary-en: "Inter", sans-serif;
  --font-base: var(--font-primary-th), var(--font-secondary-en), sans-serif;
}

/* Base Body & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body, button, input, textarea, select, a, p, span, div {
  font-family: var(--font-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- [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("../assets/images/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);
}

/* --- PREMIUM CYBERPUNK LOADING SCREEN --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              visibility 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Base Logo Text */
.loader-logo {
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1); /* Ghost outline initially */
  letter-spacing: 3px;
  z-index: 2;
  position: relative;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  animation: cyber-logo-reveal 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.loader-logo .brand-highlight {
  color: var(--primary-glow);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  opacity: 0;
  animation: highlight-reveal 1s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

/* The Cyberpunk Scanline Effect */
.cyber-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-glow);
  box-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--secondary-glow);
  opacity: 0.8;
  animation: scanline 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  z-index: 3;
}

@keyframes scanline {
  0% { top: -10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

@keyframes cyber-logo-reveal {
  0% { color: rgba(255, 255, 255, 0.1); text-shadow: none; }
  50% { color: rgba(255, 255, 255, 0.5); text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
  100% { color: #ffffff; text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); -webkit-text-stroke: 0; }
}

@keyframes highlight-reveal {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Complex Double Ring */
.cyber-loader-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 70%, var(--primary-glow) 100%);
  mask-image: radial-gradient(transparent 68%, black 70%);
  -webkit-mask-image: radial-gradient(transparent 68%, black 70%);
  animation: cyber-spin 1.5s linear infinite;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.cyber-loader-ring.inner {
  width: 140px;
  height: 140px;
  background: conic-gradient(from 180deg, transparent 0%, transparent 60%, var(--secondary-glow) 100%);
  animation: cyber-spin 2s linear infinite reverse;
  box-shadow: 0 0 20px rgba(5, 117, 230, 0.2);
}

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

/* --- BADGE --- */
/* --- PREMIUM BADGE (GLASSMORPHISM + BORDER BEAM) --- */
.badge-pill.glass-badge {
  position: relative;
  display: inline-flex;
  padding: 1px; /* Space for the border beam */
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.4);
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 
              0 0 15px rgba(56, 189, 248, 0.2); /* Subtle Neon Glow */
  transform: translateY(0);
  animation: badge-float 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-pill.glass-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 
              0 0 25px rgba(56, 189, 248, 0.4); /* Stronger glow on hover */
  animation-play-state: paused;
}

/* Floating Animation */
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Base Glass BG */
.badge-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 8px 25px; /* Wider padding */
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.8); /* Inner dark background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2.5px; /* Increased letter spacing */
  text-transform: uppercase; /* All Caps */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle inner border */
}

.badge-content i {
  color: var(--primary-glow);
  font-size: 1.1rem;
}

/* The Animated Beam */
.badge-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 70%,
    var(--primary-glow) 80%,
    var(--secondary-glow) 100%
  );
  transform-origin: center center;
  animation: badge-beam-spin 3s linear infinite;
  z-index: 1;
}

@keyframes badge-beam-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Icon & Text Styling */
.badge-content i {
  color: var(--primary-glow);
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.badge-content span {
  background: linear-gradient(90deg, #fff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.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 PARTNERS SECTION --- */
.security-section {
  background: rgba(15, 23, 42, 0.4); /* Deeper glass background */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0; /* Increased padding for enterprise spacing */
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.security-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 45px; /* More spacing */
  gap: 20px;
}

.security-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  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(56, 189, 248, 0.2);
}

.security-icon {
  font-size: 1.5rem;
  color: var(--primary-glow); /* Primary Blue */
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
  animation: pulse-shield 2.5s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes pulse-shield {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.9)); }
}

.security-line {
  height: 1px;
  width: 80px; /* Longer line */
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4));
}
.security-line.right {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), transparent);
}

/* Premium Infinite Scroll Logo Slider */
.slider {
  width: 100%;
  padding: 20px 0;
  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);
}

.slide-track {
  display: flex;
  width: calc(250px * 10);
  animation: scroll-logos 30s linear infinite; /* Slower, smoother scroll */
  align-items: center;
}

.slide-track:hover {
  animation-play-state: paused; /* Pause on hover */
}

.slide {
  width: 250px;
  padding: 0 45px; /* Spacing between logos */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  height: auto;
  max-height: 48px;
  opacity: 0.5; /* Default transparency */
  filter: grayscale(100%); /* Make them uniform */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Interaction: Full color and glow */
.slide img:hover {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
  transform: scale(1.1);
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 5)); /* Adjust based on original slides count */ }
}

/* --- 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: rgba(15, 23, 42, 0.4); /* Deeper glass background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 45px 35px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  border-color: rgba(56, 189, 248, 0.3); /* Primary glow border on hover */
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(56, 189, 248, 0.1);
  transform: translateY(-8px);
}

/* Subtle top gradient glow line */
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), var(--secondary-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

/* Neon Glowing Icon Circle */
.icon-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary-glow);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateZ(20px);
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.1);
}

.service-card:hover .icon-circle {
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6), inset 0 0 10px rgba(255,255,255,0.5);
  transform: translateZ(30px) scale(1.1);
}

.service-card h4 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.4s ease;
  transform: translateZ(20px);
}

.service-card:hover h4 {
  color: var(--primary-glow);
  transform: translateZ(30px);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8; /* Improved readability */
  letter-spacing: 0.3px;
  flex-grow: 1;
  margin-bottom: 35px;
  font-weight: 300;
  transition: transform 0.4s ease;
  transform: translateZ(20px);
}

.service-card:hover p {
  color: #e2e8f0;
  transform: translateZ(25px);
}

/* Button Detail with Shine Micro-animation */
.btn-detail {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 0;
  font-size: 0.85rem;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transform: translateZ(20px);
}

/* The shine element inside the button */
.btn-detail::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(-20deg);
  transition: all 0.5s ease;
}

.service-card:hover .btn-detail {
  background: var(--primary-glow);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 5px 20px rgba(56, 189, 248, 0.4);
  transform: translateZ(30px) translateY(-2px);
}

/* Trigger the shine when the card is hovered */
.service-card:hover .btn-detail::before {
  animation: buttonShine 1.5s ease;
}

@keyframes buttonShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* --- PRICING SECTION (PREMIUM GLASSMORPHISM) --- */
.pricing-section {
  padding: 100px 0 140px;
  background-color: #09090b;
  position: relative;
  overflow: hidden;
  z-index: 1;
  scroll-margin-top: 80px;
}

/* Background Grid & Glow (Kept existing structure but refined) */
.pricing-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 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(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0) 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* Base Pricing Card (Glassmorphism) */
.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05); /* Softer initial border */
  border-radius: 24px;
  padding: 50px 30px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s ease;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible; /* Required for badge */
  transform-style: preserve-3d;
}

.pricing-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Highlight Card (Business Growth) - Animated Gradient Border */
.pricing-card.highlight {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.5));
  border: 1px solid transparent;
  box-shadow: 0 10px 50px rgba(56, 189, 248, 0.15);
  z-index: 10;
}

/* The Animated Glowing Border Hack using pseudo-element */
.pricing-card.highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow), transparent 60%);
  background-size: 200% 200%;
  animation: borderPan 4s ease infinite;
  z-index: -1;
}

@keyframes borderPan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pricing-card.highlight:hover {
  transform: translateY(-10px) scale(1.02); /* Slight scale on the highlight card */
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.25);
}

/* Animated Popular Badge (Shine Effect) */
.badge-popular {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) translateZ(30px);
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  color: #0f172a;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
  overflow: hidden; /* For the shine */
}

.badge-popular::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: badgeShineFast 3s infinite;
}

@keyframes badgeShineFast {
  0%, 20% { left: -100%; }
  40%, 100% { left: 200%; }
}

/* Headers & Typography */
.pricing-header {
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Softer line */
  transform: translateZ(20px);
}

.pricing-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.pricing-price {
  font-size: 3.5rem; /* Larger, more impactful price */
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.currency {
  font-size: 1.6rem;
  vertical-align: top;
  margin-right: 4px;
  color: var(--text-muted);
  font-weight: 500;
}
.period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 5px;
}

/* Feature List (Clean Whitespace) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  transform: translateZ(20px);
}

.feature-list li {
  margin-bottom: 20px; /* More breathing room */
  font-size: 1rem; /* Slightly larger for readability */
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

.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 40px rgba(56, 189, 248, 0.2); /* Updated to new blue glow */
}

/* Premium Button Interactions */
.btn-price {
  width: 100%;
  padding: 14px;
  border-radius: 50px; /* Modern rounded look */
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 35px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateZ(20px);
}

.btn-price:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateZ(20px) translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-price.primary {
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: #0f172a;
  border: none;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-price.primary:hover {
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
  transform: translateZ(20px) translateY(-3px) scale(1.02);
  color: #000;
}

/* --- 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 (PREMIUM GLASSMORPHISM) --- */
.contact-section {
  padding: 100px 0 150px;
  background-color: #09090b;
  position: relative;
  overflow: hidden;
}

/* Base Glass Card Style for Contact Information */
.contact-info-card {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 45px;
  height: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Glass Contact Form Card */
.contact-form-card.glass-contact-form {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle inner border */
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.02);
  position: relative;
}

/* Add a subtle glow line above the form card */
.contact-form-card.glass-contact-form::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; width: 80%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
}

.contact-form-card h3,
.contact-info-card h3 {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}

/* Contact Items & Icon Boxes */
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 10px;
  border-radius: 16px;
}

.contact-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.02); /* Slight background on hover to frame the item */
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

/* Platform Colors & Glows */
.platform-location .icon-box { background: rgba(255, 255, 255, 0.05); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.1); }
.platform-location:hover .icon-box { background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); transform: scale(1.1); }
.platform-location:hover .value { color: #ffffff; }

.platform-line .icon-box { background: rgba(6, 199, 85, 0.1); color: #06C755; border: 1px solid rgba(6, 199, 85, 0.2); }
.platform-line:hover .icon-box { background: rgba(6, 199, 85, 0.2); box-shadow: 0 0 25px rgba(6, 199, 85, 0.4); color: #ffffff; transform: scale(1.1); }
.platform-line:hover .value { color: #06C755; }

.platform-fb .icon-box { background: rgba(24, 119, 242, 0.1); color: #1877F2; border: 1px solid rgba(24, 119, 242, 0.2); }
.platform-fb:hover .icon-box { background: rgba(24, 119, 242, 0.2); box-shadow: 0 0 25px rgba(24, 119, 242, 0.4); color: #ffffff; transform: scale(1.1); }
.platform-fb:hover .value { color: #1877F2; }

.platform-email .icon-box { background: rgba(234, 67, 53, 0.1); color: #ea4335; border: 1px solid rgba(234, 67, 53, 0.2); }
.platform-email:hover .icon-box { background: rgba(234, 67, 53, 0.2); box-shadow: 0 0 25px rgba(234, 67, 53, 0.4); color: #ffffff; transform: scale(1.1); }
.platform-email:hover .value { color: #ea4335; }

.contact-item .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.contact-item .value {
  font-size: 1.1rem;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

/* Immersive Form Inputs */
.custom-input {
  background: rgba(15, 23, 42, 0.4) !important; /* Deeper dark for inputs */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Very subtle border */
  color: #ffffff !important;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-input::placeholder {
  color: transparent !important; /* Handled by floating labels */
}

/* Focus State Effect */
.custom-input:focus {
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(56, 189, 248, 0.5); /* Primary brand blue */
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1), /* Outer soft ring */
              0 4px 15px rgba(0, 0, 0, 0.3); /* Inner shadow depth */
  transform: translateY(-2px);
}

.form-floating > label {
  color: #94a3b8;
  font-weight: 400;
  transition: transform 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}

/* When input is focused or has content, animate label color and size to match theme */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--primary-glow);
  opacity: 1;
  font-weight: 500;
  transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}

/* Interactive Submit Button with Shine */
.btn-submit-interactive {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  color: #0f172a;
  border: none;
  border-radius: 50px;
  padding: 16px 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(56, 189, 248, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shine overlay */
.btn-submit-interactive::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: all 0.6s ease;
}

.btn-submit-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
  color: #000;
}

.btn-submit-interactive:hover::before {
  animation: submitShine 1s ease;
}

@keyframes submitShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* --- 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 SECTION --- */
  .hero-title {
    font-size: clamp(2.2rem, 6vw, 2.8rem) !important; /* Scalable title */
    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; /* Remove accent line for centered text */
  }

  .hero-img-wrapper {
    margin-top: 40px;
    transform: none !important;
  }

  .hero-video {
    transform: none !important;
    max-width: 100%;
    border-radius: 12px; /* Touch-friendly corners */
  }

  /* --- NAVBAR (TOUCH OPTIMIZED) --- */
  .navbar-toggler {
    border: none;
    padding: 10px; /* Larger hit area */
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-glow);
  }

  .navbar-collapse {
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-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: 15px 0; /* Larger touch target for links */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem; /* Slightly larger text */
  }

  .btn-nav-cta {
    width: 100%;
    margin-top: 15px;
    padding: 14px; /* Taller button for touch */
    text-align: center;
  }

  /* --- CARDS & GRID SYSTEM (FORCED STACK) --- */
  .service-card,
  .pricing-card {
    margin-bottom: 20px;
  }
  
  /* Ensure grids stack nicely on tablet/mobile */
  .row.g-4 > [class*="col-"] {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .pricing-section::after {
    display: none;
  }
}

@media (max-width: 576px) {
  /* --- PRICING TABLES --- */
  .pricing-card {
    padding: 30px 20px; /* Reduce side padding to avoid horizontal scroll */
  }

  .pricing-price {
    font-size: 2.5rem;
  }

  .btn-price {
    width: 100%;
    padding: 16px; /* High prominence for CTA */
    font-size: 1.05rem;
  }

  .btn-line {
    width: 100%;
  }

  .slide {
    width: 150px;
    padding: 0 20px;
  }
  
  /* --- TYPOGRAPHY & SPACING --- */
  h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.8rem !important; }
  h3 { font-size: 1.3rem !important; }
  
  .section-header p {
    font-size: 0.95rem; /* Better readability */
    padding: 0 15px;
  }
}

/* =========================================
   [เพิ่มเติม] ปรับแต่งมือถือให้สมบูรณ์ขึ้น (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;
}
.value-card h4 {
  color: #ffffff;
  font-weight: 600;
}
.value-card p {
  color: #e2e8f0;
  line-height: 1.8;
  font-weight: 300;
}

/* --- 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 (PREMIUM FUTURISTIC GLASSMORPHISM) --- */
.article-header {
  position: relative;
  padding: 180px 0 100px;
  background-color: #09090b;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-top: -86px;
}

/* Background Magic (Blurry Aurora) */
.header-aurora-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, rgba(5, 117, 230, 0.05) 40%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  animation: aurora-pulse 8s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes aurora-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.article-header .container {
  position: relative;
  z-index: 2; /* Keep content above aurora */
}

/* Text Gradient Title */
.text-gradient-primary {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #06C755 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.article-title {
  font-family: "Prompt", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

/* Improved Typography for Description */
.header-desc-text {
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  color: #94a3b8; /* Slate 400 */
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* --- FEATURED ARTICLE --- */
.featured-heading {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
}

.featured-desc {
  font-size: 1.05rem;
  line-height: 1.8;
}

.btn-read-more {
  width: fit-content;
  transition: all 0.3s ease;
}

.btn-read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* --- BLOG CARDS (IMPECCABLE STYLE) --- */
.articles-main {
  padding: 60px 0 80px;
}

.articles-grid {
  margin-top: 50px;
}

.blog-card {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(56, 189, 248, 0.05); /* Soft outer glow */
}

.blog-img-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
}

/* Image Hover & Gradient Overlay */
.blog-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-card:hover .blog-img-wrapper::after {
  opacity: 1; /* Overlay appears on hover */
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-img {
  transform: scale(1.08); /* Smoother zoom */
}

.blog-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Neon Category Badges */
.blog-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}

.cat-seo {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.cat-tech {
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.2);
}

.cat-design {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
}

.cat-about {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.blog-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-heading {
  color: var(--primary-glow);
}

.blog-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Premium Ghost Button */
.btn-ghost-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  width: fit-content;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost-read i {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-ghost-read:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-ghost-read:hover i {
  transform: translateX(4px);
  color: var(--primary-glow);
}

/* --- 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;
}

/* ===========================================
   CTA SECTION (ปรึกษาเรื่องเว็บฟรี)
   =========================================== */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
}

.cta-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 30px;
  line-height: 1.8;
  font-weight: 300;
}

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

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary-glow);
  color: #0f172a;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
  color: #0f172a;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  padding: 14px 24px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn-cta-secondary:hover {
  color: var(--text-main);
}

.btn-cta-secondary i {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-cta-secondary:hover i {
  transform: translateX(4px);
}

/* ===========================================
   RESPONSIVE: MOBILE OPTIMIZATION
   =========================================== */

/* --- Tablets & Small Desktops --- */
@media (max-width: 991px) {
  .featured-card {
    flex-direction: column;
  }
  .featured-img-col {
    max-width: 100%;
    width: 100%;
  }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  /* Article Header */
  .article-header {
    padding: 120px 0 60px;
  }
  .article-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  .header-desc-text {
    font-size: 1rem;
  }
  .badge-pill-header {
    font-size: 0.75rem;
    padding: 6px 18px;
  }

  /* Featured Card */
  .featured-card {
    flex-direction: column;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
  }
  .featured-img-col {
    height: 200px;
  }
  .featured-content {
    padding: 25px 20px;
  }
  .featured-heading {
    font-size: 1.4rem !important;
  }

  /* Blog Cards Grid */
  .articles-main {
    padding: 40px 0 60px;
  }
  .articles-grid {
    margin-top: 30px;
  }
  .blog-content {
    padding: 20px;
  }
  .blog-heading {
    font-size: 1.1rem;
  }
  .blog-desc {
    font-size: 0.9rem;
  }

  /* Blog Cards: disable hover lift on touch devices */
  .blog-card:hover {
    transform: none;
  }

  /* CTA Section */
  .cta-section {
    padding: 50px 0;
  }
  .cta-card {
    padding: 40px 20px;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Article Detail Pages */
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Small Phones --- */
@media (max-width: 480px) {
  .article-header {
    padding: 100px 0 50px;
  }
  .article-title {
    font-size: 1.5rem;
  }
  .blog-img-wrapper {
    height: 180px;
  }
  .read-more-link {
    padding: 10px 0;
    font-size: 0.9rem;
  }
}