:root {
  /* Color Palette - Premium Indigo & Slate */
  --color-primary: #6366f1; /* Premium Indigo (formerly Soft Pink) */
  --color-secondary: #3b82f6; /* Modern Blue (formerly Sky Blue) */
  --color-tertiary: #8b5cf6; /* Modern Purple (formerly Plum) */
  
  --color-bg-light: #f8fafc; /* Slate 50 - Ultra clean light background */
  --color-bg-dark: #0f172a; /* Slate 900 - Premium dark background */
  --color-bg-darker: #1e1b4b; /* Indigo 950 - Premium dark accent */

  --color-text-main: #0f172a; /* Slate 900 - Very high contrast text */
  --color-text-light: #64748b; /* Slate 500 - Subtitles & low-priority text */
  --color-text-white: #ffffff;

  --color-success: #10b981; /* Emerald Green */
  --color-warning: #f59e0b; /* Amber Gold */
  --color-danger: #ef4444; /* Vibrant Red */

  /* Typography */
  --font-family-main: 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing & Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;

  /* Shadows - Modern Depth System */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
}

html {
  font-size: 16px;
  transition: font-size 0.2s ease;
}

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14.5px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13.5px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-main);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Components */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(99, 102, 241, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--border-radius-full);
  font-family: var(--font-family-main);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
  color: var(--color-text-white);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-family-main);
  font-size: 0.95rem;
  border: 1px solid #cbd5e1; /* Slate 300 */
  border-radius: var(--border-radius-sm);
  background-color: #ffffff;
  color: var(--color-text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
  color: #94a3b8; /* Slate 400 */
}

/* Footer Credit */
.site-footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 15;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-height: 650px) {
  .site-footer {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
  }
  .hero-section {
    min-height: auto;
    padding-bottom: 0;
  }
}
