/* ==========================================================================
   NUVEXA - Common & Global Stylesheet
   Contains: Design Tokens, Reset, Global Typography, Buttons,
             Navbar, Footer, Ambient Glow & Utilities
   ========================================================================== */

:root {
  /* Color Palette - Luxury Black & Gold */
  --bg-primary: #06070a;
  --bg-secondary: #0c0d12;
  --bg-card: rgba(16, 18, 24, 0.75);
  --bg-card-hover: rgba(24, 27, 36, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.07);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 183, 0, 0.35);
  --border-gold: rgba(245, 183, 0, 0.3);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #fcd34d;

  /* Accent Gradients */
  --primary: #f5b700;
  --primary-glow: rgba(245, 183, 0, 0.45);
  --gold-light: #fef08a;
  --gold-mid: #fbbf24;
  --gold-dark: #d97706;
  --cyan: #f5b700;
  --cyan-glow: rgba(245, 183, 0, 0.35);
  --purple: #eab308;
  --emerald: #10b981;

  --grad-primary: linear-gradient(135deg, #f5b700 0%, #d97706 100%);
  --grad-accent: linear-gradient(135deg, #fef08a 0%, #f5b700 100%);
  --grad-dark: linear-gradient(180deg, rgba(14, 15, 20, 0.9) 0%, rgba(6, 7, 10, 0.95) 100%);
  --grad-glow: radial-gradient(circle at center, rgba(245, 183, 0, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glass */
  --shadow-sm: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(245, 183, 0, 0.25);
  --shadow-glow-gold: 0 0 35px rgba(245, 183, 0, 0.35);
  --shadow-glow-cyan: 0 0 35px rgba(245, 183, 0, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Ambient Background Lighting Orbs
   ========================================================================== */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f5b700, #b45309);
  top: -100px;
  right: -50px;
}

.ambient-orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #d97706, #78350f);
  bottom: 10%;
  left: -150px;
  animation-delay: -5s;
}

.ambient-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #fbbf24, #92400e);
  top: 45%;
  right: 15%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Background Grid Overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(245, 183, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 183, 0, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #fff7a1 0%, #f5b700 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-alt {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ==========================================================================
   Global Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 8px 24px -4px rgba(245, 183, 0, 0.45);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(245, 183, 0, 0.65);
  color: #000000;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 183, 0, 0.25);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(245, 183, 0, 0.12);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Section Headers & Badges
   ========================================================================== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 183, 0, 0.1);
  border: 1px solid rgba(245, 183, 0, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-badge i {
  color: var(--primary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   Navigation Bar & Pure NUVEXA Logo
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(6, 7, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(6, 7, 10, 0.98);
  border-bottom: 1px solid rgba(245, 183, 0, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

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

/* Brand Logo (Pure Styled 3D Gold NUVEXA Typographic Mark) */
.brand-logo-pure {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
  transition: transform var(--transition-normal);
}

.brand-n-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-right: 1px;
  transition: all var(--transition-normal);
}

.brand-n-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(245, 183, 0, 0.4));
  transition: filter var(--transition-fast), transform var(--transition-normal);
}

.brand-letters {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: transform var(--transition-normal);
}

.letters-uve,
.letter-a {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  transition: color var(--transition-fast);
}

.letter-x {
  color: #f5b700;
  background: linear-gradient(135deg, #fff7a1 0%, #f5b700 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(245, 183, 0, 0.8));
  margin: 0 1px;
  font-weight: 900;
}

.brand-logo-pure:hover .brand-n-wrapper {
  transform: translateY(-2px) scale(1.08);
}

.brand-logo-pure:hover .brand-n-svg {
  filter: drop-shadow(0 0 18px rgba(245, 183, 0, 0.95));
}

.brand-logo-pure:hover .letters-uve,
.brand-logo-pure:hover .letter-a {
  color: #f8fafc;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Nav Menu Container & Links */
.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 14px;
}

.nav-item {
  position: relative;
}

.nav-divider {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  font-size: 0.95rem;
  user-select: none;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  padding: 6px 12px;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.nav-link.active {
  color: #f5b700;
  text-shadow: 0 0 16px rgba(245, 183, 0, 0.6);
}

.nav-link:hover {
  color: #f5b700;
}

/* Hamburger Toggle Button */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

.hamburger-bar {
  width: 100%;
  height: 2.2px;
  background-color: #f5b700;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover .hamburger-bar {
  background-color: #fff275;
  box-shadow: 0 0 8px rgba(245, 183, 0, 0.8);
}

/* ==========================================================================
   Footer (Luxury Black & Gold)
   ========================================================================== */
.footer {
  background: #040507;
  border-top: 1px solid rgba(245, 183, 0, 0.12);
  padding: 80px 0 30px;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 18px 0 24px;
  max-width: 340px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(245, 183, 0, 0.45);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex-grow: 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
