/* =========================================================
   MY SPACE — PORTFOLIO
   STYLE.CSS
   PART 1
========================================================= */

/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #111111;
  font-family: "DM Mono", monospace;
  overflow-x: hidden;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

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

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

/* =========================================================
   ROOT
========================================================= */

:root {
  --black: #111111;
  --dark: #181818;
  --white: #ffffff;
  --gray: #777777;
  --light-gray: #eeeeee;
  --line: #222222;

  --radius-small: 7px;
  --radius-medium: 10px;
  --radius-large: 14px;

  --transition-fast: 0.25s ease;
  --transition-medium: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   BODY BACKGROUND
========================================================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);

  background-size: 40px 40px;

  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

/* =========================================================
   SITE
========================================================= */

.site {
  width: min(100% - 20px, 1450px);
  margin: 10px auto;

  position: relative;
}

/* =========================================================
   DECORATIVE CURSOR
========================================================= */

.cursor-decoration {
  width: 8px;
  height: 8px;

  position: fixed;

  left: 0;
  top: 0;

  border: 1px solid var(--black);
  border-radius: 50%;

  pointer-events: none;

  z-index: 9999;

  opacity: 0;
  transform: translate(-50%, -50%);

  transition:
    width 0.25s ease,
    height 0.25s ease,
    opacity 0.25s ease;
}

body:hover .cursor-decoration {
  opacity: 0.5;
}

/* =========================================================
   BACKGROUND STARS
========================================================= */

.background-stars {
  position: fixed;
  inset: 0;

  pointer-events: none;

  overflow: hidden;

  z-index: -1;
}

.background-stars span {
  position: absolute;

  font-family: "Space Mono", monospace;

  font-size: 14px;

  opacity: 0.15;

  animation: floating-star 8s ease-in-out infinite;
}

.background-stars span:nth-child(1) {
  left: 8%;
  top: 18%;
  animation-delay: -2s;
}

.background-stars span:nth-child(2) {
  left: 85%;
  top: 25%;
  animation-delay: -5s;
}

.background-stars span:nth-child(3) {
  left: 74%;
  top: 65%;
  animation-delay: -1s;
}

.background-stars span:nth-child(4) {
  left: 15%;
  top: 78%;
  animation-delay: -4s;
}

.background-stars span:nth-child(5) {
  left: 48%;
  top: 12%;
  animation-delay: -3s;
}

.background-stars span:nth-child(6) {
  left: 93%;
  top: 80%;
  animation-delay: -6s;
}

.background-stars span:nth-child(7) {
  left: 32%;
  top: 45%;
  animation-delay: -7s;
}

@keyframes floating-star {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);

    opacity: 0.1;
  }

  50% {
    transform: translate3d(0, -15px, 0) rotate(20deg);

    opacity: 0.35;
  }
}

/* =========================================================
   HEADER
========================================================= */

.window-header {
  height: 58px;

  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;

  padding: 0 18px;

  background: rgba(255, 255, 255, 0.94);

  border: 1px solid var(--black);
  border-radius: 10px;

  position: sticky;
  top: 10px;

  z-index: 1000;

  backdrop-filter: blur(15px);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);

  transition:
    box-shadow 0.4s ease,
    transform 0.4s ease;
}

.window-header:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.09);
}

/* =========================================================
   WINDOW CONTROLS
========================================================= */

.window-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.window-control {
  font-size: 22px;
  line-height: 1;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.window-control:hover {
  transform: scale(1.3);
  opacity: 0.55;
}

/* =========================================================
   NAVIGATION
========================================================= */

.main-navigation {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: clamp(25px, 5vw, 75px);
}

.nav-link {
  position: relative;

  font-size: 14px;

  padding: 8px 3px;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 0;

  width: 0;
  height: 1px;

  background: var(--black);

  transform: translateX(-50%);

  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

/* =========================================================
   HEADER ICONS
========================================================= */

.header-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  gap: 18px;
}

.icon-button {
  font-size: 23px;

  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.icon-button:hover {
  transform: translateY(-3px) rotate(8deg) scale(1.15);

  opacity: 0.55;
}

/* =========================================================
   GENERIC SECTION WINDOW
========================================================= */

.section-window {
  position: relative;

  margin-top: 10px;

  border: 1px solid var(--black);
  border-radius: 10px;

  background: #fff;

  overflow: hidden;
}

/* =========================================================
   HERO
========================================================= */
/* =====================================================
   ИСПРАВЛЕНИЕ ПЕРВОГО ИЗОБРАЖЕНИЯ
===================================================== */

.hero-character {
  position: relative !important;
  overflow: hidden !important;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;
}

.hero-character img,
.hero-character .hero-image {
  position: absolute !important;

  top: 0 !important;
  left: 0 !important;

  width: 100% !important;
  height: 100% !important;

  max-width: 100% !important;
  max-height: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;
  object-position: center center !important;

  transform: none !important;

  display: block !important;
}
.hero-character {
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
.hero-inner {
  min-height: 495px;

  display: grid;

  grid-template-columns:
    minmax(300px, 380px)
    1fr;

  position: relative;
}
.side-image {
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 12px;
}

.side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* =========================================================
   HERO CARD
========================================================= */
.hero-card {
  position: relative;

  margin: 32px 0 32px 18px;

  background: #151515;

  color: white;

  border-radius: 8px;

  overflow: hidden;

  border: 1px solid #111;

  isolation: isolate;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease;
}

.hero-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   HERO GRID
========================================================= */

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);

  background-size: 52px 52px;

  opacity: 0.55;

  z-index: -1;

  animation: grid-move 18s linear infinite;
}

@keyframes grid-move {
  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      52px 52px,
      52px 52px;
  }
}

/* =========================================================
   CARD TOP
========================================================= */

.card-top {
  height: 45px;

  display: flex;
  align-items: center;

  padding: 0 14px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.window-dot {
  width: 10px;
  height: 10px;

  margin-right: 8px;

  border: 1px solid white;
  border-radius: 50%;

  opacity: 0.9;
}

.bookmark {
  margin-left: auto;

  font-size: 25px;

  transition: transform 0.5s ease;
}

.hero-card:hover .bookmark {
  transform: rotate(-15deg) scale(1.15);
}

/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
  position: relative;

  padding: 58px 45px;
}

.hero-small-text {
  font-family: "Space Mono", monospace;

  font-size: 25px;
  line-height: 1.15;

  letter-spacing: -1px;

  animation: text-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-small-text:nth-child(2) {
  animation-delay: 0.1s;
}

@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   HERO TITLE
========================================================= */

.hero-title {
  margin-top: 4px;

  font-family: "Space Mono", monospace;

  font-size: clamp(45px, 5vw, 72px);

  line-height: 0.95;

  text-transform: lowercase;

  letter-spacing: -4px;

  position: relative;

  animation: title-glitch 1s cubic-bezier(0.22, 1, 0.36, 1) both;

  animation-delay: 0.15s;
}

@keyframes title-glitch {
  0% {
    opacity: 0;
    transform: translateX(-20px) skewX(-8deg);
  }

  65% {
    opacity: 1;
    transform: translateX(3px) skewX(2deg);
  }

  100% {
    transform: translateX(0) skewX(0);
  }
}

.hero-title::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 55px;
  height: 2px;

  background: white;

  animation: line-grow 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes line-grow {
  from {
    width: 0;
  }

  to {
    width: 55px;
  }
}

/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-description {
  margin-top: 28px;

  font-size: 13px;

  line-height: 1.9;

  opacity: 0.85;

  animation: fade-up 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* =========================================================
   SCROLL BUTTON
========================================================= */

.scroll-button {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 20px;

  margin-top: 34px;

  padding: 10px 17px;

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 7px;

  font-size: 12px;

  position: relative;
  overflow: hidden;

  transition:
    color 0.35s ease,
    transform 0.35s ease;
}

.scroll-button::before {
  content: "";

  position: absolute;
  inset: 0;

  background: white;

  transform: translateX(-105%);

  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: -1;
}

.scroll-button:hover {
  color: black;

  transform: translateY(-3px);
}

.scroll-button:hover::before {
  transform: translateX(0);
}

.scroll-button .arrow {
  transition: transform 0.4s ease;
}

.scroll-button:hover .arrow {
  transform: translateY(4px);
}

/* =========================================================
   HERO DECORATIONS
========================================================= */

.hero-decor {
  position: absolute;

  pointer-events: none;
}

.hero-decor.heart {
  right: 30px;
  top: 115px;

  font-size: 28px;

  animation: floating-heart 4s ease-in-out infinite;
}

.hero-decor.sparkle {
  right: 45px;
  top: 55px;

  font-size: 26px;

  animation: sparkle-spin 5s linear infinite;
}

@keyframes floating-heart {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes sparkle-spin {
  0% {
    transform: rotate(0) scale(1);
  }

  50% {
    transform: rotate(90deg) scale(1.25);
  }

  100% {
    transform: rotate(180deg) scale(1);
  }
}

/* =========================================================
   HERO CAT
========================================================= */

.hero-cat {
  position: absolute;

  right: 35px;
  bottom: 25px;

  font-size: 48px;

  animation: cat-bounce 3.5s ease-in-out infinite;
}

@keyframes cat-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* =========================================================
   HERO CHARACTER
========================================================= */

.hero-character {
  position: relative;

  min-height: 495px;

  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  background: radial-gradient(circle at 60% 50%, #fafafa, #ffffff 70%);
}

/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center bottom;

  filter: grayscale(100%) contrast(1.05);

  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease;
}

.hero-character:hover .hero-image {
  transform: scale(1.025) translateY(-5px);

  filter: grayscale(100%) contrast(1.15);
}

/* =========================================================
   HERO SPARKLES
========================================================= */

.hero-sparkles span {
  position: absolute;

  font-size: 20px;

  animation: sparkle-float 4s ease-in-out infinite;
}

.hero-sparkles span:nth-child(1) {
  top: 55px;
  left: 15%;
}

.hero-sparkles span:nth-child(2) {
  top: 130px;
  right: 17%;
  animation-delay: -0.8s;
}

.hero-sparkles span:nth-child(3) {
  top: 200px;
  left: 8%;
  animation-delay: -1.5s;
}

.hero-sparkles span:nth-child(4) {
  bottom: 120px;
  left: 20%;
  animation-delay: -2.2s;
}

.hero-sparkles span:nth-child(5) {
  bottom: 80px;
  right: 15%;
  animation-delay: -3s;
}

@keyframes sparkle-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);

    opacity: 0.35;
  }

  50% {
    transform: translateY(-12px) rotate(25deg);

    opacity: 1;
  }
}

/* =========================================================
   HERO SIDE BUTTONS
========================================================= */

.hero-side-buttons {
  position: absolute;

  right: 18px;
  top: 35px;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--black);
  border-radius: 8px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.85);

  backdrop-filter: blur(8px);
}

.side-button {
  width: 48px;
  height: 54px;
  display: grid;
  place-items: center;

  font-size: 24px;

  border-bottom: 1px solid var(--black);

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.side-button:last-child {
  border-bottom: 0;
}

.side-button:hover {
  background: var(--black);
  color: white;

  transform: scale(1.04);
}

/* =========================================================
   FADE UP ANIMATION
========================================================= */

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================================
   TOP CONTENT GRID
========================================================= */

.top-content-grid {
  display: grid;

  grid-template-columns:
    minmax(320px, 0.8fr)
    minmax(500px, 1.2fr);

  gap: 10px;

  margin-top: 10px;
}

/* =========================================================
   GENERIC CONTENT CARD
========================================================= */

.content-card {
  position: relative;

  background: rgba(255, 255, 255, 0.96);

  border: 1px solid var(--black);
  border-radius: 10px;

  overflow: hidden;

  isolation: isolate;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.content-card:hover {
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.07);
}

/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
  position: relative;

  width: fit-content;

  min-width: 135px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  padding: 9px 14px;

  margin: -1px 0 0 -1px;

  background: var(--black);
  color: white;

  border-radius: 0 0 8px 0;

  font-size: 16px;

  z-index: 5;

  transition:
    padding 0.35s ease,
    letter-spacing 0.35s ease;
}

.section-label:hover {
  padding-left: 19px;
  padding-right: 19px;

  letter-spacing: 0.5px;
}

.section-label span:last-child {
  font-size: 19px;

  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-label:hover span:last-child {
  transform: rotate(20deg) scale(1.2);
}

/* =========================================================
   ABOUT CARD
========================================================= */

.about-card {
  min-height: 355px;
}

.about-content {
  min-height: 300px;

  display: grid;

  grid-template-columns:
    minmax(180px, 1fr)
    minmax(170px, 1fr);

  align-items: center;

  gap: 25px;

  padding: 28px 25px 25px;
}

/* =========================================================
   ABOUT IMAGE
========================================================= */

.about-image-wrapper {
  width: min(100%, 260px);
  aspect-ratio: 1;

  margin: auto;

  position: relative;

  border: 1px dashed var(--black);
  border-radius: 50%;

  padding: 8px;

  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image-wrapper::before {
  content: "";

  position: absolute;

  inset: -8px;

  border: 1px solid transparent;

  border-radius: 50%;

  transition:
    border-color 0.5s ease,
    transform 0.7s ease;
}

.about-image-wrapper:hover {
  transform: rotate(-3deg) scale(1.035);
}

.about-image-wrapper:hover::before {
  border-color: #111;

  transform: rotate(12deg);
}

.about-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 50%;

  filter: grayscale(100%) contrast(1.05);

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.05);

  filter: grayscale(100%) contrast(1.2);
}

/* =========================================================
   ABOUT IMAGE DECORATION
========================================================= */

.image-decoration {
  position: absolute;

  right: -12px;
  bottom: 20px;

  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  background: white;

  border: 1px solid var(--black);

  font-size: 27px;

  transform: rotate(-7deg);

  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.08);

  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image-wrapper:hover .image-decoration {
  transform: rotate(8deg) scale(1.1);
}

/* =========================================================
   ABOUT TEXT
========================================================= */

.about-text {
  max-width: 240px;

  font-size: 12px;

  line-height: 2;

  position: relative;
}

.about-text p {
  margin-bottom: 9px;

  opacity: 0.85;

  transform: translateY(0);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.about-card:hover .about-text p {
  opacity: 1;
}

.about-text p:first-child {
  font-size: 15px;
  font-weight: 500;
}

/* =========================================================
   OUTLINE BUTTON
========================================================= */

.outline-button {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 18px;

  padding: 10px 13px;

  border: 1px solid var(--black);
  border-radius: 7px;

  font-size: 11px;

  position: relative;

  overflow: hidden;

  transition:
    color 0.4s ease,
    transform 0.35s ease;
}

.outline-button::before {
  content: "";

  position: absolute;

  inset: 0;

  background: var(--black);

  transform: translateY(102%);

  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: -1;
}

.outline-button:hover {
  color: white;

  transform: translateY(-3px);
}

.outline-button:hover::before {
  transform: translateY(0);
}

.outline-button span:last-child {
  transition: transform 0.4s ease;
}

.outline-button:hover span:last-child {
  transform: translateX(7px);
}

/* =========================================================
   ABOUT DECORATIONS
========================================================= */

.about-card::before {
  content: "✦";

  position: absolute;

  right: 30px;
  top: 55px;

  font-size: 20px;

  animation: decoration-float 4s ease-in-out infinite;
}

.about-card::after {
  content: "♡";

  position: absolute;

  left: 25px;
  bottom: 20px;

  font-size: 22px;

  animation: decoration-float 5s ease-in-out infinite reverse;
}

@keyframes decoration-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-7px) rotate(10deg);
  }
}

/* =========================================================
   WORKS CARD
========================================================= */

.works-card {
  min-height: 355px;
}

/* =========================================================
   WORK FILTERS
========================================================= */

.works-filters {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  padding: 25px 14px 12px;
}

.work-filter {
  min-width: 90px;

  padding: 8px 16px;

  border: 1px solid #999;
  border-radius: 7px;

  background: white;

  font-size: 11px;

  position: relative;
  overflow: hidden;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.work-filter::before {
  content: "";

  position: absolute;

  inset: 0;

  background: var(--black);

  transform: translateY(102%);

  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: -1;
}

.work-filter:hover {
  border-color: var(--black);

  transform: translateY(-2px);
}

.work-filter:hover::before,
.work-filter.active::before {
  transform: translateY(0);
}

.work-filter.active {
  background: var(--black);
  color: white;
  border-color: var(--black);
}

/* =========================================================
   WORK PANELS
========================================================= */

.works-panel {
  padding: 0 14px 12px;

  animation: panel-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.works-panel[hidden] {
  display: none;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
} /* =========================================================
   WORKS GRID
========================================================= */

.works-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;
}

/* =========================================================
   WORK ITEM
========================================================= */

.work-item {
  min-width: 0;

  position: relative;

  animation: work-appear 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.work-item:nth-child(2) {
  animation-delay: 0.08s;
}

.work-item:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes work-appear {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   WORK IMAGE
========================================================= */

.work-image {
  aspect-ratio: 4 / 5;

  position: relative;

  overflow: hidden;

  border: 1px solid #777;

  border-radius: 7px;

  background: #eee;
}

.work-image::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );

  transform: translateX(-130%);

  z-index: 2;

  pointer-events: none;
}

.work-item:hover .work-image::before {
  animation: image-shine 0.8s ease;
}

@keyframes image-shine {
  to {
    transform: translateX(130%);
  }
}

/* =========================================================
   WORK IMAGE IMG
========================================================= */

.work-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: grayscale(100%) contrast(1.05);

  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.work-item:hover .work-image img {
  transform: scale(1.08);

  filter: grayscale(100%) contrast(1.2);
}

/* =========================================================
   WORK OVERLAY
========================================================= */

.work-overlay {
  position: absolute;

  inset: 0;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  padding: 13px;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 55%);

  color: white;

  opacity: 0;

  transform: translateY(8px);

  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: 3;
}

.work-item:hover .work-overlay {
  opacity: 1;

  transform: translateY(0);
}

.work-overlay span:first-child {
  font-size: 10px;

  padding: 6px 9px;

  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}

.work-overlay span:last-child {
  font-size: 20px;

  transition: transform 0.35s ease;
}

.work-item:hover .work-overlay span:last-child {
  transform: translate(4px, -4px) rotate(8deg);
}

/* =========================================================
   WORK INFO
========================================================= */

.work-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 7px 2px 0;

  font-size: 9px;

  text-transform: lowercase;

  color: #555;
}

.work-info span:last-child {
  color: #999;
}

/* =========================================================
   CATEGORY DESCRIPTION
========================================================= */

.category-description {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 25px;

  margin-top: 10px;

  padding: 12px;

  border: 1px dashed #999;
  border-radius: 7px;

  font-size: 10px;

  animation: fade-up 0.5s ease both;
}

.category-description span {
  font-size: 11px;
  font-weight: 500;
}

.category-description p {
  max-width: 260px;

  line-height: 1.7;

  color: #666;
}

/* =========================================================
   VIEW ALL BUTTON
========================================================= */

.view-all-button {
  width: calc(100% - 28px);

  margin: 4px 14px 14px;

  padding: 9px 15px;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 15px;

  background: var(--black);
  color: white;

  border-radius: 5px;

  font-size: 10px;

  position: relative;

  overflow: hidden;

  transition: transform 0.35s ease;
}

.view-all-button::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );

  transform: translateX(-120%);
}

.view-all-button:hover {
  transform: translateY(-3px);
}

.view-all-button:hover::before {
  animation: button-shine 0.7s ease;
}

@keyframes button-shine {
  to {
    transform: translateX(120%);
  }
}

.view-all-button span:last-child {
  transition: transform 0.4s ease;
}

.view-all-button:hover span:last-child {
  transform: translateX(7px);
}

/* =========================================================
   LOWER CONTENT GRID
========================================================= */

.lower-content-grid {
  display: grid;

  grid-template-columns:
    minmax(230px, 0.8fr)
    minmax(400px, 1.35fr)
    minmax(230px, 0.8fr);

  gap: 10px;

  margin-top: 10px;
}

/* =========================================================
   SKILLS
========================================================= */

.skills-card {
  min-height: 310px;
}

.skills-list {
  padding: 28px 16px 15px;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  padding: 9px 0;

  border-bottom: 1px dashed #ddd;

  font-size: 11px;

  transition:
    transform 0.35s ease,
    padding-left 0.35s ease;
}

.skill-row:last-child {
  border-bottom: none;
}

.skill-row:hover {
  transform: translateX(5px);

  padding-left: 4px;
}

.skill-name {
  display: flex;
  align-items: center;

  gap: 11px;
}

.skill-icon {
  width: 24px;
  height: 24px;

  display: grid;
  place-items: center;

  border: 1px solid #999;
  border-radius: 4px;

  font-size: 9px;

  transition:
    transform 0.4s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.skill-row:hover .skill-icon {
  background: var(--black);
  color: white;

  transform: rotate(-8deg) scale(1.1);
}

.skill-level {
  white-space: nowrap;

  font-size: 11px;

  letter-spacing: -2px;

  transition: transform 0.35s ease;
}

.skill-row:hover .skill-level {
  transform: scale(1.08);
}

/* =========================================================
   PIXEL CAT
========================================================= */

.pixel-cat {
  position: absolute;

  left: 50%;
  bottom: 8px;

  transform: translateX(-50%);

  font-family: monospace;

  font-size: 42px;

  animation: pixel-cat-float 3s ease-in-out infinite;
}

@keyframes pixel-cat-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-7px);
  }
}

/* =========================================================
   PLAYLIST
========================================================= */

.playlist-card {
  min-height: 310px;
}

.playlist-content {
  display: grid;

  grid-template-columns:
    1fr
    190px;

  gap: 18px;

  padding: 22px 15px 15px;
}

/* =========================================================
   PLAYLIST LIST
========================================================= */
.playlist-list {
  min-width: 0;
}

.song-item {
  width: 100%;

  display: grid;

  grid-template-columns:
    25px
    1fr
    80px;

  align-items: center;

  gap: 8px;

  padding: 9px 5px;

  border-bottom: 1px solid #eee;

  text-align: left;

  font-size: 10px;

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    padding-left 0.3s ease;
}

.song-item:hover {
  background: #f5f5f5;

  transform: translateX(3px);

  padding-left: 9px;
}

.song-item.active {
  background: #111;
  color: white;

  border-radius: 4px;

  padding-left: 9px;
}

.song-heart {
  font-size: 14px;

  transition: transform 0.4s ease;
}

.song-item:hover .song-heart {
  transform: scale(1.25) rotate(-8deg);
}

.song-title {
  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.song-artist {
  text-align: right;

  color: #888;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.song-item.active .song-artist {
  color: #bbb;
}

/* =========================================================
   MUSIC PLAYER
========================================================= */

.music-player {
  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;

  min-width: 0;
}

/* =========================================================
   PLAYER CONTROLS
========================================================= */

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 22px;

  margin-bottom: 9px;
}

.player-button {
  font-size: 13px;

  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.player-button:hover {
  transform: scale(1.25);

  opacity: 0.55;
}

.play-button {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border: 1px solid var(--black);
  border-radius: 50%;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.4s ease;
}

.play-button:hover {
  background: var(--black);
  color: white;

  transform: scale(1.12);
}

.play-button.playing {
  animation: play-pulse 1.4s ease-in-out infinite;
}

@keyframes play-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.18);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
  }
}

/* =========================================================
   ALBUM COVER
========================================================= */

.album-cover {
  width: 145px;
  aspect-ratio: 1;

  position: relative;

  overflow: hidden;

  border: 1px solid #777;
  border-radius: 6px;

  background: #eee;

  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.06);

  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.album-cover:hover {
  transform: rotate(2deg) translateY(-3px);

  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.08);
}

.album-cover img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: grayscale(100%) contrast(1.1);

  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.album-cover:hover img {
  transform: scale(1.07);
}

.cover-decoration {
  position: absolute;

  top: 7px;
  right: 8px;

  color: white;

  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);

  animation: sparkle-float 3s ease-in-out infinite;
}

/* =========================================================
   AUDIO VISUALIZER
========================================================= */

.audio-visualizer {
  width: 150px;

  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 3px;

  margin-top: 8px;
}

.audio-visualizer span {
  width: 3px;
  height: 8px;

  background: var(--black);

  border-radius: 2px;

  transform-origin: center;

  opacity: 0.35;
}

.music-player.playing .audio-visualizer span {
  animation: audio-wave 0.7s ease-in-out infinite alternate;
}

.audio-visualizer span:nth-child(1) {
  animation-delay: -0.2s;
}

.audio-visualizer span:nth-child(2) {
  animation-delay: -0.5s;
}

.audio-visualizer span:nth-child(3) {
  animation-delay: -0.1s;
}

.audio-visualizer span:nth-child(4) {
  animation-delay: -0.7s;
}

.audio-visualizer span:nth-child(5) {
  animation-delay: -0.3s;
}

.audio-visualizer span:nth-child(6) {
  animation-delay: -0.6s;
}

.audio-visualizer span:nth-child(7) {
  animation-delay: -0.15s;
}

.audio-visualizer span:nth-child(8) {
  animation-delay: -0.45s;
}

.audio-visualizer span:nth-child(9) {
  animation-delay: -0.25s;
}

.audio-visualizer span:nth-child(10) {
  animation-delay: -0.55s;
}

.audio-visualizer span:nth-child(11) {
  animation-delay: -0.35s;
}

.audio-visualizer span:nth-child(12) {
  animation-delay: -0.65s;
}

.audio-visualizer span:nth-child(13) {
  animation-delay: -0.1s;
}

.audio-visualizer span:nth-child(14) {
  animation-delay: -0.4s;
}

.audio-visualizer span:nth-child(15) {
  animation-delay: -0.2s;
}

@keyframes audio-wave {
  from {
    height: 5px;
    opacity: 0.3;
  }

  to {
    height: 27px;
    opacity: 1;
  }
}

/* =========================================================
   CURRENTLY
========================================================= */

.currently-card {
  min-height: 310px;
}

.currently-list {
  padding: 30px 16px 20px;
}

.currently-item {
  display: grid;

  grid-template-columns:
    27px
    1fr
    20px;

  align-items: center;

  gap: 8px;

  padding: 10px 0;

  border-bottom: 1px dashed #ddd;

  font-size: 11px;

  transition:
    transform 0.35s ease,
    padding-left 0.35s ease;
}

.currently-item:last-child {
  border-bottom: 0;
}

.currently-item:hover {
  transform: translateX(5px);

  padding-left: 5px;
}

.currently-icon {
  font-size: 16px;

  transition: transform 0.4s ease;
}

.currently-item:hover .currently-icon {
  transform: rotate(-10deg) scale(1.2);
}

.currently-plus {
  font-size: 18px;

  transition: transform 0.35s ease;
}

.currently-item:hover .currently-plus {
  transform: rotate(90deg) scale(1.2);
}

/* =========================================================
   CURRENTLY CAT
========================================================= */

.currently-cat {
  position: absolute;

  right: 24px;
  bottom: 9px;

  font-size: 42px;

  animation: currently-cat 3.5s ease-in-out infinite;
}

@keyframes currently-cat {
  0%,
  100% {
    transform: rotate(0);
  }

  50% {
    transform: translateY(-7px) rotate(-5deg);
  }
}

/* =========================================================
   SMALL RESPONSIVE FIX
========================================================= */

@media (max-width: 1050px) {
  .top-content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lower-content-grid {
    grid-template-columns: 1fr 1.4fr;
  }

  .currently-card {
    grid-column: 1 / -1;
  }

  .currently-list {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 0 30px;
  }

  .currently-cat {
    right: 30px;
  }
}
/* =========================================================
   MEDIA SECTION
========================================================= */

.media-section {
  margin-top: 10px;

  padding-bottom: 15px;

  background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #ffffff 100%);
}

/* =========================================================
   MEDIA GRID
========================================================= */

.media-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 15px;

  padding: 20px 15px 5px;
}

/* =========================================================
   VIDEO WRAPPER
========================================================= */

.video-wrapper {
  position: relative;

  overflow: hidden;

  border: 1px solid #888;

  border-radius: 8px;

  background: #111;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.video-wrapper:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   MEDIA TITLE
========================================================= */

.media-title {
  min-height: 38px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 12px;

  background: white;

  border-bottom: 1px solid #888;

  font-size: 10px;
}

.media-title span:last-child {
  color: #888;
}

/* =========================================================
   VIDEO
========================================================= */

.portfolio-video {
  width: 100%;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  background: #111;

  filter: grayscale(100%) contrast(1.05);

  transition:
    filter 0.5s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-wrapper:hover .portfolio-video {
  filter: grayscale(100%) contrast(1.15);

  transform: scale(1.015);
}

/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
  min-height: 300px;

  display: grid;

  grid-template-columns:
    1.2fr
    1fr
    0.9fr;

  gap: 10px;

  margin-top: 10px;

  padding: 15px;

  background: #151515;

  color: white;

  border: 1px solid var(--black);
  border-radius: 10px;

  position: relative;

  overflow: hidden;
}

/* =========================================================
   CONTACT BACKGROUND
========================================================= */

.contact-section::before {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);

  background-size: 45px 45px;

  pointer-events: none;

  opacity: 0.7;

  animation: contact-grid 20s linear infinite;
}

@keyframes contact-grid {
  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      45px 45px,
      45px 45px;
  }
}

/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {
  min-height: 245px;

  position: relative;

  background: white;

  color: #111;

  border-radius: 9px;

  padding: 55px 25px 20px;

  overflow: hidden;

  border: 1px solid #111;

  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
}

.contact-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   CONTACT LABEL
========================================================= */

.contact-label {
  position: absolute;

  left: 0;
  top: 0;

  margin: 0;

  border-radius: 0 0 8px 0;
}

/* =========================================================
   CONTACT TEXT
========================================================= */

.contact-text {
  margin-bottom: 18px;

  font-size: 12px;

  color: #555;
}

/* =========================================================
   CONTACT BUTTONS
========================================================= */

.contact-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.contact-button {
  min-width: 125px;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 10px 13px;

  border: 1px solid #888;

  border-radius: 7px;

  font-size: 11px;

  position: relative;

  overflow: hidden;

  transition:
    color 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

.contact-button::before {
  content: "";

  position: absolute;

  inset: 0;

  background: #111;

  transform: translateX(-102%);

  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: -1;
}

.contact-button:hover {
  color: white;

  border-color: #111;

  transform: translateY(-3px);
}

.contact-button:hover::before {
  transform: translateX(0);
}

.contact-icon {
  font-size: 16px;

  transition: transform 0.35s ease;
}

.contact-button:hover .contact-icon {
  transform: rotate(-10deg) scale(1.15);
}

/* =========================================================
   CONTACT DECORATION
========================================================= */

.contact-decoration {
  position: absolute;

  right: 20px;
  bottom: 18px;

  font-size: 26px;

  animation: contact-heart 3s ease-in-out infinite;
}

@keyframes contact-heart {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-8px) rotate(8deg);
  }
}

/* =========================================================
   THANK YOU PAPER
========================================================= */

.thank-you-card {
  min-height: 245px;

  position: relative;

  background:
    linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(0, 0, 0, 0.08) 28px
    );

  color: #111;

  border: 1px solid #111;

  padding: 50px 35px 25px;

  transform: rotate(-1deg);

  clip-path: polygon(
    0 0,
    100% 0,
    98% 96%,
    96% 100%,
    92% 97%,
    87% 100%,
    81% 97%,
    75% 100%,
    69% 97%,
    63% 100%,
    56% 97%,
    50% 100%,
    44% 97%,
    38% 100%,
    32% 97%,
    26% 100%,
    20% 97%,
    14% 100%,
    8% 97%,
    2% 100%
  );

  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.thank-you-card:hover {
  transform: rotate(0deg) translateY(-5px);
}

/* =========================================================
   PAPER HOLES
========================================================= */

.paper-holes {
  position: absolute;

  top: 10px;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-around;

  padding: 0 20px;
}

.paper-holes span {
  width: 11px;
  height: 11px;

  border: 1px solid #888;

  border-radius: 50%;

  background: white;
}

/* =========================================================
   THANK YOU TEXT
========================================================= */

.thank-you-text {
  position: relative;

  max-width: 260px;

  margin: auto;

  font-size: 12px;

  line-height: 2.3;

  text-align: left;
}

.thank-you-text p {
  transition: transform 0.35s ease;
}
.thank-you-card:hover .thank-you-text p:nth-child(1) {
  transform: translateX(4px);
}

.thank-you-card:hover .thank-you-text p:nth-child(2) {
  transform: translateX(8px);
}

.thank-you-card:hover .thank-you-text p:nth-child(3) {
  transform: translateX(4px);
}

.thank-you-card:hover .thank-you-text p:nth-child(4) {
  transform: translateX(10px);
}

.mini-hearts {
  margin-top: 8px;

  font-size: 17px;
}

/* =========================================================
   PAPER STAR
========================================================= */

.paper-star {
  position: absolute;

  right: 28px;
  bottom: 32px;

  font-size: 35px;

  animation: paper-star-animation 4s ease-in-out infinite;
}

@keyframes paper-star-animation {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }

  50% {
    transform: rotate(25deg) scale(1.15);
  }
}

/* =========================================================
   CONTACT CHARACTER
========================================================= */

.contact-character {
  min-height: 245px;

  position: relative;

  display: flex;

  align-items: flex-end;
  justify-content: center;

  overflow: hidden;
}

.contact-character img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center bottom;

  filter: grayscale(100%) contrast(1.08);

  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}

.contact-character:hover img {
  transform: scale(1.06) translateY(-5px);

  filter: grayscale(100%) contrast(1.2);
}

/* =========================================================
   CHARACTER FLOWER
========================================================= */

.character-flower {
  position: absolute;

  right: 10px;
  bottom: 20px;

  font-size: 45px;

  animation: flower-float 4s ease-in-out infinite;
}

@keyframes flower-float {
  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }

  50% {
    transform: rotate(8deg) translateY(-10px);
  }
}

/* =========================================================
   CONTACT DECORATIVE STARS
========================================================= */

.contact-section::after {
  content: "✦     ♡     ✧";

  position: absolute;

  right: 30px;
  top: 15px;

  font-size: 20px;

  letter-spacing: 15px;

  opacity: 0.8;

  animation: contact-stars 5s ease-in-out infinite;
}

@keyframes contact-stars {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.45;
  }

  50% {
    transform: translateX(-12px);
    opacity: 1;
  }
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  min-height: 48px;

  display: grid;

  grid-template-columns:
    1fr
    1fr
    1fr;

  align-items: center;

  padding: 0 18px;

  margin-top: 10px;

  background: #111;

  color: white;

  border: 1px solid #111;

  border-radius: 8px 8px 0 0;

  font-size: 10px;
}

/* =========================================================
   FOOTER LEFT
========================================================= */

.footer-left {
  display: flex;
  align-items: center;

  gap: 5px;

  color: #aaa;
}

.footer-heart {
  color: white;

  font-size: 14px;

  animation: footer-heart 2s ease-in-out infinite;
}

@keyframes footer-heart {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}

/* =========================================================
   FOOTER CENTER
========================================================= */

.footer-center {
  text-align: center;

  color: #aaa;
}

/* =========================================================
   FOOTER RIGHT
========================================================= */

.footer-right {
  display: flex;

  justify-content: flex-end;

  gap: 15px;
}

.footer-right button {
  font-size: 16px;

  color: white;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.footer-right button:hover {
  transform: translateY(-2px) scale(1.15);

  opacity: 0.55;
}

/* =========================================================
   GLOBAL IMAGE HOVER
========================================================= */

img {
  user-select: none;
}

/* =========================================================
   SELECTION
========================================================= */

::selection {
  background: #111;
  color: white;
}

/* =========================================================
   CUSTOM SCROLLBAR
========================================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
  background: #111;

  border-radius: 10px;

  border: 2px solid #f4f4f4;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* =========================================================
   FOCUS
========================================================= */

button:focus-visible,
a:focus-visible {
  outline: 2px solid #111;

  outline-offset: 3px;
}

/* =========================================================
   EXTRA FLOATING DECORATIONS
========================================================= */

.content-card::after {
  pointer-events: none;
}

/* =========================================================
   SMOOTH HOVER ON ALL CARDS
========================================================= */

.content-card,
.video-wrapper,
.contact-card,
.thank-you-card,
.hero-card {
  will-change: transform;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .site {
    width: min(100% - 14px, 1000px);

    margin: 7px auto;
  }

  /* HEADER */

  .window-header {
    grid-template-columns:
      100px
      1fr
      100px;

    padding: 0 12px;
  }

  .main-navigation {
    gap: 25px;
  }

  .nav-link {
    font-size: 12px;
  }

  /* HERO */

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

  .hero-content {
    padding: 45px 30px;
  }

  .hero-title {
    font-size: 52px;
  }

  /* TOP */

  .top-content-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns:
      250px
      1fr;

    justify-content: center;
  }

  /* LOWER */

  .lower-content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .playlist-card {
    grid-column: span 2;
  }

  .currently-card {
    grid-column: span 2;
  }

  /* CONTACT */

  .contact-section {
    grid-template-columns: 1fr 1fr;
  }

  .contact-character {
    grid-column: span 2;
    min-height: 300px;
  }

  .contact-character img {
    max-height: 330px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
  body {
    font-size: 12px;
  }

  .site {
    width: calc(100% - 10px);

    margin: 5px auto;
  }

  /* HEADER */

  .window-header {
    height: 52px;

    grid-template-columns:
      65px
      1fr
      55px;

    padding: 0 8px;

    top: 5px;
  }

  .window-controls {
    gap: 5px;
  }

  .window-control {
    font-size: 18px;
  }

  .header-icons {
    gap: 7px;
  }

  .icon-button {
    font-size: 18px;
  }

  .main-navigation {
    gap: 11px;

    overflow-x: auto;

    justify-content: center;
    scrollbar-width: none;
  }

  .main-navigation::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 9px;

    white-space: nowrap;
  }

  /* HERO */

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;

    display: flex;

    flex-direction: column;
  }

  .hero-card {
    order: 2;

    margin: 0 10px 10px;

    min-height: 400px;
  }

  .hero-character {
    order: 1;

    min-height: 390px;

    border-bottom: 1px solid #111;
  }

  .hero-image {
    object-fit: contain;
  }

  .hero-side-buttons {
    right: 10px;
    top: 12px;
  }

  .side-button {
    width: 40px;
    height: 42px;

    font-size: 18px;
  }

  .hero-content {
    padding: 48px 28px 30px;
  }

  .hero-small-text {
    font-size: 20px;
  }

  .hero-title {
    font-size: 48px;

    letter-spacing: -3px;
  }

  .hero-description {
    font-size: 11px;
  }

  .hero-cat {
    font-size: 38px;
  }

  /* TOP CONTENT */

  .top-content-grid {
    display: flex;

    flex-direction: column;
  }

  .about-content {
    grid-template-columns: 1fr;

    padding: 30px 20px 25px;
  }

  .about-image-wrapper {
    width: 190px;
  }

  .about-text {
    max-width: none;

    text-align: center;

    margin: auto;
  }

  /* WORKS */

  .works-filters {
    overflow-x: auto;

    flex-wrap: nowrap;

    scrollbar-width: none;
  }

  .works-filters::-webkit-scrollbar {
    display: none;
  }

  .work-filter {
    flex-shrink: 0;
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;

    gap: 7px;
  }

  .work-info {
    font-size: 8px;
  }

  .category-description {
    flex-direction: column;

    gap: 5px;
  }

  /* LOWER */

  .lower-content-grid {
    display: flex;

    flex-direction: column;
  }

  .playlist-card,
  .currently-card {
    grid-column: auto;
  }

  /* PLAYLIST */

  .playlist-content {
    grid-template-columns: 1fr;
  }

  .music-player {
    padding-top: 10px;
  }

  .album-cover {
    width: 130px;
  }

  .song-item {
    grid-template-columns:
      24px
      1fr
      70px;
  }

  /* MEDIA */

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

  /* CONTACT */

  .contact-section {
    grid-template-columns: 1fr;

    padding: 10px;
  }

  .contact-card,
  .thank-you-card,
  .contact-character {
    grid-column: auto;
  }

  .contact-character {
    min-height: 300px;
  }

  .contact-section::after {
    right: 10px;

    font-size: 14px;

    letter-spacing: 6px;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }

  /* FOOTER */

  .site-footer {
    grid-template-columns: 1fr;

    gap: 5px;

    padding: 12px;

    text-align: center;
  }

  .footer-left,
  .footer-right {
    justify-content: center;
  }
}

/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {
  .hero-character {
    min-height: 320px;
  }

  .hero-card {
    min-height: 380px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-small-text {
    font-size: 18px;
  }

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

  .works-filters {
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-label {
    font-size: 14px;
  }

  .playlist-content {
    padding: 20px 10px 15px;
  }

  .song-item {
    grid-template-columns:
      22px
      1fr
      58px;

    font-size: 9px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   END OF STYLE.CSS
========================================================= */
