/* ===== RESET & BASE ===== */
body {
  margin: 0;
  overflow: hidden;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: #000;
}

/* ===== OVERLAY (buttons + logo) ===== */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* allow clicks to pass to canvas if needed */
}

.overlay > * {
  pointer-events: auto;
}

/* ===== BUTTONS ===== */
.buttons {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
  animation: fadeSlideIn 1.2s ease-out;
}

.template-btn {
  padding: 16px 34px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(10, 20, 40, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 60px;
  cursor: pointer;
  position: relative;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15),
              inset 0 0 10px rgba(0, 255, 255, 0.05);
}

/* Animated border glow on hover */
.template-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 62px;
  background: linear-gradient(135deg, #00ffff, #ff00ff, #00ffff);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s;
  filter: blur(8px);
}

.template-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.6),
              inset 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.02);
}
.template-btn:hover::after {
  opacity: 0.6;
}

.template-btn:active {
  transform: scale(0.96);
}

/* ===== LOGO ===== */
.logo-container {
  animation: fadeSlideIn 1.8s ease-out;
}

.logo {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, 0.5))
          drop-shadow(0 0 40px rgba(0, 255, 255, 0.25));
  transition: transform 0.5s ease, filter 0.5s ease;
}

.logo:hover {
  transform: perspective(600px) rotateY(8deg) scale(1.02);
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.8))
          drop-shadow(0 0 60px rgba(0, 255, 255, 0.4));
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .buttons {
    gap: 25px;
    margin-bottom: 50px;
  }
  .template-btn {
    font-size: 17px;
    padding: 14px 28px;
  }
  .logo {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .buttons {
    flex-direction: column;
    gap: 20px;
    width: 90%;
  }
  .template-btn {
    width: 100%;
    font-size: 16px;
    padding: 14px 18px;
  }
  .logo {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .buttons {
    gap: 15px;
  }
  .template-btn {
    font-size: 15px;
    padding: 12px 16px;
  }
  .logo {
    max-width: 220px;
  }
}