:root {
  --burgundy: #6b1d2a;
  --burgundy-deep: #3a0d16;
  --burgundy-bright: #9b2d3f;
  --wine: #8b1e2d;
  --rose: #c45c6a;
  --cream: #f6ebe8;
  --fog: #e8d5d2;
  --ink: #1a0a0d;
  --muted: rgba(246, 235, 232, 0.68);
  --line: rgba(196, 92, 106, 0.28);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(155, 45, 63, 0.35), transparent 55%),
    radial-gradient(900px 600px at 100% 20%, rgba(107, 29, 42, 0.45), transparent 50%),
    linear-gradient(165deg, #12070a 0%, var(--burgundy-deep) 42%, #1c0a10 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(155, 45, 63, 0.35);
  top: 20%;
  left: -80px;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: rgba(196, 92, 106, 0.2);
  bottom: 10%;
  right: -60px;
  animation-delay: -4s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.12); }
}

.nav,
main,
footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(18, 7, 10, 0.55);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 1.5rem;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav nav a:hover {
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  background: linear-gradient(135deg, var(--burgundy-bright), var(--burgundy));
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(107, 29, 42, 0.45);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(155, 45, 63, 0.2);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100vh - 76px);
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.9s ease both;
  background: linear-gradient(120deg, #fff 20%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 2rem;
  animation: fadeUp 1s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeUp 1.05s ease 0.24s both;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
  animation: fadeUp 1.1s ease 0.3s both;
}

.hero-contact .footer-link {
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  animation: fadeUp 1.1s ease 0.2s both;
}

.photo-frame {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(196, 92, 106, 0.4);
  background: linear-gradient(160deg, rgba(107, 29, 42, 0.4), rgba(26, 10, 13, 0.9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: none;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(246, 235, 232, 0.7), transparent);
  animation: scan 3.5s linear infinite;
  opacity: 0.55;
}

@keyframes scan {
  from { top: -2%; }
  to { top: 102%; }
}

.hero-ring {
  position: absolute;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(196, 92, 106, 0.35);
  border-radius: 0;
  pointer-events: none;
  transform: scale(1.08);
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px dashed rgba(246, 235, 232, 0.18);
  border-radius: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.section-lead {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.about-grid p {
  font-size: 1.08rem;
  color: rgba(246, 235, 232, 0.88);
}

.meta-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.meta-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
}

.meta-list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.25rem;
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.skill {
  padding: 1.4rem 1.2rem;
  border-top: 2px solid var(--burgundy-bright);
  background: linear-gradient(180deg, rgba(107, 29, 42, 0.22), rgba(107, 29, 42, 0.05));
  transition: transform 0.3s ease, background 0.3s ease;
}

.skill:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(155, 45, 63, 0.3), rgba(107, 29, 42, 0.08));
}

.skill strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.45rem;
}

.skill span {
  color: var(--muted);
  font-size: 0.95rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project {
  padding: 1.75rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  background: rgba(26, 10, 13, 0.35);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.project:hover {
  border-color: rgba(196, 92, 106, 0.55);
  transform: translateY(-5px);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.9rem;
}

.project h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.project p {
  color: var(--muted);
  font-size: 0.98rem;
}

.experience {
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.exp-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.exp-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.exp-org {
  color: var(--rose);
  margin-top: 0.2rem;
}

.exp-head time {
  color: var(--muted);
  font-size: 0.95rem;
}

.exp-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: rgba(246, 235, 232, 0.88);
}

.exp-list li {
  padding-left: 1rem;
  position: relative;
}

.exp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--burgundy-bright);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.edu {
  padding: 1.25rem 0;
  border-top: 2px solid var(--burgundy-bright);
}

.edu h3 {
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

.edu p {
  color: rgba(246, 235, 232, 0.88);
}

.edu span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.achievements {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.achievements li {
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}

.achievements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--rose);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .edu-grid,
  .achievements {
    grid-template-columns: 1fr;
  }
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--line);
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.contact-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.contact-link:hover {
  background: rgba(155, 45, 63, 0.25);
  border-color: var(--rose);
  transform: translateY(-2px);
}

footer {
  padding: 2rem clamp(1.25rem, 4vw, 4rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--rose);
}

@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero,
  .about-grid,
  .skills,
  .projects {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
  .hero-visual { order: -1; }
  .photo-frame { width: min(100%, 300px); }
}
