@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap");

:root {
  --bg: #141414;
  --panel: #1f1f1f;
  --panel-strong: #242424;
  --border: #2c2c2c;
  --text: #e6e6e6;
  --muted: #b8b8b8;
  --accent: #d59aa3;
  --accent-2: #9cc9c7;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.7;
}

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

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

button {
  font-family: inherit;
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 30px 0 80px;
}

.section {
  padding: 60px 0;
  scroll-margin-top: 120px;
}

.top-bar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 20, 20, 0.98);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand .name {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--accent-2);
}

.brand .role {
  color: #c6dada;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--accent-2);
}

.nav-link:focus-visible {
  outline: 2px solid rgba(156, 201, 199, 0.8);
  outline-offset: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-toggle .btn {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.lang-toggle .btn.is-active {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(156, 201, 199, 0.12);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(213, 154, 163, 0.9);
  background: linear-gradient(
    160deg,
    rgba(213, 154, 163, 0.18),
    rgba(213, 154, 163, 0.08)
  );
  display: grid;
  place-items: center;
  color: var(--accent);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  position: relative;
}

.icon-btn:hover {
  background: rgba(213, 154, 163, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.icon-btn:focus-visible {
  outline: 2px solid rgba(213, 154, 163, 0.7);
  outline-offset: 2px;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0f0f0f;
  color: var(--text);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
}

.icon-btn:hover::after,
.icon-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--accent);
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  font-size: 13px;
}

.btn.primary {
  background: var(--accent);
  color: #1a1a1a;
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}

.btn.tiny {
  padding: 3px 7px;
  font-size: 10px;
  border-radius: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.btn.ghost:hover {
  background: rgba(213, 154, 163, 0.08);
}

.btn:focus-visible {
  outline: 2px solid rgba(213, 154, 163, 0.7);
  outline-offset: 2px;
}

.btn[data-placeholder="true"] {
  opacity: 0.55;
  border-style: dashed;
  cursor: not-allowed;
  box-shadow: none;
}

a[aria-disabled="true"] {
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.hero-main {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(213, 154, 163, 0.9);
  overflow: hidden;
  background: #1b1b1b;
  box-shadow: var(--shadow);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 14px;
}

.hero-lede {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
}

.hero-proof {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.hero-proof li {
  padding-left: 18px;
  position: relative;
}

.hero-proof li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  position: absolute;
  left: 0;
  top: 8px;
}

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

.hero-preview {
  display: flex;
  justify-content: flex-end;
}

.preview-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 340px;
  width: 100%;
}

.preview-label {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(213, 154, 163, 0.15);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 16px 16px 0;
  border-radius: 999px;
  border: 1px solid rgba(213, 154, 163, 0.4);
}

.preview-card img {
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  border-radius: 10px;
  height: 160px;
  object-fit: cover;
}

.preview-body {
  padding: 16px;
}

.preview-body h3 {
  margin: 0 0 8px;
  color: var(--accent);
}

.preview-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.section-title h2 {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--accent-2);
  font-size: 24px;
  margin: 0 0 10px;
}

.section-lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.section-subtitle h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 18px;
}

.section-subtitle p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.project-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-media {
  position: relative;
  background: #2c2c2c;
}

.project-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.media-placeholder {
  height: 190px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.9),
    rgba(20, 20, 20, 0.9)
  );
}

.featured-card .project-media img {
  height: 220px;
}

.featured-card .media-placeholder {
  height: 220px;
}

.project-meta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
}

.meta-pill {
  background: rgba(12, 12, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcdcdc;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.project-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-title {
  font-size: 18px;
  color: var(--accent);
  margin: 0;
}

.project-summary,
.project-role {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.project-highlights {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 6px;
}

.project-subnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.8;
}

.project-contribution {
  display: grid;
  gap: 6px;
}

.project-contribution h4 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

.project-contribution ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

.project-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.skills-group {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.skills-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.skills-header h3 {
  margin: 0;
  color: var(--accent);
  font-size: 16px;
}

.skills-level {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(213, 154, 163, 0.7);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(213, 154, 163, 0.1);
}

.about-panel {
  background: var(--panel);
  color: var(--text);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-content {
  max-width: 720px;
}

.about-panel h2 {
  margin-top: 0;
  color: var(--accent-2);
  font-family: "Sora", "Segoe UI", sans-serif;
}

.about-panel p {
  margin: 0 0 12px;
  color: var(--muted);
}

.about-list {
  padding-left: 18px;
  margin: 12px 0 18px;
  color: var(--text);
  line-height: 1.7;
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  justify-content: center;
}

.resume-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.resume-thumb img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-inline {
  background: #101010;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.resume-inline iframe {
  width: 100%;
  height: 420px;
  border: none;
}

.resume-summary {
  background: var(--panel-strong);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.resume-summary h3 {
  margin: 0;
  color: var(--accent-2);
}

.summary-block {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.summary-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.summary-block h4 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.summary-block p {
  margin: 0;
  color: var(--muted);
}

.summary-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.resume-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.8;
}

.resume-summary .btn {
  justify-self: start;
}

.resume-open {
  padding: 6px 12px;
  font-size: 12px;
  border-color: rgba(156, 201, 199, 0.4);
  color: var(--accent-2);
  background: rgba(156, 201, 199, 0.12);
}

.resume-open:hover {
  background: rgba(156, 201, 199, 0.2);
  border-color: rgba(156, 201, 199, 0.6);
}

.highlights-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.highlights-list li {
  padding-left: 16px;
  position: relative;
  color: var(--muted);
  line-height: 1.5;
}

.highlights-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  position: absolute;
  left: 0;
  top: 7px;
}

.resume-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-panel {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.contact-copy h3 {
  margin: 0 0 10px;
  color: var(--accent-2);
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.contact-items {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(30, 30, 30, 0.6);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.contact-item:hover {
  border-color: rgba(213, 154, 163, 0.6);
  background: rgba(213, 154, 163, 0.08);
  transform: translateY(-1px);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(213, 154, 163, 0.6);
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(213, 154, 163, 0.12);
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-content {
  display: grid;
  gap: 2px;
}

.contact-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(213, 154, 163, 0.5);
  background: rgba(213, 154, 163, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  width: fit-content;
}

.contact-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.copy-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.copy-btn:hover {
  border-color: rgba(213, 154, 163, 0.6);
  color: var(--accent);
}

.copy-btn.copied {
  color: var(--accent-2);
  border-color: rgba(156, 201, 199, 0.6);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 30px;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.9);
  color: var(--text);
  padding: 10px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 20;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 30;
}

.modal-overlay.is-open {
  display: grid;
}

.modal-dialog {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  width: min(720px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain; /* stops scroll from chaining to the page */
  -webkit-overflow-scrolling: touch; /* nicer iOS scrolling */
  display: grid;
  gap: 16px;
}

.modal-close {
  justify-self: end;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--accent);
  border-color: rgba(213, 154, 163, 0.6);
}

.modal-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-media {
  background: #0f0f0f;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.modal-media iframe,
.modal-media video {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-overview {
  margin: 0;
  color: var(--muted);
}

.modal-section h4 {
  margin: 0 0 6px;
  color: var(--accent-2);
}

.modal-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.modal-gallery figure {
  margin: 0;
  background: rgba(30, 30, 30, 0.6);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.modal-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: zoom-in;
}

.modal-gallery figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 40;
}

.lightbox-overlay.is-open {
  display: grid;
}

.lightbox-inner {
  width: min(1100px, 95vw);
  max-height: 90vh;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.lightbox-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg);
}

.lightbox-caption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.lightbox-close {
  justify-self: end;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--accent);
  border-color: rgba(213, 154, 163, 0.6);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    justify-content: flex-start;
  }

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

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

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

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

  * {
    transition: none;
  }

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