/* Base Styles (copied from radbiz_Services.css for consistency) */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Base background for content over canvas */
  font-family: "Inter", sans-serif; /* Aligned with HTML font link */
  color: #ccffe6; /* Light green/cyan text */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

canvas {
  position: fixed; /* Use fixed to ensure it covers the whole viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1000; /* Place behind content */
}
#canvas2 {
  filter: blur(1px); /* Apply blur for secondary canvas */
}

/* Website Layout */
a {
  color: #5effb0; /* Green accent for links */
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #0aff0a; /* Slightly brighter green on hover */
}

h1,
h2,
h3 {
  margin: 0.5em 0;
  color: #ccffe6; /* Consistent heading color */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: black;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
nav a {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}
nav a:hover {
  background: rgba(94, 255, 176, 0.1);
}
.navbar-left .navbar-logo {
  height: 50px;
  margin-left: 20px;
}

.navbar-right {
  display: flex;
  gap: 2rem;
  margin-right: 30px;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .navbar-right {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
}

section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative; /* Ensure section content is above canvas */
  z-index: 1;
  text-align: center; /* Center content within sections */
}

footer {
  text-align: center;
  padding: 2rem;
  background: #000; /* Solid black footer */
  color: #ccffe6;
  position: relative; /* Ensure footer content is above canvas */
  z-index: 1;
}

/* Specific styles for the new maintain screen */
.maintain-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  margin-bottom: 22px;
  background: #121212; /* Dark background for the section */
  border: 2px solid #5effb0; /* Green border */
  border-radius: 1rem;
  margin-top: 3rem;
  box-shadow: 0 4px 16px rgba(94, 255, 176, 0.2);
  padding: 3rem 2rem;
}

.maintain-content {
  max-width: 600px;
  text-align: center;
}

.maintain-content h2 {
  color: #5effb0;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.maintain-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-links .button {
  display: inline-block;
  background: #5effb0; /* Bright green background */
  color: #000; /* Black text for contrast */
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease, transform 0.1s ease;
  text-decoration: none; /* Remove underline */
  min-width: 180px; /* Ensure buttons have a minimum width */
}

.contact-links .button:hover {
  background: #0aff0a; /* Slightly brighter green on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

/* Lazy Load Effect */
.lazy-load-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.lazy-load-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* AI Chat Widget */
#ai-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background: #121212;
  border: 2px solid #5effb0;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(94, 255, 176, 0.4);
  font-size: 0.9rem;
  z-index: 100;
  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#ai-chatbot.ai-chatbot-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: #000;
  color: #5effb0;
  padding: 0.75rem 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #1a1a1a;
}
.chat-msg {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.chat-msg.user {
  text-align: right;
  color: #a0f2cf;
}
.chat-msg.assistant {
  text-align: left;
  color: #ccffe6;
}
.chat-input {
  display: flex;
  border-top: 1px solid #333;
}
.chat-input input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: #262626;
  color: #ccffe6;
}
.chat-input button {
  padding: 0 1rem;
  background: #5effb0;
  border: none;
  color: #000;
  cursor: pointer;
}

.chat-toggle-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5effb0; /* Green bubble */
  color: #000; /* Black icon */
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(94, 255, 176, 0.5);
  z-index: 101; /* Above the chat widget when hidden */
  transition: transform 0.2s ease, background 0.2s ease;
}

.chat-toggle-button:hover {
  background: #0aff0a; /* Darker green on hover */
  transform: scale(1.05);
}

.chat-toggle-button svg {
  width: 30px;
  height: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .maintain-section {
    padding: 2rem 1rem;
    min-height: auto;
  }
  .maintain-content h2 {
    font-size: 2rem;
  }
  .maintain-content p {
    font-size: 1rem;
  }
  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-links .button {
    width: 100%;
    min-width: unset;
  }
}
