:root {
  --bg: #080b12;
  --panel: rgba(18, 23, 35, 0.72);
  --panel-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f8f9ff;
  --muted: #aeb7ca;
  --accent: #ffb6c1;
  --accent-dark: #ff7d97;
  --blue: #8eb8ff;
  --purple: #b98cff;
  --dark: #220d13;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --radius: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 182, 193, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 18%, rgba(142, 184, 255, 0.16), transparent 30rem),
    linear-gradient(135deg, #070910 0%, #101827 52%, #080a11 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 82%);
}

button {
  border: 0;
  font: inherit;
}

.whoosh {
  position: fixed;
  inset: -25%;
  z-index: 999;
  pointer-events: none;
  transform: translateX(-125%) skewX(-16deg);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 182, 193, 0.0) 18%,
      rgba(255, 182, 193, 0.86) 42%,
      rgba(142, 184, 255, 0.88) 58%,
      rgba(142, 184, 255, 0.0) 82%,
      transparent 100%
    );
}

.whoosh.active {
  animation: whoosh 0.78s cubic-bezier(0.72, 0, 0.18, 1) forwards;
}

@keyframes whoosh {
  from {
    transform: translateX(-125%) skewX(-16deg);
  }

  to {
    transform: translateX(125%) skewX(-16deg);
  }
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow,
.float {
  position: absolute;
  display: block;
}

.glow {
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: glowMove 10s ease-in-out infinite alternate;
}

.glow-one {
  left: -14rem;
  top: 20rem;
  background: var(--accent);
}

.glow-two {
  right: -15rem;
  bottom: 3rem;
  background: var(--blue);
  animation-delay: -4s;
}

.float {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.035));
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  animation: float 8s ease-in-out infinite alternate;
}

.float-one {
  left: 5%;
  top: 24%;
}

.float-two {
  right: 8%;
  top: 28%;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  animation-delay: -2s;
  animation-duration: 11s;
}

.float-three {
  left: 14%;
  bottom: 14%;
  width: 96px;
  height: 96px;
  animation-delay: -5s;
  animation-duration: 10s;
}

.float-four {
  right: 18%;
  bottom: 12%;
  width: 56px;
  height: 56px;
  animation-delay: -3s;
  animation-duration: 7s;
}

.float-five {
  left: 48%;
  top: 52%;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  animation-delay: -1s;
  animation-duration: 6s;
}

@keyframes glowMove {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(45px, -32px) scale(1.08);
  }
}

@keyframes float {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(-36px) rotate(16deg);
  }
}

.header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(1120px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 12, 19, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 950;
}

.brand span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 32px rgba(255, 125, 151, 0.24);
}

.nav {
  display: flex;
  gap: 6px;
}

.nav button {
  height: 44px;
  min-width: 88px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  transition: 0.18s ease;
}

.nav button:hover,
.nav button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.section {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 122px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 26px;
}

.hero-panel,
.visual-card,
.project-card,
.skill-panel,
.status-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04)),
    var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-panel {
  overflow: hidden;
  position: relative;
  border-radius: 44px;
  padding: clamp(30px, 6vw, 60px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 182, 193, 0.24), transparent 22rem),
    radial-gradient(circle at 90% 88%, rgba(142, 184, 255, 0.18), transparent 26rem);
}

.hero-panel > * {
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 182, 193, 0.26);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 182, 193, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 730px;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-chips span {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.075);
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary,
.secondary,
.next {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 19px;
  cursor: pointer;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary {
  padding: 0 22px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 18px 44px rgba(255, 125, 151, 0.27);
}

.primary span,
.next span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
}

.secondary,
.next {
  padding: 0 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
}

.primary:hover,
.secondary:hover,
.next:hover {
  transform: translateY(-4px);
}

.visual-card {
  overflow: hidden;
  border-radius: 38px;
  padding: 14px;
}

.window-dots {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
}

.visual-stage {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(255, 182, 193, 0.18), transparent 11rem),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
}

.orbit {
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(255, 182, 193, 0.38);
  box-shadow: 0 0 34px rgba(255, 182, 193, 0.2);
}

.orbit-a {
  width: 210px;
  height: 210px;
  border-left-color: transparent;
  animation: spin 12s linear infinite;
}

.orbit-b {
  width: 285px;
  height: 285px;
  border-color: rgba(142, 184, 255, 0.34);
  border-right-color: transparent;
  animation: spin 18s linear infinite reverse;
}

.mini-block {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  animation: smallFloat 4.5s ease-in-out infinite alternate;
}

.block-a {
  top: 72px;
  right: 68px;
}

.block-b {
  left: 64px;
  bottom: 82px;
  width: 60px;
  height: 60px;
  animation-delay: -1.8s;
}

.block-c {
  right: 82px;
  bottom: 76px;
  width: 36px;
  height: 36px;
  animation-delay: -3s;
}

.profile-core {
  position: relative;
  z-index: 2;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  text-align: center;
  border-radius: 36px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow:
    0 24px 70px rgba(255, 125, 151, 0.25),
    inset 0 -16px 28px rgba(0, 0, 0, 0.16);
  animation: coreFloat 3s ease-in-out infinite;
}

.profile-core span {
  font-size: 2.8rem;
  font-weight: 950;
  line-height: 1;
}

.profile-core b {
  font-size: 1.04rem;
}

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

@keyframes smallFloat {
  to {
    transform: translateY(-22px) rotate(12deg);
  }
}

@keyframes coreFloat {
  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

.page-section {
  display: grid;
  align-content: center;
  gap: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading span {
  color: var(--accent);
  font-weight: 950;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-card {
  min-height: 230px;
  display: grid;
  align-content: end;
  gap: 20px;
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.project-card:hover,
.status-card:hover,
.skill-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 182, 193, 0.34);
}

.project-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255,255,255,0.085);
  border: 1px solid var(--line);
  font-size: 1.6rem;
}

.project-card h3,
.status-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.next {
  justify-self: start;
}

.skill-panel {
  display: grid;
  gap: 22px;
  border-radius: 40px;
  padding: clamp(28px, 5vw, 48px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.skill-row {
  display: grid;
  gap: 10px;
}

.skill-row strong {
  font-size: 1.05rem;
}

.skill-row div {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.075);
  border: 1px solid var(--line);
}

.skill-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.status-card {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.live-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #60ffa3;
  box-shadow: 0 0 22px #60ffa3;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.star {
  color: var(--accent);
  font-size: 2rem;
}

.final .primary {
  justify-self: start;
}

@keyframes dotPulse {
  50% {
    transform: scale(1.3);
    opacity: 0.65;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 1000px) {
  .header {
    align-items: stretch;
    border-radius: 28px;
    flex-direction: column;
  }

  .brand {
    align-self: flex-start;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .nav button {
    min-width: 0;
  }

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

  .visual-card {
    max-width: 430px;
  }

  .project-grid,
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .header {
    top: 10px;
    width: min(100% - 18px, 1120px);
    padding: 8px;
  }

  .brand b {
    font-size: 0.95rem;
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav button {
    height: 42px;
  }

  .section {
    width: min(100% - 18px, 1120px);
    padding-top: 176px;
  }

  .hero-panel,
  .visual-card,
  .skill-panel {
    border-radius: 28px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .actions {
    flex-direction: column;
  }

  .primary,
  .secondary,
  .next {
    width: 100%;
  }

  .visual-stage {
    min-height: 285px;
  }

  .orbit-a {
    width: 170px;
    height: 170px;
  }

  .orbit-b {
    width: 230px;
    height: 230px;
  }

  .profile-core {
    width: 135px;
    height: 135px;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
