/* ===================================================
   style.css — WebCraft Landing Page
   Aesthetic: Bold Neon-Minimal | Dark Base + Neon Accents
   =================================================== */

:root {
  --bg:       #0a0a0f;
  --bg2:      #111118;
  --bg3:      #16161f;
  --surface:  #1c1c28;
  --border:   rgba(255,255,255,0.07);
  --accent:   #7c3aff;
  --accent2:  #ff3a8c;
  --accent3:  #00e5c0;
  --text:     #f0eeff;
  --text-muted: #8b87a8;
  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 8px 40px rgba(124,58,255,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  font-family: 'Prompt', sans-serif;
  font-weight: 700; font-size: 1.2rem;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-cta {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 99px;
  font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(124,58,255,0.4); }

/* ===== SECTION HELPERS ===== */
.section-label {
  display: inline-block;
  font-family: 'Prompt', sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent3);
  border: 1px solid rgba(0,229,192,0.3);
  padding: 5px 14px; border-radius: 99px;
  margin-bottom: 16px;
}
.section-label.light { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }

.section-title {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 12px;
}
.section-title.light { color: #fff; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 56px; }
.section-sub.light { color: rgba(255,255,255,0.65); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 40px 80px;
  gap: 60px;
  overflow: hidden;
}

/* BG grid */
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Blobs */
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; opacity: 0.35;
}
.blob1 { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -150px; }
.blob2 { width: 350px; height: 350px; background: var(--accent2); bottom: -50px; right: 10%; }
.blob3 { width: 250px; height: 250px; background: var(--accent3); top: 40%; right: 30%; opacity: 0.15; }

.hero-content {
  flex: 1; max-width: 580px; position: relative; z-index: 2;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(124,58,255,0.25), rgba(255,58,140,0.25));
  border: 1px solid rgba(124,58,255,0.4);
  padding: 6px 16px; border-radius: 99px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px; color: #e0d0ff;
}

.hero-title {
  font-family: 'Prompt', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .line1 { display: block; }
.hero-title .line2 { display: block; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted); font-size: 1.05rem;
  margin-bottom: 24px; line-height: 1.7;
}

.hero-price-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent3), #00b894);
  color: #0a0a0f;
  padding: 8px 22px; border-radius: 99px;
  font-family: 'Prompt', sans-serif; font-weight: 700;
  font-size: 1.1rem; margin-bottom: 32px;
}
.hero-price-badge strong { font-size: 1.3rem; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-ghost {
  padding: 14px 24px;
  background: transparent;
  color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-trust {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--text-muted);
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }

/* ===== PHONE MOCKUP ===== */
.hero-mockup {
  position: relative; z-index: 2;
  flex-shrink: 0;
  animation: fadeUp 0.9s 0.2s ease both;
}

.mockup-phone {
  width: 220px; height: 420px;
  background: var(--surface);
  border: 2px solid rgba(124,58,255,0.35);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.phone-screen {
  padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; height: 100%;
}
.phone-header-bar {
  height: 20px; background: rgba(124,58,255,0.2);
  border-radius: 8px;
}
.phone-hero-block {
  height: 100px;
  background: linear-gradient(135deg, rgba(124,58,255,0.5), rgba(255,58,140,0.4));
  border-radius: 10px;
}
.phone-text-lines { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.pline { height: 8px; background: rgba(255,255,255,0.12); border-radius: 4px; }
.pline.w80 { width: 80%; }
.pline.w60 { width: 60%; }
.pline.w90 { width: 90%; }
.pline.w70 { width: 70%; }
.pline.w50 { width: 50%; }
.pline.sm { height: 6px; }
.phone-img-card {
  height: 90px;
  background: linear-gradient(135deg, rgba(0,229,192,0.25), rgba(124,58,255,0.15));
  border-radius: 10px;
}
.phone-btn-row { padding: 4px 0; }
.p-btn {
  height: 30px; background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 8px; width: 80%; margin: 0 auto;
}

.mockup-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.card-float1 { top: 30px; right: -40px; transform: rotate(6deg); }
.card-float2 { bottom: 60px; left: -50px; transform: rotate(-5deg); }

/* ===== SERVICES ===== */
.services {
  padding: 100px 40px;
  background: var(--bg2);
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px; text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0; transform: translateY(30px);
}
.service-card.visible {
  opacity: 1; transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,255,0.5);
  box-shadow: 0 12px 36px rgba(124,58,255,0.15);
}
.service-icon { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 {
  font-family: 'Prompt', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ===== PORTFOLIO ===== */
.portfolio {
  padding: 100px 40px;
  background: var(--bg);
  text-align: center;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px; max-width: 900px; margin: 0 auto;
}
.port-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}
.port-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }

/* Image wrapper — shows placeholder when image missing */
.port-img-wrap {
  position: relative;
  width: 100%; height: 220px;
  overflow: hidden;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.port-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative; z-index: 2;
}
/* Show placeholder if image fails to load */
.port-img-placeholder {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, rgba(124,58,255,0.1), rgba(0,229,192,0.07));
  color: var(--text-muted); text-align: center;
}
.port-img-placeholder span { font-size: 2.5rem; }
.port-img-placeholder p { font-size: 0.85rem; line-height: 1.5; }
.port-img-placeholder small { font-size: 0.75rem; opacity: 0.6; font-family: monospace; }
/* Hide placeholder when image loads */
.port-img:not([src="your-image-1.jpg"]):not([src="your-image-2.jpg"]) ~ .port-img-placeholder,
.port-img[src]:not([src=""]) ~ .port-img-placeholder { display: none; }

.port-info { padding: 20px 22px; }
.port-tag {
  display: inline-block;
  background: rgba(124,58,255,0.2); color: var(--accent);
  padding: 3px 12px; border-radius: 99px;
  font-size: 0.75rem; font-weight: 600;
  margin-bottom: 10px;
}
.port-tag.shop { background: rgba(0,229,192,0.15); color: var(--accent3); }
.port-info h3 { font-family: 'Prompt', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.port-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.port-link {
  color: var(--accent3); font-size: 0.9rem; text-decoration: none;
  font-weight: 600; transition: opacity 0.2s;
}
.port-link:hover { opacity: 0.7; }

/* ===== PRICING ===== */
.pricing {
  padding: 100px 40px;
  background: var(--bg2);
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; max-width: 740px; margin: 0 auto 28px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px; text-align: left;
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.pro {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(124,58,255,0.12), var(--surface));
  box-shadow: 0 0 40px rgba(124,58,255,0.2);
}

.price-tag-label {
  position: absolute; top: 16px; right: 16px;
  background: rgba(124,58,255,0.2); color: var(--accent);
  padding: 4px 12px; border-radius: 99px;
  font-size: 0.75rem; font-weight: 700;
}
.price-tag-label.pro-tag { background: var(--accent); color: #fff; }

.price-name {
  font-family: 'Prompt', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 6px;
}
.price-amount {
  font-family: 'Prompt', sans-serif;
  font-size: 3.2rem; font-weight: 900; line-height: 1;
  margin-bottom: 6px;
}
.currency { font-size: 1.5rem; vertical-align: super; }
.price-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 9px; }
.price-features li { font-size: 0.95rem; color: var(--text-muted); }
.price-features li span { color: var(--accent3); }
.price-btn { width: 100%; padding: 13px; font-size: 0.95rem; }

.pricing-note { color: var(--text-muted); font-size: 0.85rem; opacity: 0.7; }

/* ===== CONTACT ===== */
.contact {
  padding: 100px 40px;
  background: linear-gradient(135deg, #0d0820 0%, #1a0830 50%, #0a1530 100%);
  text-align: center; position: relative; overflow: hidden;
}
.contact-bg-shape {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 2; }

.contact-cards {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 36px;
  text-decoration: none; color: var(--text);
  min-width: 200px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.contact-card:hover { transform: translateY(-6px); }
.line-card:hover { border-color: #00c300; background: rgba(0,195,0,0.08); }
.fb-card:hover { border-color: #1877f2; background: rgba(24,119,242,0.08); }

.contact-icon { font-size: 2rem; }
.contact-channel {
  font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 1.1rem;
}
.contact-handle { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.contact-action { color: var(--accent3); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }

.cta-final p { color: rgba(255,255,255,0.6); margin-bottom: 20px; font-size: 1.05rem; }
.cta-final { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.btn-cta-big {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 1.2rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(124,58,255,0.35);
}
.btn-cta-big:hover { transform: scale(1.05); box-shadow: 0 14px 40px rgba(124,58,255,0.5); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center; padding: 32px 20px;
  color: var(--text-muted); font-size: 0.9rem;
}
.footer-sub { font-size: 0.8rem; opacity: 0.5; margin-top: 6px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.service-card { transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: 100px 24px 60px; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-mockup { display: none; }
}
@media (max-width: 600px) {
  .navbar { padding: 14px 20px; }
  .services, .portfolio, .pricing, .contact { padding: 70px 20px; }
  .hero { padding: 90px 20px 60px; }
  .contact-cards { flex-direction: column; align-items: center; }
}
