/*
 * Hazmatique - Brand Website Stylesheet
 * High-end minimalist black-and-white editorial aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400&amp;family=Syne:wght@400;500;600&amp;display=swap');

:root {
  --color-bg: #000000;
  --color-fg: #ffffff;
  --color-fg-muted: #86868b;
  --color-border: rgba(255, 255, 255, 0.15);
  --color-border-hover: rgba(255, 255, 255, 0.4);
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent: 'Syne', sans-serif;
  
  --transition-cinematic: filter 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                         transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
                         opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fullscreen Splash Enter Overlay */
.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-cinematic);
}

.enter-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}

.enter-content {
  text-align: center;
  padding: 20px;
}

.enter-title {
  font-family: var(--font-accent);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-fg);
  margin-bottom: 16px;
}

.enter-subtitle {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  margin-bottom: 48px;
}

.enter-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 16px 48px;
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition-fast);
  outline: none;
}

.enter-btn:hover {
  border-color: var(--color-fg);
  background-color: var(--color-fg);
  color: var(--color-bg);
  letter-spacing: 0.35em;
}

/* Fullscreen Video Container */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: var(--color-bg);
  overflow: hidden;
}

.brand-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.9);
  transition: var(--transition-cinematic);
  will-change: filter, transform;
}

/* Blurred video state */
.brand-video.is-blurred {
  filter: grayscale(100%) contrast(0.9) brightness(0.4) blur(20px);
  transform: scale(1.06); /* Prevent white/black page edges when blurred */
}

/* Vignette overlay to add depth */
.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Left/Right shadow gradient overlay for desktop accessibility - strengthened */
.sidebar-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-cinematic);
}

@media (min-width: 769px) {
  .sidebar-gradient-overlay {
    opacity: 1;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.95) 12%,
      rgba(0, 0, 0, 0.5) 24%,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0) 65%,
      rgba(0, 0, 0, 0.5) 76%,
      rgba(0, 0, 0, 0.95) 88%,
      rgba(0, 0, 0, 0.95) 100%
    );
  }
}

/* Header branding: tiny, high-end, out of the way */
.header-bar {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.brand-name {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-fg);
  opacity: 0.7;
}

.brand-status {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

/* Logo Overlay - Center stage */
.logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 500px;
  height: 250px;
  z-index: 5;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-cinematic);
  will-change: opacity, transform;
}

.logo-overlay.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Controls - Sleek, floating in corners */
.controls-container {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.control-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  outline: none;
  pointer-events: auto;
}

.control-btn:hover {
  border-color: var(--color-border-hover);
  background-color: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.35em;
}

.control-btn:active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Video Loader (Screen while video initializes) */
.video-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease;
  pointer-events: none;
}

.video-loader.is-hidden {
  opacity: 0;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-fg);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-bar {
    top: 24px;
    left: 24px;
    right: 24px;
  }
  .controls-container {
    bottom: 24px;
    left: 24px;
    right: 24px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .control-btn {
    text-align: center;
    width: 100%;
  }
  .brand-name {
    font-size: 11px;
    letter-spacing: 0.3em;
  }
  .enter-title {
    font-size: 28px;
  }
  .logo-overlay {
    width: 85%;
  }
}
