:root {
  --bg: #f9f4eb;
  --ink: #1b1b1b;
  --muted: #5d5d5d;
  --card: rgba(255, 255, 255, 0.68);
  --line: rgba(27, 27, 27, 0.12);
  --brand: #ff6a3d;
  --brand-2: #0fa3b1;
  --ring: rgba(15, 163, 177, 0.2);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(27, 27, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, #ffd7b2 0%, transparent 42%),
    radial-gradient(circle at 85% 5%, #b7eff5 0%, transparent 38%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
.brand {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: repeating-radial-gradient(circle at 0 0, #000 0, #000 1px, transparent 1px, transparent 4px);
  z-index: -1;
}

.bg-orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  left: -999px;
  top: -999px;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.18), rgba(15, 163, 177, 0.1) 40%, transparent 72%);
  filter: blur(8px);
  transition: opacity 0.35s ease;
}

.orb-a {
  background: #ff835f;
  top: -10rem;
  left: -8rem;
  animation: drift-a 14s ease-in-out infinite alternate;
}

.orb-b {
  background: #6fd9e4;
  right: -8rem;
  bottom: -12rem;
  animation: drift-b 16s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate(4rem, 2rem) scale(1.1);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-5rem, -2rem) scale(0.95);
  }
}

.section {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 5.5rem 0;
}

.site-header {
  position: sticky;
  top: 1rem;
  width: min(1100px, 92vw);
  margin: 1rem auto 0;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.glass {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.65);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
}

.brand span {
  color: var(--brand);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.hero {
  padding-top: 7rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-2);
}

.hero-title {
  font-size: clamp(2rem, 5.2vw, 4.8rem);
  line-height: 1;
  margin: 0.6rem 0 1.2rem;
  max-width: 15ch;
}

.accent {
  color: var(--brand);
  display: block;
}

.hero-sub {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff9159);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 106, 61, 0.35);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
}

.hero-stats {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.58);
}

.hero-stats h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.hero-stats p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 24ch;
}

.about-copy {
  color: var(--muted);
  line-height: 1.8;
  max-width: 68ch;
  margin-top: 1rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: 0 22px 46px rgba(27, 27, 27, 0.18);
  border-color: rgba(255, 106, 61, 0.35);
}

.timeline-item,
.project,
.contact-card {
  padding: 1.15rem;
}

.time {
  margin: 0;
  font-size: 0.82rem;
  color: var(--brand-2);
  font-weight: 700;
}

.timeline-item h3,
.project h3 {
  margin: 0.45rem 0;
  font-size: 1.25rem;
}

.timeline-item p,
.project p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-2);
  border: 1px solid rgba(15, 163, 177, 0.28);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

.project {
  position: relative;
  overflow: hidden;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 106, 61, 0.09), transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.project:hover::before {
  transform: translateX(120%);
}

.text-link {
  display: inline-flex;
  margin-top: 0.7rem;
  color: var(--ink);
  text-underline-offset: 4px;
  font-weight: 700;
}

.skills-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.skills-grid span {
  padding: 0.85rem 0.8rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 14px;
  border: 1px solid rgba(27, 27, 27, 0.12);
  color: #202020;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 251, 0.85));
  box-shadow: 0 8px 22px rgba(20, 29, 33, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.skills-grid span:nth-child(3n + 1) {
  border-color: rgba(255, 106, 61, 0.28);
  background: linear-gradient(145deg, rgba(255, 234, 228, 0.95), rgba(255, 248, 245, 0.9));
}

.skills-grid span:nth-child(3n + 2) {
  border-color: rgba(15, 163, 177, 0.3);
  background: linear-gradient(145deg, rgba(227, 248, 250, 0.95), rgba(241, 252, 253, 0.9));
}

.skills-grid span:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 29, 33, 0.14);
  border-color: rgba(27, 27, 27, 0.25);
}

.contact-card {
  margin-top: 1rem;
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.contact-card h2 {
  margin: 0.4rem 0;
  font-size: clamp(1.5rem, 4vw, 3rem);
  max-width: 15ch;
}

.contact-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.in-view {
  animation: rise-in 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero-stats,
  .timeline,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 0.6rem;
    border-radius: 14px;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (min-width: 560px) and (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cursor-glow {
    display: none;
  }
}
