/**
 * Copyright 2026 Cubesob Demo Template.
 * Theme Name: Hesper
 * Theme Type: Landing Page
 * Developed by Mohammad Rehaan Nizami and Designed by Arsala Jeelani
 * All rights reserved.
 */

/* View Transition Styles */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}

/* Light Theme Variables and Rules (Alternate Mode) */
html[data-theme="light"],
html:not(.dark) {
  --c-ink: #faf8f5;
  --c-ink-2: #efebe4;
  --c-cream: #18161c;
  --c-amber: #b86200;
  --c-blue: #2d5592;
  --c-line: rgba(24, 22, 28, 0.12);
  --c-dim: rgba(24, 22, 28, 0.65);
  background: #faf8f5;
}

html[data-theme="light"] body,
html:not(.dark) body {
  background: #faf8f5;
  color: #18161c;
}

/* Frosted glass header in light mode for 100% visibility */
html[data-theme="light"] .nav,
html:not(.dark) .nav {
  mix-blend-mode: normal;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(24, 22, 28, 0.08);
}

html[data-theme="light"] .nav__mark,
html:not(.dark) .nav__mark {
  color: #18161c;
}

html[data-theme="light"] .nav__links a,
html:not(.dark) .nav__links a {
  color: #18161c;
  opacity: 0.75;
}

html[data-theme="light"] .nav__links a:hover,
html:not(.dark) .nav__links a:hover {
  color: #b86200;
  opacity: 1;
}

/* Cinematic Video Stage: Text must strictly remain crisp light silver / cream over dark video */
html[data-theme="light"] .hero__stage,
html:not(.dark) .hero__stage {
  color: #ece5d8;
}

html[data-theme="light"] .beat__title,
html:not(.dark) .beat__title,
html[data-theme="light"] .beat__head,
html:not(.dark) .beat__head,
html[data-theme="light"] .beat__body,
html:not(.dark) .beat__body {
  color: #ece5d8;
}

html[data-theme="light"] .ln--em,
html:not(.dark) .ln--em,
html[data-theme="light"] .beat__time,
html:not(.dark) .beat__time {
  color: #e8a33d;
}

html[data-theme="light"] .rail__label,
html:not(.dark) .rail__label {
  color: #e8a33d;
}

html[data-theme="light"] .rail__label--end,
html:not(.dark) .rail__label--end,
html[data-theme="light"] .hero__hint,
html:not(.dark) .hero__hint {
  color: rgba(236, 229, 216, 0.75);
}

html[data-theme="light"] .rail__track,
html:not(.dark) .rail__track {
  background: rgba(236, 229, 216, 0.3);
}

html[data-theme="light"] .rail__fill,
html:not(.dark) .rail__fill {
  background: #e8a33d;
}

/* Light mode architectural content sections */
html[data-theme="light"] .brief,
html:not(.dark) .brief {
  background: #faf8f5;
}

html[data-theme="light"] .index,
html:not(.dark) .index {
  background: #faf8f5;
}

html[data-theme="light"] .row:before,
html:not(.dark) .row:before {
  background: #efebe4;
}

html[data-theme="light"] .stats,
html:not(.dark) .stats {
  background: #faf8f5;
  border-top-color: rgba(24, 22, 28, 0.12);
}

html[data-theme="light"] .quote,
html:not(.dark) .quote {
  background: #faf8f5;
}

html[data-theme="light"] .foot,
html:not(.dark) .foot {
  background: #faf8f5;
  border-top-color: rgba(24, 22, 28, 0.12);
}

html[data-theme="light"] .grain,
html:not(.dark) .grain {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

/* Cubesob Floating Control Bar & Demo Pill
   Positioned bottom-left to avoid collisions with bottom-right rails/widgets */
.cubesob-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.cubesob-floating-bar > * {
  pointer-events: auto;
}

.cubesob-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #090d16;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
  cursor: default;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cubesob-demo-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.cubesob-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #e8a33d);
  box-shadow: 0 0 8px var(--accent, #e8a33d);
  display: inline-block;
  animation: cubesobPulse 2.4s infinite ease-in-out;
}

@keyframes cubesobPulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.cubesob-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #090d16;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.cubesob-theme-toggle:hover {
  transform: scale(1.08);
}

.cubesob-theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon--sun {
  display: none;
}

.theme-icon--moon {
  display: block;
}

html.dark .theme-icon--sun,
html[data-theme="dark"] .theme-icon--sun {
  display: block;
}

html.dark .theme-icon--moon,
html[data-theme="dark"] .theme-icon--moon {
  display: none;
}

html.dark .cubesob-demo-pill,
html[data-theme="dark"] .cubesob-demo-pill {
  background: rgba(14, 21, 38, 0.85);
  color: #f0f4fc;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark .cubesob-theme-toggle,
html[data-theme="dark"] .cubesob-theme-toggle {
  background: rgba(14, 21, 38, 0.85);
  color: #f0f4fc;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .cubesob-floating-bar {
    bottom: 16px;
    left: 16px;
    gap: 8px;
  }
  .cubesob-demo-pill {
    height: 40px;
    padding: 0 13px;
    font-size: 11.5px;
  }
  .cubesob-theme-toggle {
    width: 40px;
    height: 40px;
  }
}

