@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Fraunces:wght@500;600;700&display=swap");

:root {
  --bg: #0f1013;
  --bg-2: #14161b;
  --ink: #f4f2ed;
  --ink-muted: #bfb9ad;
  --accent: #f3c06b;
  --accent-2: #79d8ff;
  --panel: rgba(255, 255, 255, 0.05);
  --border: rgba(244, 242, 237, 0.15);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -20%, rgba(121, 216, 255, 0.25), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(243, 192, 107, 0.2), transparent 55%),
    linear-gradient(160deg, #0d0e12, #13151b 45%, #0c0d10);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: 0.2px;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.flag {
  width: 26px;
  height: 18px;
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(244, 242, 237, 0.25);
}

.flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.nav-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  gap: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
  animation: none !important;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  padding: 36px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 700ms ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
  color: var(--ink-muted);
}

.name {
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 0;
  line-height: 1.1;
}

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

.lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 200ms ease, box-shadow 200ms ease, border 200ms ease;
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent), #f39b6b);
  color: #1a1a1a;
  box-shadow: 0 14px 30px rgba(243, 192, 107, 0.35);
}

.btn-secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--ink);
}

.contact {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.55);
  box-shadow: var(--shadow);
  animation: fadeUp 700ms ease-out both;
}

.contact-header h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

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

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

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.7);
}

.modal-dialog {
  position: relative;
  width: min(520px, 92vw);
  border-radius: 20px;
  background: #0f1118;
  border: 1px solid var(--border);
  padding: 20px;
  z-index: 1;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.modal-field input,
.modal-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(244, 242, 237, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  color: var(--ink);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.modal-field input:focus,
.modal-field textarea:focus {
  outline: 2px solid rgba(243, 192, 107, 0.4);
  border-color: rgba(243, 192, 107, 0.6);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

body.modal-open {
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(244, 242, 237, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  justify-self: end;
}

.hero-content {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--panel);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 700ms ease-out both;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(121, 216, 255, 0.35);
  background: rgba(121, 216, 255, 0.08);
  font-size: 0.9rem;
  color: var(--ink);
}

.statement {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(121, 216, 255, 0.08), rgba(243, 192, 107, 0.08));
  border: 1px solid var(--border);
}

.profile-details {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.55);
  box-shadow: var(--shadow);
  animation: fadeUp 700ms ease-out both;
}

.socials {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.55);
  box-shadow: var(--shadow);
  animation: fadeUp 700ms ease-out both;
}

.socials h2 {
  margin: 0;
  font-size: 1.3rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 242, 237, 0.15);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--ink);
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.social-link span {
  color: var(--ink-muted);
  font-weight: 500;
  margin-left: 8px;
  font-size: 0.9rem;
}

.profile-details h2 {
  margin: 0;
  font-size: 1.3rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.detail-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(244, 242, 237, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.detail-value {
  margin-top: 6px;
  font-size: 1rem;
}

.skills-panel {
  background: linear-gradient(140deg, rgba(15, 16, 19, 0.9), rgba(20, 22, 27, 0.9));
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 18px;
  animation: fadeUp 700ms ease-out both;
}

.skills-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.skills-header h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.skills-header span {
  color: var(--accent-2);
  font-size: 0.9rem;
}

.skill-list {
  display: grid;
  gap: 12px;
}

.skill-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(244, 242, 237, 0.08);
  display: grid;
  gap: 8px;
}

.skill-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

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

.skill-stars {
  display: flex;
  gap: 4px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.star {
  color: #4a4f5c;
}

.star.is-filled {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(243, 192, 107, 0.35);
}

.systems {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: fadeUp 700ms ease-out both;
}

.systems h2 {
  margin: 0;
  font-size: 1.4rem;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.system-card {
  border-radius: 18px;
  border: 1px solid rgba(244, 242, 237, 0.1);
  background: rgba(8, 9, 12, 0.6);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.system-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.system-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.system-preview {
  display: grid;
  gap: 12px;
}

.system-fallback {
  width: 100%;
  min-height: 220px;
  border: 1px dashed rgba(244, 242, 237, 0.18);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(121, 216, 255, 0.1), rgba(243, 192, 107, 0.08));
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px;
}

.system-mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111319;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.system-fallback p {
  margin: 0;
  color: var(--ink-muted);
  text-align: center;
  font-size: 0.9rem;
}

.system-link {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
}

footer {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  padding-top: 12px;
}

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

@media (max-width: 700px) {
  .site-header {
    padding: 18px 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero {
    padding: 28px;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .avatar {
    width: 140px;
    height: 140px;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
