/* ============================================
   IntelliDreams — The Great Convergence
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #08080f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a84c, #2dd4bf);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e8c565, #5eead4);
}

/* ---- Typography ---- */

.font-heading {
  font-family: 'Instrument Serif', serif;
}

.font-body {
  font-family: 'Sora', sans-serif;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #c9a84c 0%, #e8c565 50%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #c9a84c 0%, #e8c565 50%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-teal {
  background: linear-gradient(135deg, #2dd4bf 0%, #5eead4 50%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Backgrounds ---- */

.bg-hero {
  background: radial-gradient(ellipse at 30% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(45, 212, 191, 0.06) 0%, transparent 50%),
              #08080f;
}

.bg-section-alt {
  background: linear-gradient(180deg, rgba(13, 13, 24, 0) 0%, rgba(13, 13, 24, 0.5) 50%, rgba(13, 13, 24, 0) 100%);
}

/* ---- Glass morphism ---- */

.glass {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(201, 168, 76, 0.1),
              0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

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

.glass-card-subtle {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.glass-card-subtle:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Brand card accent colors */
.brand-card[data-accent="gold"]:hover {
  border-color: rgba(201, 168, 76, 0.3);
}
.brand-card[data-accent="gold"]::before {
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

.brand-card[data-accent="teal"]:hover {
  border-color: rgba(45, 212, 191, 0.3);
}
.brand-card[data-accent="teal"]::before {
  background: linear-gradient(90deg, transparent, #2dd4bf, transparent);
}

.brand-card[data-accent="orange"]:hover {
  border-color: rgba(249, 115, 22, 0.3);
}
.brand-card[data-accent="orange"]::before {
  background: linear-gradient(90deg, transparent, #f97316, transparent);
}

.brand-card[data-accent="blue"]:hover {
  border-color: rgba(81, 162, 255, 0.3);
}
.brand-card[data-accent="blue"]::before {
  background: linear-gradient(90deg, transparent, #51a2ff, transparent);
}

.brand-card[data-accent="cyan"]:hover {
  border-color: rgba(56, 189, 248, 0.3);
}
.brand-card[data-accent="cyan"]::before {
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

/* ---- Product card image ---- */

.product-image-wrapper {
  overflow: hidden;
  position: relative;
}

.product-image-wrapper img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover .product-image-wrapper img {
  transform: scale(1.08);
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 8, 15, 0.8) 100%);
  pointer-events: none;
}

/* ---- Buttons ---- */

.btn-gold {
  background: linear-gradient(135deg, #c9a84c 0%, #a88a30 100%);
  color: #08080f;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -8px rgba(201, 168, 76, 0.5);
  background: linear-gradient(135deg, #e8c565 0%, #c9a84c 100%);
}

.btn-outline {
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: #c9a84c;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-1px);
}

/* ---- Convergence label ---- */

.convergence-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a84c;
  opacity: 0.7;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 9999px;
}

/* ---- Navbar ---- */

.navbar {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(8, 8, 15, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  color: rgba(232, 230, 225, 0.6);
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #e8e6e1;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

/* ---- Scroll animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ---- Dividers ---- */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), rgba(45, 212, 191, 0.15), transparent);
}

/* ---- Collection header ---- */

.collection-header {
  position: relative;
  padding-bottom: 1rem;
}

.collection-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #c9a84c, #2dd4bf);
  border-radius: 2px;
}

/* ---- Mobile nav ---- */

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.open {
  max-height: 300px;
}

/* Give navbar a solid background when mobile menu is open */
.navbar.mobile-open {
  background: rgba(8, 8, 15, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ---- Misc ---- */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price text */
.price-text {
  color: #c9a84c;
  font-weight: 600;
}

/* Collection anchor offset for fixed nav */
.collection-anchor {
  scroll-margin-top: 100px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Coming soon badge */
.badge-coming-soon {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #c9a84c;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.badge-coming-soon .dot {
  width: 6px;
  height: 6px;
  background: #c9a84c;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .badge-coming-soon .dot {
    animation: none;
  }
}
