:root {
  --primary: #0a0e27;
  --secondary: #1a1f3a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --success: #10b981;
  --light: #f8fafc;
  --muted: #94a3b8;
  --dark: #020617;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1, #8b5cf6);
}

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

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  padding-top: 134px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

/* TOP BAR */
.top-bar {
  background: var(--dark);
  color: var(--muted);
  padding: 12px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.top-left i {
  color: var(--accent);
  margin-right: 8px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--muted);
  transition: all 0.3s ease;
  font-size: 1rem;
}

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

/* HEADER */
header {
  position: fixed;
  top: 49px;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  background: rgba(10, 14, 39, 1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  z-index: 1001;
  text-decoration: none;
}

.logo-icon {
  position: relative;
  width: 45px;
  height: 45px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
  transition: all 0.3s ease;
}

.logo:hover .logo-icon svg {
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8));
  transform: rotate(5deg) scale(1.05);
}

.logo-text .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f8fafc 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.logo-text .tagline {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links a {
  color: var(--light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.nav-links a:hover {
  color: var(--accent);
}

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

.nav-cta {
  background: var(--gradient-accent);
  padding: 12px 28px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.nav-cta::after {
  display: none;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger span {
  position: absolute;
  left: 50%;
  width: 26px;
  height: 2.5px;
  background: var(--light);
  transition: all 0.3s ease;
  border-radius: 3px;
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  top: 12px;
  transform: translateX(-50%);
}

.hamburger span:nth-child(2) {
  top: 19px;
  transform: translateX(-50%);
  width: 20px;
}

.hamburger span:nth-child(3) {
  top: 26px;
  transform: translateX(-50%);
  width: 23px;
}

.hamburger.active {
  transform: rotate(90deg);
}

.hamburger.active span {
  background: var(--accent);
}

.hamburger.active span:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
  width: 26px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.hamburger.active span:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
  width: 26px;
}

/* MOBILE OVERLAY — FIXED */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* ✅ CRITICAL FIX */
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
  body {
    padding-top: 124px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
  }

  .top-bar {
    display: none;
  }

  header {
    top: 0;
  }

  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-overlay {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #0a0e27;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    overflow: hidden;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links::before {
    content: 'MENU';
    display: block;
    padding: 85px 30px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 30px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 1.05rem;
    display: block;
  }

  .nav-links a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    padding-left: 40px;
  }
   .nav-cta {
    width: fit-content !important;       
    display: inline-flex !important;     
    margin: 20px 0 30px 30px;            
    align-self: flex-start;               
    padding: 15px 22px;
  }
}
