@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Libre+Caslon+Text:wght@400;700&display=swap');

:root {
  --bg: #f3e1e7;
  --sidebar: #efd2dc;

  --text: #57434b;
  --muted: #967c86;

  --pink: #e9a7be;
  --pink-dark: #c97996;
  --pink-light: #f7dfe8;

  --border: rgba(126, 82, 98, 0.14);

  --sidebar-width: 190px;
}


/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family: "DM Mono", monospace;
  font-size: 14px;
  line-height: 1.8;

  overflow-x: hidden;
}

::selection {
  background: var(--pink);
  color: white;
}


/* CURSOR CHERRY PARTICLES */

#cursor-particles {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  pointer-events: none;

  z-index: 10000;
}

.cherry-particle {
  position: absolute;

  display: block;

  background: #eba8c0;

  clip-path:
    polygon(
      0 0,
      72% 0,
      72% 24%,
      100% 24%,
      100% 76%,
      72% 76%,
      72% 100%,
      28% 100%,
      28% 76%,
      0 76%
    );

  opacity: 0;

  image-rendering: pixelated;

  filter:
    drop-shadow(
      0 2px 2px rgba(126, 82, 98, 0.10)
    );

  transform:
    translate(-50%, -50%)
    rotate(var(--particle-rotation));

  animation:
    cherryParticleFall
    var(--particle-duration)
    cubic-bezier(0.22, 0.61, 0.36, 1)
    forwards;
}

.cherry-particle:nth-child(3n) {
  background: #f4bfd1;
}

.cherry-particle:nth-child(4n) {
  background: #d98da9;
}

.cherry-particle:nth-child(5n) {
  background: #f7cedc;
}

@keyframes cherryParticleFall {

  0% {
    opacity: 0;

    transform:
      translate(-50%, -50%)
      rotate(var(--particle-rotation))
      scale(0.7);
  }

  8% {
    opacity: 0.95;
  }

  35% {
    transform:
      translate(
        calc(-50% + var(--particle-sway)),
        calc(-50% + (var(--particle-fall) * 0.28))
      )
      rotate(
        calc(
          var(--particle-rotation) + 75deg
        )
      )
      scale(1);
  }

  68% {
    opacity: 0.8;

    transform:
      translate(
        calc(-50% + var(--particle-drift)),
        calc(-50% + (var(--particle-fall) * 0.68))
      )
      rotate(
        calc(
          var(--particle-rotation) + 165deg
        )
      )
      scale(0.9);
  }

  100% {
    opacity: 0;

    transform:
      translate(
        calc(-50% + var(--particle-drift)),
        calc(-50% + var(--particle-fall))
      )
      rotate(
        calc(
          var(--particle-rotation) +
          var(--particle-rotation-end)
        )
      )
      scale(0.65);
  }
}


/* SIDEBAR */

.sidebar {
  position: fixed;

  top: 0;
  left: 0;

  width: var(--sidebar-width);
  height: 100vh;

  background: var(--sidebar);

  border-right: 1px solid var(--border);

  padding: 42px 30px;

  display: flex;
  flex-direction: column;

  z-index: 100;
}

.logo {
  font-family: "Libre Caslon Text", serif;

  font-weight: bold;
  font-size: 17px;

  color: var(--pink-dark);

  letter-spacing: 2px;

  margin-bottom: 50px;
}

nav {
  display: flex;
  flex-direction: column;

  gap: 18px;
}

nav a {
  color: var(--muted);

  text-decoration: none;

  font-size: 10px;
  font-weight: 500;

  letter-spacing: 1.5px;

  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

nav a:hover {
  color: var(--pink-dark);

  padding-left: 5px;
}

.sidebar-footer {
  margin-top: auto;

  color: #b08f9c;

  font-size: 8px;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  white-space: nowrap;
}


/* MAIN */

main {
  margin-left: var(--sidebar-width);
}

.section {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding: 80px 8vw;

  border-bottom: 1px solid var(--border);

  position: relative;
}

.content {
  width: 100%;
  max-width: 720px;
}


/* HOME */

.hero {
  position: relative;

  overflow: hidden;

  isolation: isolate;
}

.hero-banner {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(243, 225, 231, 0.50),
      rgba(243, 225, 231, 0.72)
    ),
    url("pink.gif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.38;

  transform: scale(1.03);

  transform-origin: center;

  z-index: -2;

  pointer-events: none;

  will-change:
    opacity,
    transform;
}

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(243, 225, 231, 0.04) 0%,
      rgba(243, 225, 231, 0.18) 58%,
      var(--bg) 100%
    );

  z-index: -1;

  pointer-events: none;
}

.hero-content {
  position: relative;

  z-index: 1;

  will-change:
    opacity,
    transform;
}


/* ABOUT */

.about-section {
  position: relative;

  overflow: hidden;

  isolation: isolate;
}

.about-banner {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(243, 225, 231, 0.38),
      rgba(243, 225, 231, 0.60)
    ),
    url("catgirl.gif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.42;

  transform: scale(1.03);

  transform-origin: center;

  z-index: -2;

  pointer-events: none;

  will-change:
    opacity,
    transform;
}

.about-section::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      var(--bg) 0%,
      rgba(243, 225, 231, 0.08) 18%,
      rgba(243, 225, 231, 0.08) 82%,
      var(--bg) 100%
    );

  z-index: -1;

  pointer-events: none;
}

.about-content {
  position: relative;

  z-index: 1;

  will-change:
    opacity,
    transform;
}


/* PFP */

.pfp {
  width: 115px;
  height: 115px;

  object-fit: cover;

  border-radius: 50%;

  border: 3px solid var(--pink);

  padding: 4px;

  background: var(--pink-light);

  margin-bottom: 24px;

  box-shadow:
    0 8px 30px rgba(126, 82, 98, 0.12);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.pfp:hover {
  transform:
    scale(1.06)
    rotate(2deg);

  box-shadow:
    0 12px 40px rgba(126, 82, 98, 0.2);
}


/* TEXT */

.eyebrow {
  margin: 0 0 10px;

  color: var(--pink-dark);

  font-size: 9px;

  letter-spacing: 2px;
}

h1,
h2,
h3 {
  font-family: "Libre Caslon Text", serif;

  color: var(--text);

  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 5vw, 68px);

  line-height: 1.1;

  margin-bottom: 24px;
}

h2 {
  font-size: 38px;

  margin-bottom: 30px;
}

h3 {
  font-size: 21px;

  margin-bottom: 8px;
}

p {
  color: #6f5962;

  max-width: 650px;
}

.intro {
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 10px;

  color: #a88c97;

  margin-top: 30px;
}


/* BUTTONS */

.buttons {
  display: flex;

  gap: 10px;

  margin-top: 35px;
}

.button {
  display: inline-block;

  padding: 9px 18px;

  border: 1px solid var(--pink);

  background: var(--pink);
  color: white;

  text-decoration: none;

  font-size: 11px;

  border-radius: 3px;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.button:hover {
  background: var(--pink-dark);

  border-color: var(--pink-dark);

  transform: translateY(-3px);
}

.button.secondary {
  color: var(--pink-dark);

  background: transparent;
}

.button.secondary:hover {
  background: var(--pink-dark);

  color: white;
}


/* PROJECTS */

.projects-section {
  position: relative;

  overflow: hidden;

  isolation: isolate;
}

.projects-banner {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(243, 225, 231, 0.38),
      rgba(243, 225, 231, 0.60)
    ),
    url("cat.gif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.42;

  transform: scale(1.03);

  transform-origin: center;

  z-index: -2;

  pointer-events: none;

  will-change:
    opacity,
    transform;
}

.projects-section::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      var(--bg) 0%,
      rgba(243, 225, 231, 0.08) 18%,
      rgba(243, 225, 231, 0.08) 82%,
      var(--bg) 100%
    );

  z-index: -1;

  pointer-events: none;
}

.projects-content {
  position: relative;

  z-index: 1;

  will-change:
    opacity,
    transform;
}

.project-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  margin-top: 40px;

  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.project {
  padding: 28px;

  background: rgba(255, 255, 255, 0.15);

  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project:hover {
  background: var(--pink-light);

  transform: translateY(-6px);

  box-shadow:
    0 12px 30px rgba(126, 82, 98, 0.08);
}

.project span {
  display: block;

  color: var(--pink-dark);

  font-size: 9px;

  margin-bottom: 30px;
}

.project p {
  color: var(--muted);

  font-size: 11px;

  margin: 0;
}


/* FRIENDS */

.friends-section {
  position: relative;

  overflow: hidden;

  isolation: isolate;
}

.friends-content {
  position: relative;

  z-index: 1;

  width: 100%;
  max-width: 1080px;

  will-change:
    opacity,
    transform;
}

.friends-intro {
  margin-top: -20px;
  margin-bottom: 30px;
}

.friends-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  grid-auto-flow: dense;

  gap: 14px;

  align-items: stretch;
}

.friend-card {
  position: relative;

  min-width: 0;

  padding: 22px 23px;

  background: rgba(255, 255, 255, 0.14);

  border: 1px solid var(--border);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.friend-card:hover {
  background: var(--pink-light);

  transform: translateY(-5px);

  box-shadow:
    0 12px 30px rgba(126, 82, 98, 0.08);
}

.friend-card h3 {
  margin: 0 0 8px;

  font-size: 20px;
}

.friend-card p {
  margin: 0;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.7;
}

.friend-symbol {
  position: absolute;

  top: 12px;
  right: 16px;

  color: var(--pink-dark);

  font-family: serif;
  font-size: 18px;

  opacity: 0.45;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.friend-card:hover .friend-symbol {
  opacity: 1;

  transform:
    scale(1.3)
    rotate(8deg);
}


/* KONSTI CARD */

.k-card {
  grid-column: span 2;

  position: relative;

  overflow: hidden;

  isolation: isolate;

  background: rgba(255, 255, 255, 0.14);
}

.k-card-banner {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(247, 223, 232, 0.48),
      rgba(247, 223, 232, 0.68)
    ),
    url("hearts.gif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.45;

  transform: scale(1.05);

  z-index: -2;

  pointer-events: none;

  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
}

.k-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(247, 223, 232, 0.08),
      rgba(247, 223, 232, 0.35)
    );

  z-index: -1;

  pointer-events: none;
}

.k-card-content {
  position: relative;

  z-index: 1;
}

.k-card-content p {
  max-width: 680px;
}

.k-card:hover .k-card-banner {
  opacity: 0.65;

  transform: scale(1.09);
}

.k-card:hover {
  background: rgba(247, 223, 232, 0.12);
}


/* LOVE OF MY LIFE BADGE */

.friend-name-row {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 8px;
}

.friend-name-row h3 {
  margin: 0;
}

.love-badge {
  display: inline-flex;

  align-items: center;

  padding: 3px 9px;

  background:
    rgba(247, 223, 232, 0.82);

  border:
    1px solid rgba(201, 121, 150, 0.30);

  border-radius: 999px;

  color: var(--pink-dark);

  font-family:
    "DM Mono",
    monospace;

  font-size: 8px;
  font-weight: 500;

  letter-spacing: 0.4px;

  white-space: nowrap;

  box-shadow:
    0 3px 10px rgba(126, 82, 98, 0.07);

  animation:
    loveBadgeFloat 3s ease-in-out infinite;
}

@keyframes loveBadgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}


/* FRIENDS GIF BACKGROUND */

.friends-banner {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(243, 225, 231, 0.38),
      rgba(243, 225, 231, 0.60)
    ),
    url("kiss.gif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.42;

  transform: scale(1.03);

  transform-origin: center;

  z-index: -2;

  pointer-events: none;

  will-change:
    opacity,
    transform;
}

.friends-section::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      var(--bg) 0%,
      rgba(243, 225, 231, 0.08) 18%,
      rgba(243, 225, 231, 0.08) 82%,
      var(--bg) 100%
    );

  z-index: -1;

  pointer-events: none;
}


/* LINKS */

.link-list {
  display: flex;
  flex-direction: column;

  width: 100%;

  border-top: 1px solid var(--border);
}

.link-list a {
  padding: 17px 4px;

  border-bottom: 1px solid var(--border);

  color: var(--text);

  text-decoration: none;

  transition:
    color 0.25s ease,
    padding-left 0.25s ease,
    background 0.25s ease;
}

.link-list a:hover {
  color: var(--pink-dark);

  padding-left: 12px;

  background: rgba(255, 255, 255, 0.12);
}


/* BACKGROUND MUSIC */

.music-player-frame {
  position: fixed;

  left: -9999px;
  top: -9999px;

  width: 200px;
  height: 200px;

  pointer-events: none;
}

.music-toggle {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 9999;

  padding: 8px 13px;

  background:
    rgba(247, 223, 232, 0.88);

  color: var(--pink-dark);

  border:
    1px solid rgba(201, 121, 150, 0.28);

  border-radius: 999px;

  font-family:
    "DM Mono",
    monospace;

  font-size: 9px;

  letter-spacing: 0.6px;

  box-shadow:
    0 7px 20px rgba(126, 82, 98, 0.10);

  backdrop-filter: blur(8px);

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.music-toggle:hover {
  transform:
    translateY(-3px);

  background:
    rgba(247, 223, 232, 1);

  box-shadow:
    0 10px 28px rgba(126, 82, 98, 0.15);
}

.music-toggle.music-playing {
  background:
    rgba(233, 167, 190, 0.90);

  color: white;
}


/* FLOATING HEART */

.hero::after {
  content: "♡";

  position: absolute;

  right: 8vw;
  bottom: 8vh;

  font-family: serif;

  color: rgba(201, 121, 150, 0.26);

  font-size: 90px;

  pointer-events: none;

  z-index: 2;

  animation:
    heartFloat 4s ease-in-out infinite;
}

@keyframes heartFloat {

  0%,
  100% {
    transform:
      translateY(0)
      rotate(0deg);
  }

  50% {
    transform:
      translateY(-10px)
      rotate(3deg);
  }
}


/* SCROLL REVEAL */

.reveal {
  opacity: 0;

  transform:
    translateY(45px)
    scale(0.985);

  filter: blur(5px);

  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s ease;
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);

  filter: blur(0);
}


/* NORMAL CONTENT DELAYS */

.content > .reveal:nth-child(1) {
  transition-delay: 0.03s;
}

.content > .reveal:nth-child(2) {
  transition-delay: 0.10s;
}

.content > .reveal:nth-child(3) {
  transition-delay: 0.17s;
}

.content > .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.content > .reveal:nth-child(5) {
  transition-delay: 0.31s;
}

.content > .reveal:nth-child(6) {
  transition-delay: 0.18s;
}

.content > .reveal:nth-child(7) {
  transition-delay: 0.18s;
}


/* PROJECT CARD DELAYS */

.project.reveal:nth-child(1) {
  transition-delay: 0.10s;
}

.project.reveal:nth-child(2) {
  transition-delay: 0.22s;
}

.project.reveal:nth-child(3) {
  transition-delay: 0.34s;
}


/* FRIEND CARD DELAYS */

.friend-card.reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.friend-card.reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.friend-card.reveal:nth-child(3) {
  transition-delay: 0.19s;
}

.friend-card.reveal:nth-child(4) {
  transition-delay: 0.26s;
}

.friend-card.reveal:nth-child(5) {
  transition-delay: 0.33s;
}

.friend-card.reveal:nth-child(6) {
  transition-delay: 0.40s;
}

.friend-card.reveal:nth-child(7) {
  transition-delay: 0.47s;
}

.friend-card.reveal:nth-child(8) {
  transition-delay: 0.54s;
}


/* SCROLLBAR */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #dca4b7;

  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pink-dark);
}


/* NOT FOUND */

.nf-page {
  min-height: 100vh;

  position: relative;

  overflow: hidden;
}

.nf-bg {
  position: fixed;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(243, 225, 231, 0.52),
      rgba(243, 225, 231, 0.78)
    ),
    url("catgirl.gif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0.42;

  z-index: 0;

  pointer-events: none;
}

.nf-wrap {
  min-height: 100vh;

  margin-left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 32px;

  position: relative;

  z-index: 1;
}

.nf-card {
  width: 100%;
  max-width: 720px;

  text-align: center;

  padding: 48px 38px;

  background: rgba(255, 255, 255, 0.28);

  border: 1px solid var(--border);

  box-shadow:
    0 18px 45px rgba(126, 82, 98, 0.12);

  backdrop-filter: blur(8px);
}

.nf-card h1 {
  margin-bottom: 18px;
}

.nf-card p {
  margin-left: auto;
  margin-right: auto;
}

.nf-buttons {
  justify-content: center;
}


/* TABLET */

@media (max-width: 1100px) {

  .friends-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .k-card {
    grid-column: span 2;
  }
}


/* MOBILE */

@media (max-width: 750px) {

  #cursor-particles {
    display: none;
  }

  .sidebar {
    width: 100%;
    height: auto;

    padding: 17px 22px;

    flex-direction: row;
    align-items: center;

    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .logo {
    margin: 0;
  }

  nav {
    margin-left: auto;

    flex-direction: row;

    gap: 12px;
  }

  nav a {
    font-size: 8px;
  }

  .sidebar-footer {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .section {
    padding: 110px 28px 70px;
  }

  .project-grid,
  .friends-grid {
    grid-template-columns: 1fr;
  }

  .k-card {
    grid-column: auto;
  }

  .friend-card {
    padding: 21px;
  }

  .friend-name-row {
    flex-wrap: wrap;

    gap: 7px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .pfp {
    width: 95px;
    height: 95px;
  }

  .hero::after {
    font-size: 60px;
  }

  .hero-banner,
  .about-banner,
  .projects-banner,
  .friends-banner {
    background-position: center;
  }

  .music-toggle {
    right: 14px;
    bottom: 14px;

    padding: 7px 11px;

    font-size: 8px;
  }

  .nf-card {
    padding: 34px 22px;
  }
}


/* TOUCH DEVICES */

@media (pointer: coarse) {

  #cursor-particles {
    display: none;
  }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;

    transform: none;

    filter: none;

    transition: none;
  }

  .hero::after,
  .love-badge {
    animation: none;
  }

  .hero-banner,
  .hero-content,
  .about-banner,
  .about-content,
  .projects-banner,
  .projects-content,
  .friends-banner,
  .friends-content {
    transform: none !important;
  }

  .cherry-particle {
    display: none;
  }
}