﻿:root {
  --bg: #f6efe6;
  --bg-deep: #f1dfcb;
  --surface: rgba(255, 250, 244, 0.72);
  --surface-strong: #fff8f0;
  --text: #1f1d1a;
  --muted: #635b55;
  --line: rgba(31, 29, 26, 0.12);
  --accent: #e7682f;
  --accent-2: #0d8a88;
  --accent-3: #efb64d;
  --shadow: 0 24px 80px rgba(73, 49, 32, 0.14);
  --shadow-strong: 0 30px 90px rgba(73, 49, 32, 0.18);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --container: min(1120px, calc(100% - 40px));
  --pointer-x: 50%;
  --pointer-y: 20%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 182, 77, 0.32), transparent 28%),
    linear-gradient(180deg, #f9f4ed 0%, var(--bg-deep) 48%, var(--bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(13, 138, 136, 0.16), transparent 18%),
    radial-gradient(circle at 8% 12%, rgba(239, 182, 77, 0.22), transparent 22%),
    radial-gradient(circle at 88% 10%, rgba(231, 104, 47, 0.18), transparent 20%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  opacity: 0.24;
  pointer-events: none;
  z-index: -3;
}

.progress-bar {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  background: rgba(31, 29, 26, 0.06);
  z-index: 50;
}

.progress-bar__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left center;
}

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.page-glow--one {
  width: 280px;
  height: 280px;
  top: 18%;
  right: -80px;
  background: rgba(13, 138, 136, 0.2);
  animation: float 12s ease-in-out infinite;
}

.page-glow--two {
  width: 220px;
  height: 220px;
  bottom: 8%;
  left: -60px;
  background: rgba(231, 104, 47, 0.18);
  animation: float 10s ease-in-out infinite reverse;
}

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

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  padding: 24px 0 86px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(16px);
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(80, 58, 39, 0.08);
}

.topbar__links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.topbar__links a:hover,
.topbar__links a.is-active {
  color: var(--accent);
  background: rgba(231, 104, 47, 0.08);
  transform: translateY(-2px);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
  padding-top: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(31, 29, 26, 0.08);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 10ch;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero__copy {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.82;
}

.hero__availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(31, 29, 26, 0.08);
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 8px rgba(13, 138, 136, 0.14);
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  background: var(--text);
  color: #fff8f0;
  box-shadow: 0 18px 40px rgba(31, 29, 26, 0.2);
}

.button--primary:hover {
  background: var(--accent);
}

.button--secondary,
.button--ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.button--secondary:hover,
.button--ghost:hover {
  box-shadow: 0 18px 32px rgba(73, 49, 32, 0.12);
}

.button--ghost {
  padding-inline: 20px;
}

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.hero__stats li {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__stats strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
}

.hero__stats span {
  color: var(--muted);
  line-height: 1.5;
}

.hero__panel {
  position: relative;
  min-height: 530px;
}

.hero-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 29, 26, 0.08);
  box-shadow: var(--shadow);
}

.hero-card--main,
.skill-card,
.workflow-card,
.project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --twist: 0deg;
  transform: perspective(1200px) translateY(var(--lift)) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) rotateZ(var(--twist));
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-card--main {
  position: absolute;
  inset: 74px 20px 24px 42px;
  padding: 28px;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.74);
  backdrop-filter: blur(16px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-card--main:hover,
.skill-card:hover,
.workflow-card:hover {
  --lift: -6px;
  box-shadow: var(--shadow-strong);
}

.hero-card--main::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -36px;
  bottom: -42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 138, 136, 0.22), transparent 70%);
}

.hero-card__label {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(239, 182, 77, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card--main h2 {
  position: relative;
  margin: 18px 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  line-height: 1.05;
}

.hero-card--main p {
  position: relative;
  color: var(--muted);
  line-height: 1.75;
}

.stack-list {
  position: relative;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.stack-list li,
.pill-list li,
.project-tags li,
.project-card__footer span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(31, 29, 26, 0.08);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.hero-card__meta {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.hero-card__meta div {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--text);
  line-height: 1.6;
}

.hero-card--floating {
  position: absolute;
  padding: 20px 22px;
  color: #fff9f1;
  font-weight: 800;
  line-height: 1.5;
}

.hero-card--top {
  top: 0;
  right: 0;
  max-width: 250px;
  background: linear-gradient(135deg, #0d8a88, #56c3bf);
  animation: float 8s ease-in-out infinite;
}

.hero-card--bottom {
  bottom: 0;
  left: 0;
  max-width: 280px;
  background: linear-gradient(135deg, #efb64d, #e7682f);
  animation: float 9s ease-in-out infinite reverse;
}

.signal-strip {
  margin-top: 36px;
  overflow: hidden;
  padding: 16px 0;
  border-radius: 28px;
  border: 1px solid rgba(31, 29, 26, 0.08);
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 36px rgba(73, 49, 32, 0.08);
}

.signal-strip__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.signal-strip__track span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.9);
  border: 1px solid rgba(31, 29, 26, 0.08);
  font-weight: 800;
  white-space: nowrap;
}

.section {
  padding: 34px 0 0;
}

.section__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.section__heading span,
.contact__panel > div > span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__heading h2,
.contact__panel h2 {
  max-width: 12ch;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.section__heading p {
  max-width: 35ch;
  color: var(--muted);
  line-height: 1.72;
}

.section__utility {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 24px;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 22px;
}

.surface-panel,
.highlight-card,
.skill-card,
.workflow-card,
.project-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.surface-panel {
  padding: 28px;
  border-radius: 34px;
  background: rgba(255, 251, 246, 0.66);
  backdrop-filter: blur(14px);
}

.content-card {
  display: grid;
  gap: 18px;
}

.content-card p,
.highlight-card p,
.skill-card p,
.workflow-card p,
.project-card p,
.contact__panel p {
  color: var(--muted);
  line-height: 1.8;
}

.about__highlights {
  display: grid;
  gap: 16px;
}

.highlight-card {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 245, 236, 0.85));
}

.highlight-card strong,
.skill-card h3,
.workflow-card h3,
.project-card h3 {
  display: block;
  margin-bottom: 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.highlight-card strong {
  font-size: 1.25rem;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.workflow-card {
  position: relative;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.72);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.workflow-card__step {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff8f0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.72);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.skill-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  top: -24px;
  right: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 182, 77, 0.2), transparent 70%);
}

.skill-card h3 {
  position: relative;
  font-size: 1.35rem;
}

.skill-card p,
.pill-list {
  position: relative;
}

.pill-list,
.project-tags,
.project-card__footer,
.contact__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 26px;
  border-radius: 32px;
  background: rgba(255, 250, 244, 0.72);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
}

.project-card:hover {
  --lift: -8px;
  --twist: -0.45deg;
  border-color: rgba(13, 138, 136, 0.24);
  box-shadow: 0 32px 70px rgba(73, 49, 32, 0.2);
}

.project-card__number {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: var(--text);
  color: #fff8f0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
}

.project-card h3 {
  font-size: 1.45rem;
  line-height: 1.12;
}

.project-tags {
  margin-top: 22px;
}

.project-card__footer {
  margin-top: 18px;
}

.project-card__footer span {
  background: rgba(13, 138, 136, 0.08);
}

.project-card__accent {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(13, 138, 136, 0.14), rgba(231, 104, 47, 0.24));
  transform: rotate(12deg);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-2);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s, gap 0.2s;
  gap: 4px;
}

.project-card__link:hover {
  color: var(--accent);
  gap: 8px;
}

.contact {
  padding-bottom: 84px;
}

.contact__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 36px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(31, 29, 26, 0.96), rgba(59, 42, 28, 0.96));
  box-shadow: 0 28px 80px rgba(31, 29, 26, 0.28);
}

.contact__panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -44px;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 182, 77, 0.28), transparent 72%);
}

.contact__panel > div > span {
  color: #ffcf70;
}

.contact__panel h2,
.contact__panel p,
.contact__meta,
.contact__actions {
  position: relative;
  z-index: 1;
}

.contact__panel h2,
.contact__panel p,
.contact__meta a,
.contact__meta small {
  color: #fff8f0;
}

.contact__panel p {
  max-width: 56ch;
  color: rgba(255, 248, 240, 0.8);
}

.contact__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact__meta li {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 248, 240, 0.12);
  background: rgba(255, 248, 240, 0.08);
}

.contact__meta small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 248, 240, 0.64);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact__meta a {
  word-break: break-word;
  font-weight: 700;
}

.contact__actions {
  justify-content: flex-end;
}

.button--light {
  background: #fff8f0;
  color: var(--text);
}

.button--outline {
  border-color: rgba(255, 248, 240, 0.22);
  color: #fff8f0;
}

.button--outline:hover {
  background: rgba(255, 248, 240, 0.12);
}

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero__content,
  .about__grid,
  .contact__panel {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    min-height: 470px;
  }

  .workflow,
  .skills__grid,
  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact__actions,
  .section__utility {
    justify-content: flex-start;
  }

  .contact__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(1120px, calc(100% - 28px));
  }

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

  .topbar__links {
    border-radius: 26px;
  }

  .hero {
    padding-bottom: 68px;
  }

  .hero h1,
  .section__heading h2,
  .contact__panel h2 {
    max-width: 100%;
  }

  .hero__stats,
  .workflow,
  .skills__grid,
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    min-height: 440px;
  }

  .hero-card--main {
    inset: 62px 0 18px;
  }

  .hero-card--top {
    right: 8px;
  }

  .hero-card--bottom {
    left: 8px;
    bottom: 8px;
  }

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

  .contact__panel {
    padding: 28px;
  }

  .button,
  .hero__availability {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .progress-bar__fill {
    transform: scaleX(1);
  }
}
