/* ===== CryoJon Cyberpunk Theme ===== */

/* --- Global --- */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #0a0a0f;
  color: #d0dce8;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* --- Navbar --- */
@media (min-width: 992px) {
  .navbar {
    padding-left: 15%;
    padding-right: 15%;
  }
}

.cryojon-navbar {
  background: #07080f !important;
  border-bottom: 2px solid #00c8ff;
  box-shadow: 0 2px 24px rgba(0, 200, 255, 0.25);
}

.cryojon-navbar .navbar-brand {
  color: #e0f0ff !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.cryojon-navbar .navbar-brand img {
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.55));
  margin-right: 8px;
  object-fit: cover;
}

.cryojon-navbar .nav-link {
  color: #7a9ab0 !important;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.cryojon-navbar .nav-link:hover {
  color: #00c8ff !important;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
}

/* --- Hero Banner --- */
.hero-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0 1rem;
  position: relative;
  overflow: visible;
}

.hero-logo-wrap {
  flex: 0 0 auto;
  width: 340px;
  text-align: center;
}

.hero-logo-stack {
  position: relative;
  width: 320px;
  height: 360px;
  overflow: hidden;
  margin: 0 auto;
  filter: drop-shadow(0 0 22px rgba(0, 200, 255, 0.45));
  transform: translateZ(0);
  will-change: filter;
}

.hero-logo {
  position: absolute;
  /* Scale image up so character fills the frame, then shift to center on character */
  width: 760px;
  height: auto;
  left: 50%;
  top: -68px;
  transform: translateX(-50%);
}

.hero-logo-armlights {
  opacity: 0;
  will-change: opacity;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #e8f4ff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(0, 200, 255, 0.35);
  margin-bottom: 0.3rem;
}

.hero-wordmark-crop {
  position: relative;
  width: 460px;
  max-width: 100%;
  height: 146px;
  overflow: hidden;
  margin-bottom: 0.15rem;
  margin-left: 0;
  filter: drop-shadow(0 0 10px rgba(0, 200, 255, 0.3));
}

.hero-wordmark {
  position: absolute;
  width: 999px;
  height: auto;
  left: -275px;
  top: -456px;
}

/* Cylon-reverse scan: noborder layer slides a "gap" left and right over the blue border */
.hero-wordmark-scan {
  animation: wordmark-scan 8s ease-in-out infinite;
}

@keyframes wordmark-scan {
  0%    { clip-path: inset(0 655px 0 275px); }
  5%    { clip-path: inset(0 655px 0 275px); }
  45%   { clip-path: inset(0 264px 0 666px); }
  55%   { clip-path: inset(0 264px 0 666px); }
  95%   { clip-path: inset(0 655px 0 275px); }
  100%  { clip-path: inset(0 655px 0 275px); }
}

.hero-text-body {
  max-width: 460px;
  padding: 0.75rem 1rem;
  background: rgba(0, 200, 255, 0.04);
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 10px;
}

.hero-subtitle {
  color: #6a8ca0;
  font-size: 1.15rem;
  font-weight: 400;
  margin-top: 0.1rem;
  margin-bottom: 0;
}

/* --- Hero Decorative Elements (logo parts) --- */
.hero-deco {
  position: absolute;
  pointer-events: none;
}

/* Bolt wrap: positions the bolt; inner images stacked via absolute fill.
   Note: positioning comes from .hero-deco (position: absolute) or .page-hero-bolt */
.bolt-wrap {
  display: block;
}

.bolt-wrap .bolt-base,
.bolt-wrap .bolt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Base: dim cyan-filled bolt, always visible */
.bolt-wrap .bolt-base {
  opacity: 0.3;
}

/* Overlay: bright outline bolt, hidden by default, JS shows on flash.
   translateZ forces its own GPU layer in Safari so opacity animation
   doesn't corrupt sibling filter effects. */
.bolt-wrap .bolt-overlay {
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
}

.hero-deco-bolt-tl {
  width: 60px;
  height: 60px;
  top: 8px;
  left: 8px;
  transform: rotate(-20deg) scaleX(-1);
}

.hero-deco-bolt-tr {
  width: 70px;
  height: 70px;
  top: 0px;
  right: 10px;
  transform: rotate(10deg);
}

.hero-deco-bolt-r2 {
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 80px;
  transform: rotate(-15deg) scaleY(-1);
}

.hero-deco-bolt-r3 {
  width: 45px;
  height: 45px;
  top: 50%;
  right: 160px;
  transform: translateY(-50%) rotate(5deg);
}

.hero-deco-bolt-b1 {
  width: 42px;
  height: 42px;
  bottom: 15px;
  left: 20%;
  transform: rotate(-20deg);
}

.hero-deco-bolt-b2 {
  width: 38px;
  height: 38px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) rotate(10deg) scaleY(-1);
}

.hero-deco-bolt-b3 {
  width: 48px;
  height: 48px;
  top: 15px;
  left: 15%;
  transform: rotate(25deg);
}

.hero-deco-spark-1 {
  width: 22px;
  top: 18px;
  left: 240px;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.9));
}

.hero-deco-spark-2 {
  width: 14px;
  bottom: 30px;
  right: 80px;
  opacity: 0.6;
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.8));
}

.hero-deco-spark-3 {
  width: 18px;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  opacity: 0.5;
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.8));
}


/* --- Tab Navigation --- */
.tab-nav {
  display: flex;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid #131c28;
  padding-bottom: 0;
  width: 100%;
}

.tab-button {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #0d1018;
  border: none;
  border-bottom: 3px solid transparent;
  margin: 0 2px;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 1rem;
  color: #5a7a90;
  transition: all 0.2s ease;
  text-align: center;
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.tab-button:hover {
  color: #9fc8e0;
  background: #111620;
}

.tab-button.active {
  color: #00c8ff;
  background: #0d1522;
  border-bottom-color: #00c8ff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

/* Tab button decoration images */
.tab-bolt {
  height: 18px;
  width: auto;
  opacity: 0.4;
  transition: opacity 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

.tab-button:hover .tab-bolt,
.tab-button.active .tab-bolt {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.7));
}

.tab-spark {
  height: 14px;
  width: auto;
  opacity: 0.3;
  transition: opacity 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

.tab-button:hover .tab-spark,
.tab-button.active .tab-spark {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.7));
}

.tab-reticle {
  height: 16px;
  width: auto;
  opacity: 0.3;
  transition: opacity 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

.tab-reticle-flip {
  transform: scaleX(-1);
}

.tab-button:hover .tab-reticle,
.tab-button.active .tab-reticle {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 69, 0, 0.7));
}

.tab-label {
  white-space: normal;
  line-height: 1.2;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a2535;
  color: #6a8ca0;
  border-radius: 12px;
  padding: 0.15rem 0.5rem;
  font-size: 0.85em;
  min-width: 1.5em;
  font-weight: 500;
  flex-shrink: 0;
}

.tab-button.active .tab-badge {
  background: #00c8ff;
  color: #000;
}

.tab-content {
  display: none;
  padding: 1rem 0;
}

.tab-content.active {
  display: block;
}

/* --- Video Thumbnails --- */
.video-thumbnails-container {
  margin: 1rem -0.5rem;
  gap: 1rem;
}

.video-thumbnail {
  width: 100%;
  max-width: 210px;
  background: #0d1320;
  border-radius: 8px;
  border: 1px solid #1a2a3a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.video-thumbnail:hover {
  transform: translateY(-5px);
  border-color: #ff4500;
  box-shadow: 0 6px 24px rgba(255, 69, 0, 0.25);
}

.video-thumbnail a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  padding-bottom: 3rem;
}

.video-thumbnail img:not(.card-bolt) {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin: 0;
}

.video-title {
  font-size: 0.9rem;
  color: #a0b8cc;
  padding: 0.5rem 0.75rem 0.25rem;
  display: block;
  text-align: center;
  line-height: 1.4;
}

/* --- Social Links --- */
.social-media-container {
  width: 100%;
  margin: 1rem 0;
  padding: 0;
}

.social-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #d0dce8;
  font-size: 1.3rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background-color: #0d1320;
  border: 1px solid #1a2a3a;
  border-left: 4px solid var(--brand-color, #1a2a3a);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.social-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #e8f4ff;
  box-shadow: 0 6px 24px rgba(0, 200, 255, 0.2);
  border-top-color: #00c8ff;
  border-right-color: #00c8ff;
  border-bottom-color: #00c8ff;
  background-color: color-mix(in srgb, var(--brand-color) 6%, #0d1320);
}

.social-link i,
.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--brand-color, #00c8ff);
  transition: filter 0.3s ease;
}

.social-link:hover i,
.social-link:hover svg {
  filter: drop-shadow(0 0 6px var(--brand-color));
}

.social-link-name {
  flex: 1;
  text-align: center;
  color: #d0dce8;
}

/* Social link sparkle flair */
.social-spark {
  height: 16px;
  width: auto;
  opacity: 0.4;
  transition: opacity 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(70%) sepia(40%) saturate(400%) hue-rotate(170deg) brightness(1.1);
}

.social-link:hover .social-spark {
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(70%) sepia(40%) saturate(400%) hue-rotate(170deg) brightness(1.3) drop-shadow(0 0 4px rgba(0, 200, 255, 0.8));
}

/* --- Card Flair Decorations --- */
/* Shared pseudo-element base for social cards */
.social-link::after {
  content: '';
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

/* Framer variants across video cards — centered at bottom, framing the date */
.video-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-size: 100% 80%;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Cycle controller variants across playlist cards — positioned on the full card */
.project-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 90px;
  height: 90px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.18;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}
.project-thumbnail:nth-child(3n+1)::after {
  background-image: url('/images/cryojonbrand/improvedweb/controller/onlycontroller.png');
}
.project-thumbnail:nth-child(3n+2)::after {
  background-image: url('/images/cryojonbrand/improvedweb/controller/controllerwithcyborghands.png');
}
.project-thumbnail:nth-child(3n+3)::after {
  background-image: url('/images/cryojonbrand/improvedweb/controller/controllerwithbothhands.png');
}

.project-thumbnail:hover::after {
  opacity: 0.35;
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.5));
}

/* Alternate framer variants across video cards */
.video-thumbnail:nth-child(odd)::after {
  background-image: url('/images/cryojonbrand/improvedweb/framers/redbottomframe.png');
}
.video-thumbnail:nth-child(even)::after {
  background-image: url('/images/cryojonbrand/improvedweb/framers/yellowbottomframe.png');
}

.video-thumbnail:hover::after {
  opacity: 1;
}

/* Cycle lightning variants across social buttons */
.social-link::after {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  left: auto;
  width: 24px;
  height: 24px;
}

.social-link:nth-child(3n+1)::after {
  background-image: url('/images/cryojonbrand/web/lightning_1.png');
}
.social-link:nth-child(3n+2)::after {
  background-image: url('/images/cryojonbrand/web/lightning_2.png');
}
.social-link:nth-child(3n+3)::after {
  background-image: url('/images/cryojonbrand/web/lightning_3.png');
}

.social-link:hover::after {
  opacity: 0.75;
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.7));
}

/* --- Navbar Sparkle Flair --- */
.navbar-avatar {
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.55));
}

.navbar-wordmark-crop {
  position: relative;
  width: 113px;
  height: 36px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.4));
}

.navbar-wordmark {
  position: absolute;
  width: 246px;
  height: auto;
  left: -68px;
  top: -112px;
}

.navbar-wordmark-scan {
  animation: navbar-wordmark-scan 8s ease-in-out infinite;
}

@keyframes navbar-wordmark-scan {
  0%    { clip-path: inset(0 161px 0 68px); }
  5%    { clip-path: inset(0 161px 0 68px); }
  45%   { clip-path: inset(0 65px 0 164px); }
  55%   { clip-path: inset(0 65px 0 164px); }
  95%   { clip-path: inset(0 161px 0 68px); }
  100%  { clip-path: inset(0 161px 0 68px); }
}

.navbar-brand-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.navbar-spark {
  width: 12px;
  opacity: 0.75;
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.9));
  pointer-events: none;
}

/* --- Section Headers (tab content titles) --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 0 1rem;
}

.section-header-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3a6080;
}

.section-header-bolt {
  width: 32px;
  opacity: 0.45;
  filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.5));
}

.section-header-bolt-r {
  transform: scaleX(-1);
}

.section-header-spark {
  width: 14px;
  opacity: 0.7;
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.9));
}

.section-header-reticle {
  width: 28px;
  opacity: 0.55;
  filter: drop-shadow(0 0 4px rgba(255, 69, 0, 0.5));
}

.section-header-reticle-flip {
  transform: scaleX(-1);
}

/* --- About Page Logo --- */
.about-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0.5rem;
}

.about-full-logo {
  width: 320px;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(0, 200, 255, 0.45));
}

/* --- Page Hero (About, FAQ headers) --- */
.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0 0.75rem;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #e8f4ff;
  text-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
  margin: 0;
  letter-spacing: 0.05em;
}

/* Lightning bolt decorations in page hero */
.page-hero-bolt {
  position: absolute;
  top: 50%;
  width: 55px;
  height: 55px;
  pointer-events: none;
  z-index: 0;
}

.page-hero-bolt-l {
  left: 5%;
  transform: translateY(-50%) rotate(-20deg) scaleX(-1);
}

.page-hero-bolt-r {
  right: 5%;
  transform: translateY(-50%) rotate(20deg);
}

/* --- Hero rebrand button --- */
.hero-rebrand-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #0d1320;
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-left: 3px solid #00c8ff;
  border-radius: 8px;
  text-decoration: none;
  color: #7a9ab0;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
}

.hero-rebrand-btn:hover {
  color: #00c8ff;
  text-decoration: none;
  border-color: #00c8ff;
  background-color: rgba(0, 200, 255, 0.06);
  box-shadow: 0 4px 18px rgba(0, 200, 255, 0.18);
}

.hero-rebrand-btn-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hero-rebrand-btn-logo-light {
  background: #1a2030;
  padding: 2px 4px;
}

.hero-rebrand-btn:hover .hero-rebrand-btn-logo {
  opacity: 1;
}

.hero-rebrand-btn-text {
  flex: 1;
  text-align: left;
}

.hero-rebrand-btn-full {
  max-width: 100%;
}

/* --- Rebrand Page --- */

.rebrand-section h2 {
  color: #00c8ff;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
  border-left: 3px solid #00c8ff;
  padding-left: 0.75rem;
  margin-top: 2rem;
}

.rebrand-section p {
  color: #b0c4d4;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Full logo + wordmark banner at top */
.rebrand-logo-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 200, 255, 0.04);
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 10px;
}

.rebrand-full-logo {
  width: 200px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 18px rgba(0, 200, 255, 0.4));
}

.rebrand-logo-caption {
  flex: 1;
}

.rebrand-wordmark {
  max-width: 260px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.25));
  margin-bottom: 0.75rem;
  display: block;
}

.rebrand-tagline {
  font-size: 1.05rem;
  color: #6a8ca0;
  font-style: italic;
  margin: 0;
}

/* Character beside CryoJon section text */
.rebrand-character-wrap {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.rebrand-character {
  width: 200px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.35));
}

/* Crop wrapper for full-canvas character art (justcharacterv2.png) */
.rebrand-character-crop {
  width: 200px;
  height: 225px;
  overflow: hidden;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.35));
}

.rebrand-character-crop .rebrand-character {
  width: 475px;
  height: auto;
  position: relative;
  left: 50%;
  top: -43px;
  transform: translateX(-50%);
  filter: none;
  flex-shrink: unset;
}

.rebrand-character-text {
  flex: 1;
}

.rebrand-character-text p {
  margin-top: 0;
}

/* Criteria list */
.rebrand-criteria {
  color: #b0c4d4;
  line-height: 1.9;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.rebrand-criteria li {
  margin-bottom: 0.5rem;
}

.rebrand-criteria strong {
  color: #e0eaf4;
}

/* Closing quote block */
.rebrand-closing {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2.5rem 0 1rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 200, 255, 0.04);
  border-left: 3px solid #00c8ff;
  border-radius: 0 8px 8px 0;
}

.rebrand-closing-logo {
  width: 120px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.4));
}

.rebrand-closing-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #c0d4e4;
  margin: 0;
  line-height: 1.7;
}

/* Previous era logo blocks */
.rebrand-era {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 1rem 0 0.5rem;
}

.rebrand-era-logo {
  width: 180px;
  flex-shrink: 0;
  border-radius: 8px;
}

.rebrand-era-logo-dark {
  /* AHG logo has a dark background — no extra treatment needed */
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.rebrand-era-logo-light {
  /* old Beyond the Ring logo has a white/light background */
  background: #1a2030;
  padding: 0.5rem;
  border: 1px solid #2a3a50;
}

.rebrand-era-text {
  flex: 1;
}

.rebrand-era-text p {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .rebrand-logo-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .rebrand-character-wrap {
    flex-direction: column;
    align-items: center;
  }
  .rebrand-era {
    flex-direction: column;
    align-items: center;
  }
  .rebrand-era-logo {
    width: 160px;
  }
  .rebrand-closing {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Nav highlight for rebrand link */
.nav-link-rebrand {
  color: #00c8ff !important;
}

/* --- About Section --- */

.about-section h2 {
  color: #00c8ff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.25);
  border-left: 3px solid #00c8ff;
  padding-left: 0.75rem;
  margin-top: 1.75rem;
}

.about-section p {
  margin-bottom: 1rem;
  color: #b0c4d4;
  line-height: 1.75;
}

/* About intro: logo beside text */
.about-intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

.about-intro .about-logo-wrap {
  flex-shrink: 0;
  padding: 0;
}

.about-intro .about-full-logo {
  width: 220px;
  max-width: 220px;
}

.about-intro-text {
  flex: 1;
}

.about-intro-text p {
  margin-top: 0;
}

@media (max-width: 600px) {
  .about-intro {
    flex-direction: column;
    align-items: center;
  }
  .about-intro .about-full-logo {
    width: 180px;
    max-width: 180px;
  }
}

.about-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.about-heading h2 {
  margin-top: 0;
}

.about-heading-spark {
  width: 16px;
  flex-shrink: 0;
  opacity: 0.8;
  filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.9));
}

/* --- FAQ Section --- */
.faq-section {
  margin-top: 1rem;
}

.faq-section-separator {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 200, 255, 0.15);
}

.faq-section-header {
  margin-bottom: 1.5rem;
}

.faq-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #e8f4ff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(0, 200, 255, 0.35);
  margin: 0;
}

.faq-item {
  background: rgba(0, 200, 255, 0.03);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-left: 3px solid #00c8ff;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-question {
  color: #00c8ff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.25);
  margin: 0 0 0.75rem;
}

.faq-answer {
  color: #b0c4d4;
  line-height: 1.75;
  margin: 0;
}

.faq-section a {
  color: #00c8ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 200, 255, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.faq-section a:hover {
  color: #38dfff;
  border-bottom-color: #38dfff;
}

/* --- Branding Transition (Previously page) --- */
.branding-transition {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.branding-transition .old-logo {
  max-width: 300px;
}

.branding-transition .video-container {
  text-align: center;
  margin-top: 20px;
}

.branding-transition iframe {
  max-width: 100%;
}

/* --- Floating Button --- */
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00c8ff;
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.5s, opacity 0.5s, box-shadow 0.2s;
  z-index: 1000;
  transform: translateX(0);
  opacity: 1;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
}

.floating-button:hover {
  background-color: #38dfff;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
}

.floating-button,
.floating-button:active,
.floating-button:focus,
.floating-button:visited,
.floating-button:hover {
  color: #000;
  text-decoration: none;
  outline: none;
}

.floating-button-hidden {
  transform: translateX(100%);
  opacity: 0;
}

/* --- Disabled Content --- */
.disabled-content {
  text-align: center;
  padding: 50px 20px;
  max-width: 600px;
  margin: 100px auto;
  background: #0d1320;
  border: 1px solid #1a2a3a;
  border-radius: 8px;
  color: #a0b8cc;
}

.disabled-content h1 {
  color: #00c8ff;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.4);
}

.disabled-content p {
  font-size: 1.2em;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  width: 100%;
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
}

/* --- Images --- */
img.img-fluid {
  max-width: 100%;
  height: auto;
  max-height: 200px;
}


/* --- Responsive --- */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .tab-button {
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  .hero-banner {
    justify-content: center;
  }
  .hero-text {
    flex: 0 0 auto;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .hero-logo-wrap {
    width: 260px;
  }
  .hero-logo-stack {
    width: 240px;
    height: 275px;
  }
  .hero-logo {
    width: 575px;
    top: -52px;
  }
  .hero-wordmark-crop {
    width: 340px;
    height: 108px;
  }
  .hero-wordmark {
    width: 738px;
    left: -203px;
    top: -337px;
  }
  @keyframes wordmark-scan {
    0%    { clip-path: inset(0 484px 0 203px); }
    5%    { clip-path: inset(0 484px 0 203px); }
    45%   { clip-path: inset(0 195px 0 492px); }
    55%   { clip-path: inset(0 195px 0 492px); }
    95%   { clip-path: inset(0 484px 0 203px); }
    100%  { clip-path: inset(0 484px 0 203px); }
  }
}

@media (max-width: 768px) {
  .hero-deco-bolt-tl,
  .hero-deco-bolt-tr,
  .hero-deco-bolt-bl {
    display: none;
  }
  .hero-deco-spark-1 { left: 10px; top: 10px; }
  .hero-deco-spark-2 { right: 10px; bottom: 10px; }
  .hero-deco-spark-3 { right: 10px; top: 10px; }

  .hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0 0.5rem;
    gap: 0.75rem;
  }
  .hero-logo-wrap {
    width: 210px;
  }
  .hero-logo-stack {
    width: 210px;
    height: 185px;
  }
  .hero-logo {
    width: 340px;
    height: auto;
    top: -8px;
  }
  .hero-wordmark-crop {
    width: 200px;
    height: 64px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-wordmark {
    width: 434px;
    left: -120px;
    top: -198px;
  }
  @keyframes wordmark-scan {
    0%    { clip-path: inset(0 285px 0 120px); }
    5%    { clip-path: inset(0 285px 0 120px); }
    45%   { clip-path: inset(0 115px 0 290px); }
    55%   { clip-path: inset(0 115px 0 290px); }
    95%   { clip-path: inset(0 285px 0 120px); }
    100%  { clip-path: inset(0 285px 0 120px); }
  }
  .hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-text-body {
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .hero-rebrand-btn {
    max-width: 100%;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .tab-button {
    font-size: 0.85rem;
    padding: 0.5rem 0.4rem;
    gap: 0.2rem;
    flex-wrap: wrap;
    min-height: 3rem;
  }
  .tab-bolt,
  .tab-spark,
  .tab-reticle {
    display: none;
  }
  .tab-badge {
    padding: 0.1rem 0.4rem;
    font-size: 0.8em;
  }
  .video-thumbnails-container {
    margin: 1rem -0.5rem;
    gap: 0.75rem;
    padding: 0 0.5rem;
  }
  .video-thumbnail {
    width: calc(50% - 0.375rem);
    max-width: none;
    margin: 0;
  }
  .video-thumbnail img:not(.card-bolt) {
    height: 110px;
  }
  .video-title {
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
  }
  .social-link {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
  }
  .social-link i,
  .social-link svg {
    width: 1.4rem;
    height: 1.4rem;
  }
  .social-spark {
    height: 13px;
  }
  .mobile-hide-text {
    display: none;
  }
  .mobile-logo-description {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 992px) {
  .video-thumbnail {
    max-width: 200px;
  }
}

@media (max-width: 375px) {
  .navbar-toggler {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  .navbar-brand {
    font-size: 1rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
  .tab-button {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  .hero-rebrand-btn-logo {
    height: 28px;
  }
}
