/* ========================================
   MODERN HERO & NAVIGATION ENHANCEMENTS
   ======================================== */

/* === GLOBAL TYPOGRAPHY === */
h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

/* === MODERN NAVIGATION === */
/* Logo far-left, nav items far-right — full viewport width (desktop only).
   On mobile (< 992px) Bootstrap's navbar-expand-lg collapse behavior handles
   layout, so these flex rules must NOT apply or the collapsed menu cannot
   drop below the hamburger button. */
@media (min-width: 992px) {
  .main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: 100% !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .main-nav .navbar-brand {
    flex-shrink: 0;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .main-nav .navbar-collapse {
    flex-grow: 0 !important;
    flex-basis: auto !important;
  }

  .main-nav .navbar-nav {
    align-items: center;
    flex-wrap: nowrap;
  }
}

.main-nav.scrolled {
  background: rgba(238, 241, 247, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-nav .navbar-brand img {
  height: 35px !important;
  width: auto;
  transition: transform 0.3s ease;
}

.main-nav .navbar-brand:hover img {
  transform: scale(1.05);
}

.main-nav .navbar-nav .nav-item .nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #2a3a52;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.4rem 1.1rem;
}

.main-nav .navbar-nav .nav-item .nav-link:hover {
  color: #f59e0b;
  transform: translateY(-1px);
}

.main-nav .navbar-nav .nav-item .nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.main-nav .navbar-nav .nav-item .nav-link:hover::after,
.main-nav .navbar-nav .nav-item.active .nav-link::after {
  transform: translateX(-50%) scaleX(1);
}

.main-nav .btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border: none;
  padding: 0.65rem 1.75rem !important;
  border-radius: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.main-nav .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

/* AppConfig² Suite pill — external link, visually separated */
.nav-item-appconfig {
  margin-left: 0.75rem;
}
.nav-item-appconfig .nav-link {
  border: 1.5px solid #2e7eed !important;
  border-radius: 20px !important;
  color: #2e7eed !important;
  padding: 0.25rem 1rem !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.nav-item-appconfig .nav-link:hover {
  background: #2e7eed !important;
  color: #fff !important;
  transform: none;
}
.nav-item-appconfig .nav-link::after {
  display: none !important;
}

/* === HERO DYNAMIC TITLE === */
.hero-title-wrap {
  position: relative;
  display: block;
  /* height set by JS to match tallest title, preventing layout reflow */
}

.hero-title-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-title-slot.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* === MODERN HERO SECTION === */
.gradient-banner, .hero-fullscreen.stats-dark {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-fullscreen {
  padding: 80px 0 100px;
}

.gradient-banner {
  background: linear-gradient(135deg, #0a1f44 0%, #1a3a6b 25%, #2e7eed 100%);
}

/* Modern mesh gradient overlay */
.gradient-banner::before, .hero-fullscreen.stats-dark::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0, 158, 197, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(46, 126, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(2, 34, 91, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  z-index: 1;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.gradient-banner > .container, .hero-fullscreen.stats-dark > .container {
  position: relative;
  z-index: 2;
}

/* Floating particles effect */
.gradient-banner::after, .hero-fullscreen.stats-dark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px;
  animation: particleFloat 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

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

/* Hero Typography */
.gradient-banner h1, .hero-fullscreen.stats-dark h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .gradient-banner h1, .hero-fullscreen.stats-dark h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .gradient-banner h1, .hero-fullscreen.stats-dark h1 {
    font-size: 2.6rem;
    letter-spacing: -0.5px;
  }
}

.gradient-banner .lead, .hero-fullscreen.stats-dark .lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gradient-banner p, .hero-fullscreen.stats-dark p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

/* Modern Badges */
.gradient-banner .badge, .hero-fullscreen.stats-dark .badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gradient-banner .badge-light, .hero-fullscreen.stats-dark .badge-light {
  background: rgba(255, 255, 255, 0.95);
  color: #0a1f44;
  border-color: rgba(255, 255, 255, 0.3);
}

.gradient-banner .badge-booking, .hero-fullscreen.stats-dark .badge-booking {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(245, 158, 11, 0.5); }
}

/* Modern Hero Panels (Before/After Cards) */
.hero-panel {
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: transform 0.4s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-panel:hover::before {
  transform: scaleX(1);
}

.hero-panel:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-panel-before {
  background: rgba(255, 255, 255, 0.98);
}

.hero-panel-before::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.hero-panel-before h6 {
  font-family: 'Inter', sans-serif;
  color: #dc2626 !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-panel-before .ti-close {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.hero-panel-after {
  background: rgba(255, 255, 255, 0.98);
}

.hero-panel-after::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.hero-panel-after h6 {
  font-family: 'Inter', sans-serif;
  color: #059669 !important;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-panel-after .ti-check {
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.hero-panel ul {
  font-family: 'Inter', sans-serif;
  color: #1a1a1a !important;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  padding-left: 1.25rem;
}

.hero-panel ul li {
  color: #1a1a1a !important;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 0.25rem;
}

.hero-panel ul li::marker {
  color: #64748b;
}

/* === HERO BRIDGE SECTION (Before/After panels) === */
.hero-bridge {
  background: #112240;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Modern CTA Button */
.gradient-banner .btn-light, .hero-fullscreen.stats-dark .btn-light {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #0a1f44;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 50px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 0 0 rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gradient-banner .btn-light::before, .hero-fullscreen.stats-dark .btn-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.gradient-banner .btn-light:hover, .hero-fullscreen.stats-dark .btn-light:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.25),
    0 0 0 8px rgba(255, 255, 255, 0.1);
  color: #fff;
}

.gradient-banner .btn-light:hover::before, .hero-fullscreen.stats-dark .btn-light:hover::before {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gradient-banner, .hero-fullscreen.stats-dark {
    padding: 80px 0 70px;
  }

  .hero-fullscreen {
    padding: 80px 0 70px;
  }
  
  .hero-panel {
    margin-bottom: 1rem;
  }
  
  .gradient-banner .btn-light, .hero-fullscreen.stats-dark .btn-light {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
}

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

/* Optional: Add entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  animation: fadeInUp 0.8s ease-out;
}
