/* 
  Sichgart — Modern Dark Metal Design System
  Global tokens, variables, keyframes, and base overrides.
  Component-specific styles live in scoped <style> blocks in each .astro component.
*/

/* =============================================
   DESIGN TOKENS — CSS Custom Properties
   ============================================= */
:root {
  /* Colors — Dark Atmospheric Metal + Parchment & Bronze + Blood Crimson */
  --color-bg-dark: #07080a;
  --color-bg-card: #0d1014;
  --color-bg-section: #0b0d11;
  --color-primary: #ff3b30;
  --color-primary-dark: #9e1a1a;
  --color-blood: #630e0e;
  --color-primary-muted: rgba(255, 59, 48, 0.15);

  /* Parchment / Sepia / Bronze / Muted Gold */
  --color-parchment: #d9c8ab;
  --color-sepia: #8f7a5a;
  --color-bronze: #c59b5f;
  --color-gold: #dfba7a;
  --color-bronze-border: rgba(197, 155, 95, 0.22);
  --color-bronze-glow: 0 0 18px rgba(197, 155, 95, 0.28);

  --color-text-white: #f4efe6;
  --color-text-muted: rgba(217, 200, 171, 0.72);
  --color-text-dim: rgba(217, 200, 171, 0.48);

  --glow-shadow: 0 0 18px rgba(255, 59, 48, 0.55);
  --glow-text: 0 0 10px rgba(255, 59, 48, 0.75);

  --glass-bg: rgba(11, 13, 17, 0.78);
  /* Lighter glass tint for the transparent-over-artwork default nav bar */
  --glass-bg-soft: rgba(7, 8, 10, 0.45);
  --glass-border: rgba(197, 155, 95, 0.16);
  --glass-border-strong: rgba(255, 59, 48, 0.38);

  --transition-smooth: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Dosis', "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-logo: 'Oswald', "Dosis", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

/* Global resets for base body backgrounds to avoid white flashes */
html, body {
  background-color: var(--color-bg-dark) !important;
  color: var(--color-text-white) !important;
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 5.5rem;
}

/* Custom Scrollbar for dark metal theme */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1a2228;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
  box-shadow: var(--glow-shadow);
}

/* Keyframe animations */
@keyframes zoom {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.05, 1.05);
  }
  100% {
    transform: scale(1, 1);
  }
}

/* Preloader styles */
.loader {
  background: var(--color-bg-dark);
  bottom: 0;
  height: 100%;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 10000;
}
.loader-inner {
  left: 0;
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translateY(-50%);
}
.loading-spinner {
  width: 6.25rem;
  height: 6.25rem;
  animation: spinner-rotate 2s ease-in-out infinite;
}
.spinner {
  animation: spinner-color 8s ease-in-out infinite, spinner-dash 2s ease-in-out infinite;
  stroke-linecap: round;
  stroke: var(--color-primary);
}

@keyframes spinner-rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spinner-color {
  0%, 100% {
    stroke: var(--color-primary-dark);
  }
  20% {
    stroke: var(--color-primary);
  }
  40% {
    stroke: var(--color-primary-dark);
  }
  60% {
    stroke: var(--color-primary);
  }
  80% {
    stroke: var(--color-primary-dark);
  }
}
@keyframes spinner-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -125px;
  }
}

/* Site wrapper */
.wrapper {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

/* Hero section — layout required for slider + navigation */
section.hero {
  padding: 0;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-dark);
}

section.hero .header {
  pointer-events: auto;
}

.hero .background-img img {
  display: none;
}

.hero .background-img {
  background-attachment: scroll;
  background-color: #151514;
  background-position: 50% 50% !important;
  background-repeat: no-repeat;
  background-size: cover !important;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero .slider .slides > li {
  position: relative;
}

.hero .hero-content {
  color: var(--color-text-white);
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.hero .hero-content .row {
  height: 100%;
  margin: 0;
}

.hero .hero-content .col-sm-12 {
  height: 100%;
  padding: 0;
}

.hero .inner-hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

.hero .hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 1.5rem 5.75rem;
  text-align: center;
  pointer-events: none;
}

/* Pagination dots sit at bottom: 4em — keep caption above them */
.hero .main-slider .flex-control-nav {
  bottom: 1.75rem;
  z-index: 6;
}

.hero h1.large {
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 1.2;
  letter-spacing: 0.425rem;
  font-weight: 100;
}

.hero .video-play-but {
  border: 2px solid #ffffff;
  border-radius: 50%;
  /* Flex centering keeps the triangle mathematically centered */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7.5em;
  width: 7.5em;
  margin: 0;
  position: relative;
  flex-shrink: 0;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero .video-play-but:after {
  border-color: transparent transparent transparent #ffffff;
  border-style: solid;
  border-width: 17px 0 17px 24px;
  content: "";
  height: 0;
  width: 0;
  /* Optical alignment: nudge the triangle right so it reads as centered */
  transform: translateX(3px);
  transition: all 0.3s ease;
}

.hero .video-play-but:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary), inset 0 0 15px var(--color-primary);
}

.hero .video-play-but:hover:after {
  border-left-color: var(--color-primary);
  transform: translateX(3px) scale(1.12);
}

/* Premium hero call-to-action button */
.hero .hero-cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.85rem 2.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: rgba(8, 10, 12, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero .hero-cta:hover,
.hero .hero-cta:focus {
  color: #ffffff;
  border-color: var(--color-primary);
  background: rgba(255, 59, 48, 0.15);
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.6), inset 0 0 12px rgba(255, 59, 48, 0.15);
  text-shadow: 0 0 8px var(--color-primary);
  text-decoration: none;
}

#album,
#discography,
#band,
#gallery,
#contact {
  scroll-margin-top: 5.5rem;
}

/* Search form */
.block-search-form {
  position: fixed;
  background: rgba(8, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1045;
  overflow: hidden;
  display: none;
}
span.close-search {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.block-search-form .block-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Back to Top button styling */
.block-top:not(.active) {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  pointer-events: none;
}
.block-top.active:hover {
  transform: translate3d(0, -5px, 0);
  color: var(--color-text-white);
  box-shadow: var(--glow-shadow);
  background: var(--color-primary-dark);
}
.block-top {
  position: fixed;
  width: 3.2rem;
  height: 3.2rem;
  background: var(--color-primary);
  text-align: center;
  right: 2.875rem;
  bottom: 3.6875rem;
  padding-top: .6rem;
  z-index: 100;
  color: var(--color-text-white);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}
.block-top i {
  font-size: 1.2rem;
}
#google_translate_element {
  display: none; /* Hide the default Google Translate widget (temporary)*/
}

/* =============================================
   2026 ATMOSPHERE: FILM GRAIN, SCROLL PROGRESS,
   EDITORIAL TYPOGRAPHY & MOTION PRIMITIVES
   ============================================= */

/* Subtle tactile grain overlay across the entire viewport */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll progress bar pinned below sticky header */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1060;
  pointer-events: none;
  background: rgba(197, 155, 95, 0.08);
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary), var(--color-bronze));
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.75);
  will-change: transform;
}

/* Editorial Section Eyebrow & Kinetic Headings */
.editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-bronze);
  margin-bottom: 0.85rem;
}

.editorial-eyebrow::before,
.editorial-eyebrow::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-bronze));
}

.editorial-eyebrow::after {
  background: linear-gradient(90deg, var(--color-bronze), transparent);
}

.kinetic-heading {
  display: inline-block;
  transform: translate3d(var(--kinetic-x, 0px), 0, 0);
  transition: transform 0.12s linear;
  will-change: transform;
}

/* Hero Parallax Depth Layers */
.hero-parallax-bg {
  transform: translate3d(var(--mx-bg, 0px), calc(var(--hero-scroll, 0px) * 0.28 + var(--my-bg, 0px)), 0) scale(1.08);
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.hero-parallax-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(197, 155, 95, 0.08) 0%, rgba(7, 8, 10, 0.55) 55%, rgba(7, 8, 10, 0.92) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.65) 0%, rgba(7, 8, 10, 0.1) 40%, rgba(7, 8, 10, 0.88) 100%);
}

.hero-parallax-fg {
  transform: translate3d(var(--mx-fg, 0px), calc(var(--hero-scroll, 0px) * -0.14 + var(--my-fg, 0px)), 0);
  will-change: transform;
  transition: transform 0.18s ease-out;
}

.hero-crest {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--color-bronze-border);
  background: rgba(7, 8, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-parchment);
}

.hero-crest-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

/* Magnetic & Pulsing Play Button */
.hero .video-play-but {
  border: 1.5px solid rgba(217, 200, 171, 0.75);
  background: rgba(7, 8, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(197, 155, 95, 0.12);
}

.hero .video-play-but::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 59, 48, 0.45);
  animation: hero-play-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

@keyframes hero-play-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Progressive Reveal (Blur + Darken to Crisp) */
[data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

/* 3D Tilt + Cursor Spotlight Cards (Desktop Fine Pointer) */
.spotlight-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    420px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(255, 59, 48, 0.16) 0%,
    rgba(197, 155, 95, 0.1) 35%,
    transparent 70%
  );
  z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
  .spotlight-card:hover::after {
    opacity: 1;
  }
}

/* Magnetic element smooth return */
.magnetic-el {
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Desktop Custom Interactive Cursor */
.custom-cursor,
.custom-cursor-dot {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    border: 1px solid rgba(197, 155, 95, 0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) scale(1);
    transition:
      width 0.25s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.25s cubic-bezier(0.22, 1, 0.36, 1),
      margin 0.25s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.25s ease,
      background-color 0.25s ease,
      opacity 0.25s ease,
      box-shadow 0.25s ease;
    will-change: transform;
  }

  .custom-cursor.is-visible {
    opacity: 1;
  }

  .custom-cursor.is-active {
    width: 56px;
    height: 56px;
    margin-left: -28px;
    margin-top: -28px;
    border-color: var(--color-primary);
    background-color: rgba(255, 59, 48, 0.08);
    box-shadow: 0 0 18px rgba(255, 59, 48, 0.35);
  }

  .custom-cursor.is-media {
    width: 68px;
    height: 68px;
    margin-left: -34px;
    margin-top: -34px;
    border-color: var(--color-gold);
    background-color: rgba(197, 155, 95, 0.08);
    box-shadow: 0 0 22px rgba(197, 155, 95, 0.28);
  }

  .custom-cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0);
    transition: opacity 0.2s ease;
    will-change: transform;
  }

  .custom-cursor-dot.is-visible {
    opacity: 1;
  }
}

/* Disable heavy motion & custom cursor when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html, body {
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-parallax-bg,
  .hero-parallax-fg,
  .kinetic-heading,
  .magnetic-el,
  .tilt-card {
    transform: none !important;
    transition: none !important;
  }

  .hero .video-play-but::before {
    animation: none !important;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}