/* ===========================
   Global Theme & Layout
   =========================== */

:root {
  --bs-primary: #aa8cf2;
  --gold-accent: #d4af37;
  --bs-body-font-size: 1.05rem;
  --bs-body-line-height: 1.6;

  --bg-main: #0a0014;
  --bg-footer: #0d0d0d;
  --text-main: #e0e0e0;
  --text-muted-global: #aaaaaa;
  --text-footer: #e4e4e4;
  --text-footer-dim: #c2c2c2;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;

  /* Dark subtle purple center → pure black edges */
  background: radial-gradient(
    circle at center,
    #2b0059 0%,
    #210040 35%,
    #120028 65%,
    #000000 100%
  );

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;

  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-line-height);
}

/* Keep a sensible global muted, stronger overrides in footer later */
.text-muted {
  color: var(--text-muted-global) !important;
}

main.flex-fill {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Utility tweak */
.mt-5 {
  margin: 2rem !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
}

h1,
h2 {
  color: var(--bs-primary) !important;
}

h3,
h4,
h5,
h6 {
  color: var(--gold-accent) !important;
}

/* Glassmorphism Card */
.card-glass {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  margin: 20px auto;
}

/* ===========================
   Navbar & Branding (Premium)
   =========================== */

.navbar {
  background-color: var(--bg-footer);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Top-level nav links & brand */
.navbar-dark .navbar-nav .nav-link,
.navbar-brand {
  color: #fff !important;
  font-size: 1.05rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

/* Gold accent on hover / open */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .dropdown.show > .nav-link,
.navbar-dark .navbar-nav .nav-link[aria-expanded="true"] {
  opacity: 1;
  color: var(--gold-accent) !important;
}

/* Dropdown toggles feel slightly button-like */
.navbar-dark .nav-link.dropdown-toggle {
  position: relative;
}

/* Keep default caret but spaced */
.navbar-dark .nav-link.dropdown-toggle::after {
  margin-left: 0.35rem;
}

.navbar-toggler {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  color: #fff;
  border: none;
}

.navbar-toggler span.text-label {
  display: inline-block;
}

/* ===========================
   Dropdown Menus (Global)
   =========================== */

.dropdown-menu {
  background-color: #1e1e1e;
  border: 1px solid #333;
  font-size: 1rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 320px;
  max-width: 100%;
}

.dropdown-item {
  color: #e0e0e0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.dropdown-item small {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #aaaaaa !important;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Preserve icon colours: only items WITHOUT inline style use primary */
.dropdown-menu .dropdown-item i:not([style]) {
  color: var(--bs-primary) !important;
}

.dropdown-item:hover {
  background-color: #2a2a2a;
  color: #ba8cf2;
}

.dropdown-header {
  color: var(--bs-primary);
  font-size: 0.9rem;
}

.dropdown-divider {
  border-top: 1px solid #444;
}

/* ===========================
   Premium Navbar Dropdown & Mega Menu
   =========================== */

/* Dark nav-specific dropdown overrides */
.navbar-dark .dropdown-menu {
  background-color: #111;
  color: #fff;
  border: none;
}

/* Mega menu base */
.navbar .dropdown.megamenu {
  position: static;
}

/* Animated full-width mega menu */
.navbar .dropdown-menu.megamenu {
  margin-top: 0;
  border-radius: 0 0 14px 14px;
  border: none;
  padding: 1.5rem 0 1.75rem;
  width: 100%;
  left: 0;
  right: 0;

  background-color: #111;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);

  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease-out,
    transform 0.22s ease-out,
    visibility 0s linear 0.22s;
}

/* Show state when dropdown is open */
.navbar .dropdown-menu.megamenu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.22s ease-out,
    transform 0.22s ease-out,
    visibility 0s;
}

/* Column layout refinements */
.navbar .dropdown-menu.megamenu .row > [class*="col-"] {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 992px) {
  .navbar .dropdown-menu.megamenu .row > [class*="col-"]:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* Headers inside nav mega menus */
.navbar-dark .dropdown-menu.megamenu .dropdown-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f8f9fa;
  opacity: 0.85;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.15rem;
}

/* Items inside nav mega menus */
.navbar-dark .dropdown-menu.megamenu .dropdown-item {
  padding: 0.45rem 0.75rem;
  line-height: 1.25;
  border-radius: 0.45rem;
  margin: 0.15rem 0;
  color: #f8f9fa;
  white-space: normal;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

.navbar-dark .dropdown-menu.megamenu .dropdown-item small {
  font-size: 0.75rem;
  color: #adb5bd !important;
}

/* Hover state: subtle */
.navbar-dark .dropdown-menu.megamenu .dropdown-item:hover,
.navbar-dark .dropdown-menu.megamenu .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Divider tweak inside mega menu */
.navbar-dark .dropdown-menu.megamenu .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 0.65rem 0;
}

/* Mobile mega menu tweaks */
@media (max-width: 991.98px) {
  .navbar .dropdown.megamenu {
    position: relative;
  }

  .navbar .dropdown-menu.megamenu {
    padding: 1rem 0.75rem 1.25rem;
    border-radius: 0 0 10px 10px;
    width: 100%;
  }

  .navbar .dropdown-menu.megamenu .row > [class*="col-"] {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .navbar .dropdown-menu.megamenu .row > [class*="col-"]:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

/* ===========================
   Hero & Section Cards
   =========================== */

/* 16:9 hero card that matches section width */
.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #000;
  aspect-ratio: 16 / 9;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .hero-section {
    aspect-ratio: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-radius: 18px;
  }
}

/* YouTube video background inside hero */
.youtube-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
  background: #000;
}

.youtube-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Old mp4 hero video class kept for compatibility if reused */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-color: #000;
}

/* Transparent hero “pills” */
.hero-pill {
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Section cards */
.section-card {
  max-width: 1200px;
  margin: 0 auto 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background-color: rgba(0, 0, 0, 0.88);
  padding: 3rem 2.5rem;
  color: #fff;
}

@media (max-width: 767.98px) {
  .section-card {
    padding: 2.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 18px;
  }
}

/* “What We Do” style info cards */
.what-we-do-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 2.25rem;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767.98px) {
  .what-we-do-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Large icons used in What We Do, How It Works, and Events */
.what-icon,
.how-icon,
.event-icon {
  font-size: 5rem;
  margin-bottom: 0.9rem;
  color: var(--bs-primary);
}

/* Service cards — dark theme */
.card {
  background: rgba(0, 0, 0, 0.70) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}

.card .card-title {
  color: var(--gold-accent) !important;
}

.card .card-text {
  color: #ddd !important;
}

.card-img-top {
  border-radius: 18px 18px 0 0 !important;
}

/* Spacing helpers used on this page */
.spacious-section .section-heading {
  margin-bottom: 3rem !important;
}

.spacious-row {
  row-gap: 3rem !important;
}

/* Tick list (green checkmarks) */
.tick-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.tick-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.4rem;
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #32d27f; /* green tick */
}

/* Premium package card highlight */
.package-card {
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.10),
    transparent 55%
  );
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: screen;
}

.package-card > * {
  position: relative;
  z-index: 1;
}

/* ===========================
   Colours & Buttons
   =========================== */

.text-primary {
  color: var(--bs-primary) !important;
}

.text-gold {
  color: var(--gold-accent) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.btn-primary {
  background-color: var(--bs-primary);
  color: #fff;
  border: none;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #9c7fe0;
  color: #fff;
}

/* Links */
a {
  color: var(--bs-primary);
  text-decoration: none;
}

a:hover {
  color: #ba8cf2;
}

/* ===========================
   Breadcrumbs
   =========================== */

.breadcrumb {
  background-color: #1e1e1e;
  border: 1px solid #333;
  margin-top: 10px;
}

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

.breadcrumb-item.active {
  color: #fff;
}

.breadcrumb-item.active::before,
.breadcrumb-item a:hover::before {
  color: var(--bs-primary);
}

/* ===========================
   Footer (Dark Premium)
   =========================== */

.footer {
  background-color: var(--bg-footer);
  color: #ffffff;
  padding: 2.5rem 0 2rem;
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-text {
  color: var(--text-footer-dim);
  line-height: 1.7;
}

/* Footer links */
.footer-link {
  color: var(--text-footer);
  font-size: 0.95rem;
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

.footer-link i {
  min-width: 1.25rem;
}

.footer-link:hover {
  color: var(--bs-primary);
  transform: translateX(1px);
}

/* Make sure any .text-muted inside footer isn't too dim */
.footer .text-muted {
  color: var(--text-footer-dim) !important;
}

/* Mobile footer improvements */
@media (max-width: 576px) {
  .footer {
    text-align: left;
  }

  .footer-text,
  .footer-link {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* ===========================
   Misc Links (old footer helpers)
   =========================== */

.list-inline-item a {
  color: #fff;
  font-size: 1rem;
}

.list-inline-item a:hover {
  color: #ba8cf2;
}
