:root {
  --black: #000;
  --white: #fff;
  --muted: #b9b4c9;
  --purple: #9b4dff;
  --purple-soft: #c084ff;
  --purple-dark: #2a0a55;
  --line: rgba(155, 77, 255, 0.24);
  --glow: rgba(155, 77, 255, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

/* BACKGROUND */

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(155, 77, 255, 0.13), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(155, 77, 255, 0.08), transparent 30%),
    radial-gradient(circle at 48% 85%, rgba(155, 77, 255, 0.075), transparent 28%),
    linear-gradient(180deg, #000 0%, #030107 50%, #000 100%);
}

.grid-noise {
  position: absolute;
  inset: 0;
  opacity: 0.065;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

.stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}

.stars-one {
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.95) 1px, transparent 1.6px);
  background-size: 190px 190px;
  animation: starMoveOne 48s linear infinite;
}

.stars-two {
  opacity: 0.34;
  background-image: radial-gradient(circle, rgba(192, 132, 255, 0.95) 1px, transparent 1.7px);
  background-size: 270px 270px;
  animation: starMoveTwo 64s linear infinite;
}

.stars-three {
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(155, 77, 255, 1) 1.4px, transparent 2px);
  background-size: 340px 340px;
  animation: starPulse 8s ease-in-out infinite;
}

.purple-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
}

.blur-one {
  width: 400px;
  height: 400px;
  left: -130px;
  top: 18%;
  background: rgba(155, 77, 255, 0.16);
}

.blur-two {
  width: 540px;
  height: 540px;
  right: -190px;
  bottom: 8%;
  background: rgba(155, 77, 255, 0.12);
}

@keyframes starMoveOne {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-180px);
  }
}

@keyframes starMoveTwo {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-120px, 160px);
  }
}

@keyframes starPulse {
  50% {
    opacity: 0.44;
  }
}

main {
  position: relative;
  z-index: 2;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 90px 0;
  position: relative;
}

.hero-layout,
.two-column,
.footer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 76px;
}

.reverse {
  grid-template-columns: 1.04fr 0.96fr;
}

.label {
  display: inline-block;
  color: var(--purple-soft);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow:
    0 0 14px rgba(155, 77, 255, 0.75),
    0 0 32px rgba(155, 77, 255, 0.32);
}

h1,
h2 {
  color: #fff;
  letter-spacing: -3px;
}

h1 {
  font-size: clamp(58px, 7.8vw, 108px);
  line-height: 0.9;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(46px, 5.6vw, 78px);
  line-height: 0.92;
  margin-bottom: 30px;
}

h1 span,
h2 span {
  color: var(--purple-soft);
  text-shadow: 0 0 38px rgba(155, 77, 255, 0.45);
}

h3 {
  font-size: 28px;
  color: var(--purple-soft);
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
  max-width: 650px;
}

.logo-main {
  width: 108px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 28px rgba(155, 77, 255, 0.45));
}

.hero-character,
.character-area {
  position: relative;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rick-hero {
  width: min(370px, 80%);
  max-height: 590px;
  object-fit: contain;
  transform: translateY(6px);
  filter: drop-shadow(0 0 35px rgba(155, 77, 255, 0.24));
  position: relative;
  z-index: 2;
}

.soft-portal {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(155, 77, 255, 0.25), transparent 62%),
    conic-gradient(from 90deg, transparent, rgba(155, 77, 255, 0.45), transparent, rgba(255, 255, 255, 0.14), transparent);
  filter: blur(8px);
  animation: portalSpin 11s linear infinite;
}

@keyframes portalSpin {
  to {
    transform: rotate(360deg);
  }
}


.character-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 77, 255, 0.27), transparent 68%);
  filter: blur(24px);
  animation: glowFloat 7s ease-in-out infinite;
}

.small-glow {
  width: 305px;
  height: 305px;
}

.morty-img {
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: drop-shadow(0 0 45px rgba(155, 77, 255, 0.23));
}

.morty-one {
  width: min(470px, 91%);
  max-height: 650px;
}

.morty-two {
  width: min(450px, 89%);
  max-height: 640px;
}

@keyframes glowFloat {
  50% {
    transform: translateY(-20px) scale(1.06);
  }
}


.open-text {
  position: relative;
  z-index: 3;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px 28px;
  margin-top: 32px;
}

.skills-list div {
  font-size: 20px;
  color: #f4f2fb;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(155, 77, 255, 0.24);
  transition: 0.25s ease;
}

.skills-list div:hover {
  color: var(--purple-soft);
  transform: translateX(8px);
  border-color: var(--purple-soft);
}


.projects-list {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.projects-list article {
  border-bottom: 1px solid rgba(155, 77, 255, 0.18);
  padding-bottom: 24px;
}

.projects-list article p {
  max-width: 560px;
}

.projects-list article:hover h3 {
  color: #fff;
  text-shadow: 0 0 22px rgba(155, 77, 255, 0.75);
}

.ready-section {
  position: relative;
  min-height: 1250vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 45%, rgba(155, 77, 255, 0.28), transparent 34%),
    radial-gradient(circle at 18% 70%, rgba(155, 77, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 25%, rgba(192, 132, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #020005 0%, #130721 45%, #08020f 75%, #000 100%);
}

.ready-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(192, 132, 255, 0.75) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(155, 77, 255, 0.9) 1.4px, transparent 2px);
  background-size: 180px 180px, 260px 260px, 340px 340px;
  background-position: 0 0, 80px 120px, 140px 40px;
  opacity: 0.45;
  animation: readyStarsMove 70s linear infinite;
}

.ready-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 10%, rgba(155, 77, 255, 0.14) 45%, transparent 58%),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.38) 74%);
  opacity: 0.85;
}

@keyframes readyStarsMove {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-120px, -220px, 0);
  }
}

.ready-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(155, 77, 255, 0.22), transparent 32%),
    radial-gradient(circle at 24% 76%, rgba(155, 77, 255, 0.1), transparent 24%),
    radial-gradient(circle at 76% 24%, rgba(192, 132, 255, 0.1), transparent 24%);
}

.ready-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  z-index: 30;
  pointer-events: none;
}

.ready-section.ready-fixed .ready-sticky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
}

.ready-section.ready-end .ready-sticky {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
}

.ready-content {
  position: relative;
  width: min(1500px, calc(100% - 40px));
  text-align: center;
  transform: translateZ(0);
  z-index: 35;
}

#readyMini {
  margin: 0 auto clamp(14px, 1.5vw, 26px);
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(11px, 0.75vw, 15px);
  letter-spacing: clamp(3px, 0.45vw, 7px);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(155, 77, 255, 0.35);
  will-change: opacity, transform;
}

#readyText {
  color: #9b4dff;
  font-size: clamp(58px, 10.4vw, 210px);
  line-height: 0.84;
  letter-spacing: clamp(-7px, -0.28vw, -2px);
  text-transform: uppercase;
  text-align: center;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  text-shadow:
    0 0 16px rgba(155, 77, 255, 0.95),
    0 0 55px rgba(155, 77, 255, 0.55),
    0 0 135px rgba(155, 77, 255, 0.25);
}

#jokingText {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff;
  font-size: clamp(70px, 12.5vw, 230px);
  line-height: 0.82;
  letter-spacing: clamp(-8px, -0.35vw, -3px);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.18) rotate(-10deg);
  z-index: 80;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.95),
    0 0 50px rgba(192, 132, 255, 0.9),
    0 0 130px rgba(155, 77, 255, 0.55);
}

.ready-section.joking-active #readyText,
.ready-section.joking-active #readyMini {
  opacity: 0 !important;
}

.ready-section.joking-active #jokingText {
  visibility: visible;
  opacity: 1;
  animation: finalJokingPop 1.45s cubic-bezier(.18,.89,.32,1.28) forwards;
}

@keyframes finalJokingPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18) rotate(-12deg);
  }

  38% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.16) rotate(3deg);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

.burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  z-index: 70;
}

.burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 110px;
  border-radius: 999px;
  background: linear-gradient(to top, transparent, #c084ff, #fff, transparent);
  transform-origin: center top;
  box-shadow: 0 0 22px rgba(155, 77, 255, 0.75);
}

.burst span:nth-child(1) { transform: rotate(0deg); }
.burst span:nth-child(2) { transform: rotate(45deg); }
.burst span:nth-child(3) { transform: rotate(90deg); }
.burst span:nth-child(4) { transform: rotate(135deg); }
.burst span:nth-child(5) { transform: rotate(180deg); }
.burst span:nth-child(6) { transform: rotate(225deg); }
.burst span:nth-child(7) { transform: rotate(270deg); }
.burst span:nth-child(8) { transform: rotate(315deg); }

.ready-section.joking-active .burst {
  animation: burstExplosion 1.05s ease forwards;
}

@keyframes burstExplosion {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }

  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05) rotate(20deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8) rotate(65deg);
  }
}

.gem,
.line-star {
  position: absolute;
  display: block;
  z-index: 2;
}

.gem {
  width: clamp(14px, 1.25vw, 26px);
  height: clamp(14px, 1.25vw, 26px);
  background: linear-gradient(135deg, #fff, #c084ff, #9b4dff);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.9;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.45),
    0 0 38px rgba(155, 77, 255, 0.55);
  animation: gemFloat 6s ease-in-out infinite;
}

.gem-1 { top: 14%; left: 11%; animation-delay: 0s; }
.gem-2 { top: 24%; right: 15%; animation-delay: .8s; }
.gem-3 { top: 48%; left: 7%; animation-delay: 1.5s; }
.gem-4 { top: 58%; right: 8%; animation-delay: 2.2s; }
.gem-5 { bottom: 18%; left: 22%; animation-delay: 2.8s; }
.gem-6 { bottom: 14%; right: 23%; animation-delay: 3.5s; }

@keyframes gemFloat {
  50% {
    transform: translateY(-26px) rotate(45deg) scale(1.18);
  }
}

.line-star {
  width: 4px;
  height: clamp(85px, 8vw, 160px);
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(192, 132, 255, 0.85), transparent);
  filter: blur(0.5px);
  opacity: 0.72;
  animation: lineFloat 6s ease-in-out infinite;
}

.line-1 {
  top: 20%;
  left: 49%;
  transform: rotate(24deg);
}

.line-2 {
  top: 52%;
  right: 25%;
  transform: rotate(-28deg);
}

.line-3 {
  bottom: 15%;
  left: 35%;
  transform: rotate(34deg);
}

@keyframes lineFloat {
  50% {
    opacity: 1;
    transform: translateY(-30px) scaleY(1.1);
  }
}

/* FOOTER */

.footer {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(70px, 8vw, 110px) 0 0;
  background:
    radial-gradient(circle at 78% 48%, rgba(155, 77, 255, 0.17), transparent 24%),
    linear-gradient(180deg, #020103, #07030b 60%, #000);
  border-top: 1px solid rgba(155, 77, 255, 0.15);
}

.footer-layout {
  position: relative;
  z-index: 5;
  min-height: calc(100svh - 80px);
  align-items: center;
}

.footer-logo {
  width: 78px;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 26px rgba(155, 77, 255, 0.45));
}

.footer-content p {
  max-width: 580px;
  margin-bottom: 28px;
}

.socials {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
}

.socials a {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(155, 77, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #c084ff;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
  transition: 0.25s ease;
}

.socials a:hover {
  transform: translateY(-6px) scale(1.05);
  color: #fff;
  background: rgba(155, 77, 255, 0.2);
  box-shadow: 0 18px 35px rgba(155, 77, 255, 0.22);
}

.socials a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

small {
  color: #777383;
}

.footer-rick {
  position: relative;
  min-height: clamp(380px, 54vw, 610px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.footer-rick img {
  width: clamp(330px, 28vw, 455px);
  max-height: 76vh;
  object-fit: contain;
  position: relative;
  z-index: 5;
  transform: rotate(-6deg) translateX(clamp(0px, 1.2vw, 22px));
  filter:
    grayscale(1)
    saturate(0.28)
    contrast(1.18)
    brightness(0.72)
    drop-shadow(0 0 38px rgba(155, 77, 255, 0.28));
  opacity: 0.93;
}

.footer-hole {
  position: absolute;
  right: clamp(-95px, -4vw, -45px);
  top: 50%;
  width: clamp(390px, 34vw, 540px);
  height: clamp(390px, 34vw, 540px);
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #000 43%, rgba(155, 77, 255, 0.22) 45%, rgba(155, 77, 255, 0.06) 62%, transparent 74%);
  box-shadow:
    inset 0 0 70px rgba(155, 77, 255, 0.18),
    0 0 130px rgba(155, 77, 255, 0.12);
  z-index: 1;
}

.footer-crack {
  position: absolute;
  z-index: 2;
  background: rgba(192, 132, 255, 0.48);
  border-radius: 999px;
  box-shadow: 0 0 26px rgba(155, 77, 255, 0.35);
}

.crack-one {
  right: 235px;
  top: 35%;
  width: 160px;
  height: 4px;
  transform: rotate(-24deg);
}

.crack-two {
  right: 205px;
  top: 60%;
  width: 115px;
  height: 4px;
  transform: rotate(36deg);
}

/* RESPONSIVE */

@media (min-width: 1800px) {
  .container {
    width: min(1440px, calc(100% - 120px));
  }

  .ready-content {
    width: min(1700px, calc(100% - 120px));
  }

  #readyText {
    font-size: clamp(140px, 9.2vw, 260px);
  }

  .footer-rick img {
    width: clamp(420px, 23vw, 540px);
  }
}

@media (min-width: 3000px) {
  .container {
    width: min(1900px, calc(100% - 220px));
  }

  .ready-content {
    width: min(2400px, calc(100% - 220px));
  }

  #readyText {
    font-size: clamp(220px, 8vw, 360px);
  }

  #readyMini {
    font-size: 20px;
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .two-column,
  .reverse,
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content,
  .open-text,
  .footer-content {
    text-align: center;
  }

  .logo-main,
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-character,
  .character-area {
    min-height: 420px;
  }

  .rick-hero {
    width: min(320px, 82%);
  }

  .morty-one,
  .morty-two {
    width: min(340px, 84%);
  }

  .ready-section {
    min-height: 1050vh;
  }

  .ready-content {
    width: min(100% - 28px, 900px);
  }

  #readyText {
    font-size: clamp(62px, 14vw, 135px);
    line-height: 0.88;
    letter-spacing: -3px;
  }

  #readyMini {
    font-size: 12px;
    letter-spacing: 4px;
  }

  #jokingText {
    font-size: clamp(70px, 15vw, 145px);
    letter-spacing: -4px;
  }

  .footer {
    min-height: 100svh;
    padding: 70px 0 0;
  }

  .footer-layout {
    min-height: auto;
    gap: 20px;
  }

  .socials {
    justify-content: center;
  }

  .footer-rick {
    justify-content: center;
    min-height: 360px;
    max-height: 390px;
  }

  .footer-rick img {
    width: clamp(300px, 50vw, 370px);
    max-height: 390px;
    transform: rotate(-4deg) translateY(24px);
  }

  .footer-hole {
    width: 390px;
    height: 390px;
    right: 50%;
    top: auto;
    bottom: -90px;
    transform: translateX(50%);
  }

  .crack-one {
    right: 50%;
    top: auto;
    bottom: 185px;
    transform: translateX(30%) rotate(-24deg);
  }

  .crack-two {
    right: 50%;
    top: auto;
    bottom: 135px;
    transform: translateX(60%) rotate(36deg);
  }
}

@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 70px 0;
  }

  h1 {
    font-size: 54px;
    letter-spacing: -2px;
  }

  h2 {
    font-size: 44px;
    letter-spacing: -2px;
  }

  h3 {
    font-size: 24px;
  }

  p,
  .skills-list div {
    font-size: 17px;
  }

  .logo-main {
    width: 90px;
  }

  .ready-section {
    min-height: 980vh;
  }

  .ready-content {
    width: min(100% - 22px, 520px);
  }

  #readyText {
    font-size: clamp(48px, 16vw, 86px);
    line-height: 0.9;
    letter-spacing: -2px;
  }

  #readyMini {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 14px;
  }

  #jokingText {
    font-size: clamp(58px, 18vw, 96px);
    letter-spacing: -3px;
  }

  .gem {
    width: 15px;
    height: 15px;
  }

  .line-star {
    height: 90px;
  }

  .footer {
    min-height: 100svh;
    padding: 58px 0 0;
  }

  .footer-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-content {
    padding-bottom: 14px;
  }

  .footer-rick {
    min-height: 300px;
    max-height: 330px;
  }

  .footer-rick img {
    width: clamp(250px, 72vw, 320px);
    max-height: 350px;
    transform: rotate(-4deg) translateY(34px);
  }

  .footer-hole {
    width: 315px;
    height: 315px;
    bottom: -78px;
  }
}

@media (max-width: 390px) {
  .footer-rick {
    min-height: 270px;
    max-height: 295px;
  }

  .footer-rick img {
    width: 250px;
    transform: rotate(-4deg) translateY(38px);
  }

  .footer-hole {
    width: 280px;
    height: 280px;
  }
}

.section-bridge {
  height: 22vh;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.bridge-dark-purple {
  background: linear-gradient(180deg, transparent, rgba(8, 2, 18, 0.75), transparent);
}

.bridge-purple-soft {
  background: linear-gradient(180deg, transparent, rgba(15, 5, 30, 0.72), transparent);
}

.bridge-ready {
  background: linear-gradient(180deg, transparent, #020005 80%);
}

.bridge-footer {
  height: 18vh;
  background: linear-gradient(180deg, #000, #020103);
}