/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #481B79;
  background: #ebf1f1; /*! color of the page which show in the footer */
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

canvas#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  min-height: 80vh;
}

.hero-left {
  flex: 1;
  padding-right: 2rem;
}

.hero-left h1 {
  font-size: 2.5rem;
  color: #481B79;
  margin-bottom: 1rem;
}

.hero-left p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-left .btn {
  background-color: #d6e6ff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: background-color 0.3s;
}

.hero-left .btn:hover {
  background-color: #a5c8ff;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-right img {
  width: 100%;
  /* max-width: 400px; */
  height: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-left, .hero-right {
    padding: 1rem 0;
  }
}

/* Popup button css animation */
      @keyframes pop-inout {
        0%, 100% { transform: scale(1); }
        10% { transform: scale(1.18); }
        20% { transform: scale(0.95); }
        30% { transform: scale(1.12); }
        40% { transform: scale(0.98); }
        50% { transform: scale(1.08); }
        60% { transform: scale(1); }
        100% { transform: scale(1); }
      }
      .animate-pop-inout {
        animation: pop-inout 3.5s cubic-bezier(.68,-0.55,.27,1.55) infinite;
      }

/* ==================== NAVIGATION STYLES ==================== */

/* Main Navigation Bar */
nav {
  transition: all 0.3s ease;
}

nav.sticky {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #481B79;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5rem;
}

/* Desktop Navigation Links */
nav ul li {
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #481B79;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  display: inline-block;
}

nav ul li a:hover {
  color: #c7a46e;
  border-bottom-color: #c7a46e;
}

/* Active Link */
nav ul li a.active {
  color: #c7a46e;
  font-weight: 600;
  border-bottom-color: #c7a46e;
}

/* CTA Button Styling */
.nav-cta-btn {
  background: linear-gradient(to right, #481B79, #5a2890) !important;
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 15px rgba(72, 27, 121, 0.3) !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
}

.nav-cta-btn:hover {
  background: linear-gradient(to right, #c7a46e, #d4b577) !important;
  box-shadow: 0 6px 20px rgba(199, 164, 110, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Mobile Hamburger Button */
#nav-toggle {
  cursor: pointer;
  font-size: 1.75rem;
  padding: 0.5rem;
  line-height: 1;
  transition: all 0.3s ease;
}

#nav-toggle:hover {
  color: #c7a46e;
  transform: scale(1.1);
}

/* Mobile Overlay */
#mobile-overlay {
  z-index: 60;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#mobile-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mobile Drawer */
#mobile-drawer {
  width: 85vw !important;
  max-width: 380px !important;
  background: white;
  border-left: 1px solid #f0f0f0;
}

#mobile-drawer.open {
  transform: translateX(0) !important;
}

/* Mobile Close Button */
#nav-close {
  cursor: pointer;
  font-size: 1.75rem;
  padding: 0.5rem;
  transition: all 0.3s ease;
  color: #481B79;
}

#nav-close:hover {
  color: #c7a46e;
  transform: rotate(90deg);
}

/* Mobile Menu Items Styling */
#mobile-drawer ul li {
  list-style: none;
}

#mobile-drawer ul li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #481B79;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
}

#mobile-drawer ul li a:hover,
#mobile-drawer ul li a.active {
  color: #c7a46e;
  border-left-color: #c7a46e;
  padding-left: 1.25rem;
}

/* Plans CTA: keep white text on purple background (override generic link color) */
#mobile-drawer ul li a[href="pricing.html"],
#mobile-drawer ul li a[href="../pricing.html"] {
  color: #fff !important;
}

#mobile-drawer ul li i {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

/* Mobile Social Links */
#mobile-drawer .social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.5rem;
  color: #481B79;
}

#mobile-drawer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #481B79;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

#mobile-drawer .social-links a:hover {
  background: #e5d4ef;
  color: #c7a46e;
  border-color: #c7a46e;
  transform: scale(1.1);
}

/* Tablet Responsive Navigation */
@media (max-width: 1024px) {
  nav {
    padding: 1rem 1.5rem !important;
  }

  nav ul li a {
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo img {
    width: 36px;
    height: 36px;
  }
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1rem !important;
  }

  .logo {
    font-size: 1rem;
    gap: 0.4rem;
  }

  .logo img {
    width: 32px;
    height: 32px;
    margin-right: 0.3rem;
  }

  nav ul:not(#mobile-drawer ul) {
    display: none !important;
  }

  #nav-toggle {
    display: block !important;
    font-size: 1.5rem;
  }

  #mobile-drawer {
    width: 90vw !important;
    max-width: 320px !important;
  }

  #mobile-drawer .p-6 {
    padding: 1rem !important;
  }

  #mobile-drawer ul li a {
    font-size: 0.95rem;
    padding: 0.65rem 0;
    padding-left: 0.5rem;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  nav {
    padding: 0.75rem 0.75rem !important;
  }

  .logo {
    font-size: 0.9rem;
    gap: 0.25rem;
  }

  .logo img {
    width: 28px;
    height: 28px;
    margin-right: 0.2rem;
  }

  #mobile-drawer {
    width: 95vw !important;
    max-width: 280px !important;
  }

  #nav-toggle {
    font-size: 1.25rem;
  }

  #mobile-drawer ul li a {
    font-size: 0.9rem;
    gap: 0.75rem;
  }

  #mobile-drawer ul li i {
    width: 20px;
    font-size: 1rem;
  }
}

/* ==================== END NAVIGATION STYLES ==================== */