:root {
  --font-mono: "Consolas", "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", monospace;
  --font-display: "Consolas", "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", monospace;

  --weight-normal: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --leading-tight: 1.25;
  --leading-normal: 1.55;
  --leading-relaxed: 1.8;

  --space-0: 0;
  --space-1: 1rem;
  --space-2: 1rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 4rem;

  --size-icon: 1.25rem;
  --size-profile: 200px;

  --max-w-nav: 28rem;
  --max-w-content: 28rem;
  --max-w-container: 64rem;

  --radius-md: 0.375rem;

  --color-bg: #141224;
  --color-text: #cfb9ee;
  --color-muted: #b4a9d6;
  --color-accent: #e9bb22;
  --color-code-bg: #1f1a33;

  --title-size: var(--text-xl);
  --subtitle-size: var(--text-lg);
  --body-size: var(--text-base);
  --small-size: var(--text-sm);
}

@media (min-width: 768px) {
  :root {
    --title-size: var(--text-2xl);
    --subtitle-size: var(--text-xl);
    --body-size: var(--text-lg);
    --size-icon: 1.5rem;
    --max-w-content: 36rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --title-size: var(--text-3xl);
    --subtitle-size: var(--text-2xl);
    --body-size: var(--text-xl);
    --max-w-content: 42rem;
  }
}

@media (min-width: 1536px) {
  :root {
    --max-w-content: 48rem;
  }
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-orbit {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-60px, 45px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(35px, -30px, 0) scale(0.96);
  }
}

@keyframes background-flow {
  0% {
    background-position: 45% 40%;
  }
  33% {
    background-position: 55% 35%;
  }
  50% {
    background-position: 60% 55%;
  }
  75% {
    background-position: 40% 60%;
  }
  100% {
    background-position: 45% 40%;
  }
}

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

html {
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-inline: 0;
  max-width: none;
  margin-inline: 0;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(1600px 1200px at 20% 15%, rgba(141, 119, 255, 0.28), transparent 70%),
    radial-gradient(1400px 1100px at 80% 20%, rgba(120, 96, 235, 0.22), transparent 72%),
    radial-gradient(1500px 1200px at 60% 70%, rgba(96, 78, 190, 0.22), transparent 72%),
    radial-gradient(1600px 1200px at 30% 85%, rgba(160, 135, 255, 0.2), transparent 72%),
    linear-gradient(135deg, rgba(20, 18, 36, 0.98), rgba(26, 20, 52, 0.9));
  background-size: 260% 260%;
  background-position: 50% 50%;
  animation: background-flow 40s ease-in-out infinite;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
a,
li,
.skills-level,
.skill-name,
.footer-text {
  text-shadow: 0 0 10px rgba(141, 119, 255, 0.25);
}


a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

ul {
  list-style: none;
}

figure {
  margin: 0;
}

::selection {
  background-color: var(--color-accent);
  color: #f2fff8;
}

.main {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  animation: fade-in 0.5s ease-out;
  height: 100vh;
  overflow: hidden;
}

.view-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.main {
  overflow: hidden;
  width: 100vw;
}

.slider {
  display: flex;
  width: 300vw;
  transform: translateX(0);
  transition: transform 0.55s ease;
}

.panel {
  width: 100vw;
  flex: 0 0 100vw;
  padding: calc(var(--space-6) + var(--space-2)) var(--space-4);
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.35s ease;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}


.header {
  padding-block: var(--space-4);
  padding-inline: var(--space-4);
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  max-width: none;
  margin-inline: auto;
  font-size: var(--body-size);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-1);
  transition: color 0.35s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-list a:hover::after {
  width: 100%;
  left: 0;
}

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

.nav-list a.is-active {
  color: var(--color-accent);
}

.nav-list a.is-active::after {
  width: 100%;
  left: 0;
}


.panel-home {
  opacity: 1;
}

.panel-skills {
  opacity: 0;
}

.panel-contact {
  opacity: 0;
}

.panel-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-stack {
  width: min(980px, 100%);
  display: grid;
  gap: calc(var(--space-6) + var(--space-2));
}

.panel-skills {
  display: flex;
  align-items: flex-start;
}

.panel-contact {
  display: flex;
  align-items: center;
  justify-content: center;
}

#skills:target ~ .main .slider {
  transform: translateX(-100vw);
}

#contact:target ~ .main .slider {
  transform: translateX(-200vw);
}
#skills:target ~ .main .panel-home {
  opacity: 0;
}

#skills:target ~ .main .panel-skills {
  opacity: 1;
  transition-delay: 0.1s;
}

#skills:target ~ .main .panel-contact {
  opacity: 0;
}


#contact:target ~ .main .panel-home {
  opacity: 0;
}

#contact:target ~ .main .panel-skills {
  opacity: 0;
}

#contact:target ~ .main .panel-contact {
  opacity: 1;
  transition-delay: 0.1s;
}




.footer {
  padding-block: var(--space-4);
  padding-inline: var(--space-4);
}

.footer-text {
  text-align: center;
  font-size: var(--small-size);
  color: var(--color-muted);
}

.footer-link {
  text-decoration: underline;
}

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

.title {
  font-weight: var(--weight-bold);
  font-size: var(--title-size);
  line-height: var(--leading-tight);
}

.subtitle {
  font-weight: var(--weight-semibold);
  font-size: var(--subtitle-size);
  line-height: var(--leading-relaxed);
  color: #e9bb22;
}

.home-section {
  display: block;
}

@media (min-width: 640px) {
  .home-section {
    display: flex;
    gap: var(--space-6);
    align-items: center;
  }
}

.profile-figure {
  display: flex;
}

.profile-image {
  border-radius: var(--radius-md);
  width: var(--size-profile);
  height: var(--size-profile);
  margin-top: -16px;
  background: linear-gradient(135deg, rgba(107, 78, 255, 0.2), rgba(107, 78, 255, 0.6));
  display: grid;
  place-items: center;
  color: var(--color-text);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  animation: fade-in 0.5s ease-out;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

@media (min-width: 640px) {
  :root {
    --size-profile: 220px;
  }
}

@media (min-width: 768px) {
  :root {
    --size-profile: 220px;
  }
}

@media (min-width: 1024px) {
  :root {
    --size-profile: 220px;
  }
}

@media (min-width: 1280px) {
  :root {
    --size-profile: 22.5rem;
  }
}



.profile-info {
  margin-top: var(--space-3);
  animation: fade-in-up 0.5s ease-out 0.2s backwards;
}

@media (min-width: 640px) {
  .profile-info {
    flex: 1;
    margin-top: var(--space-2);
  }
}





.description {
  margin-top: var(--space-4);
  text-align: justify;
  line-height: var(--leading-normal);
  font-size: var(--body-size);
  max-width: var(--max-w-content);
}




.contact-page {
  width: min(860px, 100%);
  margin: 0;
  display: grid;
  gap: var(--space-3);
}


.contact-grid {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-0);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.contact-item {
  flex: 0 1 320px;
  max-width: 360px;
  width: 80%;
  transform: scale(1.1);
  transform-origin: left center;
}

.contact-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: var(--space-1);
  display: grid;
  gap: var(--space-1);
  box-shadow: inset 0 0 0 1px rgba(141, 119, 255, 0.2);
}

.contact-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

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

.contact-value {
  font-size: var(--text-base);
}

.skills-page {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: calc(var(--space-6) + var(--space-2));
}

.work-section {
  width: 100%;
  max-width: var(--max-w-container);
  display: grid;
  gap: var(--space-3);
}

.skills-header {
  display: grid;
  gap: var(--space-1);
}

.skills-group {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: calc(var(--radius-md) + 6px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.skills-level {
  font-weight: var(--weight-semibold);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-sm);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.skill-card {
  background: #1c1830;
  border-radius: 999px;
  padding: var(--space-2) var(--space-3);
  display: grid;
  gap: var(--space-1);
  box-shadow: inset 0 0 0 1px rgba(141, 119, 255, 0.2);
}

.skill-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.skill-bar {
  height: 6px;
  background: rgba(141, 119, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  background: var(--color-accent);
  border-radius: 999px;
}

.p55 { width: 55%; }
.p30 { width: 30%; }
.p60 { width: 60%; }
.p65 { width: 65%; }
.p70 { width: 70%; }
.p75 { width: 75%; }
.p80 { width: 80%; }
.p85 { width: 85%; }
.p90 { width: 90%; }

@media (max-width: 720px) {
  .skills-group {
    padding: var(--space-3);
  }

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

  .skill-card {
    border-radius: 14px;
  }
}


@media (min-width: 640px) {
  .contact-item {
    transform: none;
  }
}

@media (max-width: 639px) {
  .panel-home {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .home-stack {
    padding-top: var(--space-4);
  }
  .home-section {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
    text-align: left;
  }

  .profile-figure {
    justify-content: flex-start;
  }

  .profile-image {
    margin-top: 0;
  }

  .profile-info {
    margin-top: var(--space-6);
  }

  .description {
    text-align: left;
  }

  .panel-contact {
    align-items: flex-start;
  }

  .contact-page {
    width: 100%;
    align-content: start;
    gap: var(--space-1);
  }

  .contact-page .title,
  .contact-page .subtitle {
    margin: 0;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    margin-top: var(--space-2);
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
  }

  .contact-label {
    display: none;
  }

  .contact-icon,
  .contact-icon svg {
    width: 28px;
    height: 28px;
  }
}

