:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --primary: #00f2ff;
  /* Neon Cyan */
  --secondary: #ffd700;
  /* Gold */
  --accent: #ff0055;
  /* Neon Pink/Red */
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.1);
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  padding-bottom: 70px;
  /* Space for bottom nav on mobile */
}

/* Fix dropdown option visibility */
option {
  background-color: var(--bg-dark);
  color: var(--text);
}

select,
input {
  background-color: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
  width: 100%;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary);
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: var(--primary);
  color: var(--bg-dark);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn.secondary:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

/* Header Redesign */
header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.main-header.scrolled {
  padding: 10px 0;
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.brand-logo {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  padding: 2px;
  background: #fff;
  transition: transform 0.3s ease;
}

.logo-link:hover .brand-logo {
  transform: rotate(10deg) scale(1.1);
}

.logo-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding: 5px 0;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Sidebar Drawer - Mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Sidebar Drawer - Simplified & Polished */
.sidebar-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: #022f24;
  /* Dark solid/slightly transparent bg */
  z-index: 2000;
  padding: 60px 25px 150px;
  /* Reduced top padding */
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 150px;
  /* Ensure last item is reachable */
  -webkit-overflow-scrolling: touch;
}

.sidebar-drawer.active {
  right: 0;
}

/* Close Button */
.sidebar-drawer .close-drawer {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.sidebar-drawer .close-drawer:hover {
  background: var(--primary);
  color: #000;
}

/* Nav Links - Button Style */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 50px;
  /* Pill shape like buttons */
  background: rgba(255, 255, 255, 0.05);
  /* Slight visibility */
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  color: #ccc;
  text-decoration: none;
}

.sidebar-nav a i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

.sidebar-nav a:hover {
  background: var(--primary);
  /* Full active state */
  color: #000;
  transform: translateX(5px);
  border-color: var(--primary);
}

.sidebar-nav a:hover i {
  color: #000;
  /* Icon turns black on hover */
}

/* Action Buttons (Login/Register) */
.sidebar-nav .btn {
  justify-content: center;
  background: var(--primary);
  color: #000;
  border: none;
}

.sidebar-nav .btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.sidebar-nav .btn.secondary:hover {
  background: var(--primary);
  color: #000;
}

/* Mobile Bottom Nav */
/* Mobile Bottom Nav - "Smart Island" Design */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 15px;
  right: 15px;
  height: 70px;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  z-index: 2000;
  padding: 0 10px;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  width: auto;
  /* Override full width */
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #8a93a0;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: 16px;
  gap: 4px;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.3rem;
  transition: all 0.3s ease;
  margin-bottom: 2px;
}

/* Active State Design */
.mobile-bottom-nav .nav-item.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-bottom-nav .nav-item.active i {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 8px var(--primary));
  font-size: 1.4rem;
}

.mobile-bottom-nav .nav-item.active span {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Floating Indicator for Active Item */
.mobile-bottom-nav .nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideAnimation 15s infinite;
}

.slide:nth-child(1) {
  animation-delay: 0s;
}

.slide:nth-child(2) {
  animation-delay: 5s;
}

.slide:nth-child(3) {
  animation-delay: 10s;
}

@keyframes slideAnimation {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  5% {
    opacity: 1;
  }

  33% {
    opacity: 1;
  }

  38% {
    opacity: 0;
    transform: scale(1.1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 23, 0.7);
  /* Dark overlay to make text pop */
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.6;
  /* Subtle particles on top of images */
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* Floating WhatsApp Button */
.whatsapp-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1001;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-cta:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-cta::after {
  content: "Need Help?";
  position: absolute;
  right: 70px;
  background: white;
  color: #333;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.whatsapp-cta:hover::after {
  opacity: 1;
  right: 80px;
}

@media (max-width: 768px) {
  .whatsapp-cta {
    bottom: 105px;
    /* Above mobile floating nav (20px bottom + 70px height + 15px gap) */
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: #05070c;
  padding: 60px 0 20px;
  border-top: 1px solid var(--border);
  margin-bottom: 60px;
  /* Space for bottom nav */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-section {
    height: auto;
    min-height: 80vh;
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
  }

  .nav-links,
  .desktop-auth {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block !important;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .logo-text span {
    font-size: 0.55rem;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 !important;
  }

  section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .form-container {
    padding: 20px;
    margin: 20px 10px;
  }

  .tier-cards {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}