* {
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

.navigation {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: fit-content;
}
.navigation__toggle {
  display: none;
  left: -100%;
  position: absolute;
  top: -100%;
}
.navigation__toggle:checked ~ .navigation__menu {
  max-height: 100%;
}
.navigation__toggle:checked ~ .navigation__icon .navigation__icon-line {
  background: transparent;
}
.navigation__toggle:checked ~ .navigation__icon .navigation__icon-line::before {
  transform: rotate(-45deg);
}
.navigation__toggle:checked ~ .navigation__icon .navigation__icon-line::after {
  transform: rotate(45deg);
}
.navigation__toggle:checked ~ .navigation__icon .navigation__icon-line::before, .navigation__toggle:checked ~ .navigation__icon .navigation__icon-line::after {
  top: 0;
}
.navigation__icon {
  align-items: baseline;
  cursor: pointer;
  display: flex;
  grid-area: hamburger;
  justify-content: flex-start;
  padding: 30px 20px 30px 0;
  position: relative;
  user-select: none;
  visibility: visible;
}
.navigation__icon-line {
  background: #fff;
  display: block;
  height: 2px;
  position: relative;
  width: 18px;
}
.navigation__icon-line::before {
  top: 5px;
}
.navigation__icon-line::after {
  top: -5px;
}
.navigation__icon-line::before, .navigation__icon-line::after {
  background: #fff;
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  transition: all 0.2s ease-out;
  width: 100%;
}
.navigation__menu {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  grid-area: nav;
  justify-content: space-between;
  margin: 0;
  max-height: 0;
  max-width: unset;
  overflow: hidden;
  padding: 0;
  transition: all 0.2s ease-out;
}
.navigation__item {
  background-color: transparent;
  color: #fff;
  display: inline-block;
  flex: 1 1 0;
  padding: 10px 10px;
  text-decoration: none;
  transition: all 0.2s ease-out;
  width: 100%;
}
.navigation__item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header {
  background: #333;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 1em;
}
.header__nav {
  margin: 0;
  padding: 0;
}
.header__nav-link {
  margin-right: 1em;
  color: #ddd;
  text-decoration: none;
}
.header__title {
  margin: 0;
}

.main {
  padding: 2em;
}

.section {
  margin-bottom: 3em;
}
.section__title {
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5em;
}
.section__description {
  color: rgb(102, 102, 102);
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 2em;
}
.section__description-code {
  background: rgb(244, 244, 244);
  border-radius: 4px;
  color: rgb(231, 76, 60);
  font-family: "Courier New", monospace;
  padding: 0.2em 0.4em;
}

.sin-cos-menu {
  margin: 3em 0;
}
.sin-cos-menu__nav {
  background: linear-gradient(135deg, rgb(206, 212, 218) 0%, rgb(173, 181, 189) 100%);
  margin: 2em 0;
  padding: 2em;
}
@media (max-width: 480px) {
  .sin-cos-menu__nav {
    padding: 4em 2em;
  }
}
.sin-cos-menu__nav-title {
  color: rgb(51, 51, 51);
  font-size: 1.5em;
  margin-bottom: 2em;
  text-align: center;
  text-shadow: none;
}

.circular-menu {
  --radius: 120px;
  height: 300px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  width: 300px;
}
@media (max-width: 768px) {
  .circular-menu {
    --radius: 100px;
    height: 250px;
    width: 250px;
  }
}
@media (max-width: 480px) {
  .circular-menu {
    --radius: 80px;
    height: 200px;
    width: 200px;
  }
}
.circular-menu__item {
  --rotation: calc(360deg / var(--total) * var(--i));
  animation: fadeInUp 0.6s ease-out calc(var(--i) * 0.1s) both;
  height: 60px;
  left: 50%;
  margin: -30px 0 0 -30px;
  position: absolute;
  top: 50%;
  transform: translateX(calc(cos(var(--rotation)) * var(--radius))) translateY(calc(sin(var(--rotation)) * var(--radius)));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 60px;
}
.circular-menu__item--active {
  z-index: 10;
}
.circular-menu__item--active .circular-menu__link:hover {
  background: color-mix(in srgb, rgba(102, 126, 234, 0.9) 90%, white);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}
.circular-menu__item--active .circular-menu__link {
  background: rgba(102, 126, 234, 0.9);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}
.circular-menu__item--collapsed {
  opacity: 0.3 !important;
  pointer-events: none !important;
  transform: translateX(0) translateY(0) !important;
}
.circular-menu__item--collapsed .circular-menu__link {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: scale(0.8);
}
.circular-menu__item--collapsing {
  animation: slideToCenter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
}
.circular-menu__item--expanding {
  animation: slideFromCenter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
}
.circular-menu__item--initialized {
  animation: none !important;
}
@media (max-width: 768px) {
  .circular-menu__item {
    height: 50px;
    margin: -25px 0 0 -25px;
    width: 50px;
  }
}
@media (max-width: 480px) {
  .circular-menu__item {
    height: 50px;
    margin: -22.5px 0 0 -22.5px;
    width: 50px;
  }
}
.circular-menu__link {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(134, 154, 134, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: rgb(255, 255, 255);
  display: flex;
  font-size: 0.75em;
  font-weight: 600;
  height: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
@media (max-width: 480px) {
  .circular-menu__link {
    font-size: 0.7em;
  }
}
.circular-menu__link:hover {
  background: rgb(255, 255, 255);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: color-mix(in srgb, rgba(134, 154, 134, 0.9) 90%, white);
  transform: scale(1.1);
}
.circular-menu__link:active {
  transform: scale(0.95);
}
.circular-menu__center {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}
.circular-menu__center-btn {
  align-items: center;
  background-color: rgb(212, 67, 52);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 1em;
  height: 60px;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 60px;
}
@media (max-width: 480px) {
  .circular-menu__center-btn {
    font-size: 0.75em;
    height: 50px;
    width: 50px;
  }
}
.circular-menu__center-btn:hover {
  background: color-mix(in srgb, rgb(212, 67, 52) 90%, white);
  box-shadow: 0 10px 30px rgba(192, 57, 43, 0.6);
  transform: scale(1.1);
}
.circular-menu__center-btn:active {
  transform: scale(0.95);
}
.circular-menu__center-btn--expanded {
  background: rgb(30, 132, 73);
}
.circular-menu__center-btn--expanded:hover {
  background: color-mix(in srgb, rgb(30, 132, 73) 90%, white);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(calc(cos(var(--rotation)) * var(--radius))) translateY(calc(sin(var(--rotation)) * var(--radius) + 20px));
  }
  to {
    opacity: 1;
    transform: translateX(calc(cos(var(--rotation)) * var(--radius))) translateY(calc(sin(var(--rotation)) * var(--radius)));
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes slideToCenter {
  0% {
    transform: translateX(calc(cos(var(--rotation)) * var(--radius))) translateY(calc(sin(var(--rotation)) * var(--radius))) scale(1);
    opacity: 1;
    z-index: 1;
  }
  70% {
    transform: translateX(calc(cos(var(--rotation)) * var(--radius) * 0.1)) translateY(calc(sin(var(--rotation)) * var(--radius) * 0.1)) scale(0.9);
    opacity: 1;
    z-index: 1;
  }
  100% {
    transform: translateX(0) translateY(0) scale(0.8);
    opacity: 0;
    z-index: -1;
  }
}
@keyframes slideFromCenter {
  0% {
    transform: translateX(0) translateY(0) scale(0.8);
    opacity: 0;
    z-index: -1;
  }
  30% {
    transform: translateX(calc(cos(var(--rotation)) * var(--radius) * 0.1)) translateY(calc(sin(var(--rotation)) * var(--radius) * 0.1)) scale(0.9);
    opacity: 1;
    z-index: 1;
  }
  100% {
    transform: translateX(calc(cos(var(--rotation)) * var(--radius))) translateY(calc(sin(var(--rotation)) * var(--radius))) scale(1);
    opacity: 1;
    z-index: 1;
  }
}
:root {
  --bg: hsl(238 22% 10%);
  --panel: hsl(238 22% 14%);
  --text: hsl(0 0% 98%);
  --accent: hsl(266 100% 70%);
}

.tilt-card-section {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
.tilt-card-section__cards {
  background: radial-gradient(1200px 600px at 80% -100px, hsla(266, 100%, 20%, 0.4), transparent 60%), radial-gradient(800px 400px at -20% 120%, hsla(200, 100%, 20%, 0.35), transparent 60%), var(--bg);
  color: var(--text);
  display: flex;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  gap: 20px;
  margin: 0;
  padding: clamp(24px, 3vw, 48px);
  place-items: center;
}
@media (max-width: 480px) {
  .tilt-card-section__cards {
    flex-direction: column;
  }
}
.tilt-card-section__wrapper {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  width: min(1100px, 100%);
}
.tilt-card-section__demo {
  perspective: 1000px;
}

.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  --tz: 0px;
  --glow: 0.35;
  background: linear-gradient(180deg, hsl(238, 22%, 18%), hsl(238, 22%, 12%));
  border-radius: 20px;
  box-shadow: 0 20px 40px hsla(238, 50%, 4%, 0.6), inset 0 0 0 1px hsla(0, 0%, 100%, 0.04);
  flex: 1;
  min-height: 220px;
  outline: none;
  padding: 28px;
  position: relative;
  transform: translateZ(var(--tz)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.35s ease;
  isolation: isolate;
}
.tilt-card::before {
  background: radial-gradient(600px 200px at 0% -10%, hsla(0, 0%, 100%, 0.12), transparent 60%), radial-gradient(400px 160px at 120% 110%, hsla(0, 0%, 100%, 0.06), transparent 60%);
  border-radius: inherit;
  content: "";
  filter: saturate(calc(1 + var(--glow)));
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  transform: translateZ(1px);
}
.tilt-card::after {
  border-radius: inherit;
  box-shadow: inset 0 0 80px hsl(266, 100%, 60%, calc(0.15 * var(--glow)));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateZ(2px);
}
.tilt-card__title {
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 8px 0 8px;
}
.tilt-card__text {
  color: hsla(0, 0%, 90%, 0.8);
  margin: 0;
}
.tilt-card__tag {
  background: hsla(266, 100%, 64%, 0.14);
  border: 1px solid hsla(266, 100%, 70%, 0.25);
  border-radius: 100px;
  color: hsl(266, 100%, 80%);
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  transform: translateZ(8px);
}
.tilt-card__zones {
  border-radius: inherit;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 10;
  pointer-events: none;
}
.tilt-card__zone {
  block-size: 100%;
  inline-size: 100%;
  pointer-events: auto;
  position: relative;
}
.tilt-card__zone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: auto;
}
.tilt-card__zone:where(:hover) {
  cursor: pointer;
}
.tilt-card--simple:hover, .tilt-card--simple:focus-visible {
  --rx: 10deg;
  --ry: -10deg;
  --tz: 10px;
  --glow: 0.9;
  background: linear-gradient(180deg, hsl(250, 30%, 22%), hsl(240, 30%, 12%));
  box-shadow: 0 30px 60px hsla(260, 80%, 40%, 0.25), 0 10px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced {
  --rx: 0deg;
  --ry: 0deg;
  --tz: 0px;
  --glow: 0.5;
}
.tilt-card--advanced:hover {
  --tz: 8px;
  --glow: 0.9;
}
.tilt-card--advanced:has(.tilt-card__zone--top-left:hover) {
  --rx: 10deg;
  --ry: -10deg;
  box-shadow: 0 30px 60px hsla(260, 80%, 40%, 0.25), 0 10px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--top-center:hover) {
  --rx: 10deg;
  --ry: 0deg;
  box-shadow: 0 30px 60px hsla(260, 80%, 40%, 0.25), 0 10px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--top-right:hover) {
  --rx: 10deg;
  --ry: 10deg;
  box-shadow: 0 30px 60px hsla(260, 80%, 40%, 0.25), 10px 10px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--middle-left:hover) {
  --rx: 0deg;
  --ry: -10deg;
  box-shadow: 0 30px 60px hsla(260, 80%, 40%, 0.25), -10px 10px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--middle-center:hover) {
  --rx: 0deg;
  --ry: 0deg;
  box-shadow: 0 30px 60px hsla(260, 80%, 40%, 0.25), 0 10px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--middle-right:hover) {
  --rx: 0deg;
  --ry: 10deg;
  box-shadow: 0 30px 60px hsla(260, 80%, 40%, 0.25), 10px 10px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--bottom-left:hover) {
  --rx: -10deg;
  --ry: -10deg;
  box-shadow: 0 20px 40px hsla(260, 80%, 40%, 0.25), -10px 0px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--bottom-center:hover) {
  --rx: -10deg;
  --ry: 0deg;
  box-shadow: 0 20px 40px hsla(260, 80%, 40%, 0.25), 0 0px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--bottom-right:hover) {
  --rx: -10deg;
  --ry: 10deg;
  box-shadow: 0 20px 40px hsla(260, 80%, 40%, 0.25), 10px 0px 20px hsla(260, 100%, 60%, 0.25), inset 0 0 0 1px hsla(0, 0%, 100%, 0.06);
}
.tilt-card--advanced:has(.tilt-card__zone--top-left:hover)::before {
  background: radial-gradient(600px 200px at 0% -10%, hsla(0, 0%, 100%, 0.2), transparent 60%), radial-gradient(400px 160px at 120% 110%, hsla(0, 0%, 100%, 0.04), transparent 60%);
}
.tilt-card:focus-visible {
  outline: 3px solid hsla(266, 100%, 70%, 0.65);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card {
    transform: none !important;
    transition: none;
  }
  .tilt-card__zones {
    display: none;
  }
}

/*# sourceMappingURL=style.css.map */
