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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #14b8a6;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  padding-top: 90px; /* Add this line */
}

/* Header Styles */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0;
}

/* Header Background - Glassmorphism */
#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

#header.scrolled::before {
  opacity: 1;
}

#header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s;
}

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

.logo img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  transition: filter 0.3s;
}

.logo:hover img {
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.8));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: none;
}

@media (min-width: 768px) {
  .logo-text {
    display: block;
  }
}

/* Navigation Styles */
.navbar {
  display: flex;
  align-items: center;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Animated Underline Effect */
.navbar ul li a::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateX(-50%);
  transition: width 0.3s;
}

.navbar ul li a:hover::before,
.navbar ul li a.active::before {
  width: 60%;
}

.navbar ul li a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Active Link Style */
.navbar ul li a.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* CTA Button */
.nav-cta {
  margin-left: 1rem;
}

.nav-cta a {
  padding: 0.8rem 2rem !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.nav-cta a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  transition: left 0.4s;
}

.nav-cta a:hover::before {
  left: 0;
}

.nav-cta a span {
  position: relative;
  z-index: 1;
}

.nav-cta a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  transition: all 0.3s;
  z-index: 1001;
}

.mobile-nav-toggle:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Mobile Menu */
@media (max-width: 991px) {
  .navbar ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 6rem 2rem 2rem;
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .navbar ul.mobile-nav-active {
    right: 0;
  }

  .navbar ul li {
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    animation: slideIn 0.3s forwards;
  }

  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .navbar ul li:nth-child(1) { animation-delay: 0.1s; }
  .navbar ul li:nth-child(2) { animation-delay: 0.2s; }
  .navbar ul li:nth-child(3) { animation-delay: 0.3s; }
  .navbar ul li:nth-child(4) { animation-delay: 0.4s; }
  .navbar ul li:nth-child(5) { animation-delay: 0.5s; }

  .navbar ul li a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 0.5rem;
  }

  .nav-cta {
    margin-left: 0;
    width: 100%;
  }

  .nav-cta a {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .mobile-nav-toggle {
    display: block;
  }

  /* Hamburger Icon Animation */
  .mobile-nav-toggle.active .bi-list::before {
    content: "\f659"; /* bi-x icon */
  }

/* Overlay for mobile menu */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Demo Content */
.demo-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
}

.demo-box {
  text-align: center;
  padding: 3rem;
}

.demo-box h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.demo-box p {
  font-size: 1.2rem;
  color: var(--gray);
}

/* Notification Badge */
.nav-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(135deg, var(--secondary), #f43f5e);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
