/*
      _/_/    _/    _/  _/      _/    _/_/    _/_/_/_/_/  _/_/_/_/  _/      _/
   _/    _/  _/    _/  _/_/  _/_/  _/    _/      _/      _/          _/  _/
  _/_/_/_/  _/    _/  _/  _/  _/  _/_/_/_/      _/      _/_/_/        _/
 _/    _/  _/    _/  _/      _/  _/    _/      _/      _/          _/  _/
_/    _/    _/_/    _/      _/  _/    _/      _/      _/_/_/_/  _/      _/

PROJECT:     Aumatex Official Website
FILE:        src/styles/globetrail.css
PURPOSE:     Page-specific styling and responsive layout fixes for Globetrail.
STACK:       CSS (Custom + Tailwind utilities)
CREATED:     2026-01-27
AUTHOR:      Aumatex srls | www.aumatex.it
REPOSITORY:  https://github.com/aumadev/aumatex
LICENSE:     Proprietary Software
SECURITY:    Do not expose, share or modify without authorization.
RIGHTS:      © 2025–2026 Aumatex srls. All rights reserved.

Unauthorized reproduction, distribution or modification
without prior written consent is strictly prohibited.
*/

:root {
  --primary: #0ea5e9;
  --secondary: #10b981;
  --bg-deep: #000205;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --neon-glow: 0 0 20px rgba(14, 165, 233, 0.4);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: #f1f5f9;
  overflow-x: clip;
}

html,
body {
  width: 100%;
  overflow-x: clip;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}


.cyber-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 0 0, 0 0;
  z-index: -2;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  animation: gridMove 20s linear infinite;
}

.globetrail-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
}

.nav-mobile {
  width: 100%;
  transition: background var(--motion-medium) var(--motion-ease), border-color var(--motion-medium) var(--motion-ease), box-shadow var(--motion-medium) var(--motion-ease), backdrop-filter var(--motion-medium) var(--motion-ease);
}

.nav-mobile.is-scrolled .nav-shell {
  background: rgba(8, 10, 16, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px -35px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
}

.nav-mobile.is-scrolled .nav-shell__inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 640px) {
  .nav-mobile {
    background: rgba(5, 7, 10, 0.72);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav-shell__inner {
    padding: 14px 18px;
  }
}

.hero-mark {
  width: min(80vw, 520px);
  max-width: 90vw;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 56px, 56px 0; }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: orbFloat 10s ease-in-out infinite alternate;
  max-width: 100%;
}
.orb-1 {
  top: -8%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-65%);
  background: radial-gradient(circle, rgba(14,165,233,0.15), transparent);
}
.orb-2 {
  bottom: 18%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-20%);
  background: radial-gradient(circle, rgba(16,185,129,0.1), transparent);
}

@keyframes orbFloat { 0% { transform: translate(0,0); } 100% { transform: translate(30px, 50px); } }

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.btn-ios-download {
  transition: transform var(--motion-fast) var(--motion-ease-out), box-shadow var(--motion-fast) var(--motion-ease);
}
.btn-ios-download:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px -30px rgba(6, 182, 212, 0.7); }
.btn-ios-download:active { transform: scale(0.98); }

.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform var(--motion-fast) var(--motion-ease);
}
.tilt-card-content {
  transform: translateZ(20px);
}

.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateX(-40px) rotateY(-8deg);
  transition: opacity var(--motion-medium) var(--motion-ease), transform var(--motion-medium) var(--motion-ease);
  will-change: opacity, transform;
}
.reveal-right {
  transform: translateX(40px) rotateY(8deg);
}
.reveal-left.active,
.reveal-right.active,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0) rotateY(0);
}

.iphone-float { animation: floatY 6s ease-in-out infinite; }
.iphone-float-delay { animation: floatY 6s ease-in-out infinite 3s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}


.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-medium) var(--motion-ease);
  z-index: 50;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.98), rgba(6, 8, 12, 0.92));
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255,255,255,0.08);
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  transform: translateX(100%);
  transition: transform var(--motion-medium) var(--motion-ease);
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
}
.mobile-menu__header {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu__header button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__links a {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  color: #dbe4f0;
  transition: background var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}
.mobile-menu__links a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(2px);
}

.mobile-menu__links {
  display: grid;
  gap: 6px;
}

.mobile-menu__panel .lang-switch__btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.mobile-menu__panel .lang-switch__btn.is-active {
  background: rgba(255,255,255,0.14);
}

@media (max-width: 640px) {
  .orb-1 {
    width: 360px;
    height: 360px;
    transform: translateX(-65%);
  }
  .orb-2 {
    width: 320px;
    height: 320px;
    bottom: 10%;
    transform: translateX(-25%);
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  .nav-shell__inner {
    padding: 10px 16px;
  }
  .hero-shell {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 40px;
  }
  .hero-shell h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }
  .hero-shell p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  }
}

.lang-switch__btn {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
}
.lang-switch__btn.is-active { color: #fff; background: rgba(255,255,255,0.1); }
.lang-switcher__toggle {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5f5;
}
.lang-switcher__menu {
  background: rgba(4, 13, 24, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}
.lang-switcher__item {
  color: rgba(203, 213, 245, 0.75);
}
.lang-switcher__item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.lang-switcher__item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .cyber-grid,
  .ambient-orb,
  .iphone-float,
  .iphone-float-delay {
    animation: none;
  }
}
