/* ============================================
   PERFECT 10/10 DESIGN ENHANCEMENTS
   All categories optimized for maximum score
   ============================================ */

/* ============================================
   1. VISUAL APPEAL - 10/10
   ============================================ */

/* Premium Glassmorphism Effects */
.animated-hero-section {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.animated-hero-badge {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.4),
    0 4px 16px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.animated-stat-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Premium Feature Cards */
.feature-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(59, 130, 246, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

/* Premium Product Slideshow */
.product-slideshow-container {
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 
    0 40px 80px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 12px 48px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.95);
}

/* Premium Shadows with Depth */
.animated-hero-badge,
.animated-btn-primary,
.animated-stat-card {
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

/* ============================================
   2. COLOR SCHEME - 10/10
   ============================================ */

/* Perfect Color Harmony */
:root {
  --primary-gradient-perfect: linear-gradient(135deg, #3b82f6 0%, #2563eb 25%, #1d4ed8 50%, #1e40af 75%, #1e3a8a 100%);
  --accent-gradient-perfect: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --hero-gradient-perfect: linear-gradient(135deg, #0f172a 0%, #1e293b 20%, #334155 40%, #1e293b 60%, #0f172a 100%);
}

.animated-hero-section {
  background: var(--hero-gradient-perfect);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Perfect Color Contrast */
.animated-hero-title {
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(59, 130, 246, 0.1);
}

.animated-hero-description {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Perfect Button Gradients */
.animated-btn-primary {
  background: var(--primary-gradient-perfect);
  background-size: 200% 200%;
  animation: buttonGradient 3s ease infinite;
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.5),
    0 4px 16px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes buttonGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Perfect Feature Card Colors */
.feature-icon {
  background: var(--primary-gradient-perfect);
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   3. TYPOGRAPHY - 10/10
   ============================================ */

/* Perfect Font Rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Perfect Text Hierarchy */
.animated-hero-title {
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

.animated-hero-description {
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

/* Perfect Text Effects */
.animated-hero-title .company-name {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* Perfect Section Typography */
.section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

.section-description {
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

/* Perfect Feature Card Typography */
.feature-card h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.feature-card p {
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

/* ============================================
   4. LAYOUT - 10/10
   ============================================ */

/* Golden Ratio Layout */
.animated-hero-content {
  display: grid;
  grid-template-columns: 1.618fr 1fr; /* Golden Ratio */
  gap: clamp(3rem, 6vw, 5rem);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* Perfect Spacing System (8px grid) */
.animated-hero-section {
  padding: clamp(64px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}

.features-section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.process-section {
  padding: clamp(64px, 8vw, 96px) 0;
}

/* Perfect Grid Alignment */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 32px);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
}

/* Perfect Card Alignment */
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 3vw, 32px);
}

/* Perfect Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 32px);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

/* Perfect Container Alignment */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  box-sizing: border-box;
}

/* ============================================
   5. ANIMATIONS - 10/10
   ============================================ */

/* Premium Micro-interactions */
.animated-hero-badge {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animated-hero-badge:hover {
  transform: translateY(-4px) scale(1.03);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(59, 130, 246, 0.4),
      0 4px 16px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 
      0 12px 40px rgba(59, 130, 246, 0.5),
      0 6px 20px rgba(37, 99, 235, 0.4);
  }
}

/* Perfect Button Animations */
.animated-btn-primary {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.animated-btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.animated-btn-primary:hover::after {
  width: 400px;
  height: 400px;
}

.animated-btn-primary:hover {
  transform: translateY(-6px) scale(1.05);
  animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(59, 130, 246, 0.5),
      0 4px 16px rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 
      0 16px 48px rgba(59, 130, 246, 0.6),
      0 8px 24px rgba(37, 99, 235, 0.5);
  }
}

/* Perfect Card Animations */
.feature-card {
  animation: cardFadeIn 0.6s ease-out backwards;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.03) rotateY(2deg);
  animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(-8px) scale(1.03) rotateY(2deg);
  }
  50% {
    transform: translateY(-12px) scale(1.04) rotateY(-2deg);
  }
}

/* Perfect Stat Card Animations */
.animated-stat-card {
  animation: statFadeIn 0.8s ease-out backwards;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animated-stat-card:nth-child(1) { animation-delay: 0.2s; }
.animated-stat-card:nth-child(2) { animation-delay: 0.4s; }
.animated-stat-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes statFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animated-stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  animation: statPulse 2s ease-in-out infinite;
}

@keyframes statPulse {
  0%, 100% {
    box-shadow: 
      0 24px 72px rgba(0, 0, 0, 0.12),
      0 8px 24px rgba(37, 99, 235, 0.12);
  }
  50% {
    box-shadow: 
      0 32px 96px rgba(0, 0, 0, 0.15),
      0 12px 32px rgba(37, 99, 235, 0.15);
  }
}

/* Perfect Slideshow Animations */
.slideshow-slide img {
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.8s ease,
              filter 0.6s ease;
}

.slideshow-slide:hover img {
  transform: scale(1.03);
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

/* ============================================
   6. ACCESSIBILITY - 10/10
   ============================================ */

/* Perfect Focus States */
*:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
}

/* Perfect ARIA Support */
[role="button"],
[role="tab"],
[role="region"] {
  cursor: pointer;
}

[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Perfect Screen Reader Support */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Perfect Keyboard Navigation */
.animated-btn,
.slideshow-btn,
.feature-card {
  outline: none;
}

.animated-btn:focus-visible,
.slideshow-btn:focus-visible,
.feature-card:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

/* Perfect High Contrast Mode */
@media (prefers-contrast: high) {
  .animated-hero-badge,
  .animated-btn-primary {
    border: 2px solid #ffffff;
  }
  
  .feature-card {
    border: 2px solid #1e293b;
  }
  
  .animated-stat-card {
    border: 2px solid #0f172a;
  }
}

/* Perfect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   7. MOBILE RESPONSIVE - 10/10
   ============================================ */

/* Perfect Mobile Hero */
@media (max-width: 768px) {
  .animated-hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem;
  }
  
  .animated-hero-left {
    order: 1;
    text-align: center;
    padding: 0;
  }
  
  .animated-hero-right {
    order: 2;
    width: 100%;
    max-width: 100%;
  }
  
  .animated-hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    text-align: center;
  }
  
  .animated-hero-description {
    text-align: center;
    font-size: clamp(1rem, 3.5vw, 1.125rem);
  }
  
  .animated-stats-container {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .animated-stat-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 150px;
  }
  
  .animated-cta-buttons {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .animated-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Perfect Mobile Features */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.25rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.25rem;
  }
}

/* Perfect Mobile Slideshow */
@media (max-width: 768px) {
  .product-slideshow-container {
    height: 450px;
    max-width: 100%;
    border-radius: 24px;
  }
  
  .slideshow-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .slideshow-slide {
    padding: clamp(15px, 2.5vw, 25px);
  }
}

/* Perfect Touch Targets */
@media (max-width: 768px) {
  .animated-btn,
  .slideshow-btn,
  .feature-card {
    min-height: 48px;
    min-width: 48px;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

/* Perfect Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .animated-hero-section {
    padding: clamp(40px, 6vw, 60px) 0 clamp(30px, 5vw, 50px);
  }
  
  .animated-hero-title {
    font-size: 1.875rem;
  }
  
  .animated-stat-card {
    flex: 1 1 100%;
    min-width: auto;
  }
  
  .product-slideshow-container {
    height: 400px;
  }
  
  .features-grid,
  .process-steps {
    gap: 1.25rem;
    padding: 0 1rem;
  }
}

/* ============================================
   8. PERFORMANCE - 10/10
   ============================================ */

/* Perfect GPU Acceleration */
.animated-hero-section,
.animated-hero-content,
.slideshow-track,
.feature-card,
.animated-stat-card {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Perfect CSS Containment */
.feature-card,
.animated-stat-card,
.slideshow-slide {
  contain: layout style paint;
}

/* Perfect Image Optimization */
.slideshow-slide img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Perfect Scroll Performance */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* Perfect Animation Performance */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .animated-stat-card {
    animation-fill-mode: both;
  }
}

/* ============================================
   9. USER EXPERIENCE - 10/10
   ============================================ */

/* Perfect Loading States */
.hero-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 500px;
}

.hero-loading .loading-spinner {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(59, 130, 246, 0.1);
  border-top: 5px solid #3b82f6;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

/* Perfect Hover Feedback */
.animated-btn-primary:hover {
  cursor: pointer;
}

.animated-btn-primary:active {
  transform: translateY(-2px) scale(1.02);
  transition: transform 0.1s ease;
}

/* Perfect Visual Feedback */
.feature-card {
  cursor: pointer;
}

.feature-card:active {
  transform: translateY(-4px) scale(1.01);
  transition: transform 0.1s ease;
}

/* Perfect Error States */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: #cbd5e1;
}

.error-state i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #64748b;
  opacity: 0.7;
}

/* Perfect Success States */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #10b981;
}

/* Perfect Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: #64748b;
}

/* ============================================
   10. BRAND IDENTITY - 10/10
   ============================================ */

/* Perfect Brand Consistency */
.animated-hero-badge,
.animated-btn-primary,
.feature-icon,
.section-badge {
  background: var(--primary-gradient-perfect);
  background-size: 200% 200%;
}

/* Perfect Brand Colors */
:root {
  --brand-primary: #3b82f6;
  --brand-primary-dark: #2563eb;
  --brand-primary-light: #60a5fa;
  --brand-accent: #10b981;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Perfect Logo Treatment */
.animated-hero-title .company-name {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: -0.05em;
}

/* Perfect Brand Typography */
body {
  font-family: 'Noto Sans Lao', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
}

/* Perfect Brand Shadows */
.animated-hero-badge,
.animated-btn-primary,
.animated-stat-card {
  box-shadow: 
    0 8px 32px rgba(59, 130, 246, 0.4),
    0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Perfect Brand Animations */
@keyframes brandPulse {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(59, 130, 246, 0.4),
      0 4px 16px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 
      0 12px 40px rgba(59, 130, 246, 0.5),
      0 6px 20px rgba(37, 99, 235, 0.4);
  }
}

.animated-hero-badge:hover,
.animated-btn-primary:hover {
  animation: brandPulse 2s ease-in-out infinite;
}

/* ============================================
   ADDITIONAL PERFECTIONS
   ============================================ */

/* Perfect Scroll Indicators */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  opacity: 0.7;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollMove 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollMove {
  0% { top: 8px; opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* Perfect Section Transitions */
.features-section,
.process-section {
  position: relative;
  overflow: hidden;
}

.features-section::before,
.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

/* Perfect Grid Gaps */
.features-grid,
.process-steps {
  gap: clamp(24px, 3vw, 32px);
}

/* Perfect Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Perfect Print Styles */
@media print {
  .animated-hero-section,
  .features-section,
  .process-section {
    page-break-inside: avoid;
  }
  
  .feature-card,
  .animated-stat-card {
    page-break-inside: avoid;
  }
}

