/* ===== CSS VARIABLES & ROOT STYLES ===== */
:root {
  /* Core Color Palette - Dark Theme with Neon Accents */
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --background-color: #0f0f23;
  --footer-background: #0d0221;
  --button-primary: #ff6b35;
  
  /* Neon Accent Colors for Thai-style Elements */
  --neon-pink: #ff0080;
  --neon-green: #00ff88;
  --neon-blue: #00d4ff;
  --neon-yellow: #ffff00;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
  --gradient-secondary: linear-gradient(45deg, var(--neon-green), var(--neon-yellow));
  --gradient-card: linear-gradient(145deg, rgba(22, 33, 62, 0.8), rgba(26, 26, 46, 0.6));
  
  /* Typography - Round & Friendly */
  --font-primary: 'Comfortaa', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Orbitron', 'Roboto', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Spacing Scale - Generous for Organic Feel */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius - Soft & Organic */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  /* Shadow System - Soft & Diffused */
  --shadow-sm: 0 4px 15px -5px rgba(255, 107, 53, 0.3);
  --shadow-md: 0 8px 25px -8px rgba(255, 107, 53, 0.4);
  --shadow-lg: 0 15px 35px -10px rgba(255, 107, 53, 0.5);
  --shadow-xl: 0 20px 40px -12px rgba(255, 107, 53, 0.6);
  
  /* Dark theme specific shadows */
  --shadow-dark: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  --shadow-neon: 0 0 20px rgba(255, 0, 128, 0.4);
}

/* ===== BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--background-color);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 128, 0.6);
}

/* ===== CONTAINERS & SECTIONS ===== */
.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: var(--space-4) !important;
  padding-right: var(--space-4) !important;
}

.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-dark {
  background: var(--primary-color);
}

.section-darker {
  background: var(--secondary-color);
}

.section-darkest {
  background: var(--background-color);
}

/* ===== CARDS - Soft & Organic ===== */
.card {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--neon-pink);
}

.card:hover::before {
  opacity: 0.1;
}

.card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
}

.card-title {
  font-size: var(--font-size-2xl);
  font-family: var(--font-display);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.card-body {
  position: relative;
  z-index: 1;
}

.card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  margin-top: var(--space-6);
}

/* ===== BUTTONS - Thai Neon Style ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-2xl);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-neon);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--neon-green);
  border: 2px solid var(--neon-green);
}

.btn-secondary:hover {
  background: var(--neon-green);
  color: var(--background-color);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
  transform: translateY(-2px) scale(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--button-primary);
  border: 2px solid var(--button-primary);
}

.btn-outline:hover {
  background: var(--button-primary);
  color: #ffffff;
  box-shadow: var(--shadow-neon);
  transform: translateY(-2px) scale(1.05);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
}

.form-control {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  color: #ffffff;
  background: rgba(26, 26, 46, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.4);
  background: rgba(26, 26, 46, 0.8);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::before {
  left: 0;
}

/* ===== HEADER & HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--background-color);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-family: var(--font-display);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 5px rgba(255, 0, 128, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  font-weight: 300;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-background);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.footer-title {
  font-size: var(--font-size-xl);
  font-family: var(--font-display);
  color: var(--neon-pink);
  margin-bottom: var(--space-6);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* ===== UTILITIES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-neon {
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 128, 0.6);
}

.bg-gradient {
  background: var(--gradient-primary);
}

.bg-card {
  background: var(--gradient-card);
}

.border-neon {
  border: 1px solid var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  :root {
    --space-20: 3rem;
    --space-16: 2.5rem;
    --space-12: 2rem;
  }
  
  .card {
    padding: var(--space-6);
    margin-bottom: var(--space-4);
  }
  
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
}

@media (max-width: 480px) {
  :root {
    --space-16: 2rem;
    --space-12: 1.5rem;
  }
  
  .card {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== ANIMATIONS & INTERACTIONS ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
}

/* ===== FOCUS STATES ===== */
*:focus {
  outline: 2px solid var(--neon-pink);
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.4);
}

/* ===== PRINT STYLES ===== */
@media print {
  .card,
  .btn,
  .navbar,
  .footer {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}