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

  html {
    scroll-behavior: smooth;
    background-color: #0C0C0C;
    color: #D7E2EA;
    font-family: 'Kanit', sans-serif;
  }

  body {
    background-color: #0C0C0C;
    color: #D7E2EA;
    overflow-x: hidden;
    min-height: 100vh;
  }
}

.hero-heading {
  background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #7dd3fc 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass panel effects */
.glass-card {
  background: rgba(18, 20, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(215, 226, 234, 0.08);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  border-color: rgba(187, 204, 215, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(187, 204, 215, 0.08);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0C0C0C;
}
::-webkit-scrollbar-thumb {
  background: #23272f;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a414f;
}


/* Keep the full name on one line in the hero. */
.hero-name-line {
  white-space: nowrap;
  font-size: clamp(2rem, 4.8vw, 5.75rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}
@media (max-width: 420px) {
  .hero-name-line { font-size: clamp(1.75rem, 8.3vw, 2.25rem); }
}


/* Ambient gradient glow behind existing dark surfaces.
   The glow layer matches the full panel size and blurs outward beyond its edges;
   the panel's own opaque dark background keeps all text/content areas unlit. */
.glow-effect {
  --glow-gradient: linear-gradient(137deg, #FF3D77 0%, #FFB1CE 45%, #FF9D3C 100%);
  position: relative;
  isolation: isolate;
  z-index: 0;
}
.glow-effect::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: inherit;
  background: var(--glow-gradient);
  filter: blur(45px);
  opacity: 0.6;
  pointer-events: none;
  transform: none;
}
.glow-effect--warm {
  --glow-gradient: linear-gradient(137deg, #FF3D77 0%, #FFB1CE 45%, #FF9D3C 100%);
}
.glow-effect--cyan {
  --glow-gradient: linear-gradient(137deg, #FFFFFF 0%, #7DD3FC 45%, #06B6D4 100%);
}
.glow-effect--violet {
  --glow-gradient: linear-gradient(137deg, #4361EE 0%, #E0AEFF 45%, #F72585 100%);
}
.glow-effect--amber {
  --glow-gradient: linear-gradient(137deg, #F59E0B 0%, #FBBF24 50%, #FDE68A 100%);
}
@media (prefers-reduced-motion: reduce) {
  .glow-effect, .glow-effect::before { transition: none; }
}
