@media (prefers-reduced-motion: no-preference) {
  .hero-stage {
    animation: stage-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 3.15s both;
  }
  .portrait-wrap {
    animation:
      portrait-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 3.35s both,
      portrait-float 5s ease-in-out 4.4s infinite;
  }
  .intro-column > * {
    animation: text-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .intro-column .overline {
    animation-delay: 3.35s;
  }
  .intro-column h1 {
    animation-delay: 3.48s;
  }
  .intro-column .headline-row {
    animation-delay: 3.61s;
  }
  .intro-column .hero-actions {
    animation-delay: 3.74s;
  }
  .round-arrow {
    animation: arrow-float 2.4s ease-in-out infinite;
  }
  .reveal {
    opacity: 0;
    transform: translateY(55px);
    transition:
      opacity 0.8s ease,
      transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .project-item.reveal:nth-child(2) {
    transition-delay: 0.12s;
  }
  .project-item.reveal:nth-child(3) {
    transition-delay: 0.24s;
  }
  .skill {
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }
  .skill:nth-child(odd) {
    transform: rotate(-1.5deg);
  }
  .skill:nth-child(even) {
    transform: rotate(1.5deg);
  }
  .skill:hover {
    transform: translateY(-7px) rotate(0);
  }
  .soft-button,
  .project-item > a,
  .contact a {
    position: relative;
    overflow: hidden;
  }
  .soft-button::after,
  .contact a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.28);
    transform: translateX(-105%) skewX(-18deg);
    transition: transform 0.45s ease;
  }
  .soft-button:hover::after,
  .contact a:hover::after {
    transform: translateX(105%) skewX(-18deg);
  }
}

.marquee {
  height: 14px;
  margin-top: 38px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #f2e7a8;
  transform: none;
}

.marquee .marquee-line {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: linear-gradient(
    90deg,
    #f2e7a8 0%,
    #fff3b7 45%,
    #e4d27a 50%,
    #fff3b7 55%,
    #f2e7a8 100%
  );
  background-size: 220% 100%;
  animation: yellow-bar 3.2s linear infinite;
}

.scribble {
  color: #a29ab8;
  font:
    600 1rem "Space Grotesk",
    sans-serif;
  letter-spacing: 0.2em;
  transform: rotate(90deg);
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 95px;
  width: 105px;
  height: 72px;
  opacity: 0.24;
  background-image: radial-gradient(#202026 1px, transparent 1px);
  background-size: 9px 9px;
}

.profile-tag {
  letter-spacing: 0.08em;
  text-align: left;
}

.skill-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  background-image:
    linear-gradient(rgba(32, 32, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 38, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

.skill-board .skill {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  transform: none;
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  padding: 25px;
  border: 1px solid rgba(32, 32, 38, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.skill-group h3 {
  margin: 0 0 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(32, 32, 38, 0.25);
  font:
    600 1rem "Space Grotesk",
    sans-serif;
  letter-spacing: 0.12em;
}

.front-group h3::before,
.back-group h3::before,
.data-group h3::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  content: "";
}

.front-group h3::before {
  background: #a99cda;
}
.back-group h3::before {
  background: #9ac8b1;
}
.data-group h3::before {
  background: #91b9d5;
}

.tools-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid rgba(32, 32, 38, 0.22);
  border-radius: 16px;
  background: var(--lavender);
}

.tools-row strong {
  font:
    600 0.72rem "Space Grotesk",
    sans-serif;
  letter-spacing: 0.14em;
}

.tools-row span {
  font-weight: 700;
}

.skill-board .skill:hover {
  transform: translateY(-5px);
}

.board-code {
  position: absolute;
  top: 20px;
  right: 24px;
  font:
    600 0.65rem "Space Grotesk",
    sans-serif;
  letter-spacing: 0.17em;
  color: #77727f;
}

.skills-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
}

.skills-heading h2 {
  margin: 0;
  max-width: none;
}

.skills-heading > span {
  flex: 0 0 auto;
  padding-bottom: 12px;
  color: #77727f;
  font:
    600 0.7rem "Space Grotesk",
    sans-serif;
  letter-spacing: 0.15em;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.contact-links a {
  margin-top: 0;
  min-width: 145px;
}

.project-item {
  position: relative;
  overflow: hidden;
}

.project-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    #202026 0 20px,
    transparent 20px 29px
  );
  opacity: 0.6;
}

@media (max-width: 991.98px) {
  .hero-stage::after {
    display: none;
  }
  .skills-heading {
    display: block;
  }
  .skills-heading > span {
    display: block;
    margin-top: 20px;
  }
  .skill-board {
    grid-template-columns: 1fr;
  }
  .skill-group {
    min-height: auto;
  }
  .tools-row {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .skill-board {
    grid-template-columns: 1fr;
  }
  .tools-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

body {
  background-color: #fbfafc;
  background-image: radial-gradient(rgba(91, 73, 135, 0.2) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero {
  background:
    radial-gradient(circle at 5% 35%, #f0ad8d 0 76px, transparent 78px),
    radial-gradient(circle at 96% 75%, #9fd7bc 0 105px, transparent 107px),
    linear-gradient(160deg, transparent 0 75%, rgba(179, 160, 229, 0.32) 75% 84%, transparent 84%);
}

.hero-stage {
  background:
    radial-gradient(circle at 91% 17%, #e8c84e 0 11px, transparent 12px),
    radial-gradient(circle at 88% 22%, #e9906d 0 7px, transparent 8px),
    linear-gradient(135deg, rgba(177, 157, 231, 0.5), transparent 40%),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(80, 61, 119, 0.1) 48px),
    #fff;
}

.about,
.skills {
  position: relative;
  overflow: hidden;
}

.about {
  background:
    radial-gradient(circle at 8% 82%, rgba(238, 170, 136, 0.5) 0 85px, transparent 87px),
    linear-gradient(25deg, transparent 0 84%, rgba(158, 210, 184, 0.45) 84% 91%, transparent 91%),
    #f8f5fb;
}

.about::before {
  position: absolute;
  top: 95px;
  right: -75px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(32, 32, 38, 0.45);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px var(--lavender),
    0 0 0 27px rgba(32, 32, 38, 0.3);
  content: "";
  opacity: 1;
}

.about::after {
  position: absolute;
  bottom: 70px;
  left: 4%;
  color: #8069bd;
  content: "✦";
  font-size: 5rem;
  transform: rotate(12deg);
  opacity: 0.9;
}

.about > .container,
.skills > .container {
  position: relative;
  z-index: 1;
}

.skills {
  background:
    radial-gradient(circle at 92% 18%, rgba(234, 184, 90, 0.55) 0 48px, transparent 50px),
    linear-gradient(115deg, transparent 0 76%, rgba(235, 156, 120, 0.55) 76% 88%, transparent 88%),
    #fff;
}

.skills::before {
  position: absolute;
  top: 120px;
  left: -55px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(32, 32, 38, 0.35);
  border-radius: 35% 65% 55% 45%;
  background: #8fd0b0;
  content: "";
  transform: rotate(28deg);
  opacity: 1;
}

.skills::after {
  position: absolute;
  right: 3%;
  bottom: 55px;
  color: #8c73c7;
  content: "{ }";
  font: 700 6rem "Space Grotesk", sans-serif;
  letter-spacing: -0.18em;
  transform: rotate(-8deg);
  opacity: 0.72;
}

.projects {
  background:
    radial-gradient(circle at 88% 10%, rgba(233, 145, 177, 0.45) 0 78px, transparent 80px),
    radial-gradient(circle at 8% 92%, rgba(117, 190, 156, 0.5) 0 95px, transparent 97px),
    repeating-linear-gradient(135deg, transparent 0 55px, rgba(116, 91, 174, 0.09) 56px 57px),
    #f4f0f8;
}

.contact {
  background:
    radial-gradient(circle at 12% 25%, rgba(232, 193, 76, 0.22) 0 90px, transparent 92px),
    radial-gradient(circle at 90% 78%, rgba(218, 128, 163, 0.25) 0 125px, transparent 127px),
    linear-gradient(120deg, transparent 0 46%, rgba(255, 255, 255, 0.055) 46% 47%, transparent 47% 100%),
    var(--ink);
}

.contact-star {
  text-shadow:
    38px 20px 0 #db8eaa,
    -42px 35px 0 #78bc9c;
}

@media (max-width: 767.98px) {
  .hero {
    background:
      radial-gradient(circle at 0 28%, #f0ad8d 0 45px, transparent 47px),
      radial-gradient(circle at 100% 82%, #9fd7bc 0 58px, transparent 60px);
  }

  .about::before {
    width: 120px;
    height: 120px;
    right: -65px;
  }

  .about::after,
  .skills::after {
    font-size: 3rem;
  }
}

@keyframes yellow-bar {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.skill-board {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  padding-top: 72px;
}

.skill-group {
  min-height: 190px;
  padding: 24px;
  gap: 18px;
}

.languages-group,
.frontend-group,
.backend-group {
  grid-column: span 2;
}

.database-group,
.tools-group {
  grid-column: span 3;
}

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

.skill-board .skill {
  display: inline-flex;
  width: auto;
  min-height: 46px;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 16px;
  text-transform: none;
  box-shadow: 2px 3px 0 rgba(32, 32, 38, 0.13);
}

.skill i {
  font-size: 1.35rem;
}

.skill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.python-skill {
  background: #f5f7fb;
}

.languages-group h3::before,
.frontend-group h3::before,
.backend-group h3::before,
.database-group h3::before,
.tools-group h3::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  content: "";
}

.languages-group h3::before {
  background: #a99cda;
}

.frontend-group h3::before {
  background: #e7ad91;
}

.backend-group h3::before {
  background: #9ac8b1;
}

.database-group h3::before {
  background: #91b9d5;
}

.tools-group h3::before {
  background: #d1b8cc;
}

.stack-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid rgba(32, 32, 38, 0.22);
  border-radius: 16px;
  background: var(--lavender);
}

.stack-note strong {
  font: 600 0.72rem "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
}

.stack-note span {
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .skill-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .languages-group,
  .frontend-group,
  .database-group,
  .tools-group {
    grid-column: span 1;
  }

  .backend-group,
  .stack-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .skill-board {
    grid-template-columns: 1fr;
    padding: 62px 18px 18px;
  }

  .languages-group,
  .frontend-group,
  .backend-group,
  .database-group,
  .tools-group,
  .stack-note {
    grid-column: auto;
  }

  .stack-note {
    align-items: flex-start;
    flex-direction: column;
  }
}
@keyframes stage-in {
  from {
    opacity: 0;
    transform: scale(0.975);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes portrait-in {
  from {
    opacity: 0;
    transform: translateX(-55px) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}
@keyframes text-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes portrait-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes arrow-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(5px, 7px);
  }
}

.projects {
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  top: 180px;
  left: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid #aaa2b9;
  border-radius: 50%;
  box-shadow: inset 0 0 0 32px #ece8f5;
  opacity: 0.65;
}

.projects-grid-detail {
  position: absolute;
  color: #77727f;
  font:
    600 0.65rem "Space Grotesk",
    sans-serif;
  letter-spacing: 0.18em;
}

.detail-a {
  top: 80px;
  right: 5%;
}
.detail-b {
  bottom: 55px;
  left: 4%;
  transform: rotate(-90deg);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}

.project-vertical {
  display: flex;
  min-height: 720px;
  flex-direction: column;
  border: 1px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(32, 32, 38, 0.1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.project-vertical:hover {
  transform: translateY(-9px);
  box-shadow: 15px 18px 0 rgba(32, 32, 38, 0.13);
}

.project-copy {
  min-height: 245px;
  padding: 38px 38px 30px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #5f5a67;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-copy h3 {
  margin: 35px 0 14px;
  font:
    600 clamp(2.2rem, 3.5vw, 3.8rem) / 0.95 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.06em;
}

.project-copy p {
  max-width: 520px;
  margin: 0;
  line-height: 1.65;
}

.project-image {
  position: relative;
  display: block;
  height: 310px;
  margin: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 17px;
  overflow: hidden;
  background: #111;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s ease;
}

.project-image > span {
  position: absolute;
  right: 15px;
  bottom: 15px;
  padding: 9px 13px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateY(8px);
  opacity: 0;
  transition: 0.3s ease;
}

.project-image:hover img {
  transform: scale(1.045);
  filter: brightness(0.82);
}
.project-image:hover > span {
  transform: none;
  opacity: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding: 30px 38px 34px;
}

.project-footer strong {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.project-footer .tags {
  justify-content: flex-end;
  margin: 0;
}

@media (max-width: 991.98px) {
  .project-gallery {
    grid-template-columns: 1fr;
  }
  .project-vertical {
    min-height: 680px;
  }
  .projects::before,
  .projects-grid-detail {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .project-copy {
    min-height: auto;
    padding: 30px 24px;
  }
  .project-image {
    height: 230px;
    margin: 0 14px;
  }
  .project-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 25px 24px;
  }
  .project-footer .tags {
    justify-content: flex-start;
  }
}
