/* ═══════════════════════════════════════════════════════════════
   VOIDYACHT — shared.css
   Premium shared styles — used by all pages.
   ═══════════════════════════════════════════════════════════════ */

/* ── PREMIUM FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&family=DM+Mono:wght@300;400;500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --bg:              #060D18;
  --bg2:             #0A1628;
  --text-main:       #F0EDE6;
  --text-muted:      rgba(240, 237, 230, 0.55);
  --accent:          #00C4A1;
  --accent-glow:     rgba(0, 196, 161, 0.18);
  --border:          rgba(255, 255, 255, 0.07);
  --border-accent:   rgba(0, 196, 161, 0.25);
  --surface:         rgba(255, 255, 255, 0.03);
  --surface-deep:    rgba(255, 255, 255, 0.015);
  --nav-height:      72px;
  --font-serif:      'Fraunces', Georgia, serif;
  --font-sans:       'Space Grotesk', system-ui, sans-serif;
  --font-mono:       'DM Mono', monospace;
  color-scheme: dark;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   PREMIUM NAVBAR
   ══════════════════════════════════════════════════════════ */
.vy-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(6, 13, 24, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.5s ease, box-shadow 0.4s ease;
}

.vy-nav.scrolled {
  background: rgba(6, 13, 24, 0.96);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45);
}

/* Logo */
.vy-nav-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.45rem;
  color: var(--text-main);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  flex-shrink: 0;
}

.vy-nav-logo:hover {
  color: var(--accent);
}

/* Nav links */
.vy-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.vy-nav-links li a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 50px;
  transition: color 0.22s ease, background 0.22s ease;
  position: relative;
}

.vy-nav-links li a:hover,
.vy-nav-links li a.active {
  color: var(--text-main);
  background: rgba(255,255,255,0.06);
}

.vy-nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Right side socials in nav */
.vy-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vy-nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.25s ease;
  background: var(--surface);
}

.vy-nav-social:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.vy-nav-virtuals-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.vy-nav-social:hover .vy-nav-virtuals-img {
  opacity: 1;
}

/* Hamburger for mobile */
.vy-nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.vy-nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── LOADER ── */
#vy-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#vy-loader-top,
#vy-loader-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50vh;
  background: #000;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

#vy-loader-top    { top: 0; }
#vy-loader-bottom { bottom: 0; }

#vy-loader-content {
  position: relative;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#vy-loader-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 300;
}

#vy-loader-line-wrap {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

#vy-loader-line {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.6s ease;
}

/* Loader state classes */
body.vy-loading > *:not(#vy-loader) {
  opacity: 0 !important;
  transform: translateY(12px);
}

body > *:not(#vy-loader) {
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

body.vy-loaded #vy-loader-top    { transform: translateY(-100%); }
body.vy-loaded #vy-loader-bottom { transform: translateY(100%); }
body.vy-loaded #vy-loader-content { opacity: 0; }

body.vy-navigating #vy-loader-top,
body.vy-navigating #vy-loader-bottom { transform: translateY(0); }

body.vy-navigating > *:not(#vy-loader) {
  opacity: 0 !important;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── SCROLL REVEAL ── */
.vy-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.vy-reveal.vy-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION UTILITY ── */
.vy-section {
  position: relative;
  padding: 140px 48px;
  max-width: 1300px;
  margin: 0 auto;
}

.vy-section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.vy-section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.vy-watermark {
  position: absolute;
  top: 5%;
  left: -2%;
  font-family: var(--font-serif);
  font-size: clamp(8rem, 22vw, 20rem);
  color: var(--text-main);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── PREMIUM BUTTON ── */
.vy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 44px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

.vy-btn:hover {
  background: var(--text-main);
  color: var(--bg);
  border-color: var(--text-main);
}

/* ══════════════════════════════════════════════════════════
   PREMIUM FOOTER
   ══════════════════════════════════════════════════════════ */
.vy-footer {
  border-top: 1px solid var(--border);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: linear-gradient(to top, rgba(0,196,161,0.03), transparent);
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vy-footer-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.vy-footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

/* Center divider in footer */
.footer-center-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* Social icons in footer */
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  transition: all 0.28s ease;
}

.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

.footer-social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

.footer-social-link svg {
  flex-shrink: 0;
}

/* Legacy social icon support */
.social-icon {
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.social-icon:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .vy-nav-links {
    position: static;
    transform: none;
    gap: 2px;
  }

  .vy-nav-links li a {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}

@media (max-width: 768px) {
  .vy-nav {
    padding: 0 20px;
  }

  .vy-nav-links {
    display: none;
  }

  .vy-nav-burger {
    display: flex;
  }

  .vy-section {
    padding: 100px 24px;
  }

  .vy-footer {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 24px;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-center-divider {
    display: none;
  }
}
