/* style.css - Premium Glassmorphism UI */

:root {
  --mouse-x: 0px;
  --mouse-y: 0px;
}

body {
  /* Prevent horizontal scroll from glow elements */
  overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(15, 15, 17, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.glass-nav {
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 21st.dev Style Hover Cards */
.hover-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hover-card:hover {
  border-color: rgba(197, 160, 89, 0.3); /* Gold tint on hover */
  transform: translateY(-4px);
}

.hover-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(197, 160, 89, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 10;
}

.hover-card:hover::before {
  opacity: 1;
}

/* Text Gradients */
.gradient-text {
  background: linear-gradient(to right, #E8CA88, #C5A059, #A88645);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-glow {
  text-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
}

/* Custom Buttons */
.btn-primary {
  background: linear-gradient(135deg, #C5A059 0%, #A88645 100%);
  color: #000;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5);
  background: linear-gradient(135deg, #E8CA88 0%, #C5A059 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(197, 160, 89, 0.5);
}

/* Base Form Styling */
.input-glass {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.input-glass:focus {
  border-color: #C5A059;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.input-glass::placeholder {
  color: #666;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Tab Active State */
.tab-btn {
  position: relative;
  transition: color 0.3s ease;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #C5A059;
  transition: width 0.3s ease;
}
.tab-btn.active {
  color: #C5A059;
}
.tab-btn.active::after {
  width: 100%;
}

.menu-content {
  display: none;
  animation: fadeIn 0.5s ease;
}
.menu-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide scrollbar for tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
