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

:root {
  --bg: #04060d;
  --surface: rgba(13, 27, 45, 0.8);
  --surface-solid: #0b1424;
  --primary: #00f0ff;
  --secondary: #ff5c8d;
  --text: #f5f9ff;
  --muted: #8ba2c6;
  --border: rgba(255, 255, 255, 0.1);
  --glow: 0 0 25px rgba(0, 240, 255, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
  background: radial-gradient(circle at top, rgba(0, 139, 255, 0.25), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=60') center/cover;
  opacity: 0.08;
  z-index: -2;
}

main {
  padding: 0 1.5rem 4rem;
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(4, 6, 13, 0.92);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

.brand span {
  font-weight: 600;
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

nav a:hover, nav a:focus {
  color: var(--primary);
  text-shadow: var(--glow);
}

.hero {
  max-width: 1200px;
  margin: 2.5rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(0, 240, 255, 0.08);
  font-size: 0.9rem;
  color: var(--primary);
}

.hero-visual {
  background: radial-gradient(circle at top, rgba(0, 240, 255, 0.25), rgba(255, 92, 141, 0.15));
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.6));
}

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

.btn-primary,
.btn-secondary {
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), #24ffb1);
  color: #041018;
  box-shadow: var(--glow);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.section {
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section p.section-lead {
  color: var(--muted);
  max-width: 700px;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 92, 141, 0.15);
  color: var(--secondary);
  font-size: 0.85rem;
}

.timeline {
  border-left: 2px solid var(--border);
  margin-left: 1rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-step {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--glow);
}

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

.stat {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(4, 6, 13, 0.85);
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

.portfolio-item {
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.12), rgba(255, 92, 141, 0.12));
  border-radius: 20px;
  padding: 1.4rem;
  border: 1px solid var(--border);
}

.portfolio-thumb {
  height: 200px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

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

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-card li span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.map-placeholder {
  border-radius: 20px;
  border: 1px dashed var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: rgba(4, 6, 13, 0.95);
}

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

.socials a {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 720px) {
  nav ul {
    display: none;
  }
  .hero {
    text-align: center;
  }
  .hero-visual {
    order: -1;
  }
}
