:root {
  --bg: #fffdfd;
  --surface: #ffffff;
  --surface-soft: #fdf6fb;
  --text: #2b2430;
  --muted: #6f6675;
  --primary: #ff8aa5;
  --secondary: #93c4ff;
  --accent: #9ee2c7;
  --ring: rgba(255, 138, 165, 0.25);
  --shadow: 0 16px 40px rgba(60, 34, 55, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, #ffe8f1 0%, rgba(255, 232, 241, 0) 36%),
    radial-gradient(circle at 92% 5%, #e8f3ff 0%, rgba(232, 243, 255, 0) 36%),
    linear-gradient(180deg, #fffdfd 0%, #f8fbff 45%, #fff9fd 100%);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.6;
  animation: ambientFloat 14s ease-in-out infinite;
}

body::before {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  left: -140px;
  top: 18vh;
  background: radial-gradient(circle, rgba(255, 198, 219, 0.95), rgba(255, 198, 219, 0));
}

body::after {
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  right: -120px;
  top: 58vh;
  background: radial-gradient(circle, rgba(183, 220, 255, 0.9), rgba(183, 220, 255, 0));
  animation-delay: 2s;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 86px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(183, 174, 190, 0.2);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8aa5, #93c4ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

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

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 40px;
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: clip;
  min-height: min(86vh, 760px);
  display: grid;
  place-items: center;
}

.hero-content {
  text-align: center;
  max-width: 790px;
  position: relative;
  z-index: 2;
}

.hero-photo-wrapper {
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 154, 183, 0.34), rgba(147, 196, 255, 0.4));
  box-shadow: 0 18px 36px rgba(58, 38, 56, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-photo-wrapper:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 42px rgba(58, 38, 56, 0.24);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7b91;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(180, 164, 190, 0.28);
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}

h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

.hero-title {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: #4c4152;
  margin-top: 6px;
}

.hero-summary {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 20px auto 0;
  max-width: 650px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(77, 49, 74, 0.2);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #A63030, #8B2323);
  box-shadow: 0 10px 24px rgba(166, 48, 48, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border-color: #8B2323;
  color: #A63030;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f5f5f5, #ede7ed);
  border-color: #A63030;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.4px);
  animation: drift 9s ease-in-out infinite;
}

.shape-1 {
  width: 370px;
  height: 370px;
  background: radial-gradient(circle at 35% 35%, #ffd7e6, #ffeef5);
  left: -80px;
  top: 50px;
}

.shape-2 {
  width: 290px;
  height: 290px;
  background: radial-gradient(circle at 35% 35%, #dbeeff, #edf6ff);
  right: -40px;
  top: 100px;
  animation-delay: 1.5s;
}

.shape-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 35% 35%, #dcf7ee, #f0fcf7);
  right: 28%;
  bottom: -150px;
  animation-delay: 3s;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head h2 {
  background: linear-gradient(135deg, #A63030, #8B2323);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.about-card,
.card,
.timeline-card,
.contact-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(188, 177, 195, 0.26);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card {
  padding: 26px;
}

.about-meta {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.about-meta > div {
  background: var(--surface-soft);
  border: 1px solid rgba(192, 168, 186, 0.26);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 200px;
}

.skills-grid,
.grid {
  display: grid;
  gap: 20px;
}

.skills-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

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

.card {
  padding: 20px;
}

.card:hover,
.timeline-card:hover,
.contact-card:hover,
.about-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 2px rgba(166, 48, 48, 0.6),
    0 0 0 8px rgba(166, 48, 48, 0.25),
    0 0 0 12px rgba(255, 150, 179, 0.15),
    0 0 26px rgba(166, 48, 48, 0.36),
    0 20px 34px rgba(69, 48, 71, 0.18);
  border-color: rgba(166, 48, 48, 0.5);
}

.card:focus-within,
.timeline-card:focus-within,
.contact-card:focus-within,
.about-card:focus-within {
  box-shadow:
    0 0 0 1px rgba(255, 150, 179, 0.5),
    0 0 0 4px rgba(255, 150, 179, 0.14),
    0 0 26px rgba(147, 196, 255, 0.36),
    0 16px 30px rgba(69, 48, 71, 0.16);
  border-color: rgba(170, 140, 183, 0.42);
}

.skill-item + .skill-item {
  margin-top: 14px;
}

.skill-label-row {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.95rem;
}

.skill-bar {
  margin-top: 8px;
  width: 100%;
  height: 11px;
  background: #f0e9f2;
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9fb6, #9dc8ff, #9ee2c7);
  transition: width 1.2s cubic-bezier(0.21, 0.85, 0.28, 1);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.tags li {
  padding: 9px 12px;
  background: #f8f2f9;
  border: 1px solid #e6dce8;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.tags li:hover {
  transform: translateY(-2px);
  background: #fff8fc;
  border-color: #d8c3dd;
}

.timeline {
  position: relative;
  margin-left: 12px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #ffb6ca, #b9d8ff, #bdeeda);
}

.timeline-item {
  position: relative;
  padding-left: 42px;
}

.timeline-item + .timeline-item {
  margin-top: 18px;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #ff9fb6;
  position: absolute;
  left: 0;
  top: 16px;
}

.timeline-role,
.muted {
  color: var(--muted);
  margin-bottom: 8px;
}

.timeline-card {
  padding: 18px;
}

.timeline-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.contact-card {
  padding: 28px;
  text-align: center;
}

.contact-links {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.contact-links a {
  color: #5f4a7e;
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-links a:hover {
  color: #3f84c6;
  text-decoration: underline;
  transform: translateX(2px);
}

.site-footer {
  padding: 24px 0 34px;
  color: var(--muted);
  text-align: center;
}

.footer-feedback {
  margin: 0 auto 22px;
  max-width: 760px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(188, 177, 195, 0.34);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.footer-feedback h3 {
  margin-bottom: 8px;
}

.footer-feedback > p {
  margin-top: 0;
  margin-bottom: 14px;
}

.feedback-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.feedback-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.feedback-form label {
  display: grid;
  gap: 6px;
  color: #5d5261;
  font-weight: 500;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid #dfd2e2;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: #cd9eb3;
  box-shadow: 0 0 0 3px rgba(255, 138, 165, 0.18);
}

.feedback-form .btn {
  justify-self: start;
}

.feedback-status {
  min-height: 1.2rem;
  margin: 0;
  color: #4d8757;
  font-weight: 500;
}

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

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes ambientFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -14px, 0);
  }
}

@media (max-width: 930px) {
  .skills-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .menu-toggle {
    display: block;
  }

  .hero-photo-wrapper {
    margin-bottom: 16px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 4%;
    width: min(260px, 88vw);
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(188, 177, 195, 0.35);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 16px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

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

  .section {
    padding: 70px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
