/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ✅ Prevent horizontal scroll & enable vertical scroll */
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100vh;
  background-image: url('assets/images/construction.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Overlay for dimming */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* Panel layout */
.panel-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
  padding: 40px;
  max-width: 900px;
  width: 95%;
}

/* Panels */
.panel {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.title-panel {
  width: 100%;
  padding: 30px 40px;
}

.title-panel h1 {
  font-size: 3rem;
  color: #ffcc00;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  letter-spacing: 1.5px;
}

.detail-panel {
  width: 100%;
  padding: 40px;
}

.detail-panel p {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 20px;
  line-height: 1.8;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

/* Pushable Button */
.pushable {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  width: 220px;
  height: 60px;
}

.shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

.edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    hsl(50deg 100% 20%) 0%,
    hsl(50deg 100% 35%) 8%,
    hsl(50deg 100% 35%) 92%,
    hsl(50deg 100% 20%) 100%
  );
}

.front {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: bold;
  color: black;
  background: hsl(50deg 100% 50%);
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
  z-index: 2;
}

.pushable:hover {
  filter: brightness(110%);
}

.pushable:hover .front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.pushable:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

/* Sparkle Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.1);
  animation: sparkleExpand 1200ms ease-out forwards;
  z-index: 10;
}

@keyframes sparkleExpand {
  0% {
    opacity: 1;
    transform: scale(0.1);
    filter: blur(2px);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.2);
    filter: blur(3px);
  }
  100% {
    opacity: 0;
    transform: scale(3);
    filter: blur(6px);
  }
}

/* 📱 Mobile Fade-to-Black Effect */
@media (max-width: 768px) {
  body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    background: linear-gradient(to bottom, transparent, black);
    pointer-events: none;
    z-index: 5;
  }
}
/* Mobile: fade bottom to black instead of full black */
@media (max-width: 768px) {
  body {
    background: 
      linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,1) 100%),
      url('assets/images/construction.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
