:root {
  --bg: #f6f2ea;
  --bg-alt: #f2e4d6;
  --ink: #1d1b19;
  --muted: #5d554c;
  --accent: #ff8b5b;
  --accent-2: #1e6a69;
  --card: #fffaf4;
  --border: #e0d2c3;
  --shadow: 0 30px 80px rgba(20, 12, 6, 0.18);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Futura", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff2e1 0%, var(--bg) 55%), var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero {
  padding: 40px 7vw 80px;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 60px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3vw + 1.2rem, 3.4rem);
  margin: 0 0 12px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badge {
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.6);
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #2b1b13;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 139, 91, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 139, 91, 0.4);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.hero-card {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.panel-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.panel ul {
  padding-left: 18px;
  margin: 16px 0 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.85;
}

.orb-one {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, #ffd5a2 0%, rgba(255, 213, 162, 0.2) 70%);
  top: 0;
  left: 20px;
}

.orb-two {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #7ad6c8 0%, rgba(122, 214, 200, 0.2) 70%);
  right: 0;
  bottom: 0;
}

.section {
  padding: 70px 7vw;
  position: relative;
  z-index: 1;
}

.section.split {
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.section-head {
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
  margin-top: 6px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(22, 16, 10, 0.08);
}

.card.hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(22, 16, 10, 0.18);
}

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

.projects {
  margin-bottom: 20px;
}

.project.spotlight {
  border-color: var(--accent);
  box-shadow: 0 26px 60px rgba(255, 139, 91, 0.25);
  transform: translateY(-6px);
}

.chip {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(30, 106, 105, 0.14);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.skill-list {
  display: grid;
  gap: 18px;
}

.skill {
  display: grid;
  gap: 10px;
}

.meter {
  position: relative;
  height: 10px;
  background: rgba(30, 106, 105, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.meter::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), #88d0c7);
  border-radius: 999px;
  transition: width 1.4s ease;
}

.meter.filled::after {
  width: var(--level, 80%);
}

.contact-card {
  display: grid;
  gap: 16px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.footer {
  padding: 40px 7vw 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eee2d4;
}

.back-to-top {
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

body.mood-night {
  --bg: #161311;
  --bg-alt: #1d1917;
  --ink: #f6eee4;
  --muted: #b5a89a;
  --accent: #e59a6b;
  --accent-2: #a2f0da;
  --card: #1f1a17;
  --border: #3a2f28;
  background: radial-gradient(circle at top, #2a211b 0%, var(--bg) 55%), var(--bg);
}

body.mood-night .badge {
  background: rgba(31, 26, 23, 0.8);
}

body.mood-night .footer {
  background: #191411;
}

body.mood-night .btn.ghost {
  color: var(--ink);
}
