:root {
  --bg: #fffaf3;
  --bg-soft: #fff1e6;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --text: #241813;
  --muted: #69554c;
  --accent: #ff8a5b;
  --accent-deep: #dc6230;
  --accent-soft: #ffd8c3;
  --line: rgba(76, 45, 33, 0.12);
  --shadow: 0 24px 55px rgba(113, 79, 61, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 201, 171, 0.65), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(255, 227, 188, 0.7), transparent 24%),
    linear-gradient(180deg, #fffaf3 0%, #fff4ea 100%);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.65;
}

.orb-one {
  top: -6rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 184, 146, 0.8);
}

.orb-two {
  right: -6rem;
  bottom: 12%;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 221, 187, 0.8);
}

.site-header,
.section {
  width: min(calc(100% - 2rem), var(--width));
  margin: 0 auto;
}

.site-header {
  padding-top: 1rem;
}

.navbar {
  position: sticky;
  top: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 35px rgba(110, 73, 53, 0.08);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: transform 0.25s ease;
}

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

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

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface-solid);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.28rem 0;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.section {
  padding: 5rem 0;
}

.hero {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.section-kicker,
.project-tag,
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-kicker::before,
.project-tag::before,
.panel-badge::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.hero-panel h2,
.about-card h3,
.strength-card h3,
.project-card h3,
.contact-card h3 {
  font-family: "Cormorant Garamond", serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.97;
}

.hero-text,
.hero-panel p,
.about-card p,
.strength-card p,
.project-card p,
.contact-card p,
.form-message,
.contact-links a,
.detail-list li,
.mini-card p,
.hero-highlights span {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf5;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 16px 32px rgba(220, 98, 48, 0.24);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-highlights article,
.hero-panel,
.about-card,
.strength-card,
.project-card,
.contact-card,
.contact-form,
.mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-highlights article {
  min-width: 13rem;
  padding: 1rem 1.2rem;
}

.hero-highlights strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent-deep);
  font-size: 1.15rem;
}

.hero-panel {
  position: relative;
  padding: 1.8rem;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 164, 121, 0.25), transparent 65%);
}

.hero-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 2.3rem;
  line-height: 1.05;
}

.panel-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mini-card {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
}

.mini-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.about-grid,
.skills-layout,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-card,
.strength-card,
.project-card,
.contact-card,
.contact-form {
  padding: 1.6rem;
}

.about-card h3,
.strength-card h3,
.project-card h3,
.contact-card h3 {
  margin: 0 0 0.8rem;
  font-size: 2rem;
}

.detail-list {
  margin: 0;
  padding-left: 1.2rem;
}

.skills-layout {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 239, 229, 0.95));
  box-shadow: var(--shadow);
}

.skill-cloud span,
.project-tech span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(220, 98, 48, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.strength-grid {
  display: grid;
  gap: 1.5rem;
}

.project-grid {
  display: grid;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -4rem;
  right: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 146, 0.25), transparent 65%);
}

.project-top {
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.contact-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.contact-links {
  display: grid;
  gap: 0.7rem;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--accent-deep);
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(76, 45, 33, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(220, 98, 48, 0.2);
  border-color: rgba(220, 98, 48, 0.35);
}

.form-message {
  min-height: 1.4rem;
  margin: 0;
}

.form-message.success {
  color: #2c8a51;
}

.form-message.error {
  color: #c54f4f;
}

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

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

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .navbar {
    position: relative;
    border-radius: 1.5rem;
  }

  .navbar.open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar.open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .site-header,
  .section {
    width: min(calc(100% - 1.2rem), var(--width));
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .button,
  .hero-actions,
  .project-tech {
    width: 100%;
  }

  .hero-actions,
  .project-tech {
    flex-direction: column;
  }
}

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

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

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