/* ──────────────────────────────────────────────────────────────────────────────
   Modern CSS (Dark mode default) with Configurable Parallax “Cover” and Push
──────────────────────────────────────────────────────────────────────────────── */

/* (1) Root variables (light + dark) */
:root {
  /* Light mode colors (default) */
  --primary-color:    #1e40af;
  --secondary-color:  #f59e42;
  --text-main:        #333;
  --text-secondary:   #666;
  --background-color: #fff;
  --surface-color:    #f8f9fa;
  --border-color:     #e9ecef;
  --link-color:       #0066cc;
  --header-bg:        #f8f9fa;
  --footer-bg:        #f8f9fa;
  --shadow:           0 2px 8px rgba(0, 0, 0, 0.1);

  /* Aliases */
  --primary:      var(--primary-color);
  --secondary:    var(--secondary-color);
  --primary-dark: #0f2167;
  --background:   var(--background-color);
  --surface:      var(--surface-color);
  --border:       var(--border-color);

  /* PARALLAX PUSH – fallback to 100vh if not overridden via inline style */
  --parallax-push: 100vh;
}

[data-theme="dark"],
.dark-mode {
  /* Dark mode overrides */
  --primary-color:    #90caf9;
  --secondary-color:  #ffab40;
  --text-main:        #e0e0e0;
  --text-secondary:   #aaa;
  --background-color: #121212;
  --surface-color:    #1e1e1e;
  --border-color:     #333;
  --link-color:       #90caf9;
  --header-bg:        #1e1e1e;
  --footer-bg:        #1e1e1e;
  --shadow:           0 2px 8px rgba(0, 0, 0, 0.5);

  /* Keep same fallback for parallax push */
  --parallax-push: 100vh;
}

/* (2) Base reset + Body */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
  /* Light‐mode colors are already in :root */
}

body.dark-mode,
body[data-theme="dark"] {
  background-color: var(--background-color);
  color: var(--text-main);
}

/* Scrollbar styling (WebKit) */
::-webkit-scrollbar {
  width: 8px;
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--surface);
  border-radius: 4px;
}

.site-banner {
  position: fixed;
  left: 0;
  top: 33vh;
  transform: translateY(-50%);
  width: 100vw;
  height: 35vw;
  max-height: 800px;
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(18,18,18, 0.98);
  box-shadow: 0 6px 24px rgba(0,0,0,0.19);
  z-index: 2000;
  opacity: 0.90;
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1);
  pointer-events: all;
}

.site-banner.fade-out {
  opacity: 0;
  pointer-events: none;
}

.site-banner-message {
  text-align: center;
  color: #fff;
  font-size: 1.25rem;
  padding: 2rem 3vw;
  border-radius: 1.2rem;
  background: rgba(24,24,24,0.8);
  max-width: 1300px;
  box-shadow: 0 2px 16px #0008;
  border: 3px solid #f59e42;
  font-family: 'Urbanist', 'Inter', 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.site-banner-message h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-family: 'Urbanist', 'Inter', 'Montserrat', Arial, sans-serif;
}

.site-banner-message p {
  font-size: 1.1rem;
  color: #f59e42;
  margin: 0;
  font-family: 'Urbanist', 'Inter', 'Montserrat', Arial, sans-serif;
}

@media (max-width: 500px) {
  .site-banner { min-height: 80px; }
  .site-banner-message { font-size: 1rem; padding: 1.2rem 4vw; }
  .site-banner-message h2 { font-size: 1.2rem; }
}

/* (3) Fluid container */
.container,
.header-container,
.footer-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* (4) PARALLAX BACKGROUND – ALWAYS COVER FULL VIEWPORT */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;               /* Always FULL viewport height */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

/* Push <main> DOWN by --parallax-push (e.g. 50vh) when parallax is active */
.with-parallax main {
  margin-top: var(--parallax-push, 100vh);
}

/* (5) HEADER + NAVIGATION */
header {
  background-color: var(--header-bg);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: relative;       /* so dropdown can overflow */
  overflow: visible;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  max-height: 40px;
  width: auto;
}
.logo-link {
  border: 3px solid #f59e42;
  border-radius: 12px;
}
.logo-text {
  margin: 0;
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 600;
}

/* (5a) Hamburger toggle: hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-main);
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
}

/* (5b) Desktop nav */
.main-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}
.nav-links li {
  margin: 0;
}
.nav-links li a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-links li a:hover,
.nav-links li a:focus {
  background-color: var(--surface-color);
  color: var(--primary-dark);
}
.main-nav .nav-links:empty,
header:not(.nav-open) .nav-toggle {
  display: none !important;
}

/* (5c) Mobile override: hide nav-links, show when header.nav-open */
@media (max-width: 768px) {
  .main-nav .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--header-bg);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    z-index: 100;
  }
  header.nav-open .nav-links {
    display: flex;
  }
  .main-nav .nav-links li {
    margin: 0;
    text-align: center;
  }
  .main-nav .nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

/* (5d) Tablet tweak */
@media (max-width: 1024px) {
  .nav-links li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
}

/* (6) TYPOGRAPHY (Headings + Text) */
h1, h2 {
  color: #f59e42; /* Warm orange for headings */
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.22rem;
  color: #ffb14a; /* Lighter gold */
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
h4 {
  font-size: 1.05rem;
  color: #ffd59e; /* Pale orange */
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
}
@media (max-width: 768px) {
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}
p, ul, ol {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* (7) MAIN CONTENT + IMAGES */
main {
  flex: 1 0 auto;
  padding: 2.5rem 0;
}
.page-title {
  font-size: 2.5rem;
  margin: 1rem 0;
}
@media (max-width: 600px) {
  .page-title {
    font-size: 1.8rem;
    margin: 0.75rem 0;
  }
}
.page-image {
  text-align: center;
  margin-bottom: 2rem;
}
.page-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* (7a) Full-viewport-width main image when class applied */
.page-image.full-viewport,
.page-image.full-viewport img {
  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  display: block;
  padding: 0 !important;
}

body {
  overflow-x: hidden;
}


/* (8) LINKS */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: var(--secondary);
  text-decoration: underline;
}

/* (9) CTA BUTTON */
.cta-wrapper {
  margin-top: 3.5rem;   /* more space above */
  margin-bottom: 2.5rem; /* more space below */
  text-align: center;
}
.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--surface-color); /* light gray */
  border: none;
  border-radius: 2em;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06);
  transition: background-color 0.18s ease, transform 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}
.cta-btn:hover,
.cta-btn:focus {
  background-color: var(--secondary-color); /* original orange */
  color: #fff; /* keep text white */
  transform: translateY(-2px) scale(1.03);
}

/* (10) FOOTER */
footer {
  background-color: var(--footer-bg);
  padding: 1.5rem 0 1rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0 0 1rem 0;
}
.footer-links li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-links li a:hover,
.footer-links li a:focus {
  color: var(--primary);
  text-decoration: underline;
}
.footer-copy {
  font-size: 0.875rem;
  margin: 0;
}

/* (11) IMAGES / BLOCKQUOTES / CODE */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
ul,
ol {
  padding-left: 1.5rem;
}

@media (max-width: 480px) {
  /* Additional small tweaks if needed */
}

/* Modern Vertical Scrollbar Styling with Dark Mode Support */
::-webkit-scrollbar {
  width: 12px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--surface-color) 0%,
    var(--primary-color) 90%
  );
  border-radius: 8px;
  min-height: 36px;
  border: 3px solid rgba(0,0,0,0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
}

::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
  border-radius: 8px;
}

/* DARK MODE OVERRIDE */
[data-theme="dark"] ::-webkit-scrollbar-thumb,
body.dark-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--surface-color) 10%,
    var(--primary-color) 100%
  );
  box-shadow: 0 2px 8px rgba(0,0,0,0.19);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--surface-color);
}

[data-theme="dark"] *,
body.dark-mode * {
  scrollbar-color: var(--primary-color) var(--surface-color);
}

#three-bg {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}
header, main, footer {
  position: relative;
  z-index: 1;
}
/* @media (max-width: 700px) { */
/*   #three-bg { display: none !important; } */
/* } */

