/* ========================================================
   1. ROOT VARIABLES & GLOBAL RESETS
   ======================================================== */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0d1424;
  --bg-card: rgba(18, 26, 43, 0.78);
  --bg-card-hover: rgba(28, 39, 64, 0.95);
  --cyan-primary: #00f2fe;
  --blue-secondary: #4facfe;
  --purple-accent: #a855f7;
  --green-accent: #25d366;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-spec: 'Roboto Condensed', sans-serif;
  --header-height: 74px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-primary);
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ========================================================
   2. STICKY HEADER & MOBILE DRAWER NAVIGATION
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--header-height);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 14, 23, 0.9);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  z-index: 1002;
  white-space: nowrap;
}

.logo-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, var(--cyan-primary), var(--blue-secondary));
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #050b14;
  font-size: 1.1rem;
}

.logo-text span {
  color: var(--cyan-primary);
}

.nav-drawer {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan-primary);
  border-radius: 2px;
}

.drawer-header,
.drawer-footer {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
}

.lang-selector select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.lang-selector select option {
  background: #111827;
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.3rem;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-primary);
  border-color: var(--cyan-primary);
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================================
   3. BUTTONS & ACCENTS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-quote {
  background: linear-gradient(135deg, var(--cyan-primary), var(--blue-secondary));
  color: #050b14;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.28);
}

.btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.45);
}

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

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--cyan-primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========================================================
   4. HERO SECTIONS & CANVAS
   ======================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 18px 0;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--cyan-primary), var(--purple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Domain Search Bar */
.domain-search-box {
  margin-top: 45px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 8px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.domain-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 18px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.domain-tld-pills {
  display: flex;
  gap: 8px;
  margin-right: 12px;
}

.domain-tld-pills span {
  font-family: var(--font-spec);
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan-primary);
}

/* ========================================================
   5. CARDS & GRID SYSTEM
   ======================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 30px;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
}

.price-number {
  font-family: var(--font-spec);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.price-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ========================================================
   6. FLOATING ACTION BUTTONS (LEFT CALL / RIGHT WHATSAPP)
   ======================================================== */
.floating-btn {
  position: fixed;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  z-index: 990;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.float-call {
  left: 20px;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
}

.float-whatsapp {
  right: 20px;
  background: var(--green-accent);
}

.floating-btn:hover {
  transform: scale(1.1);
}

.radar-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #00c6ff;
  animation: pulseRadar 2s infinite ease-out;
  pointer-events: none;
}

.whatsapp-wave {
  border-color: var(--green-accent);
}

@keyframes pulseRadar {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.75); opacity: 0; }
}

.online-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid var(--green-accent);
}

.float-tooltip {
  display: none;
}

@media (min-width: 769px) {
  .float-tooltip {
    display: block;
    position: absolute;
    bottom: 65px;
    background: rgba(10, 14, 23, 0.95);
    color: #fff;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
    border: 1px solid var(--border-glass);
  }
  .floating-btn:hover .float-tooltip {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================
   7. "BUILD A QUOTE" MODAL STYLING
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: grid;
}

.quote-modal-box {
  background: #111827;
  border: 1px solid var(--border-glow);
  width: 100%;
  max-width: 600px;
  border-radius: 18px;
  padding: 30px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  max-height: 92vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.service-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}

.chip-option input {
  display: none;
}

.chip-option span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.chip-option input:checked + span {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-preview-banner {
  background: rgba(0, 242, 254, 0.06);
  border: 1px dashed var(--border-glow);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-price {
  font-family: var(--font-spec);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan-primary);
}

.btn-whatsapp-sub {
  background: #128c7e;
  color: #fff;
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

.btn-whatsapp-sub:hover {
  background: #0f7669;
}

/* ========================================================
   8. FOOTER STYLING
   ======================================================== */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 25px;
  margin-top: 80px;
}

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

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #fff;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul a:hover {
  color: var(--cyan-primary);
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-items a:hover {
  color: var(--cyan-primary);
}

.uptime-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 16px;
  border-radius: 12px;
}

.uptime-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-accent);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.status-pulse {
  width: 10px;
  height: 10px;
  background: var(--green-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green-accent);
}

.uptime-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-security {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ========================================================
   9. RESPONSIVE BREAKPOINTS (FIXING MOBILE HEADER & OVERFLOW)
   ======================================================== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .desktop-quote-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .desktop-only,
  .desktop-quote-btn {
    display: none !important;
  }

  .mobile-toggle {
    display: grid !important;
  }

  /* Slide-in Mobile Drawer */
  .nav-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 310px !important;
    max-width: 86vw !important;
    background: #0d1424 !important;
    border-left: 1px solid var(--border-glass) !important;
    z-index: 1100 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 24px !important;
    overflow-y: auto !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7) !important;
  }

  .nav-drawer.open {
    transform: translateX(0) !important;
  }

  .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 20px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid var(--border-glass) !important;
  }

  .drawer-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  .drawer-close-btn:hover {
    color: #fff;
    border-color: var(--cyan-primary);
  }

  .nav-links {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
  }

  .nav-link {
    font-size: 1.05rem !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
  }

  .nav-link.active {
    background: rgba(0, 242, 254, 0.1) !important;
    color: var(--cyan-primary) !important;
  }

  .nav-link.active::after {
    display: none !important;
  }

  .drawer-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border-glass) !important;
  }

  .drawer-lang-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .drawer-lang-selector label {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .lang-select-mobile {
    width: 100%;
    background: #151e33;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    font-size: 0.9rem;
    outline: none;
  }

  .drawer-quote-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
  }

  .drawer-contact-phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--cyan-primary);
    padding: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
  }

  .quote-modal-box {
    padding: 22px 16px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .domain-search-box {
    flex-direction: column !important;
    border-radius: 16px !important;
    gap: 10px !important;
    padding: 14px !important;
  }

  .domain-search-box input {
    width: 100% !important;
    text-align: center !important;
  }

  .domain-search-box .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-security {
    justify-content: center;
  }

  /* Prevent comparison tables from blowing out screens */
  table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  /* Scaled floating action buttons */
  .floating-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
    bottom: 18px !important;
  }
  .float-call { left: 16px !important; }
  .float-whatsapp { right: 16px !important; }
}