:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #a855f7;
  --dark-bg: #030712;
  --card-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --neon-blue: #00d2ff;
  --neon-purple: #9d50bb;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.glass-hover:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* Navbar */
.top-header {
  background: #010409;
  border-bottom: 1px solid var(--glass-border);
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  z-index: 1002;
}

.top-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-header-info {
  display: flex;
  gap: 20px;
}

.top-header-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-header-info i {
  color: var(--primary);
}

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

.top-header-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

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

nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

nav.sticky {
  position: fixed;
  top: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(15px);
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
}

@media (max-width: 991px) {
  .top-header { display: none !important; }
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

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

.btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 0 25px var(--primary-glow);
  transform: scale(1.05);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-shapes div {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 1;
  animation: float 10s infinite alternate;
}

@keyframes float {
  from { transform: translate(0, 0); }
  to { transform: translate(50px, 50px); }
}

/* Domain Search */
.domain-search {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-box {
  padding: 40px;
  display: flex;
  gap: 15px;
}

.search-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 15px 25px;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  padding: 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card.featured {
  border: 1px solid var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: scale(1.05);
}

.price {
  font-size: 48px;
  font-weight: 800;
  margin: 20px 0;
}

.price span {
  font-size: 16px;
  color: var(--text-muted);
}

.features-list {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.features-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer */
footer {
  background: #010409;
  padding: 80px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-links h4 {
  margin-bottom: 25px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Reveal Animation */
.reveal {
  position: relative;
  transform: translateY(150px);
  opacity: 0;
  transition: all 1s ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); }
}

/* Pricing Toggle Switch */
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--card-bg);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--glass-border);
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.yearly {
  display: none;
}

/* Mega Menu & dropdown */
.dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 500px;
  display: none;
  padding: 25px;
  z-index: 1001;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.dropdown:hover .mega-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mega-col a {
  display: flex !important;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.mega-col a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

.mega-col i {
  font-size: 20px;
  color: var(--primary);
}

.mega-col strong {
  display: block;
  font-size: 14px;
}

.mega-col span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mobile Nav */
.menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-btn { display: block; }
  .nav-btns { display: none; }
}

/* Floating Chat Button */
.chat-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-btn:hover {
  transform: scale(1.1) rotate(15deg);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 5px 15px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Scroll Top Button */
.scroll-up-btn {
  position: fixed;
  bottom: 170px;
  right: 35px;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.scroll-up-btn.show {
  visibility: visible;
  opacity: 1;
}

/* Particle Canvas */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Mobile Nav Enhancements */
.mobile-toggle {
  display: none;
  cursor: pointer;
}

@media (max-width: 991px) {
  .top-header {
    display: none;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #030712;
    flex-direction: column;
    padding: 100px 30px;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    display: flex !important; /* Force flex when active or toggleable */
    z-index: 1000;
    overflow-y: auto;
  }

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

  .mobile-toggle {
    display: block !important;
    z-index: 1001;
    color: #fff;
    font-size: 24px;
    background: none;
    border: none;
  }

  .nav-btns {
    display: none;
  }

  .mega-menu {
    position: static;
    transform: none !important;
    width: 100%;
    display: none;
    padding: 15px 0 0 15px;
    box-shadow: none;
    background: none;
    border: none;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .dropdown.active .mega-menu {
    display: block;
  }
  
  .mega-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 42px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats .glass { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* Utilities */
.text-center { text-align: center; }
.w-full { width: 100%; }
