/* ════════════════════════════════════════════════════════════════
   NAVBAR - Global Styles for all Public Pages
   ════════════════════════════════════════════════════════════════ */

:root {
  --primary: #6C63FF;
  --primary-dark: #5A52D5;
  --primary-light: #EEF2FF;
  --accent: #00D4AA;
  --accent2: #FF6B6B;
  --accent3: #FFB347;
  --dark: #0F0E1A;
  --dark2: #1A1830;
  --dark3: #241F3A;
  --text: #E8E6F0;
  --muted: #9896B2;
  --border: rgba(108, 99, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.04);
  --card: rgba(255, 255, 255, 0.06);
  --navbar-height: 70px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  padding-top: 70px;
  scrollbar-gutter: stable;
}

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

/* ────────────────────────────────────────────────────────────── */
/* NAVBAR STYLES */
/* ────────────────────────────────────────────────────────────── */

nav#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  height: 70px;
  backdrop-filter: blur(20px);
  background: rgba(15, 14, 26, 0.7);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

nav#navbar:hover {
  background: rgba(15, 14, 26, 0.85);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
  height: 100%;
  line-height: 1;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo-img:hover {
  transform: scale(1.1);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo-icon:hover {
  transform: scale(1.1);
}

.logo span {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  flex: 1;
  justify-content: center;
  height: 100%;
  line-height: 1;
}

.nav-links li {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown Navigation */
.dropdown-nav {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Invisible bridge to keep dropdown open while moving mouse */
.dropdown-nav::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.8rem;
  pointer-events: none;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  line-height: 1;
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.dropdown-nav:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-policies {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 14, 26, 0.99);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 220px;
  z-index: 999;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes dropdownIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dropdown-nav:hover .dropdown-policies {
  display: block;
  animation: dropdownIn 0.3s ease;
}

.dropdown-policies li {
  list-style: none;
}

.dropdown-policies li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--muted);
  transition: all 0.2s ease;
  font-size: 0.9rem;
  width: 100%;
}

.dropdown-policies li a:hover {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  padding-left: 2rem;
  width: 100%;
}

/* CTA Buttons */
.nav-cta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  line-height: 1;
}

.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: fit-content;
  line-height: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 99, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger:hover span {
  background: var(--primary);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(15, 14, 26, 0.99);
  border-bottom: 1px solid var(--border);
  z-index: 998;
  flex-direction: column;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links li {
  list-style: none;
}

.mobile-nav-links a {
  display: block;
  padding: 1rem;
  color: var(--muted);
  transition: all 0.2s ease;
  border-radius: 8px;
}

.mobile-nav-links a:hover {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Mobile Dropdown */
.mobile-dropdown-nav {
  position: relative;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  color: var(--muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-dropdown-toggle:hover {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  padding-left: 1.5rem;
}

.mobile-dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.mobile-dropdown-policies {
  display: none;
  list-style: none;
  background: rgba(95, 96, 255, 0.05);
  border-left: 2px solid var(--primary);
  margin: 0;
  padding: 0;
}

.mobile-dropdown-policies.active {
  display: block;
}

.mobile-dropdown-policies li {
  list-style: none;
}

.mobile-dropdown-policies li a {
  display: block;
  padding: 0.75rem 1rem 0.75rem 2rem;
  color: var(--muted);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.mobile-dropdown-policies li a:hover {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
  padding-left: 2.5rem;
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav#navbar {
    height: 60px;
  }

  body {
    padding-top: 60px;
  }

  .nav-inner {
    padding: 0 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .hamburger {
    display: flex;
    order: 2;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .dropdown-policies {
    position: static;
    display: none;
    background: rgba(95, 96, 255, 0.05);
    border: none;
    border-left: 2px solid var(--primary);
    border-radius: 0;
    min-width: auto;
    margin-left: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: none;
  }

  .dropdown-nav:hover .dropdown-policies {
    display: block;
  }

  .dropdown-policies li a {
    padding: 0.5rem 1rem;
  }

  .dropdown-policies li a:hover {
    padding-left: 1.5rem;
  }

  .logo {
    font-size: 1.2rem;
    height: auto;
    order: 1;
  }
}

@media (max-width: 480px) {
  nav#navbar {
    height: 60px;
  }

  body {
    padding-top: 60px;
  }

  .nav-inner {
    flex-wrap: nowrap;
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 1rem;
    gap: 0.3rem;
    order: 1;
  }

  .logo-img,
  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .hamburger {
    order: 2;
  }

  .mobile-nav-links a {
    padding: 0.875rem 1rem;
  }

  .mobile-nav-cta {
    padding: 0.75rem;
  }

  .btn-block {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  nav#navbar,
  .nav-links a,
  .btn,
  .dropdown-policies,
  .dropdown-toggle i {
    transition: none;
    animation: none;
  }
}

/* Print Styles */
@media print {
  nav#navbar {
    position: static;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .nav-links a,
  .btn {
    color: #000;
    text-decoration: underline;
  }
}
