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

:root {
  /* Color Scheme - Theme Variables (Forum Dark mode prioritised) */
  --paper: #090A0F;
  --alt-bg: #0D0E15;
  --dark-bg: #050608;
  --card-bg: #11131E;
  --coral: #FF8D52;
  --teal: #00AECE;
  --ink: #FFFFFF;
  --ink-secondary: #94A3B8;
  --line: rgba(255, 255, 255, 0.08);
  --success: #10B981;
  --warning: #F59E0B;

  --paper-rgb: 9, 10, 15;
  --ink-rgb: 255, 255, 255;
  --coral-rgb: 255, 141, 82;
  --teal-rgb: 0, 174, 206;
  --line-rgb: 255, 255, 255;

  /* Custom Premium Shadows */
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-premium-hover: 0 30px 70px rgba(0, 0, 0, 0.6);
  --border-radius-card: 24px;
  --border-radius-btn: 999px;
  
  --nav-bg: rgba(9, 10, 15, 0.85);
  --badge-bg: rgba(17, 19, 30, 0.9);
  --sand-bg-opacity: rgba(0, 174, 206, 0.08);
  --glass-bg: rgba(17, 19, 30, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  /* Light theme variations (clean, high contrast typography) */
  --paper: #FFFFFF;
  --alt-bg: #F8FAFC;
  --dark-bg: #F1F5F9;
  --card-bg: #FFFFFF;
  --coral: #EF4444;
  --teal: #0EA5E9;
  --ink: #0F172A;
  --ink-secondary: #475569;
  --line: rgba(15, 23, 42, 0.08);
  --success: #10B981;
  --warning: #D97706;

  --paper-rgb: 255, 255, 255;
  --ink-rgb: 15, 23, 42;
  --coral-rgb: 239, 68, 68;
  --teal-rgb: 14, 165, 233;
  --line-rgb: 15, 23, 42;

  --shadow-premium: 0 20px 50px rgba(15, 23, 42, 0.04);
  --shadow-premium-hover: 0 30px 70px rgba(15, 23, 42, 0.08);
  
  --nav-bg: rgba(255, 255, 255, 0.85);
  --badge-bg: rgba(255, 255, 255, 0.9);
  --sand-bg-opacity: rgba(14, 165, 233, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.06);
}

/* Global Transitions */
body, header, section, footer, div, h1, h2, h3, p, a, button, input, textarea, span, svg, path {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, fill 0.3s ease, stroke 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Global Reset & Typography */
body {
  background-color: var(--paper);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p, li, td, dd, blockquote {
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.005em;
}

/* Ensure secondary/muted text is never too faint */
section p, section li, section td, section span {
  min-font-size: 13px;
}

/* Boost low-opacity text so it stays readable */
[class*="opacity-50"] { opacity: 0.6 !important; }
[class*="opacity-60"] { opacity: 0.7 !important; }
[class*="opacity-65"] { opacity: 0.72 !important; }
[class*="opacity-70"] { opacity: 0.78 !important; }
[class*="opacity-75"] { opacity: 0.82 !important; }

/* Bump very small font sizes (text-xs = 12px → 13px, text-sm = 14px → 15px) */
section .text-xs { font-size: 0.8125rem; line-height: 1.65; }
section .text-sm { font-size: 0.9375rem; line-height: 1.75; }

/* Paragraphs inside content areas */
section p {
  max-width: 75ch;
}

/* Improve Inter rendering at small sizes with slight weight bump */
section p, section li, section span, section td {
  font-weight: 400;
}

/* Fix W3C styling conflicts and restore bold and italic visibility inside sections */
section strong, section b {
  font-weight: 700 !important;
}
section em, section i {
  font-style: italic !important;
}

/* Distinctive custom styling for internal inline links in text blocks */
section p a, section li a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}
section p a:hover, section li a:hover {
  color: var(--coral);
  text-decoration: underline;
}


.font-display {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}

/* Noise overlay texture */
.noise-overlay {
  display: none;
}

/* Blur lights / Glowing spheres */
.glow-sphere {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Custom premium navigation shrinking */
header.nav-shrink {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  background-color: rgba(var(--paper-rgb), 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

/* Header Brand Navigation styles */
.floating-pill {
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

/* Nav Link Animation */
.nav-link-effect {
  position: relative;
}
.nav-link-effect::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--teal);
  transition: width 0.25s ease;
}
.nav-link-effect:hover::after {
  width: 100%;
}

/* Premium Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--coral), #E06020);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(255, 141, 82, 0.2);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 141, 82, 0.35);
}

.btn-secondary {
  border: 1px solid var(--line);
  background-color: transparent;
  color: var(--ink);
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--ink);
}

/* Register Button custom styles */
.btn-register {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 9999px;
  padding: 8px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.btn-register:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Custom premium card styles */
.dashboard-glass {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-premium);
}

/* FAQ Accordion Item */
.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--line);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Ticket Stubs decoration */
.ticket-stub {
  position: relative;
}
.ticket-stub::before, .ticket-stub::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--paper);
  border-radius: 9999px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.ticket-stub::before { left: -10px; }
.ticket-stub::after { right: -10px; }

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background-color: var(--paper);
}
::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--ink-secondary);
}

/* Warning box styling (Disclaimers) */
.disclaimer-box {
  background-color: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
}

/* Badges styling */
.badge-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Navigation Menu Drawer */
.mobile-nav-overlay {
  backdrop-filter: blur(20px);
  background-color: rgba(9, 10, 15, 0.98);
}
[data-theme="light"] .mobile-nav-overlay {
  background-color: rgba(248, 250, 252, 0.98);
}

.star {
  color: var(--line);
}
.star.filled {
  color: var(--coral);
}

/* Mega Menu Custom Dropdowns */
.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.85;
  transition: all 0.2s ease;
  text-transform: none;
}
.mega-menu-link:hover {
  color: var(--teal);
  background-color: var(--sand-bg-opacity);
  opacity: 1;
}

/* Call Now Shimmer/Glow Highlight Animation */
.call-now-highlight {
  position: relative;
  background: rgba(0, 174, 206, 0.06);
  border: 1px solid var(--teal);
  padding: 8px 16px;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 174, 206, 0.15);
  display: inline-flex;
  align-items: center;
}
.call-now-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine-glow 3.5s infinite ease-in-out;
}
@keyframes shine-glow {
  0% {
    left: -150%;
  }
  35% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}
.call-now-highlight:hover {
  background: var(--teal);
  color: var(--paper) !important;
  box-shadow: 0 0 18px rgba(0, 174, 206, 0.55);
  transform: scale(1.04);
}

/* ===== Global Floating Call Button Widget ===== */
.floating-call-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: white;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: all 0.3s ease;
  animation: floatingBounce 3s ease-in-out infinite;
  text-decoration: none;
}
.floating-call-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 35px rgba(34, 197, 94, 0.9);
  background: linear-gradient(135deg, #4ade80, #86efac);
  animation: floatingBounceActive 0.5s ease-in-out infinite;
}
@keyframes floatingBounce {
  0%, 100% {
    transform: translateY(0px);
    filter: drop-shadow(0 4px 10px rgba(34, 197, 94, 0.6));
  }
  50% {
    transform: translateY(-15px);
    filter: drop-shadow(0 8px 20px rgba(34, 197, 94, 0.8));
  }
}
@keyframes floatingBounceActive {
  0%, 100% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1.25);
  }
}

.call-btn-pulse {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: callPulseRing 2s ease-out infinite;
  pointer-events: none;
}
@keyframes callPulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(34, 197, 94, 0.3);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 30px rgba(34, 197, 94, 0);
    transform: scale(1.2);
  }
}

.live-indicator {
  position: fixed;
  bottom: 38px;
  right: 38px;
  width: 12px;
  height: 12px;
  background: #ff4500;
  border-radius: 50%;
  z-index: 1000;
  animation: liveIndicatorPulse 1.5s ease-in-out infinite;
}
@keyframes liveIndicatorPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
}

.call-btn-label {
  position: fixed;
  bottom: 50px;
  right: 80px;
  background: rgba(34, 197, 94, 0.95);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  animation: labelFadeIn 0.4s ease-out forwards;
}
@keyframes labelFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 56px !important;
  }
  .floating-call-btn {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  .call-btn-pulse {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
  .live-indicator {
    bottom: 27px;
    right: 27px;
  }
  .call-btn-label {
    display: none !important;
  }
}
