:root {
  --bg-color: #e0e5ec;
  --shadow-dark: #b8bfc9;
  --shadow-light: #ffffff;
}

body {
  background-color: var(--bg-color);
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

/* Grainy Filter Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.neumorphic-box {
  position: relative;
  width: 300px;
  height: 300px;
  background: var(--bg-color);
  border-radius: 50px;
  box-shadow: 20px 20px 60px var(--shadow-dark),
    -20px -20px 60px rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.neumorphic-box:hover {
  box-shadow: 10px 10px 30px var(--shadow-dark),
    -10px -10px 30px rgba(255, 255, 255, 0.8);
  transform: scale(0.99);
}

#pixel-field {
  position: absolute;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pixel {
  position: absolute;
  opacity: 0;
  animation: sparkle var(--duration) ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) translateY(0);
  }
  50% {
    opacity: var(--max-opacity);
    transform: scale(1.1) translateY(var(--move-y));
  }
}

.inner-content {
  color: #718096;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  z-index: 10;
  background: var(--bg-color);
  padding: 6px 16px;
  border-radius: 8px;
  user-select: none;
  transition: color 0.2s;
}

.inner-content:hover {
  color: #2d3748;
}

/* Decorative elements */
.decoration-element {
  background-color: #000000;
  border-radius: 4px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.decoration-square:hover {
  width: 80px;
  opacity: 0.2;
}

/* Vertical side rectangle */
.side-rectangle {
  width: 4px;
  height: 180px;
  opacity: 0.05;
}

.side-rectangle:hover {
  height: 240px;
  opacity: 0.15;
}

/* Works list styling */
.works-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #718096;
}

.work-item {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.work-item:hover {
  opacity: 1;
  color: #000000;
  letter-spacing: 0.35em;
}

.separator {
  width: 20px;
  height: 1px;
  background-color: #000000;
  opacity: 0.1;
  margin: 0.25rem 0;
}

/* 3-Bar Button Styling */
.bar-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  margin-top: 0.5rem;
  transition: transform 0.3s ease;
  z-index: 20;
}

.bar {
  width: 16px;
  height: 2px;
  background-color: #000000;
  opacity: 0.1;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.bar-button:hover .bar {
  width: 24px;
  opacity: 0.3;
}

.bar-button:hover .bar:nth-child(2) {
  width: 18px;
}

.bar-button:active {
  transform: scale(0.9);
}

/* Preview Section */
.preview-container {
  display: flex;
  justify-content: space-evenly;
  width: 100vw;
  max-width: 1200px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 0 20px;
  margin-top: 0;
}

.preview-container.active {
  opacity: 1;
  max-height: 200px;
  margin-top: 1rem;
  overflow: visible;
  padding-top: 10px;
}

.preview-item {
  height: 80px;
  flex: 1;
  max-width: 280px;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  margin: 0 10px;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.cm-mute-logo {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Fullscreen Expansion Styles - Reduced blur to 4px */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(224, 229, 236, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

#modal-content {
  width: 500px;
  height: 250px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9) translateY(10px);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#modal-overlay.show #modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  opacity: 0.2;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 10;
}

.modal-close:hover {
  opacity: 0.5;
}
