/* Global design tokens - Modern & Trendy */
:root {
  /* Logo-driven palette: gold on deep black */
  --brand-blue: #d4af37; /* repurpose as primary gold */
  --brand-blue-dark: #0b0b0b; /* deep black */
  --brand-gold: #d4af37;
  --text-dark: #0f172a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-surface: #ffffff;

  /* Modern color palette */
  --primary-gold: #d4af37;
  --primary-gold-dark: #a68a3a;
  --primary-gold-light: #e8d199;
  --dark-brown: #1a1206;
  --dark-brown-light: #2a1f0d;
  --accent-cream: #f5e6d3;

  /* Instagram-like ring colors */
  --ig-1: #feda75;
  --ig-2: #fa7e1e;
  --ig-3: #d62976;
  --ig-4: #962fbf;
  --ig-5: #4f5bd5;

  /* Modern shadow system */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.15);

  /* Modern spacing system */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Modern border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Modern transition timing */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
html, body {
  background: var(--bg-surface);
  color: var(--text-dark);
}

/* Header overrides */
.navbar {
  background: linear-gradient(135deg, #1a1206 0%, #2a1f0d 100%) !important;
  border-bottom: 2px solid rgba(210, 163, 34, 0.3) !important;
}
.navbar .nav-link {
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  border-radius: 25px !important;
  margin: 0 5px !important;
  transition: all 0.3s ease !important;
}
.navbar .nav-link:hover {
  color: #1a1206 !important;
  background: rgba(210, 163, 34, 0.95) !important;
}
.navbar .nav-link.active {
  color: #1a1206 !important;
  background: linear-gradient(90deg, #b8860b, #d2a322) !important;
  font-weight: 700 !important;
}
.navbar .nav-link::after { display: none !important; }
.navbar-brand img { height: 56px !important; }

/* ============================================
   MODAL & BACKDROP STYLES - Core Fixes
   ============================================ */

/* Modal Base Styles */
.modal {
  z-index: 1050 !important;
  position: fixed;
}

.modal.fade {
  transition: opacity 0.3s ease-in-out;
}

.modal.show {
  z-index: 1050 !important;
}

/* Modal Backdrop */
.modal-backdrop {
  z-index: 1040 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 1;
}

/* Body overflow management */
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Modal Dialog Centering */
.modal-dialog {
  position: relative;
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 0px);
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
  max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

/* Modal Content */
.modal-content {
  position: relative;
  width: 100%;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  outline: 0;
}

/* Modal Body Scrolling */
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.modal-dialog-scrollable > .modal-content {
  max-height: calc(100vh - 2rem);
}

.modal-dialog-scrollable > .modal-content > .modal-body {
  overflow-y: auto;
}

/* Ticker */
.ticker-banner {
  background: linear-gradient(90deg, #0b0b0b 0%, #1a1a1a 60%, #d4af37 100%) !important;
}

/* Story strip (circle menu) */
.slider-menu-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%) !important;
}
.stories-container { scroll-snap-type: x mandatory; }
.slider-menu-item { scroll-snap-align: start; }
.story-circle {
  position: relative;
  box-shadow: 0 10px 30px rgba(23, 65, 166, 0.15);
  border-radius: 999px;
  padding: 5px; /* more space for visible ring */
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}
.story-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Golden dotted ring */
  background: repeating-conic-gradient(
    var(--brand-gold) 0deg 10deg,
    transparent 10deg 18deg
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 66%);
  mask: radial-gradient(circle, transparent 58%, #000 66%);
  box-shadow: 0 0 0 2px #fff inset; /* white separator for clarity */
  animation: ring-rotate 12s linear infinite;
  z-index: 0;
}
.story-circle .story-image {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 999px;
  background: #ffffff;
  padding: 3px; /* inner white gap like Instagram */
}
.slider-menu-label {
  color: var(--text-dark) !important;
}

.story-circle:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 34px rgba(23, 65, 166, 0.25); }

/* Seen state (muted grey ring, no animation) */
.story-circle.seen::before {
  background: repeating-conic-gradient(
    #d1d5db 0deg 10deg,
    transparent 10deg 18deg
  );
  animation: none;
  opacity: .9;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Featured carousel */
.featured-slider-section .hero-slide {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(23, 65, 166, 0.18);
  overflow: hidden;
}
.featured-slider-section .hero-content{ background: rgba(6,10,20,0.48); backdrop-filter: blur(6px); border-radius: 12px; }
.featured-slider-section .carousel-control-prev-icon,
.featured-slider-section .carousel-control-next-icon { filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.featured-slider-section .carousel-control-prev:hover,
.featured-slider-section .carousel-control-next:hover { transform: scale(1.05); }
.carousel-progress { background: rgba(255,255,255,0.25) !important; }
.carousel-progress-bar { background: linear-gradient(90deg, #b3862b, #d4af37) !important; }

/* Story arrows */
.story-nav {
  position: relative;
}
.nav-arrow { 
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; 
  width: 38px; height: 38px; border-radius: 50%; border: none; 
  background: rgba(23,65,166,.95); color: #fff; display: flex; align-items: center; justify-content:center; 
  box-shadow: 0 8px 24px rgba(23,65,166,.25);
}
.nav-arrow:hover { filter: brightness(1.1); }
.nav-arrow-left { left: 8px; }
.nav-arrow-right { right: 8px; }

/* Buttons */
.btn-brand {
  background: linear-gradient(90deg, #b3862b, #d4af37);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
}
.btn-brand:hover { filter: brightness(1.05); }

/* ============================================
   PACKAGE MODAL STYLES - Fully Responsive
   ============================================ */

/* Modal Base */
.package-modal .modal-dialog {
  max-width: 800px;
  margin: 1rem auto;
  width: calc(100% - 1rem);
}

.package-modal .modal-content {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  border: none;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

/* Modal Header Image Section */
.pkg-modal-header {
  position: relative;
  flex-shrink: 0;
}

.pkg-modal-banner {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.pkg-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkg-modal-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.pkg-modal-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  z-index: 2;
}

/* Close Button */
.pkg-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pkg-modal-close:hover {
  background: #fff;
  transform: scale(1.1);
}

.pkg-modal-close i {
  font-size: 18px;
  color: #1e293b;
}

/* Tag Badge */
.pkg-tag {
  display: inline-block;
  background: #f97316;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.pkg-tag.pink { background: #ec4899; }
.pkg-tag.blue { background: #3b82f6; }
.pkg-tag.green { background: #10b981; }
.pkg-tag.purple { background: #8b5cf6; }

/* Package Title */
.pkg-modal-title {
  color: white;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
}

/* Meta Info */
.pkg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pkg-meta-item {
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pkg-meta-item i {
  font-size: 12px;
}

/* Modal Body */
.pkg-modal-body {
  padding: 24px;
  background: #fff;
  overflow-y: auto;
  flex: 1;
}

/* Description */
.pkg-description {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 24px;
}

/* Section Headings */
.pkg-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

/* Highlights List */
.pkg-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.pkg-highlights li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.pkg-highlights li:last-child {
  border-bottom: none;
}

.pkg-highlights li i {
  color: #10b981;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Includes Grid */
.pkg-includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.pkg-include-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pkg-include-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pkg-include-icon.blue { background: #e0f2fe; }
.pkg-include-icon.blue i { color: #0369a1; }
.pkg-include-icon.teal { background: #ccfbf1; }
.pkg-include-icon.teal i { color: #0e7490; }
.pkg-include-icon.yellow { background: #fef3c7; }
.pkg-include-icon.yellow i { color: #b45309; }
.pkg-include-icon.red { background: #fee2e2; }
.pkg-include-icon.red i { color: #b91c1c; }
.pkg-include-icon.pink { background: #fce7f3; }
.pkg-include-icon.pink i { color: #be185d; }

.pkg-include-icon i {
  font-size: 16px;
}

.pkg-include-text {
  font-size: 14px;
  color: #334155;
}

/* Sidebar / Action Area */
.pkg-modal-sidebar {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

/* Buttons */
.pkg-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pkg-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

.pkg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

.pkg-btn-primary.pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
  box-shadow: 0 4px 12px rgba(236,72,153,0.3);
}

.pkg-btn-primary.pink:hover {
  box-shadow: 0 6px 20px rgba(236,72,153,0.4);
}

.pkg-btn-secondary {
  background: #e2e8f0;
  color: #1e293b;
}

.pkg-btn-secondary:hover {
  background: #cbd5e1;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
  .package-modal .modal-dialog {
    margin: 0.5rem auto;
    width: calc(100% - 1rem);
  }
  
  .package-modal .modal-content {
    max-height: calc(100vh - 1rem);
    border-radius: 16px;
  }
  
  .pkg-modal-banner {
    height: 160px;
  }
  
  .pkg-modal-banner-content {
    padding: 16px 20px;
  }
  
  .pkg-modal-title {
    font-size: 22px;
  }
  
  .pkg-meta {
    gap: 8px;
  }
  
  .pkg-meta-item {
    font-size: 12px;
  }
  
  .pkg-modal-body {
    padding: 20px;
  }
  
  .pkg-section-title {
    font-size: 18px;
  }
  
  .pkg-includes-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .pkg-modal-sidebar {
    padding: 16px;
  }
}

/* Mobile Phones */
@media (max-width: 576px) {
  .package-modal .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
  }
  
  .package-modal .modal-content {
    border-radius: 0;
    max-height: 100vh;
    height: 100%;
  }
  
  .pkg-modal-banner {
    height: 140px;
  }
  
  .pkg-modal-banner-content {
    padding: 12px 16px;
  }
  
  .pkg-tag {
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .pkg-modal-title {
    font-size: 20px;
  }
  
  .pkg-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
  
  .pkg-modal-close i {
    font-size: 16px;
  }
  
  .pkg-modal-body {
    padding: 16px;
  }
  
  .pkg-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .pkg-section-title {
    font-size: 17px;
    margin-bottom: 12px;
  }
  
  .pkg-highlights li {
    padding: 8px 0;
    font-size: 13px;
    gap: 10px;
  }
  
  .pkg-highlights li i {
    font-size: 14px;
  }
  
  .pkg-include-icon {
    width: 36px;
    height: 36px;
  }
  
  .pkg-include-icon i {
    font-size: 14px;
  }
  
  .pkg-include-text {
    font-size: 13px;
  }
  
  .pkg-modal-sidebar {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
  }
  
  .pkg-btn {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
  
  .pkg-btn-primary {
    margin-bottom: 10px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .pkg-modal-title {
    font-size: 18px;
  }

  .pkg-meta-item {
    font-size: 11px;
  }

  .pkg-modal-body {
    padding: 12px;
  }
}

/* ============================================
   MODERN UI IMPROVEMENTS
   ============================================ */

/* Hero Button Styles - Modern & Trendy */
.hero-btn-primary,
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: var(--dark-brown);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
}

.hero-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left var(--transition-slow);
}

.hero-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.4);
}

.hero-btn-primary:hover::before {
  left: 100%;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

/* Gold Button Style */
.gold-btn {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light)) !important;
  color: var(--dark-brown) !important;
  padding: 16px 32px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all var(--transition-base) !important;
  box-shadow: var(--shadow-gold) !important;
  border: none !important;
}

.gold-btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.4) !important;
  background: linear-gradient(135deg, var(--primary-gold-light), var(--primary-gold)) !important;
}

/* Modern Card Styles */
.modern-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all var(--transition-base);
  position: relative;
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(212, 175, 55, 0.2);
}

/* Modern Form Inputs */
input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
input[type="number"],
select,
textarea {
  border: 2px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--radius-lg) !important;
  padding: 12px 16px !important;
  font-size: 1rem !important;
  transition: all var(--transition-fast) !important;
  background: var(--bg-surface) !important;
  color: var(--text-dark) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--primary-gold) !important;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1) !important;
  background: rgba(212, 175, 55, 0.02) !important;
}

/* Modern Badge/Tag Styles */
.badge,
.tag {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
  color: var(--dark-brown);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

/* Modern Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-down {
  animation: fadeInDown 0.6s ease forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease forwards;
}

.scale-in {
  animation: scaleIn 0.6s ease forwards;
}

/* Glassmorphism Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
}

/* Modern Gradient Text */
.gradient-text-primary {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Package Card Hover */
.package-card {
  transition: all var(--transition-base);
}

.package-card:hover {
  transform: translateY(-12px) !important;
  box-shadow: var(--shadow-2xl) !important;
}

/* Modern Section Heading */
.section-heading {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-heading-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Utility Classes for Spacing */
.spacing-xs { margin: var(--spacing-xs); }
.spacing-sm { margin: var(--spacing-sm); }
.spacing-md { margin: var(--spacing-md); }
.spacing-lg { margin: var(--spacing-lg); }
.spacing-xl { margin: var(--spacing-xl); }
.spacing-2xl { margin: var(--spacing-2xl); }

/* Responsive Improvements */
@media (max-width: 768px) {
  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .section-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .section-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   ENHANCED PACKAGE CARD DESIGNS
   ============================================ */

/* Premium Package Card with 3D Effect */
.premium-package-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.premium-package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
}

.premium-package-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(212, 175, 55, 0.2);
}

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

/* Package Card Header with Image */
.package-card-header {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
}

.package-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.premium-package-card:hover .package-card-header img {
  transform: scale(1.1);
}

.package-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: var(--dark-brown);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  z-index: 2;
}

/* Package Card Content */
.package-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.package-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.package-card-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
  flex: 1;
}

/* Package Card Meta Information */
.package-card-meta {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.package-card-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.package-card-meta-item i {
  color: var(--primary-gold);
  font-size: 1.1rem;
}

/* Package Card Price */
.package-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0;
}

.package-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-gold);
  letter-spacing: -1px;
}

.package-price-per {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.package-price-old {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 1rem;
  margin-left: 8px;
}

/* Package Card Features */
.package-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.feature-item i {
  color: var(--primary-gold);
  width: 20px;
  text-align: center;
}

/* Package Card CTA Button */
.package-card-cta {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: var(--dark-brown);
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  display: block;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1rem;
  margin-top: auto;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.package-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.3);
  background: linear-gradient(135deg, var(--primary-gold-light), var(--primary-gold));
}

/* Comparison Table Cards */
.comparison-card {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  padding: 28px;
  border: 2px solid rgba(212, 175, 55, 0.08);
  transition: all var(--transition-base);
  position: relative;
}

.comparison-card.featured {
  border-color: var(--primary-gold);
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
}

.comparison-card:hover {
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-xl);
}

.comparison-card-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.comparison-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.comparison-card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.comparison-card-price {
  text-align: center;
  margin: 20px 0;
}

.comparison-price-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.comparison-price-period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comparison-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.comparison-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.comparison-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  flex-shrink: 0;
}

/* Mobile Responsive for Package Cards */
@media (max-width: 768px) {
  .package-card-header {
    height: 180px;
  }

  .package-card-content {
    padding: 20px;
  }

  .package-card-title {
    font-size: 1.3rem;
  }

  .comparison-card.featured {
    transform: scale(1.02);
  }
}

@media (max-width: 576px) {
  .package-card-header {
    height: 160px;
  }

  .premium-package-card {
    border-radius: var(--radius-xl);
  }

  .package-card-content {
    padding: 16px;
  }

  .package-card-meta {
    gap: 12px;
    font-size: 0.85rem;
  }

  .comparison-card {
    padding: 20px;
  }

  .comparison-card.featured {
    transform: scale(1);
  }
}

/* ============================================
   MODERN FORM DESIGNS & INTERACTIONS
   ============================================ */

/* Form Container */
.modern-form {
  background: var(--bg-surface);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.08);
}

/* Form Group Styling */
.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 0.95rem;
  letter-spacing: -0.3px;
}

.form-group-required::after {
  content: '*';
  color: #dc2626;
  margin-left: 4px;
}

/* Modern Input Fields */
.modern-input,
.form-control,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  position: relative;
}

.modern-input::placeholder,
.form-control::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

.modern-input:focus,
.form-control:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 0 0 0 rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.02);
}

.modern-input:hover,
.form-control:hover,
select:hover,
textarea:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

/* Input with Icon */
.input-with-icon {
  position: relative;
  display: flex;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-gold);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
}

.input-with-icon input {
  padding-left: 45px;
}

/* Form Select Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 1.5em 1.5em;
  padding-right: 38px;
  color: var(--text-dark);
}

select::-ms-expand {
  display: none;
}

/* Textarea Styling */
textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Lato', sans-serif;
}

/* Form Validation States */
.modern-input.is-invalid,
.form-control.is-invalid,
.is-invalid select {
  border-color: #dc2626;
  background-color: rgba(220, 38, 38, 0.02);
}

.modern-input.is-invalid:focus,
.form-control.is-invalid:focus,
.is-invalid select:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
  border-color: #dc2626;
}

.modern-input.is-valid,
.form-control.is-valid,
.is-valid select {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.02);
}

.modern-input.is-valid:focus,
.form-control.is-valid:focus,
.is-valid select:focus {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

/* Form Feedback Messages */
.form-feedback {
  margin-top: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-feedback.error {
  color: #dc2626;
}

.form-feedback.success {
  color: #10b981;
}

.form-feedback.info {
  color: var(--primary-gold);
}

.form-feedback i {
  font-size: 0.9rem;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

/* Form Button */
.form-submit-btn {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: var(--dark-brown);
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.form-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
}

.form-submit-btn:hover::before {
  left: 100%;
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* Form Checkbox & Radio Styling */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  margin-right: 8px;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  border-color: var(--primary-gold);
}

input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--dark-brown);
  font-weight: bold;
  font-size: 0.9rem;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
  outline: none;
}

/* Checkbox/Radio Label */
.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
  margin-bottom: 12px;
  user-select: none;
}

/* Mobile Responsive Forms */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row.three-cols {
    grid-template-columns: 1fr;
  }

  .modern-form {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  .modern-form {
    padding: 20px;
    border-radius: var(--radius-xl);
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-submit-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}

/* Loading State */
.form-submit-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(26, 18, 6, 0.2);
  border-top-color: var(--dark-brown);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Success State */
.form-submitted {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #059669;
  margin-bottom: 20px;
  animation: slideInDown 0.3s ease;
}

.form-submitted i {
  font-size: 1.2rem;
}

/* ============================================
   MODERN NAVIGATION ENHANCEMENTS
   ============================================ */

/* Navbar Smooth Transitions */
.navbar {
  transition: all var(--transition-base) !important;
}

/* Nav Link Modern Style */
.nav-link {
  position: relative;
  transition: all var(--transition-base) !important;
  padding: 8px 16px !important;
  color: var(--text-light) !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
  transform: translateX(-50%);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-gold) !important;
}

.nav-link:hover::before {
  width: calc(100% - 32px);
}

.nav-link.active {
  color: var(--primary-gold) !important;
  background: rgba(212, 175, 55, 0.08) !important;
  border-radius: var(--radius-lg) !important;
}

.nav-link.active::before {
  width: calc(100% - 32px);
}

/* Dropdown Menu Enhancement */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: slideInDown 0.2s ease;
}

.dropdown-item {
  color: var(--text-dark);
  transition: all var(--transition-fast);
  padding: 12px 20px;
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--primary-gold);
  padding-left: 24px;
}

.dropdown-item.active {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  color: var(--dark-brown);
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: transparent;
  padding: 12px 0;
  margin-bottom: 24px;
}

.breadcrumb-item {
  color: var(--text-muted);
}

.breadcrumb-item::before {
  color: var(--text-light);
}

.breadcrumb-item.active {
  color: var(--primary-gold);
  font-weight: 600;
}

.breadcrumb-item a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary-gold);
}

/* Pagination Styling */
.pagination {
  gap: 8px;
}

.page-link {
  border-color: rgba(212, 175, 55, 0.2);
  color: var(--text-dark);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  padding: 8px 12px;
  font-weight: 500;
}

.page-link:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  border-color: var(--primary-gold);
  color: var(--dark-brown);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tab Navigation */
.nav-tabs {
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  gap: 8px;
}

.nav-tabs .nav-link {
  border: none;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 16px;
  font-weight: 600;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-gold);
  border-color: rgba(212, 175, 55, 0.3);
}

.nav-tabs .nav-link.active {
  color: var(--primary-gold);
  border-color: var(--primary-gold);
  background: transparent;
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  color: var(--text-dark);
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  border-left: 3px solid transparent;
  padding-left: 13px;
}

.sidebar-nav-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-left-color: var(--primary-gold);
  color: var(--primary-gold);
}

.sidebar-nav-item.active {
  background: rgba(212, 175, 55, 0.12);
  border-left-color: var(--primary-gold);
  color: var(--primary-gold);
  font-weight: 600;
}

.sidebar-nav-item i {
  width: 20px;
  text-align: center;
}

/* Sticky Navigation */
.sticky-nav,
.navbar.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--bg-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 16px 0;
}

/* Bootstrap Navbar Sticky Fix */
.navbar {
  z-index: 1020 !important;
}

/* Mobile Navigation Menu */
.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--primary-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.mobile-menu-toggle:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--primary-gold);
}

/* Modal & Modal Backdrop Z-Index Management */
.modal {
  z-index: 1050 !important;
}

.modal-backdrop {
  z-index: 1040 !important;
}

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  max-height: calc(100vh - 60px);
  margin-top: 30px;
}

.modal-content {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-2xl);
}

.modal-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 20px 24px;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.modal-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 16px 24px;
}

.btn-close {
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.btn-close:hover {
  opacity: 0.7;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 1050;
  transition: right var(--transition-slow);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding: 20px;
}

.mobile-menu.active {
  right: 0;
}

@media (max-width: 768px) {
  .nav-link::before {
    display: none;
  }

  .nav-link:hover {
    background: rgba(212, 175, 55, 0.08);
    border-radius: var(--radius-lg);
  }
}

/* ============================================
   SMOOTH SCROLL ANIMATIONS & PAGE TRANSITIONS
   ============================================ */

/* Page Transition Animations */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Scroll Animation Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Animation for Lists */
.scroll-reveal-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scroll-reveal-list .scroll-item {
  opacity: 0;
  transform: translateY(20px);
}

.scroll-reveal-list.visible .scroll-item {
  animation: fadeInUp 0.6s ease forwards;
}

.scroll-reveal-list .scroll-item:nth-child(2) {
  animation-delay: 0.1s;
}

.scroll-reveal-list .scroll-item:nth-child(3) {
  animation-delay: 0.2s;
}

.scroll-reveal-list .scroll-item:nth-child(4) {
  animation-delay: 0.3s;
}

.scroll-reveal-list .scroll-item:nth-child(5) {
  animation-delay: 0.4s;
}

.scroll-reveal-list .scroll-item:nth-child(n+6) {
  animation-delay: 0.5s;
}

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-slower {
  background-attachment: fixed;
}

.parallax-content {
  position: relative;
  z-index: 1;
}

/* Counter Animation */
.counter-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-gold);
  transition: all 0.3s ease;
}

/* Progress Bar Animation */
.progress-bar-animated {
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 2s infinite;
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Floating Animation */
.float-animation {
  animation: floatUp 3s ease-in-out infinite;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Pulse Animation */
.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Bounce Animation */
.bounce-animation {
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Shake Animation */
.shake-animation {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Slide In Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.6s ease forwards;
}

.slide-in-down {
  animation: slideInDown 0.6s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

/* Rotate Animation */
.rotate-animation {
  animation: rotate360 2s linear infinite;
}

@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Flip Animation */
.flip-animation {
  animation: flip 0.6s ease;
}

@keyframes flip {
  from { transform: perspective(400px) rotateY(0deg); }
  to { transform: perspective(400px) rotateY(360deg); }
}

/* Zoom In Animation */
.zoom-in {
  animation: zoomIn 0.6s ease forwards;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Zoom Out Animation */
.zoom-out {
  animation: zoomOut 0.6s ease forwards;
}

@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Smooth Page Entry */
body {
  animation: pageEnter 0.6s ease forwards;
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-gold);
  z-index: 1000;
}

/* Hide scroll-to-top when modal is open */
.modal.show ~ .scroll-to-top {
  z-index: 100;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
}

/* Section Dividers with Animation */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
  margin: 20px auto;
  border-radius: 2px;
  animation: slideInRight 0.6s ease;
}

/* Responsive Scroll Animations */
@media (max-width: 768px) {
  .scroll-reveal-left,
  .scroll-reveal-right {
    transform: translateY(30px);
  }

  .scroll-reveal-left.visible,
  .scroll-reveal-right.visible {
    transform: translateY(0);
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}

/* ============================================
   STICKY HEADER & MODAL FIX
   ============================================ */

/* Prevent body scroll shift when modal opens */
body.modal-open {
  overflow: hidden;
  scroll-behavior: auto;
}

body.modal-open::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Modal positioning fix */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  overflow: auto;
  padding-top: 0;
  z-index: 1050 !important;
}

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin-top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--bg-surface);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
  }
}

@media (min-width: 992px) {
  .modal-dialog {
    max-width: 800px;
  }
}

/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040 !important;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-backdrop.show {
  opacity: 1;
}

/* Header stays above everything */
.navbar,
.navbar.sticky-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1020 !important;
  width: 100% !important;
}

/* Ensure ticker banner is just below header z-index */
.ticker-banner {
  z-index: 1018 !important;
}

/* Modal should not be affected by body padding */
.modal-open .modal {
  padding-right: 0 !important;
}

/* Fix modal scrollbar shift */
.modal.fade {
  transition: opacity 0.15s linear;
}

.modal.show .modal-dialog {
  transition: transform 0.3s ease;
  transform: none;
}

/* Ensure close button is always visible */
.modal-header .btn-close {
  position: relative;
  z-index: 10;
}

/* Modal focus management */
.modal:focus-within {
  outline: none;
}

/* Responsive modal on mobile */
@media (max-width: 576px) {
  .modal-dialog {
    max-width: 100%;
    margin: 0;
    height: 100%;
  }

  .modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    height: 100%;
  }

  .modal.show {
    padding: 0 !important;
  }
}

@media (max-width: 576px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    bottom: 15px;
    right: 15px;
  }
}

/* Intersection Observer Support */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.in-view {
  opacity: 1;
}
