/* Custom Styles & Modern Micro-interactions for BSM */

:root {
  --bsm-blue: #003B95;
  --bsm-navy: #0B2545;
  --bsm-deep: #061A23;
  --bsm-red: #C8102E;
  --bsm-red-hover: #A50C24;
  --bsm-accent-gold: #D4AF37;
  --bsm-bg-soft: #F8FAFC;
}

/* Smooth Scrolling & Responsive Viewport Confinement */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Executive Light Hero Theme with Gaysorn Amarin Landmark & Precision Grid */
.hero-executive-bg {
  position: relative;
  background-color: #FAFAFC;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero-skyline-layer {
  position: absolute;
  inset: 0;
  background-image: url('gaysorn-amarin.jpg'), url('https://www.mallbangkok.com/wp-content/uploads/2024/04/gaysornamarin.jpeg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.08);
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.hero-skyline-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  pointer-events: none;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 35%, rgba(255, 255, 255, 0.50) 65%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, transparent 15%, transparent 80%, rgba(255, 255, 255, 0.95) 100%);
  pointer-events: none;
}

/* Dedicated Mobile Viewport Enhancements (< 1024px) */
@media (max-width: 1023px) {
  .hero-skyline-layer {
    opacity: 0.38; /* Clearly visible landmark architecture on mobile */
    background-position: center 15%;
    filter: saturate(1.02) contrast(1.06);
  }

  .hero-gradient-overlay {
    background: 
      linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.72) 30%,
        rgba(255, 255, 255, 0.58) 55%,
        rgba(255, 255, 255, 0.82) 85%,
        rgba(255, 255, 255, 0.98) 100%
      ),
      radial-gradient(ellipse at 50% 20%, rgba(0, 59, 149, 0.08) 0%, transparent 60%);
  }

  .hero-precision-grid {
    opacity: 0.45;
  }
}

.hero-precision-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 59, 149, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 59, 149, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
}

/* Subtle Animated Gradient Hero Mesh (Dark Fallback) */
.hero-mesh-bg {
  background-color: #061A23;
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 59, 149, 0.45) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(200, 16, 46, 0.25) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(13, 71, 161, 0.35) 0px, transparent 50%);
}

.hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(0, 59, 149, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 59, 149, 0.25);
}

.dark-glass-card {
  background: rgba(11, 37, 69, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.dark-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

/* Animated Pulse Badge Indicator */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.pulse-active {
  position: relative;
}
.pulse-active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background-color: #22c55e;
  animation: pulse-ring 2s infinite;
  z-index: 0;
}

/* Float Keyframe Animation */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: float-slow 4s ease-in-out infinite;
}

/* Button Glow on Hover */
.bsm-btn-primary {
  background: linear-gradient(135deg, #003B95 0%, #002A6B 100%);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bsm-btn-primary:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 59, 149, 0.45);
  transform: translateY(-2px);
}

.bsm-btn-accent {
  background: linear-gradient(135deg, #C8102E 0%, #A50C24 100%);
  transition: all 0.25s ease;
}

.bsm-btn-accent:hover {
  box-shadow: 0 10px 25px -5px rgba(200, 16, 46, 0.45);
  transform: translateY(-2px);
}

/* Modal Transition */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-box {
  transform: scale(0.94) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content-box {
  transform: scale(1) translateY(0);
}
