@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Reset and Base Overrides */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: #FAFAF9; /* stone-50 warm clean background */
  color: #1E293B; /* slate-800 text */
}

/* Offset for fixed navbar on anchor scroll */
[id] {
  scroll-margin-top: 100px;
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-script {
  font-family: 'Caveat', cursive, sans-serif;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.glass-panel-dark {
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(217, 119, 6, 0.35); /* primary gold border on hover */
  box-shadow: 0 14px 40px 0 rgba(217, 119, 6, 0.12);
}

/* Premium Gradient Backgrounds */
.bg-gradient-hero {
  background: radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 45%),
              #FAFAF9;
}

.bg-gradient-dark-hero {
  background: radial-gradient(circle at 15% 25%, rgba(217, 119, 6, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 85% 75%, rgba(245, 158, 11, 0.18) 0%, transparent 50%),
              #0B0F19;
}

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

::-webkit-scrollbar-track {
  background: #F5F5F4;
}

::-webkit-scrollbar-thumb {
  background: #D6D3D1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D97706;
}

/* Active Navigation Indicators */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #D97706; /* primary gold color */
  transition: width 0.3s ease;
}

.nav-link.active,
.nav-link.text-primary {
  color: #D97706;
}

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

/* Scroll progress bar at the top of the browser */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #D97706 0%, #F59E0B 50%, #FCD34D 100%);
  z-index: 9999;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}

#back-to-top.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Button Hover Lift */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.35);
}

/* Gold Gradient Text Utility */
.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Header Base & Scroll Animation */
#site-header-wrapper #navbar {
  background-color: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  will-change: background-color, box-shadow, border-color;
  transition: background-color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              padding 0.35s ease;
  /* Override any Tailwind utility classes that may conflict */
  --tw-bg-opacity: 0 !important;
}

#site-header-wrapper #navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 2px 16px 0 rgba(15, 23, 42, 0.10) !important;
  padding-top: 0.625rem !important;
  padding-bottom: 0.625rem !important;
}

@supports (backdrop-filter: blur(1px)) {
  #site-header-wrapper #navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.90) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

