/* Base Styles & Premium Tailwind Overrides */
:root {
  --brand-navy: #0A192F;
  --brand-midnight: #0f172a;
  --brand-gold: #D4AF37;
  --brand-amber: #F59E0B;
  --brand-pearl: #FAFAFA;
}

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--brand-pearl);
  color: #334155;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Refined Glassmorphism Classes */
.glass-nav {
  background: rgba(10, 25, 47, 0.96);
  /* Premium Dark Navy */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--brand-gold);
  /* Attractive gold accent border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.glass-nav.scrolled {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(20, 35, 60, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Nav Menu Overrides for Premium Dark Navy Look */
.glass-nav .font-serif.font-bold {
  color: white !important;
  transition: all 0.3s ease;
}

/* Logo Hover Effect */
.glass-nav a.group:hover .font-serif.font-bold {
  color: var(--brand-gold) !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  transform: scale(1.01);
}

.glass-nav #animated-subtitle {
  color: #94a3b8 !important;
  border-left-color: rgba(212, 175, 55, 0.5) !important;
  transition: all 0.3s ease;
}

.glass-nav a.group:hover #animated-subtitle {
  color: white !important;
}

/* Desktop Links */
.glass-nav .hidden.md\:flex.items-center.space-x-10 a:not(.btn-primary) {
  color: #cbd5e1 !important;
  /* light gray link */
  transition: all 0.3s ease;
}

.glass-nav .hidden.md\:flex.items-center.space-x-10 a:not(.btn-primary):hover {
  color: var(--brand-gold) !important;
  border-bottom-color: var(--brand-gold) !important;
}

/* Active Link styling */
.glass-nav .hidden.md\:flex.items-center.space-x-10 a.text-brand-navy {
  color: var(--brand-gold) !important;
  border-bottom-color: var(--brand-gold) !important;
}

/* Mobile Menu Button */
.glass-nav button#mobile-menu-btn {
  color: white !important;
}

.glass-nav button#mobile-menu-btn:hover {
  color: var(--brand-gold) !important;
}

/* Mobile Menu Dropdown */
.glass-nav #mobile-menu {
  background: rgba(10, 25, 47, 0.98) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.glass-nav #mobile-menu a {
  color: #cbd5e1 !important;
  transition: all 0.2s ease;
}

.glass-nav #mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--brand-gold) !important;
}

.glass-nav #mobile-menu a.bg-brand-pearl {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--brand-gold) !important;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-radius: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  /* Subtle gold border on hover */
}

/* Animations */
.fade-in-up {
  opacity: 0;
  animation: fadeInRight 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

/* Custom Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-midnight));
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand-midnight), var(--brand-navy));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px -5px rgba(10, 25, 47, 0.4);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-amber));
  color: #fff;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* Premium Enhancements & Animations */
.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--brand-gold), var(--brand-amber), var(--brand-navy), var(--brand-gold));
  z-index: -1;
  border-radius: inherit;
  background-size: 400%;
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.glow-effect:hover::after {
  opacity: 0.5;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* Plan Card Styles */
.plan-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.plan-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-gold);
  box-shadow: 0 20px 40px -10px rgba(10, 25, 47, 0.1);
}

.plan-badge {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.plan-badge-po {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Filter Buttons */
.filter-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.filter-btn.active {
  background-color: var(--brand-navy);
  color: white;
  border-color: var(--brand-navy);
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.2);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--brand-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.filter-btn:not(.active):hover::after {
  width: 80%;
}

/* Search Bar Pulse */
.search-container:focus-within {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
  border-color: var(--brand-gold);
}

/* Animated Shimmer Text Logo */
.animate-shimmer {
  background: linear-gradient(to right,
      #D4AF37 20%,
      #ffffff 40%,
      #ffffff 60%,
      #D4AF37 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 10s linear infinite;
  display: inline-block;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Subtitle Animation */
.animated-subtitle-text {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* Premium Mobile Menu Styles */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #cbd5e1 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--brand-gold) !important;
  padding-left: 1.5rem;
}

.mobile-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  border-radius: 9999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-amber)) !important;
  color: var(--brand-navy) !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  margin-top: 0.75rem;
  transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Custom Hamburger Menu Animation */
.hamburger-btn .line-1,
.hamburger-btn .line-2,
.hamburger-btn .line-3 {
  transform-origin: center;
}
.hamburger-btn.active .line-1 {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .line-2 {
  opacity: 0;
  transform: translateX(-10px);
}
.hamburger-btn.active .line-3 {
  transform: translateY(-8px) rotate(-45deg);
}
