﻿:root {
  --midnight-950: #050b18;
  --midnight-900: #081327;
  --midnight-850: #0d1b33;
  --midnight-800: #10213f;
  --midnight-700: #1a2d4f;
  --peach-500: #d89a86;
  --peach-400: #e4b6a5;
  --peach-300: #f0cbc0;
  --text-strong: #f4f7ff;
  --text-soft: #c6d0e5;
  --surface: rgba(10, 25, 50, 0.72);
  --surface-strong: rgba(13, 30, 58, 0.88);
  --border: rgba(216, 154, 134, 0.34);
  --shadow-deep: 0 24px 55px rgba(2, 6, 15, 0.55);
  --shadow-soft: 0 14px 32px rgba(6, 12, 29, 0.34);
  --radius: 1.15rem;
  --transition: 280ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-strong);
  background:
    radial-gradient(circle at 16% 12%, rgba(216, 154, 134, 0.14), transparent 38%),
    radial-gradient(circle at 85% 8%, rgba(103, 130, 177, 0.18), transparent 37%),
    linear-gradient(160deg, var(--midnight-900) 0%, var(--midnight-850) 45%, var(--midnight-950) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  animation: orbDrift 16s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  left: -110px;
  top: 14%;
  background: rgba(216, 154, 134, 0.17);
}

.orb-2 {
  width: 380px;
  height: 380px;
  right: -110px;
  top: -70px;
  background: rgba(99, 122, 168, 0.2);
  animation-delay: -6s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  left: 44%;
  bottom: -100px;
  background: rgba(216, 154, 134, 0.12);
  animation-delay: -10s;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(5, 14, 30, 0.56);
  border-bottom: 1px solid rgba(216, 154, 134, 0.18);
}

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

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

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-strong);
  transition: color var(--transition);
}

.brand:hover {
  color: var(--peach-300);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--peach-400), transparent);
  transition: transform var(--transition);
}

.site-nav a:hover {
  color: var(--text-strong);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.page-shell {
  opacity: 0;
  transform: translateY(38px);
}

body.is-ready .page-shell {
  opacity: 1;
  transform: translateY(0);
  transition: transform 820ms ease, opacity 820ms ease;
}

.section {
  position: relative;
  padding: 6.25rem 0;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, 84%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 154, 134, 0.45), transparent);
}

.hero-hex {
  width: min(34vw, 360px);
  animation: floatHex 6.5s ease-in-out infinite;
}

.hero-hex__motion {
  transition: transform 280ms ease-out;
}

.hero-hex__frame {
  position: relative;
  padding: 7px;
  clip-path: polygon(24% 4%, 76% 4%, 100% 50%, 76% 96%, 24% 96%, 0 50%);
  background: linear-gradient(135deg, rgba(216, 154, 134, 0.92), rgba(216, 154, 134, 0.3) 45%, rgba(138, 156, 190, 0.36));
  box-shadow:
    0 0 0 1px rgba(216, 154, 134, 0.4),
    0 0 30px rgba(216, 154, 134, 0.32),
    0 0 64px rgba(216, 154, 134, 0.15);
}

.hero-hex__frame::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 16px;
  clip-path: inherit;
  background: radial-gradient(circle, rgba(216, 154, 134, 0.3), transparent 72%);
  filter: blur(9px);
  z-index: -1;
}

.hero-hex__frame img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  clip-path: polygon(24% 4%, 76% 4%, 100% 50%, 76% 96%, 24% 96%, 0 50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: saturate(1.03) contrast(1.06);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--peach-300);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.section-title,
.section-subtitle {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.section-subtitle {
  font-size: clamp(1.5rem, 3.8vw, 2.45rem);
}

.about-meta {
  margin-top: 0.9rem;
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
}

.about-lines {
  margin-top: 2rem;
  display: grid;
  gap: 0.95rem;
  max-width: 700px;
}

.about-lines p {
  color: var(--text-soft);
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 2px solid rgba(216, 154, 134, 0.45);
  background: linear-gradient(90deg, rgba(216, 154, 134, 0.08), transparent);
}

.about-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.about-visual {
  display: flex;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.45rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
  color: var(--midnight-950);
  background: linear-gradient(135deg, var(--peach-400), var(--peach-500));
  box-shadow: 0 0 0 1px rgba(216, 154, 134, 0.5), 0 8px 22px rgba(216, 154, 134, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(216, 154, 134, 0.6), 0 12px 30px rgba(216, 154, 134, 0.34), 0 0 24px rgba(216, 154, 134, 0.28);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text-strong);
  background: rgba(216, 154, 134, 0.08);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 154, 134, 0.62);
  box-shadow: 0 10px 24px rgba(6, 12, 28, 0.3), 0 0 20px rgba(216, 154, 134, 0.18);
}

.skills {
  overflow: hidden;
}

.skills-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 154, 134, 0.6), rgba(216, 154, 134, 0));
  animation: particleFloat linear infinite;
}

.skills-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.skill-card {
  background: linear-gradient(160deg, rgba(13, 30, 58, 0.8), rgba(9, 22, 44, 0.88));
  border: 1px solid rgba(216, 154, 134, 0.23);
  border-radius: var(--radius);
  padding: 1.2rem;
  min-height: 170px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: cardFloat 7s ease-in-out infinite;
}

.skill-card:nth-child(2n) {
  animation-delay: -1.4s;
}

.skill-card:nth-child(3n) {
  animation-delay: -2.8s;
}

.skill-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.skill-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(216, 154, 134, 0.6);
  box-shadow: var(--shadow-deep), 0 0 24px rgba(216, 154, 134, 0.23);
}

.projects-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  height: 260px;
  perspective: 1000px;
}

.project-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 640ms ease;
  transform-style: preserve-3d;
}

.project-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.25rem;
  backface-visibility: hidden;
  border: 1px solid rgba(216, 154, 134, 0.28);
  background: linear-gradient(170deg, rgba(15, 33, 65, 0.9), rgba(8, 20, 40, 0.9));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.project-front h3,
.project-back h3 {
  font-family: "Sora", sans-serif;
  margin-bottom: 0.65rem;
}

.project-front p,
.project-back p {
  color: var(--text-soft);
  max-width: 31ch;
}

.chip {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--midnight-950);
  font-weight: 700;
  background: linear-gradient(135deg, var(--peach-300), var(--peach-500));
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
}

.project-back {
  transform: rotateY(180deg);
  justify-content: center;
  background:
    linear-gradient(170deg, rgba(216, 154, 134, 0.2), rgba(12, 28, 56, 0.94)),
    rgba(8, 20, 40, 0.92);
}

.project-card:hover .project-card__inner,
.project-card.is-flipped .project-card__inner {
  transform: rotateY(180deg) scale(1.015);
}

.contact-card {
  background: linear-gradient(150deg, rgba(17, 36, 69, 0.82), rgba(9, 19, 38, 0.92));
  border: 1px solid rgba(216, 154, 134, 0.3);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow-deep);
  padding: clamp(1.4rem, 4vw, 2.3rem);
}

.contact-text {
  margin-top: 0.8rem;
  color: var(--text-soft);
}

.contact-links {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-link {
  text-decoration: none;
  color: var(--text-strong);
  border: 1px solid rgba(216, 154, 134, 0.3);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(216, 154, 134, 0.07);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-link:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 154, 134, 0.6);
  box-shadow: 0 0 24px rgba(216, 154, 134, 0.22);
  background: rgba(216, 154, 134, 0.14);
}

.icon-wrap {
  width: 1.3rem;
  height: 1.3rem;
  display: inline-grid;
  place-items: center;
}

.icon-wrap svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer {
  padding: 1.3rem 0 2.2rem;
  text-align: center;
  color: rgba(198, 208, 229, 0.8);
  font-size: 0.9rem;
}

/* Scroll reveal primitives */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal[data-anim="left"] {
  transform: translateX(-22px);
}

.reveal[data-anim="scale"] {
  transform: translateY(24px) scale(0.92);
}

.reveal[data-anim="fade"] {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

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

@keyframes orbDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(22px, -18px, 0);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 14px, 0);
    opacity: 0;
  }
  15%,
  85% {
    opacity: 0.5;
  }
  100% {
    transform: translate3d(0, -18px, 0);
    opacity: 0;
  }
}

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

@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    justify-content: flex-start;
  }

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

@media (max-width: 760px) {
  .site-nav {
    gap: 0.7rem;
  }

  .site-nav a {
    font-size: 0.83rem;
  }

  .section {
    padding: 5.2rem 0;
  }

  .hero-hex {
    width: min(78vw, 350px);
  }

  .about-visual {
    justify-content: center;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .nav-wrap {
    height: 64px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .site-nav {
    display: none;
  }

  .about-actions,
  .contact-links {
    width: 100%;
  }

  .contact-link,
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .page-shell,
  .reveal,
  .reveal[data-anim="left"],
  .reveal[data-anim="scale"] {
    transform: none;
    opacity: 1;
  }
}
