/* ==========================================================================
   Odience Network — Stylesheet
   ========================================================================== */

:root {
  --header-height: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-wordmark {
  transition: opacity 0.3s;
}

.nav-link {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #60a5fa;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #60a5fa;
}

.lang-switch {
  text-decoration: none;
  letter-spacing: 0.06em;
}

/* ── Hamburger ── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: -100%;
  width: 280px;
  height: calc(100dvh - var(--header-height));
  background: #0f172a;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  overflow-y: auto;
}

.mobile-menu.active { right: 0; }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 98;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-link {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu-link:hover {
  color: #60a5fa;
  padding-left: 4px;
}

/* ── Hero ── */
.hero { opacity: 0; transition: opacity 0.8s ease-out; }
.hero.loaded { opacity: 1; }

.hero-grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator span {
  display: block;
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 18px; opacity: 0.3; }
}

/* ── Scroll animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #2563eb;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Selection ── */
::selection {
  background: rgba(59, 130, 246, 0.25);
}
