/**
 * RUH Front Page Styles
 * FV (Video Hero) + SV (Particle Second View)
 */

/* ========================================
   First View - Video Hero
   ======================================== */
.ruh-fv {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.ruh-fv__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ruh-fv__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Subtle gradient overlay for text readability */
.ruh-fv__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 30%,
      transparent 60%,
      rgba(0, 0, 0, 0.25) 100%
    );
  z-index: 2;
}

.ruh-fv__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 0 1.5rem;
}

.ruh-fv__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.ruh-fv__title-main {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 200;
  letter-spacing: 0.35em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.ruh-fv__title-sub {
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
}

/* Scroll indicator */
.ruh-fv__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ruh-fv__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, transparent 100%);
  animation: ruh-scroll-pulse 2s ease-in-out infinite;
}

@keyframes ruh-scroll-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ========================================
   Second View - Particle Section
   ======================================== */
.ruh-sv {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #fafafa;
}

.ruh-sv__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 0 1.5rem;
}

.ruh-sv__heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #333;
  margin: 0 0 1rem;
}

.ruh-sv__text {
  font-size: clamp(0.875rem, 1.2vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #888;
  margin: 0;
}

/* ========================================
   Particle System
   ======================================== */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* Base canvas styles - GPU accelerated */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: translateZ(0);
}

/* Layer 1: Large iris - BACK - heavy blur */
.particle-canvas--back {
  z-index: 1;
  filter: blur(26px);
}

/* Layer 2: Small iris - MID - medium blur */
.particle-canvas--mid {
  z-index: 2;
  filter: blur(15px);
}

/* Layer 3: Medium sparkles - behind with blur */
.particle-canvas--front1 {
  z-index: 0;
  filter: blur(21px);
}

/* Layer 4: Small sparkles - front, no blur */
.particle-canvas--front2 {
  z-index: 8;
  filter: none;
}

.particle-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(235, 240, 250, 0.15) 100%
  );
}

.particle-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  background:
    radial-gradient(
      ellipse 70% 50% at 20% 20%,
      rgba(255, 255, 255, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 40% at 80% 75%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 40%
    );
  mix-blend-mode: soft-light;
}

/* ========================================
   Header Override for Front Page
   ======================================== */
.home .ol-header {
  background: transparent;
}

.home .ol-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo - ensure left alignment */
.home .ol-header__title-anchor {
  flex-grow: 0;
  flex-shrink: 0;
}

/* Nav - right side */
.home .ol-header__nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.home .ol-header__menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.home .ol-header__menu li a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  letter-spacing: 0.08em;
  font-weight: 400;
  transition: opacity 0.25s ease;
  position: relative;
}

.home .ol-header__menu li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.home .ol-header__menu li a:hover {
  opacity: 0.85;
}

.home .ol-header__menu li a:hover::after {
  width: 100%;
}

/* Logo on FV - original colors, proper sizing */
.home .ol-header__title-logo img {
  filter: none;
  width: auto;
  height: auto;
  max-height: 57px;
  object-fit: contain;
}

/* ========================================
   Content Sections
   ======================================== */
.ol-content {
  position: relative;
  z-index: 10;
}

.white-section {
  background: #fff;
  padding: 80px 20px;
}

.white-section__inner {
  max-width: 800px;
  margin: 0 auto;
}

.white-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.white-section p {
  line-height: 1.8;
  color: #666;
  margin-bottom: 1rem;
}

.gray-section {
  background: #f5f5f5;
  padding: 80px 20px;
}

.gray-section__inner {
  max-width: 800px;
  margin: 0 auto;
}

.gray-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.gray-section p {
  line-height: 1.8;
  color: #666;
}

.ol-products {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 40px 20px;
  padding: 40px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .ruh-fv {
    min-height: 100svh;
  }

  .ruh-fv__title-main {
    letter-spacing: 0.25em;
  }

  .ruh-sv {
    min-height: 80vh;
  }

  .particle-canvas--back {
    filter: blur(25px);
  }
  .particle-canvas--mid {
    filter: blur(14px);
  }
  .particle-canvas--front1 {
    filter: blur(6px);
  }
  .particle-canvas--front2 {
    filter: blur(2px);
  }

  .ol-products {
    margin: 20px 10px;
    padding: 20px;
    border-radius: 12px;
  }

  /* Mobile header nav hidden (hamburger menu handled by theme) */
  .home .ol-header__nav {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ruh-fv__scroll-line {
    animation: none;
    opacity: 0.6;
  }

  .ruh-fv__video {
    /* Pause video for reduced motion preference */
  }
}
