/* ============================================
   HYPER G - Shared Components
   Navigation, Footer, Loader, Sections
   ============================================ */

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.175em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

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

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: calc(var(--z-mobile-menu) + 1);
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.nav__toggle-bar::before {
  top: -8px;
}

.nav__toggle-bar::after {
  top: 8px;
}

/* Toggle Active State */
.nav__toggle--active .nav__toggle-bar {
  background: transparent;
}

.nav__toggle--active .nav__toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle--active .nav__toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 11, 0.98);
  z-index: var(--z-mobile-menu);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.nav__mobile--open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 200;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover,
.nav__mobile-link--active {
  color: var(--text-primary);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  padding: 4rem;
  border-top: 1px solid var(--border-color);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.175em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer__description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 50%;
}

.footer__address-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.footer__address-text {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.footer__registration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__copyright {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ----------------------------------------
   Loader
   ---------------------------------------- */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
}

.loader--hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

.loader__content {
  text-align: center;
}

.loader__logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 100;
  letter-spacing: 0.3em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader__progress {
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ----------------------------------------
   Glow Orbs
   ---------------------------------------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

.glow-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
  top: -200px;
}

.glow-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-purple) 0%, transparent 70%);
  bottom: -100px;
}

.glow-orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

/* ----------------------------------------
   Sections
   ---------------------------------------- */
section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 200;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  max-width: 900px;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 800px;
  margin-bottom: 2rem;
}

/* ----------------------------------------
   Hero Section (Shared)
   ---------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero--centered {
  align-items: center;
  text-align: center;
}

.hero--left {
  align-items: flex-start;
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  max-width: 1200px;
}

.hero__title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 100;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  font-weight: 300;
  line-height: 1.8;
}

/* ----------------------------------------
   Cards
   ---------------------------------------- */
.card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card__description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 1024px) {
  .nav {
    padding: 1rem 2rem;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile {
    display: flex;
  }

  section {
    padding: var(--section-padding-mobile);
  }

  .footer {
    padding: 3rem 2rem;
  }

  .hero {
    padding: 6rem 2rem 4rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .footer {
    padding: 3rem 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__description {
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
