/* ---------- Tokens ---------- */
:root {
  --black: #1A1A1A;
  --white: #FFFFFF;
  --blue: #5B8DEF;
  --pink: #E893C0;
  --gradient: linear-gradient(120deg, var(--blue), var(--pink));
  --gray: #6B6B6B;
  --border: #E7E5E2;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-link { display: flex; align-items: center; }

.logo {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 40px;
}

.site-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.2s ease;
}

.site-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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); }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient);
  padding: 140px 0;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 24px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--black);
}

.hero .btn-primary:hover { opacity: 0.9; }

/* ---------- Section label ---------- */
.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 16px;
}

/* ---------- Services ---------- */
.services {
  background: var(--white);
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 24px;
}

.service-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.98rem;
}

/* ---------- About ---------- */
.about {
  background: #FAF9F7;
  padding: 120px 0;
}

.about-inner {
  max-width: 900px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-top: 8px;
}

.about-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-bio {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #333;
}

/* ---------- Stats / Why work with me ---------- */
.stats {
  background: #FAF3F7;
  padding: 120px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 24px;
}

.stat-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card p {
  color: var(--gray);
  font-size: 0.98rem;
}

/* ---------- Things I've Built ---------- */
.built {
  background: var(--white);
  padding: 120px 0;
}

.built-intro {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin-top: 8px;
}

.built-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 40px;
}

.built-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.built-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.built-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.built-card p {
  color: var(--gray);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.built-card .btn-primary {
  background: var(--gradient);
  color: var(--white);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--black);
  background-image: var(--gradient);
  padding: 120px 0;
  color: var(--white);
}

.contact .section-label { color: rgba(255, 255, 255, 0.75); }

.contact-lead {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 56px;
  max-width: 500px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.15s ease;
}

.contact-item:hover { opacity: 0.75; }

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.5); }

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

.contact-form .btn { margin-top: 8px; align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.55);
  padding: 28px 0;
  font-size: 0.85rem;
  text-align: center;
}

.footer-credit {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover { color: rgba(255, 255, 255, 0.75); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .built-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-content { flex-direction: column; text-align: center; gap: 32px; }
  .hero { padding: 100px 0; }
  .services, .about, .stats, .built, .contact { padding: 80px 0; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.open { max-height: 240px; }

  .site-nav a {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav a::after { display: none; }

  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .about-portrait { width: 160px; height: 160px; }
  .hero { padding: 80px 0; }
  .hero-sub { font-size: 1rem; }
  .about-bio { font-size: 1.1rem; }
  .contact-lead { font-size: 1.4rem; }
}
