:root {
  /* Dark background (default) */
  --bg-main: #0B0F19;                /* Midnight Navy */
  --bg-elevated: #11151F;            /* Deep Charcoal */
  --bg-overlay: rgba(0, 0, 0, 0.35); /* Graphite overlay */

  /* U.S. flag accents */
  --flag-red: #C23333;
  --flag-blue: #1E3A8A;
  --flag-white: #E5E8EC;

  /* Stock candles */
  --bull-green: #2ECC71;
  --bear-red: #E74C3C;
  --bull-neon: #3DFF9F;
  --bear-muted: #B53737;

  /* Typography */
  --text-main: #F2F2F2;
  --text-soft: #C7C9D1;

  /* Theme transition */
  --theme-transition: 0.3s ease;
}

/* ------------------------------------------- */
/* Base Typography & Layout */
/* ------------------------------------------- */

body {
    font-family: "Inter", Arial, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    color: var(--text-main);
    background-color: var(--bg-main);
}

p, li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-soft);
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--text-main);
}


/* ------------------------------------------- */
/* Navbar */
/* ------------------------------------------- */

#custom-navbar {
    z-index: 1030;
}

/* Override Bootstrap's bg-dark on your navbar */
.navbar.bg-dark {
    background-color: var(--bg-elevated) !important;
    box-shadow: 0 0 20px var(--bg-overlay);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--flag-red) !important; /* “MARKET MINERS” in red */
}

.nav-link {
    color: var(--text-soft) !important;
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--flag-white) !important;
}

.nav-link.active {
    color: var(--flag-red) !important;
}

/* ------------------------------------------- */
/* Hero Section */
/* ------------------------------------------- */

.parallax {
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

/* Fallback background for pages without parallax JS */
.parallax:not(:has(.hero-parallax-bg)) {
    background-image: url("../imgs/hero_image.jpg");
    background-size: cover;
    background-position: center;
}

/* Optional overlay to make text readable */
.parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
                                transparent 0%,
                                rgba(0,0,0,0.55) 60%);
    pointer-events: none;
    z-index: -1;
}
.parallax > * {
    position: relative;
}

/* ------------------------------------------- */
/* Globe */
/* ------------------------------------------- */

#globe.globe-section {
  padding-bottom: 4rem;
}

.globe-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
  height: 1000px;
  aspect-ratio: 16 / 9;    /* keeps a nice proportion, scales with width */
  position: relative;
  overflow: hidden;
}

/* Make sure the globe fills the wrapper cleanly */
#globeViz {
  width: 100%;
  height: 100%;
}

/* Disable mouse interaction so scroll works normally */
#globeViz canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: 18px;       /* optional: nice rounded corners */
  overflow: hidden;
}

.globe-tooltip-custom {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #f5f5f5;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}


/* ------------------------------------------- */
/* Sections */
/* ------------------------------------------- */

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.border-bottom {
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

/* ------------------------------------------- */
/* Card Covers */
/* ------------------------------------------- */

.card-cover {
  position: relative;
  overflow: hidden;

  /* from your first block */
  background-size: cover !important;
  background-position: center !important;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border-radius: 12px;

  /* override Bootstrap's dark bg if needed */
  background-color: transparent !important;
}

.card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.5)
  );
  z-index: 1;
  pointer-events: none; /* safer */
}

.card-cover > * {
  position: relative;
  z-index: 2; /* ensures text appears above the gradient */
}

/* ------------------------------------------- */
/* Research Question Sticky Layout */
/* ------------------------------------------- */

.rq-section {
  scroll-margin-top: 80px; /* so anchors aren't hidden under navbar */
}

.rq-sticky {
  position: sticky;
  top: 90px;              /* adjust so it sits nicely under your navbar */
}

/* On smaller screens: no sticky, just normal flow */
@media (max-width: 991.98px) { /* Bootstrap lg breakpoint */
  .rq-sticky {
    position: static;
    margin-bottom: 1.5rem;
  }
}


/* ------------------------------------------- */
/* Plotly iframe containers */
/* ------------------------------------------- */

.plotly-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Ensure iframe ratio components fill container */
.ratio > iframe {
    width: 100%;
    height: 100%;
}

/* ------------------------------------------- */
/* Footer */
/* ------------------------------------------- */

footer {
    background-color: #0d0d0d;
    padding: 20px 0;
    text-align: center;
    color: #bbbbbb;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}
