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

/* ==========================================================================
   CSS View Transition Circular Ripple Animation (Sorvo / Cubesob Spec)
   ========================================================================== */
::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;
}

/* ==========================================================================
   Theme Variables & Mode Adjustments (Dark Mode by Default)
   ========================================================================== */
html.light,
html[data-theme="light"] {
  --c-bg: #f5f6f2;
  --c-bg-2: #ffffff;
  --c-surface: #e8ede3;
  --c-surface-2: #dce3d5;
  --c-well: #eef2e9;
  --card: linear-gradient(180deg, #ffffff 0%, #f0f3eb 100%);
  --c-line: rgba(0, 0, 0, 0.08);
  --c-line-2: rgba(0, 0, 0, 0.16);
  --c-rim: rgba(0, 0, 0, 0.1);
  --c-lime: #6f9d05;
  --c-lime-ink: #ffffff;
  --c-cream: #121510;
  --c-muted: #4e5646;
  --c-dim: #727a69;
}

html.light .nav,
html[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

html.light .nav__links,
html[data-theme="light"] .nav__links {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
}

html.light .hero__callout,
html[data-theme="light"] .hero__callout {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--c-cream);
}

html.light .grain,
html[data-theme="light"] .grain {
  opacity: 0.02;
}

html.light .footer__word,
html[data-theme="light"] .footer__word {
  -webkit-text-stroke: 1px rgba(111, 157, 5, 0.35);
}

/* ==========================================================================
   Cubesob Floating Control Bar & Demo Pill
   ========================================================================== */
.cubesob-floating-bar {
  position: fixed;
  bottom: 24px;
  right: 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(20, 23, 18, 0.88);
  color: #f6f7f1;
  font-family: var(--font-body, "Manrope", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  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.5);
}

.cubesob-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-lime, #d9f56b);
  box-shadow: 0 0 8px var(--c-lime, #d9f56b);
  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, 255, 255, 0.14);
  background: rgba(20, 23, 18, 0.88);
  color: #f6f7f1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  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 {
  position: absolute;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.theme-icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.theme-icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

html.light .theme-icon--sun,
html[data-theme="light"] .theme-icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

html.light .theme-icon--moon,
html[data-theme="light"] .theme-icon--moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html.light .cubesob-demo-pill,
html[data-theme="light"] .cubesob-demo-pill {
  background: rgba(255, 255, 255, 0.9);
  color: #121510;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

html.light .cubesob-theme-toggle,
html[data-theme="light"] .cubesob-theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #121510;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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