:root {
  --bg: #141416;
  --bg-soft: #1b1c20;
  --surface: rgba(25, 27, 32, 0.82);
  --surface-2: rgba(33, 35, 41, 0.92);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f1ece3;
  --muted: #c9bba7;
  --accent: #d9a63a;
  --accent-2: #b23d33;
  --accent-3: #7da998;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(960px 540px at -10% 0%, rgba(178, 61, 51, 0.2), transparent 62%),
    radial-gradient(980px 640px at 100% 10%, rgba(125, 169, 152, 0.2), transparent 64%),
    linear-gradient(180deg, #171719 0%, var(--bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.028) 0 3px,
      rgba(255, 255, 255, 0) 3px 56px
    );
  mask-image: radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.9), transparent 92%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.52;
  background:
    radial-gradient(620px 620px at 16% 26%, rgba(178, 61, 51, 0.15), transparent 72%),
    radial-gradient(680px 680px at 82% 46%, rgba(125, 169, 152, 0.13), transparent 74%);
  animation: ambient-drift 30s ease-in-out infinite;
}

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

.bg-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.36;
  background:
    repeating-radial-gradient(circle at 64% 30%, rgba(217, 166, 58, 0.14) 0 2px, rgba(217, 166, 58, 0) 2px 46px);
  animation: page-rings-drift 40s linear infinite;
}

main > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #73dcd5;
}

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

.section {
  padding: 88px 0;
  scroll-margin-top: 110px;
}

.surface {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 20, 16, 0.32), rgba(23, 30, 30, 0.14));
}

.h2 {
  margin: 0 0 20px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.28rem);
  letter-spacing: -0.02em;
}

.h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}

.text {
  line-height: 1.72;
  font-size: 1.03rem;
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 100;
}

.nav-inner {
  width: fit-content;
  max-width: 92vw;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(18, 20, 25, 0.86);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}

.brand {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.98rem;
  color: #f6efe4;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(140deg, rgba(178, 61, 51, 0.26), rgba(125, 169, 152, 0.2));
}

.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a {
  color: #dfe8f2;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.links a:hover,
.links a.active {
  background: rgba(125, 169, 152, 0.2);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 56px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-orbit {
  display: none;
}

.hero-orbit-1 {
  width: min(34vw, 400px);
  height: min(34vw, 400px);
  left: 56%;
  top: 18%;
  animation: orbit-spin 20s linear infinite;
}

.hero-orbit-2 {
  width: min(28vw, 330px);
  height: min(28vw, 330px);
  left: 63%;
  top: 26%;
  border-color: rgba(134, 176, 160, 0.2);
  animation: orbit-spin-reverse 14s linear infinite;
}

.hero-orbit-3 {
  width: min(22vw, 260px);
  height: min(22vw, 260px);
  left: 69%;
  top: 31%;
  border-color: rgba(196, 74, 59, 0.2);
  animation: orbit-spin 11s linear infinite;
}

.hero-rings {
  display: none;
}

.particle {
  position: absolute;
  border-radius: 999px;
  opacity: 0.65;
  filter: blur(0.2px);
  animation: float-up linear infinite;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 179, 93, 0.3);
  background: rgba(242, 179, 93, 0.09);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffd9a7;
}

.title {
  margin: 0 0 8px;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.subtitle {
  margin: 0 0 12px;
  font-size: 1.14rem;
  font-weight: 600;
  color: #dfe9f8;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 63ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, rgba(178, 61, 51, 0.44), rgba(217, 166, 58, 0.36), rgba(125, 169, 152, 0.34));
  color: #f7fbff;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(178, 61, 51, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(217, 166, 58, 0.26);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.language-intro {
  margin-bottom: 14px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.language-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 104px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.language-card:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 205, 196, 0.45);
}

.language-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.language-card span {
  font-size: 0.86rem;
  color: #dfe9f4;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.experience-timeline {
  margin-top: 8px;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 18px;
}

.exp-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(43, 31, 24, 0.84), rgba(26, 34, 35, 0.86));
  box-shadow: var(--shadow);
}

.exp-card::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.22);
}

.exp-card:nth-child(2)::before {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(242, 179, 93, 0.2);
}

.exp-card:nth-child(3)::before {
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(126, 141, 255, 0.2);
}

.exp-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.exp-head h3 {
  margin: 0 0 4px;
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
}

.exp-company {
  margin: 0;
  color: #cfe7e3;
  font-weight: 600;
}

.exp-meta {
  margin: 2px 0 0;
  color: #c3cedb;
  font-size: 0.93rem;
  white-space: nowrap;
}

.exp-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #dce6f2;
  line-height: 1.62;
}

.exp-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #dde8f4;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.card {
  position: relative;
  text-align: left;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(148deg, rgba(40, 28, 24, 0.88), rgba(23, 30, 34, 0.9));
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  right: -90px;
  bottom: -98px;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.32), transparent 65%);
}

.card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 1.06rem;
  font-family: "Sora", sans-serif;
}

.card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(78, 205, 196, 0.46);
  box-shadow: 0 12px 34px rgba(78, 205, 196, 0.14);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 14px;
  margin-top: 6px;
}

.contact-form,
.contact-side {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(39, 28, 23, 0.8), rgba(24, 31, 33, 0.82));
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.contact-form span {
  font-size: 0.85rem;
  color: #cdd9e8;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 14, 22, 0.8);
  color: #e7eff8;
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(78, 205, 196, 0.6);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.16);
}

.contact-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-side a {
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 12, 18, 0.82);
  z-index: 999;
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal-box {
  width: min(920px, 94vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(42, 30, 24, 0.95), rgba(21, 30, 32, 0.95));
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
  position: relative;
}

.x {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  float: right;
}

.frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  margin: 14px 0;
}

.project-image,
.embed {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  display: block;
}

.section-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes rings-breathe {
  0%, 100% { transform: scale(0.98); opacity: 0.26; }
  50% { transform: scale(1.03); opacity: 0.38; }
}

@keyframes float-up {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  18% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.42;
  }
  100% {
    transform: translate3d(var(--drift, 0px), -120px, 0);
    opacity: 0;
  }
}

@keyframes ambient-drift {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 0.72; }
}

@keyframes ring-sweep {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%, center, center;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    background-position: -6% 2%, 4% -3%, -5% 4%, center, center;
    transform: translate3d(0, -1.5%, 0) scale(1.02);
  }
  100% {
    background-position: -12% 4%, 8% -6%, -10% 8%, center, center;
    transform: translate3d(0, 0, 0) scale(1);
  }
}


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

  .hero-rings {
    left: 56%;
    top: 18%;
    width: min(56vw, 420px);
  }

  .hero-orbit-1 {
    left: 60%;
    top: 24%;
  }

  .hero-orbit-2 {
    left: 66%;
    top: 30%;
  }

  .hero-orbit-3 {
    left: 70%;
    top: 36%;
  }

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

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

  .exp-head {
    flex-direction: column;
  }

  .exp-meta {
    white-space: normal;
  }
}

@media (max-width: 780px) {
  .nav {
    inset: 8px 0 auto;
  }

  .nav-inner {
    width: min(1120px, 92vw);
    border-radius: 12px;
    padding: 8px 10px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .brand {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .links {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .links::-webkit-scrollbar {
    display: none;
  }

  .links a {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 7px 9px;
  }

  .hero {
    padding-top: 118px;
  }

  .section {
    scroll-margin-top: 86px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 70px 0;
  }

  .nav-inner {
    padding: 7px 8px;
  }

  .links a {
    font-size: 0.8rem;
    padding: 6px 8px;
  }

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

  .experience-timeline {
    padding-left: 12px;
  }

  .exp-card::before {
    left: -20px;
  }

  .hero-rings {
    opacity: 0.14;
  }

  .hero-orbit {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit,
  .hero-rings,
  .particle,
  body::after {
    animation: none !important;
  }
}


.form-note {
  min-height: 20px;
  margin: 2px 0 0;
  color: #b9d6d3;
  font-size: 0.9rem;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: wait;
}


.recommendation-note {
  margin-top: 20px;
  width: min(760px, 100%);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(40, 29, 24, 0.72), rgba(22, 31, 33, 0.72));
}

.rec-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #dff0ff;
}

.rec-item {
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(25, 21, 19, 0.5);
}

@keyframes page-rings-drift {
  0% {
    background-position: 0% 0%, 0% 0%, 0% 0%;
    transform: translate3d(0, 0, 0);
  }
  50% {
    background-position: -8% 4%, 6% -3%, -6% 5%;
    transform: translate3d(0, -1.2%, 0);
  }
  100% {
    background-position: -16% 8%, 12% -6%, -12% 10%;
    transform: translate3d(0, 0, 0);
  }
}

.rec-item + .rec-item {
  margin-top: 10px;
}

.rec-quote {
  margin: 0;
  color: #d7e2ee;
  line-height: 1.6;
}

.rec-source {
  margin: 8px 0 0;
  color: #9fb7cc;
  font-weight: 600;
  font-size: 0.92rem;
}

