  :root {
    --bg: #0d0d0d;
    --fg: #f0f0f0;
    --accent: #00bcd4;
    --card-bg: #1e1e1e;
    --text-muted: #ccc;
  }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--fg); /* apply the text color using the variable */
  background-image: url('bg1.jpg');
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  background-color: #0d0d0d;
  background-blend-mode: multiply;
}

/* Optional: add contrast boost to main content area */
section, .card, header, footer {
  background-color: rgba(17, 17, 17, 0.22); /* semi-opaque dark overlay */
  backdrop-filter: blur(2px);
}

  header {
    position: sticky;
    top: 0;
    background: var(--card-bg);
    padding: 1rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  }

  header nav a {
    margin: 0 0.8rem;
    color: #00c2ff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  header nav a:hover {
    color: #ff6600;
    text-shadow:
      0 0 4px #ff6600,
      0 0 8px rgba(255, 102, 0, 0.5);
  }

  section {
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .lead-capture {
    background: var(--accent);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: var(--bg);
  }

  .lead-capture input {
    padding: 0.6rem;
    width: 70%;
    margin-right: 0.5rem;
  }

  .lead-capture button {
    padding: 0.6rem 1rem;
    background: var(--bg);
    color: var(--accent);
    border: none;
  }

  .before-after {
    display: flex;
    gap: 1rem;
  }

  .before-after img {
    width: 48%;
    border-radius: 8px;
  }

  .faq summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  .faq details {
    background: var(--card-bg);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
  }

  .faq details summary:hover {
    color: var(--accent);
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  form input, form textarea {
    padding: 0.8rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
  }

  form button {
    padding: 0.8rem;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

  .map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
  }

  .contact-info {
    padding: 2rem;
    background: #222;
    border-radius: 12px;
    border: 2px solid #00bcd4;
    max-width: 400px;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
  }

  .contact-info h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1rem;
  }

.info-box a {
  display: inline-block; /* or block if preferred */
  word-break: break-word; /* to break long email addresses if needed */
  max-width: 100%; /* prevent overflow */
  color: #00ffff; /* optional: set link color for visibility */
  text-decoration: underline; /* optional: style link */
}

  .info-box p {
    margin: 0.5rem 0;
  }

  .info-box a {
    color: #00c2ff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  .info-box a:hover,
  .info-box a:focus {
    color: #ff6600;
    text-shadow:
      0 0 5px #ff6600,
      0 0 10px rgba(255, 102, 0, 0.6),
      0 0 15px rgba(255, 102, 0, 0.4);
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .custom-contact {
    background: linear-gradient(135deg, #121212, #1c1f22);
    box-shadow:
      0 4px 20px rgba(0, 188, 212, 0.5),
      inset 0 0 10px #00c0d8;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    margin: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #a0e9f9;
  }

  .custom-contact h2 {
    font-size: 1.75rem;
    font-weight: 900;
    text-align: center;
    color: #00bcd4;
    text-shadow: 0 0 6px #00bcd4aa;
    margin-bottom: 1.5rem;
  }

  .custom-contact label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #76f0ff;
  }

  .custom-contact input[type="text"],
  .custom-contact input[type="email"],
  .custom-contact textarea {
    width: 100%;
    background: #21252b;
    border: 2px solid #00bcd4;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #d3f4fb;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .custom-contact input:focus,
  .custom-contact textarea:focus {
    border-color: #00fff7;
    background: #0e151a;
    outline: none;
    box-shadow: 0 0 12px #00f7ffaa;
    color: #e0ffff;
  }

  .custom-contact textarea {
    resize: vertical;
    min-height: 100px;
  }

  .custom-contact button {
    width: 100%;
    background: linear-gradient(45deg, #00bcd4, #008a8a);
    color: #fff;
    font-weight: 700;
    padding: 0.9rem 0;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 6px 15px #00bcd480;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    margin-top: 1rem;
    letter-spacing: 0.03em;
  }

  .custom-contact button:hover {
    background: linear-gradient(45deg, #00eaff, #00b0b0);
    box-shadow: 0 8px 25px #00eaffcc;
  }

  /* Global link styling */
  a {
    color: #00c2ff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  a:hover,
  a:focus {
    color: #ff6600;
    text-shadow:
      0 0 5px #ff6600,
      0 0 10px rgba(255, 102, 0, 0.6),
      0 0 15px rgba(255, 102, 0, 0.4);
  }

  a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, #00c2ff, #ff6600);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: -1;
  }

  a:hover::after,
  a:focus::after {
    opacity: 1;
    transform: scaleX(1);
  }
  .themed-image {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.themed-image img {
  max-width: 90%;
  height: auto;
  border: 4px solid var(--accent); /* glowing blue border */
  border-radius: 16px;
  box-shadow:
    0 0 10px var(--accent),
    0 0 20px rgba(0, 188, 212, 0.4);
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;  /* VERY high to be above everything */
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  padding: 0.6rem 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow:
    0 0 8px var(--accent),
    0 0 16px rgba(0, 188, 212, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}
  /* Fade animation */
  body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  body.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  /* Initial state */
  body {
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  /* THEME SWITCHER STYLES */
  .theme-switcher {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem auto;
    flex-wrap: wrap;
  }

  .theme-button {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px var(--accent);
  }

  .theme-button:hover {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent);
  }

/* MATRIX THEME */
.theme-matrix {
  --bg: rgba(0, 0, 0, 0.22);         /* 70% opaque black */
  --fg: #00ff00;
  --accent: #00ff00;
  --card-bg: rgba(1, 1, 1, 0.22);    /* translucent dark for cards */
  --text-muted: #00ff0080;         /* already semi-transparent green */
  background-image: url('mc.gif');
  font-family: 'Courier New', monospace;
  --glow-1: #00ff00;
  --glow-2: #00cc00;
  --glow-3: #009900;
  --glow-4: #00ff66;
  --glow-5: #00ffaa;
}

  /* SOLARIZED LIGHT THEME */
  .theme-solarized {
    --bg: #fdf6e3;
    --fg: #586e75;
    --accent: #b58900;
    --card-bg: #eee8d5;
    --text-muted: #93a1a1;
    background-image: url('https://www.transparenttextures.com/patterns/dark-mosaic.png');
    --glow-1: #b58900;
    --glow-2: #cb4b16;
    --glow-3: #859900;
    --glow-4: #268bd2;
    --glow-5: #6c71c4;
  }

  /* VAPORWAVE THEME */
  .theme-vaporwave {
    --bg: #2b0033;
    --fg: #ff66c4;
    --accent: #00f0ff;
    --card-bg: #3b0077;
    --text-muted: #ffaaff;
    background-image: linear-gradient(135deg, #2b0033, #3b0077);
    font-family: 'Comic Sans MS', cursive, sans-serif;
    --glow-1: #ff66c4;
    --glow-2: #00f0ff;
    --glow-3: #ff77ff;
    --glow-4: #ffcc00;
    --glow-5: #9900ff;
  }

  /* OORAH (USMC) THEME */
  .theme-oorah {
  --bg: #0c0c0c;
  --fg: #e5e5e5;
  --accent: #b22222; /* Blood red */
  --card-bg: #0f1a2b; /* Dress blue */
  --text-muted: #ffaa80;
  font-family: 'Georgia', serif;
  background-image: url('egabg.jpg');
  background-repeat: repeat;
  background-size: 180px auto;
  background-position: top center;
  background-blend-mode: overlay;
  --glow-1: #b22222;
  --glow-2: #8b0000;
  --glow-3: #ff8c00;
  --glow-4: #ffd700;
  --glow-5: #ff4500;
}
  /* Scrollbar width and track */
::-webkit-scrollbar {
  width: 22px; /* wider scrollbar */
  background-color: #0d0d0d; /* dark background matching your page bg */
}

/* Scrollbar track */
::-webkit-scrollbar-track {
  background: #121212; /* slightly lighter dark */
  box-shadow: inset 0 0 5px #00000099;
  border-radius: 10px;
}

/* Scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00bcd4, #008a8a);
  border-radius: 10px;
  box-shadow:
    0 0 8px #00bcd4,
    inset 0 0 6px #00eaff;
  transition: background 0.3s ease;
}

/* Hover effect on the thumb */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00eaff, #00a8a8);
  box-shadow:
    0 0 17px #00eaff,
    inset 0 0 10px #00ffff;
}

/* Firefox scrollbar customization */
* {
  scrollbar-width: thin;
  scrollbar-color: #00bcd4 #121212;
}

.scroll-circle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  z-index: 9999;
}

.scroll-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Start progress from top */
}

circle.track {
  fill: none;
  stroke: #333;
  stroke-width: 10;
  opacity: 0.3;
}


circle.progress {
  fill: none;
  stroke: url(#gradientStroke);
  stroke-width: 10;
  stroke-dasharray: 283; /* 2πr = 2 * 3.14 * 45 */
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.1s linear;
}

/* Gradient definition */
.scroll-circle svg defs {
  pointer-events: none;
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.05);
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 1rem;
}
.gallery-grid a img {
  width: 150px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.gallery-grid a img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--accent);
}

/* Theme-specific glow borders */
.theme-default .gallery-img {
  border: 2px solid #ccc;
}
.theme-matrix .gallery-img {
  border: 2px solid #00ff00;
  box-shadow: 0 0 10px #00ff00;
}
.theme-solarized .gallery-img {
  border: 2px solid #b58900;
  box-shadow: 0 0 10px #b58900;
}
.theme-vaporwave .gallery-img {
  border: 2px solid #ff77ff;
  box-shadow: 0 0 10px #ff77ff;
}
.theme-cyberpunk .gallery-img {
  border: 2px solid #ff00cc;
  box-shadow: 0 0 10px #ff00cc, 0 0 5px #00ffff;
}

.masonry-grid {
  column-count: 1;
  column-gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto;
}

@media (min-width: 640px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  display: block;
  break-inside: avoid;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


.tally-embed-container {
  position: relative;
  width: 100%;
  height: 2222px;
  max-height: 100vh;
  overflow: hidden;
  margin: 2em 0;
  border-radius: 1em;
  transition: box-shadow 0.3s ease;
}

/* Theme-specific glowing borders */
.theme-default .tally-embed-container {
  box-shadow: 0 0 12px #ccc;
}

.theme-matrix .tally-embed-container {
  box-shadow: 0 0 12px #00ff00;
  border: 2px solid #00ff00;
}

.theme-vaporwave .tally-embed-container {
  box-shadow: 0 0 12px #ff66ff;
  border: 2px solid #ff66ff;
}

.theme-solarized .tally-embed-container {
  box-shadow: 0 0 12px #b58900;
  border: 2px solid #b58900;
}

.theme-cyberpunk .tally-embed-container {
  box-shadow: 0 0 12px #ff00cc, 0 0 6px #00ffff;
  border: 2px solid #ff00cc;
}

.tally-iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
  border-radius: 1em;
}


.style-table-section {
  padding: 2rem 1rem;
  background-color: var(--bg);
  color: var(--fg);
}

.style-table-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  text-align: center;
}

.style-table-section .subtext {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted, #aaa);
  margin-bottom: 1.5rem;
}

.table-wrapper {
  overflow-x: auto;
}

.style-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.style-table th,
.style-table td {
  border: 1px solid var(--accent);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.style-table th {
  background-color: var(--card-bg);
  color: var(--accent);
  font-weight: bold;
}

.style-table .section-header td {
  background-color: var(--card-bg);
  font-weight: bold;
  color: var(--accent);
  font-size: 1rem;
  text-align: center;
  padding: 1rem 0.5rem;
}

.glow-divider {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  margin: 4rem 0;
  background: linear-gradient(
    90deg,
    var(--glow-1, #00ff99),
    var(--glow-2, #00ccff),
    var(--glow-3, #ff9900),
    var(--glow-4, #00ffff),
    var(--glow-5, #cc66ff)
  );
  background-size: 400% 400%;
  animation: glow-bar 8s ease infinite;
  box-shadow:
    0 0 10px var(--glow-1, #00ff99aa),
    0 0 20px var(--glow-2, #00ccffaa),
    0 0 30px var(--glow-3, #ff9900aa),
    0 0 40px var(--glow-4, #00ffffaa),
    0 0 50px var(--glow-5, #cc66ffaa);
}

@keyframes glow-bar {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Optional theme glow */
.theme-default .masonry-img { border: 2px solid #ccc; }
.theme-matrix .masonry-img { border: 2px solid #00ff00; box-shadow: 0 0 10px #00ff00; }
.theme-vaporwave .masonry-img { border: 2px solid #ff66ff; box-shadow: 0 0 10px #ff66ff; }
.theme-solarized .masonry-img { border: 2px solid #b58900; box-shadow: 0 0 10px #b58900; }
.theme-cyberpunk .masonry-img { border: 2px solid #ff00cc; box-shadow: 0 0 10px #ff00cc, 0 0 5px #00ffff; }