@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600;700&display=swap');

:root {
  --primary: #8148f3;
  --secondary: #ff6fd8;
  --accent: #ff9a44;
  --dark: #0f1020;
  --light: #fdf7ff;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sarabun', 'Noto Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light);
  color: #2b1b3f;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 25px rgba(21, 3, 43, 0.08);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-weight: 600;
  color: #412359;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary);
}

.hero {
  padding: 5rem 0 4rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 999px;
  background: rgba(129, 72, 243, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 1rem 0;
  color: #1f0932;
}

.hero p {
  font-size: 1.1rem;
  color: #4b3b5c;
  margin-bottom: 1.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 15px 35px rgba(255, 144, 200, 0.35);
}

.btn-outline {
  border: 1px solid rgba(129, 72, 243, 0.4);
  color: var(--primary);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-card {
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.9), rgba(255, 237, 254, 0.85));
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(62, 15, 84, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--gradient);
  opacity: 0.15;
  filter: blur(60px);
  right: -30px;
  bottom: -30px;
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #1f0932;
}

.section-header p {
  color: #5b4a6f;
  max-width: 650px;
  margin: 0.8rem auto 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 15px 50px rgba(23, 0, 48, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(129, 72, 243, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  color: #2b1650;
}

.card p {
  margin: 0;
  color: #5c4c6c;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.showcase-item {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 40px rgba(35, 2, 59, 0.12);
}

.showcase-image {
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(129, 72, 243, 0.5));
}

.showcase-body {
  padding: 1.2rem 1.4rem;
}

.showcase-body h4 {
  margin: 0 0 0.4rem;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-card {
  border-radius: 24px;
  padding: 2rem;
  background: #fff;
  box-shadow: 0 20px 60px rgba(26, 0, 53, 0.1);
}

.contact-info li {
  list-style: none;
  padding: 0.3rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: #4e3d64;
}

.contact-info li span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(129, 72, 243, 0.12);
  color: var(--primary);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.input-field {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(129, 72, 243, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
}

textarea.input-field {
  min-height: 150px;
  resize: vertical;
}

.map-placeholder {
  border-radius: 24px;
  background: #f2e9ff;
  padding: 2rem;
  text-align: center;
  color: #6a5184;
  font-weight: 600;
}

footer {
  padding: 2.5rem 0;
  text-align: center;
  color: #fff;
  background: #1b0f2a;
}

footer .socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

footer .socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.2rem 2rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 3rem;
  }
}
