/* ================= WFP — Freelance Software Development ================= */

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #16161a;
  --border: #26262c;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #7dd3fc;
  --accent-dim: rgba(125, 211, 252, 0.12);
  --radius: 14px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------------- Typography ---------------- */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.4em; }
h3 { font-size: 1.15rem; margin-bottom: 0.5em; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--text);
  color: #0a0a0b;
}
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-muted); background: var(--surface); }

.btn-full { width: 100%; }

/* ---------------- Nav ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.brand-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-circle-sm { width: 34px; height: 34px; }

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-cta:hover { border-color: var(--text-muted); background: var(--surface); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 170px 0 110px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 1.4rem 0 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.meta-item { display: flex; flex-direction: column; }
.meta-item strong {
  font-family: var(--font-head);
  font-size: 1rem;
}
.meta-item span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.meta-divider {
  width: 1px;
  height: 34px;
  background: var(--border);
}

/* Circular logo treatment */

.hero-logo {
  position: relative;
  display: flex;
  justify-content: center;
}

.logo-circle {
  position: relative;
  width: min(300px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px rgba(125, 211, 252, 0.10),
    0 30px 60px rgba(0, 0, 0, 0.6);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-circle-sm { width: min(220px, 50vw); }

.logo-orbit {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(125, 211, 252, 0.25);
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------- Sections ---------------- */

.section { padding: 100px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------------- Cards ---------------- */

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #3a3a42;
  transform: translateY(-3px);
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------------- About ---------------- */

.about-inner {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  align-items: center;
  gap: 4rem;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.about-copy strong { color: var(--text); }

.about-points {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
}

.about-points li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.about-points span { color: var(--accent); }

/* ---------------- Stack cloud ---------------- */

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.stack-cloud span {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.stack-cloud span:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* ---------------- Work cards ---------------- */

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  border-color: #3a3a42;
  transform: translateY(-3px);
}

.work-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
}

.work-thumb-1 { background: linear-gradient(135deg, #1e293b, #0f172a); }
.work-thumb-2 { background: linear-gradient(135deg, #1c1c22, #121216); }
.work-thumb-3 { background: linear-gradient(135deg, #164e63, #0c2d3a); }

.work-body { padding: 1.5rem; }
.work-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }

.work-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.work-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}

/* ---------------- Process ---------------- */

.process-list {
  list-style: none;
  display: grid;
  gap: 2.4rem;
  max-width: 720px;
  margin-top: 2.5rem;
}

.process-list li {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}

.process-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 3rem;
}

.process-list p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------------- Contact ---------------- */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-copy p { color: var(--text-muted); margin-bottom: 1.2rem; }

.contact-details { margin-top: 2rem; }

.contact-line {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.contact-line:hover { border-bottom-color: var(--accent); }

.contact-line-muted {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.contact-details .btn {
  margin-top: 1.1rem;
  width: fit-content;
}

.contact-details .btn + .btn {
  margin-top: 0.7rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}

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

.contact-form label span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--accent);
  text-align: center;
  min-height: 1.2em;
}

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-tag { font-size: 0.85rem; color: var(--text-dim); }
.footer-copy { font-size: 0.85rem; color: var(--text-dim); }

/* ---------------- Reveal animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-orbit { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-logo { order: -1; }
  .logo-circle { width: min(220px, 56vw); }
  .about-logo { display: flex; justify-content: center; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 4%;
    display: none;
  }

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

  .nav-links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-cta {
    border: none;
    padding: 0.9rem 0 !important;
    color: var(--accent) !important;
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 140px 0 80px; }

  .process-list li { gap: 1.1rem; }
  .meta-divider { display: none; }
  .hero-meta { gap: 1.2rem; }
}
