body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0e0b1c;
  color: #fff;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #0e0b1c;
  background-image:
    linear-gradient(90deg, rgba(138,43,226,0.1) 1px, transparent 1px),
    linear-gradient(rgba(138,43,226,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: squaregrid 60s linear infinite;
}
@keyframes squaregrid {
  0% { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}
h1, h2 {
  text-align: center;
  z-index: 1;
  position: relative;
}
.section-title {
    font-size: 2.5em;
    margin-top: 60px;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.navbar .logo {
  font-weight: bold;
  font-size: 1.8em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.navbar .logo img {
  height: 40px; /* Adjust as needed */
  margin-right: 10px;
}
.navbar .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.navbar .nav-links li {
  margin-left: 30px;
}
.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  transition: color 0.3s ease;
}
.navbar .nav-links a:hover {
  color: #8A2BE2; /* Purple hover effect */
}

/* Hero Section Styles */
.hero-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #1A0D3B 0%, #0E0B1C 100%); /* Dark purple to dark blue gradient */
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero-section h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.7); /* Stronger glow for title */
  color: #fff;
}
.hero-section p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #e0e0e0;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}
.hero-btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
}
.hero-btn.primary {
  background: linear-gradient(90deg, #8A2BE2, #FF00CC); /* Purple to Pink gradient */
  color: #fff;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}
.hero-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
}
.hero-btn.secondary {
  background: transparent;
  border: 2px solid #8A2BE2;
  color: #8A2BE2;
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
}
.hero-btn.secondary:hover {
  background: rgba(138, 43, 226, 0.1);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px 20px;
  width: 220px; /* Adjust width to fit 4 in a row */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.3);
}
.stat-box .number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FF00CC; /* Pink color for numbers */
  margin-bottom: 5px;
}
.stat-box .label {
  font-size: 1em;
  color: #ccc;
}


.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
}
.plan-box {
  background: linear-gradient(145deg, rgba(112, 0, 255, 0.2), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
  border-radius: 20px;
  width: 300px;
  padding: 40px 30px;
  color: #fff;
  text-align: center;
  height: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.plan-box:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
}
.plan-box .price {
  color: yellow;
  margin: 10px 0;
}
.plan-box.popular {
  border: 2px solid gold;
}
.plan-box.popular .tag {
  background: gold;
  color: #000;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Why Choose Section Styles */
.why-choose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 50px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.why-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px;
  height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.why-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.why-icon {
  font-size: 3em;
  margin-bottom: 15px;
  color: #8A2BE2;
  line-height: 1;
}
.why-box h3 {
  font-size: 1.5em;
  margin: 0 0 10px;
  line-height: 1.2;
  color: #fff;
}
.why-box p {
  font-size: 0.95em;
  color: #ccc;
  line-height: 1.6;
}


.testimonial-section {
  padding: 50px 20px;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.testimonial-box {
  background: linear-gradient(145deg, rgba(112, 0, 255, 0.2), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
  border-radius: 20px;
  padding: 30px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.6);
}
.testimonial-author {
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
}

/* FAQ/Policies Section Specific Styles */
.faq-section {
  padding: 50px 20px;
  text-align: center;
}
.faq-section p {
  color: #ccc;
  margin-top: 10px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px 25px;
  color: #e0e0e0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-box:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 0;
}

.faq-question::after {
  content: '+';
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.8em;
  font-weight: normal;
  color: #8A2BE2;
  transition: transform 0.3s ease;
}

.faq-box.active .faq-question::after {
  content: '-';
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out;
  opacity: 0;
  font-size: 0.9em;
  line-height: 1.7;
  padding-top: 0;
  color: #ccc;
}

.faq-box.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding-top: 15px;
}

/* Styles for the "Page" containers */
.page {
    display: none; /* Hidden by default */
    min-height: calc(100vh - 70px); /* Adjust based on navbar height */
}
.page.active {
    display: block; /* Shown when active */
}

/* Location Hero Section - Specific to locations content */
.location-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #1A0D3B 0%, #0E0B1C 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.location-hero h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.7);
  color: #fff;
}
.location-hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #e0e0e0;
  line-height: 1.6;
}
.location-hero .hero-btn { /* Reusing btn styles */
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #8A2BE2, #FF00CC);
  color: #fff;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}
.location-hero .hero-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
}

/* Hosting Locations Grid */
.locations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.location-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  width: 280px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.location-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.3);
}
.location-box h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #fff;
}
.location-box .flag-icon {
  font-size: 3em;
  margin-bottom: 15px;
}
.location-box .specs p {
  margin: 5px 0;
  font-size: 0.95em;
  color: #ccc;
}

/* Ping Test Section */
.ping-test-section {
  text-align: center;
  padding: 50px 20px;
}
.ping-test-section .ping-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.ping-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  width: 200px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.ping-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}
.ping-box h4 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #FF00CC;
}
.ping-box .ping-value {
  font-size: 1.8em;
  font-weight: bold;
  color: #8A2BE2;
}
.ping-box .ping-label {
  font-size: 0.9em;
  color: #ccc;
}

/* Nodes Page Specific Styles */
.nodes-page .nodes-title-box {
  background-color: rgba(255, 0, 0, 0.05); /* Light red background */
  border: 1px solid rgba(255, 0, 0, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
  margin: 30px auto;
}
.nodes-page .nodes-title-box h2 {
  margin-bottom: 0;
}
.nodes-page .alert-message {
  background-color: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: #ffcccc;
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
  margin: 30px auto;
  font-size: 1.1em;
}
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.node-box {
  background: #1a1a2e; /* Darker background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.node-box.offline {
  opacity: 0.7; /* Indicate offline status */
}
.node-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(138, 43, 226, 0.4);
}
.node-box h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 5px;
}
.node-box .node-location {
  font-size: 0.9em;
  color: #ccc;
  margin-bottom: 10px;
}
.node-box .node-specs {
  display: grid;
  grid-template-columns: auto auto; /* Two columns for label and data */
  gap: 5px 10px;
}
.node-box .node-specs p {
  margin: 0;
  font-size: 1em;
  color: #ddd;
}
.node-box .node-specs p:nth-child(odd) {
  font-weight: bold; /* Style the labels */
  color: #eee;
}
.node-box .node-specs .data {
  color: #FF00CC; /* Highlight the data values */
}
.node-box .last-update {
  font-size: 0.85em;
  color: #777;
  margin-top: 20px;
  text-align: center;
}

/* Blinking Light Styles */
.light-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.light-indicator.green {
  background-color: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
}
.light-indicator.red {
  background-color: #ff0000;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}
.light-indicator.blinking {
  animation: blink 1.5s infinite alternate; /* Blink animation */
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}


@media (max-width: 992px) {
  .hero-section h1, .location-hero h1 {
    font-size: 2.5em;
  }
  .hero-section p, .location-hero p {
    font-size: 1em;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .stat-box {
    width: 45%; /* Two per row on smaller screens */
  }
  .why-choose {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust min-width for mobile */
  }
  .testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .navbar {
    flex-direction: column;
    padding: 15px 20px;
  }
  .navbar .nav-links {
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .navbar .nav-links li {
    margin: 5px 15px;
  }
   .locations-grid, .node-grid {
    justify-content: center; /* Center items on smaller screens */
    gap: 20px; /* Reduce gap on smaller screens */
  }
}