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

::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;
}

/* 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(25, 19, 10, 0.85);
  color: #fff8ec;
  font-family: var(--font-body, "Instrument Sans", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 201, 60, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  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 12px 32px rgba(0, 0, 0, 0.45);
}

.cubesob-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc93c;
  box-shadow: 0 0 10px #ffc93c;
  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(255, 201, 60, 0.3);
  background: rgba(25, 19, 10, 0.85);
  color: #fff8ec;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  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: block;
}

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

/* Alternate Light Theme Styling for Controls */
html:not(.dark) .cubesob-demo-pill,
html[data-theme="light"] .cubesob-demo-pill {
  background: rgba(255, 255, 255, 0.92);
  color: #19130a;
  border-color: rgba(25, 19, 10, 0.15);
  box-shadow: 0 8px 24px rgba(25, 19, 10, 0.1);
}

html:not(.dark) .cubesob-demo-dot,
html[data-theme="light"] .cubesob-demo-dot {
  background: #ff8c32;
  box-shadow: 0 0 10px #ff8c32;
}

html:not(.dark) .cubesob-theme-toggle,
html[data-theme="light"] .cubesob-theme-toggle {
  background: rgba(255, 255, 255, 0.92);
  color: #19130a;
  border-color: rgba(25, 19, 10, 0.15);
  box-shadow: 0 8px 24px rgba(25, 19, 10, 0.1);
}

html:not(.dark) .theme-icon--sun,
html[data-theme="light"] .theme-icon--sun {
  display: none;
}

html:not(.dark) .theme-icon--moon,
html[data-theme="light"] .theme-icon--moon {
  display: block;
}

@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;
  }
}

/* ==========================================================================
   Flawless Alternate Theme Conversion (Light Mode)
   Natively dark design remains untouched; Light mode provides high contrast.
   ========================================================================== */

html:not(.dark),
html[data-theme="light"] {
  --c-cream: #19130a;
}

html:not(.dark) body,
html[data-theme="light"] body {
  background: #f7f4ed;
  color: #19130a;
}

/* Hero Section (Light Mode) */
html:not(.dark) .hero,
html[data-theme="light"] .hero {
  background: #f7f4ed;
  color: #19130a;
}

html:not(.dark) .hero__bg::after,
html[data-theme="light"] .hero__bg::after {
  background: linear-gradient(
    rgba(247, 244, 237, 0.68),
    rgba(247, 244, 237, 0.88)
  );
}

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

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

html:not(.dark) .btn--ghost,
html[data-theme="light"] .btn--ghost {
  color: #19130a;
  border-color: #19130a;
}

html:not(.dark) .btn--ghost:hover,
html[data-theme="light"] .btn--ghost:hover {
  background: #19130a;
  color: #fff8ec;
}

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

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

html:not(.dark) .hero__hint-line,
html[data-theme="light"] .hero__hint-line {
  background: #5c4b37;
}

html:not(.dark) .btn--primary,
html[data-theme="light"] .btn--primary {
  background: #19130a;
  color: #fff8ec;
}

html:not(.dark) .btn--primary:hover,
html[data-theme="light"] .btn--primary:hover {
  background: #ff8c32;
  color: #19130a;
}

/* Cinema Section (Light Mode) */
html:not(.dark) .cinema,
html[data-theme="light"] .cinema {
  background: #f4efe4;
}

html:not(.dark) .cinema__ghost,
html[data-theme="light"] .cinema__ghost {
  color: rgba(25, 19, 10, 0.05);
}

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

html:not(.dark) .rbadge,
html[data-theme="light"] .rbadge {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(25, 19, 10, 0.12);
  box-shadow: 0 16px 36px rgba(25, 19, 10, 0.08);
}

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

html:not(.dark) .rbadge span,
html[data-theme="light"] .rbadge span {
  color: #4a3a2a;
  opacity: 0.85;
}

html:not(.dark) .offer-list strong,
html[data-theme="light"] .offer-list strong {
  color: #19130a;
}

html:not(.dark) .offer-list span,
html[data-theme="light"] .offer-list span {
  color: #4a3a2a;
}

html:not(.dark) .cinema__price,
html[data-theme="light"] .cinema__price {
  background: #ffc93c;
  color: #19130a;
  box-shadow: 0 14px 30px rgba(25, 19, 10, 0.12);
}

html:not(.dark) .cinema__offer .btn,
html[data-theme="light"] .cinema__offer .btn {
  background: #ff8c32;
  color: #19130a;
}

html:not(.dark) .cinema__offer .btn:hover,
html[data-theme="light"] .cinema__offer .btn:hover {
  background: #ffc93c;
  color: #19130a;
}

/* Story Section (Light Mode) */
html:not(.dark) .story,
html[data-theme="light"] .story {
  background: #fbf8f0;
  color: #19130a;
}

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

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

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

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

html:not(.dark) .story__ghosts span,
html[data-theme="light"] .story__ghosts span {
  color: rgba(25, 19, 10, 0.06);
}

/* Quote Section (Light Mode) */
html:not(.dark) .quote,
html[data-theme="light"] .quote {
  background: #ff9b49;
}

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

/* Footer Section (Light Mode) */
html:not(.dark) .footer,
html[data-theme="light"] .footer {
  background: #f4eee2;
  color: #19130a;
}

html:not(.dark) .footer::after,
html[data-theme="light"] .footer::after {
  background: linear-gradient(
    rgba(244, 238, 226, 0.76),
    rgba(244, 238, 226, 0.92)
  );
}

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

html:not(.dark) .btn--cream,
html[data-theme="light"] .btn--cream {
  background: #19130a;
  color: #fff8ec;
}

html:not(.dark) .btn--cream:hover,
html[data-theme="light"] .btn--cream:hover {
  background: #ff8c32;
  color: #19130a;
}

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

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

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