* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: black!important;
}

.prov{
  min-height: 100vh;
  background-color: black!important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  max-width: 62.5rem;
  width: 100%;
}
 

/* Liquid glass effect class */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
}

.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  backdrop-filter: blur(1px);
  box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
    inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
  opacity: 0.6;
  z-index: -1;
  filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
  pointer-events: none;
}

/* Content style */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  margin-bottom: 0.9375rem;
}

.icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon::after {
  border-radius: 0.625rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.card-subtitle {
  font-size: 1.1rem;
  color: white;
  margin: 0.3125rem 0 0 0;
}

.card-content {
  color: white;
  line-height: 1.6;
}

.card-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.938rem;
  margin-top: 0.938rem;
}

.card-content-icon {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.btn-glass {
  position: relative;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.9375rem;
  display: inline-block;
  text-decoration: none;
}

.btn-glass::after {
  border-radius: 0.75rem;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Musical Widget */
.music-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  padding: 0.9375rem;
  border-radius: 0.9375rem;
  margin-top: 0.9375rem;
}

.music-widget::after {
  border-radius: 0.9375rem;
}

.album-cover {
  width: 3.125rem;
  height: 3.125rem;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.play-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 550) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* LIQUID GLASS STYLES */

.liquidGlass-wrapper {
  position: relative;
  display: flex;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.liquidGlass-effect {
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  overflow: hidden;
}

.liquidGlass-tint {
  z-index: 1;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.50);
}

.liquidGlass-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}

.liquidGlass-text {
  z-index: 3;
  font-size: 2rem;
  color: black;
}

/* OTHER STYLES */

/* Page base. Using solid black background as requested. */
body {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #000000;
  background-color: #000000;
  color: #ffffff; /* ensure readable text on black */
  font-family: sans-serif;
  font-weight: 300;
}

a {
  text-decoration: none;
}

.wrapper {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* sopra le card */
}

.dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 0.6rem;
}

/* NOTE: You need to duplicate styles onto the child `div`s (`> div`) so that the glass wrapper and all the layers are affected in the same way.  */
.dock,
.dock > div {
  border-radius: 2rem;
}

.dock:hover {
  padding: 0.8rem;
  border-radius: 2.5rem;
}
.dock:hover > div {
  border-radius: 2.5rem;
}

.dock img {
  width: 75px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
  cursor: pointer;
  border-radius: 20px;
}

.dock img:hover {
  transform: scale(0.95);
  transform-origin: center center;
}

@keyframes moveBackground {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 0% -1500%;
  }
}

/* --- MOBILE RESPONSIVE IMPROVEMENTS --- */
@media (max-width: 700px) {
  body {
    padding: 0.5rem;
    height: auto;
    min-height: 100vh;
    flex-direction: column;
  }
  .container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100vw;
    padding: 0.5rem;
  }
  .glass,
  .liquidGlass-wrapper {
    border-radius: 1rem;
    padding: 0.75rem;
    font-size: 1rem;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .card-subtitle {
    font-size: 1rem;
  }
  .card-content-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .music-widget {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .album-cover {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  .play-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  .wrapper {
    bottom: 10px;
    gap: 12px;
  }
  .dock {
    gap: 4px;
    padding: 0.4rem;
  }
  .dock img {
    width: 48px;
    border-radius: 12px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .glass,
  .liquidGlass-wrapper {
    padding: 0.4rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .wrapper {
    gap: 6px;
    bottom: 4px;
  }
  .dock img {
    width: 36px;
    border-radius: 8px;
  }
}

/* Glass Navigation Container */
.glass-nav {
  --bg-color: rgba(255, 255, 255, 0.25);
  --highlight: rgba(255, 255, 255, 0.75);
  --text: #ffffff;

  /* fixed, centered at the top */
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 720px;
  z-index: 1100;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

/* prevent page content from being hidden under the fixed navbar */
html {
  scroll-padding-top: 92px;
}

body {
  padding-top: 72px;
}

@media (max-width: 700px) {
  .glass-nav {
    top: 10px;
    width: calc(100% - 20px);
    max-width: 100%;
    border-radius: 10px;
  }
  body {
    padding-top: 64px;
  }
}

.glass-filter,
.glass-overlay,
.glass-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.glass-filter {
  z-index: 1;
  backdrop-filter: blur(4px);
  filter: url(#glass-distortion) saturate(120%) brightness(1.15);
}

.glass-overlay {
  z-index: 2;
  background: var(--bg-color);
}

.glass-specular {
  z-index: 3;
  box-shadow: inset 1px 1px 1px var(--highlight);
}

.glass-content {
  position: relative;
  z-index: 4;
  padding: 16px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav-item {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  .glass-nav {
    --bg-color: rgba(0, 0, 0, 0.25);
    --highlight: rgba(255, 255, 255, 0.15);
  }
}