/* =========================================================
   HgProduction – styles
   Mobile-first. Colours and sizes live in :root below.
   ========================================================= */

:root {
  --purple: #9646FF;
  --gold: #FFC83C;
  --pink: #FF50B4;

  --bg: #0B0814;
  --bg-alt: #110C1F;
  --surface: #181128;
  --surface-2: #211836;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F4F0FF;
  --text-muted: #B3A9CC;

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1160px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #1a1200;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-gold   { color: var(--gold); }
.text-pink   { color: var(--pink); }
.text-purple { color: #B47BFF; } /* lighter purple for contrast on dark */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 8, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .01em;
}
.brand img { width: 36px; height: 36px; }
.brand-accent { color: var(--gold); }

/* Mobile menu button */
.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(11, 8, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav .nav-cta { color: var(--text); background: var(--surface-2); text-align: center; margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 8px 24px -8px rgba(150, 70, 255, .7);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(255, 80, 180, .75); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-lg { min-height: 56px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}

/* Soft fade so the glows blend into the next section instead of a hard edge */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  z-index: -2;
  animation: float 14s ease-in-out infinite;
}
.hero-glow--purple { width: 420px; height: 420px; background: var(--purple); top: -80px; left: -120px; }
.hero-glow--pink   { width: 340px; height: 340px; background: var(--pink); bottom: -60px; right: -100px; opacity: .4; animation-delay: -5s; }
.hero-glow--gold   { width: 220px; height: 220px; background: var(--gold); top: 40%; left: 55%; opacity: .18; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -30px) scale(1.08); }
}

.hero-inner { text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 200, 60, 0.08);
  border: 1px solid rgba(255, 200, 60, 0.25);
  border-radius: 999px;
}

.wordmark {
  font-size: clamp(2.9rem, 12.5vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
  text-shadow: 0 6px 40px rgba(150, 70, 255, .35);
}
.wordmark-accent {
  background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: clamp(1.08rem, 2.8vw, 1.35rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  align-items: stretch;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 700; }
.section-lead { margin-top: 16px; color: var(--text-muted); font-size: 1.08rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 28px; }
.about-text p { color: var(--text-muted); font-size: 1.08rem; }
.about-text p + p { margin-top: 16px; }

.about-stats {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.about-stats li {
  padding: 18px 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.about-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
}
.about-stats span { font-size: .82rem; color: var(--text-muted); }

/* ---------- Projects ---------- */
.projects-grid { display: grid; gap: 24px; }

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(150, 70, 255, .5);
  box-shadow: 0 24px 50px -20px rgba(150, 70, 255, .55);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge--dev  { color: #1a1200; background: var(--gold); }
.badge--live { color: #fff; background: rgba(36, 190, 120, .92); }
.badge--soon { color: #fff; background: rgba(150, 70, 255, .92); }

.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-meta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink);
}
.project-body h3 { margin-top: 6px; font-size: 1.6rem; font-weight: 600; }
.project-body p { margin-top: 10px; color: var(--text-muted); flex: 1; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  align-self: flex-start;
}
/* Makes the whole card clickable while keeping a single real link */
.project-link::after { content: ""; position: absolute; inset: 0; }
.project-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.project-card:hover .project-link svg { transform: translate(3px, -3px); }

.noscript-list { color: var(--text-muted); }
.noscript-list a { color: var(--gold); }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 20px; }

.service-card {
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(24, 17, 40, .6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 200, 60, .35);
  box-shadow: 0 20px 40px -24px rgba(255, 200, 60, .45);
}
.service-card h3 { margin-top: 20px; font-size: 1.35rem; font-weight: 600; }
.service-card p { margin-top: 10px; color: var(--text-muted); font-size: .97rem; }

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  transition: transform .35s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-icon--purple { color: #C69BFF; background: rgba(150, 70, 255, .16); }
.service-icon--gold   { color: var(--gold); background: rgba(255, 200, 60, .14); }
.service-icon--pink   { color: var(--pink); background: rgba(255, 80, 180, .14); }

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: 56px 22px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.contact-glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(circle at 30% 30%, rgba(150, 70, 255, .35), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(255, 80, 180, .25), transparent 45%);
}
.contact-card .section-lead { max-width: 520px; margin-left: auto; margin-right: auto; }

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.contact-actions .btn-primary {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0 22px;
}
.copy-status { min-height: 1.5em; margin-top: 14px; font-size: .9rem; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Breakpoints (mobile-first)
   ========================================================= */
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
  .contact-actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 720px) {
  .container { padding: 0 32px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 72px 48px; }
  .section { padding: 112px 0; }
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .site-nav ul { flex-direction: row; align-items: center; padding: 0; gap: 4px; }
  .site-nav a { padding: 8px 14px; }
  .site-nav .nav-cta {
    margin: 0 0 0 8px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 200, 60, .4);
    background: rgba(255, 200, 60, .08);
    color: var(--gold);
  }
  .site-nav .nav-cta:hover { background: var(--gold); color: #1a1200; }

  .about-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }

  .hero-glow--purple { width: 560px; height: 560px; }
  .hero-glow--pink   { width: 460px; height: 460px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
