:root {
  --primary-color: #00f0ff;
  --secondary-color: #ff00ff;
  --text-color: #ffffff;
  --background-color: rgba(0, 0, 0, 0.8);
  --card-background: rgba(20, 20, 30, 0.9);
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  position: relative;
  overflow-x: hidden;
  background-color: black;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url("slate_background.jpg") fixed;
  background-size: cover;
  filter: blur(3px) brightness(75%);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.logo:hover {
  background: rgba(255, 255, 255, 0.1);
}

.logo-text {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  max-width: 100vw;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100vw;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) var(--mask-position, 100%),
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) var(--mask-position, 100%),
    rgba(0, 0, 0, 0) 100%
  );
  user-select: none;
  -webkit-user-drag: none;
  box-sizing: border-box;
  object-position: center;
}

.hero-content {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  width: 90%;
  max-width: min(1200px, 100% - 2rem);
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Main Content Sections */
section {
  padding: 5rem 2rem;
  position: relative;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card-background);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-section {
  display: flex;
  align-items: center;
}

.highlight-section .content-wrapper {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.feature-image {
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  user-select: none;
  -webkit-user-drag: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.feature-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* CTA Section */
.cta-section {
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-button {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-color);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
}

.cta-button:hover {
  transform: translateY(-2px);
}

/* Setup Guide Styles */
.content {
  max-width: 1200px;
  width: 100%;
  margin: 80px auto 0;
  padding: 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.quick-start {
  background: rgba(20, 20, 30, 0.95);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.timeline-item:hover {
  opacity: 1;
}

.step-number {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  user-select: none;
}

.detailed-guide {
  background: rgba(20, 20, 30, 0.95);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.setup-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(30, 30, 40, 0.5);
  border-radius: 10px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.setup-section:hover {
  opacity: 1;
}

.setup-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.guide-content {
  padding-left: 1rem;
}

.step-details {
  margin-left: 1rem;
}

.step-details ol,
.step-details ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.step-details li {
  margin-bottom: 0.5rem;
}

code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Consolas", monospace;
  font-size: 0.9em;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

/* Fade effect for content near edges */
.content {
  position: relative;
  padding-top: 20px;
  margin-top: 80px; /* Account for navbar */
}

.content::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

/* 404 Page Styles */
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.error-content {
  background: rgba(20, 20, 30, 0.95);
  padding: 3rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1;
  width: 100%;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: 100%;
}

.error-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  width: 100%;
}

.error-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 2rem auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  display: block;
}

/* Glitch Animation */
.glitch {
  position: relative;
  color: var(--primary-color);
  text-shadow: 0.02em 0 0 var(--secondary-color),
    -0.01em -0.02em 0 rgba(255, 0, 0, 0.5), 0.01em 0.02em 0 rgba(0, 255, 0, 0.5);
  animation: glitch 800ms infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-effect 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-0.025em, -0.0125em);
  opacity: 0.75;
}

.glitch::after {
  animation: glitch-effect 3s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  transform: translate(0.025em, 0.0125em);
  opacity: 0.75;
}

@keyframes glitch {
  0% {
    text-shadow: 0.02em 0 0 var(--secondary-color),
      -0.01em -0.02em 0 rgba(255, 0, 0, 0.5),
      0.01em 0.02em 0 rgba(0, 255, 0, 0.5);
  }
  14% {
    text-shadow: 0.02em 0 0 var(--secondary-color),
      -0.02em -0.01em 0 rgba(255, 0, 0, 0.5),
      -0.01em 0.02em 0 rgba(0, 255, 0, 0.5);
  }
  15% {
    text-shadow: -0.02em -0.01em 0 var(--secondary-color),
      0.01em 0.01em 0 rgba(255, 0, 0, 0.5),
      -0.02em -0.02em 0 rgba(0, 255, 0, 0.5);
  }
  49% {
    text-shadow: -0.02em -0.01em 0 var(--secondary-color),
      0.01em 0.01em 0 rgba(255, 0, 0, 0.5),
      -0.02em -0.02em 0 rgba(0, 255, 0, 0.5);
  }
  50% {
    text-shadow: 0.01em 0.02em 0 var(--secondary-color),
      0.02em 0 0 rgba(255, 0, 0, 0.5), 0 -0.02em 0 rgba(0, 255, 0, 0.5);
  }
  99% {
    text-shadow: 0.01em 0.02em 0 var(--secondary-color),
      0.02em 0 0 rgba(255, 0, 0, 0.5), 0 -0.02em 0 rgba(0, 255, 0, 0.5);
  }
  100% {
    text-shadow: -0.01em 0 0 var(--secondary-color),
      -0.01em -0.01em 0 rgba(255, 0, 0, 0.5),
      -0.01em -0.02em 0 rgba(0, 255, 0, 0.5);
  }
}

@keyframes glitch-effect {
  0% {
    transform: translate(0);
  }
  10% {
    transform: translate(-2px, 2px);
  }
  20% {
    transform: translate(-2px, -2px);
  }
  30% {
    transform: translate(2px, 2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  50% {
    transform: translate(-2px, 2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  70% {
    transform: translate(2px, -2px);
  }
  80% {
    transform: translate(-2px, -2px);
  }
  90% {
    transform: translate(2px, 2px);
  }
  100% {
    transform: translate(0);
  }
}

.guide-img {
  max-width: 100%;
  max-height: 20rem;
}

dim {
  color: #888888;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.5s;
}

.fade-in-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#chat-container {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 10% auto;
  margin-bottom: 0;
  height: calc(100vh - 120px);
}

@media screen and (max-width: 768px) {
  #chat-container {
    margin: 70px auto 10px !important;
    height: calc(92.5vh - 90px) !important;
    max-height: 90vh !important;
    width: 95% !important;
    margin-top: 0.5rem !important;
  }

  #chat-log {
    padding: 10px;
    max-height: calc(70vh - 120px);
  }

  #input-area {
    height: fit-content;
    padding: 10px;
  }

  .chat-message {
    margin-bottom: 10px;
  }

  .message-content {
    padding: 8px;
    font-size: 0.95em;
  }

  .pfp {
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }

  .chat-message.user .pfp {
    margin-left: 10px;
  }

  #suggested-queries {
    margin-bottom: 10px;
  }

  .query-btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero-image {
    margin-top: 0 !important;
    height: 92vh !important;
    width: 100% !important;
    align-self: center !important;
    object-fit: cover !important;
    mask-image: linear-gradient(
      to bottom,
      black 95%,
      transparent 100%
    ) !important;
  }

  body.mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }

  .hero-content {
    width: 80%;
    align-self: center;
    margin-left: 50%;
    margin-top: -110%;
  }

  .hero {
    margin: 0 !important;
    height: 93vh !important;
  }
}

#tos-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#tos-modal {
  background-color: #2f3136;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#tos-modal h2 {
  text-align: center;
  margin-top: 0;
  color: #ffffff;
}

.tos-content {
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.tos-checkboxes label {
  display: block;
  margin-bottom: 15px;
  cursor: pointer;
}

#agree-button {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  background-color: rgba(114, 137, 218, 0.6);
  color: #ffffff;
  border: 2px solid rgba(114, 137, 218, 0.9);
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

#agree-button:disabled {
  background-color: rgba(80, 80, 80, 0.5);
  border-color: rgba(100, 100, 100, 0.8);
  cursor: not-allowed;
}

#agree-button:not(:disabled):hover {
  background-color: rgba(114, 137, 218, 0.8);
}

#chat-container {
  width: 90%;
  max-width: 800px;
  height: 95vh;
  max-height: 900px;
  background-color: #2f3136;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

#chat-log {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.chat-message {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.pfp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #7289da;
  margin-right: 15px;
}

.message-content {
  background-color: #40444b;
  padding: 12px;
  border-radius: 8px;
  max-width: 80%;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.user .pfp {
  margin-right: 0;
  margin-left: 15px;
  background-color: #99aab5;
}

.chat-message.user .message-content {
  background-color: #7289da;
  color: #ffffff;
}

#input-area {
  padding: 20px;
  border-top: 1px solid #40444b;
}

#suggested-queries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.query-btn {
  padding: 8px 12px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #dcddde;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.query-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#chat-input-wrapper {
  display: flex;
}

#user-input {
  flex-grow: 1;
  background-color: #40444b;
  border: none;
  border-radius: 5px;
  padding: 12px;
  color: #dcddde;
  font-size: 16px;
}

#user-input:focus {
  outline: none;
}

#send-btn {
  margin-left: 10px;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: rgba(114, 137, 218, 0.6);
  color: #ffffff;
  border: 2px solid rgba(114, 137, 218, 0.9);
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

#send-btn:hover {
  background-color: rgba(114, 137, 218, 0.8);
}

.typing-indicator {
  display: flex;
  align-items: center;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  margin: 0 2px;
  background-color: #b9bbbe;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #2f3136;
}

::-webkit-scrollbar-thumb {
  background: #202225;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1a1b1e;
}

a {
  color: #7289da;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 2px;
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .navbar {
    height: 60px;
    padding: 0 1rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .content {
    margin-top: 0.5rem;
    padding-top: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-200%);
    transition: transform 0.3s ease-in-out;
    z-index: -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar.menu-open .nav-links {
    transform: translateY(0);
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero {
    margin-top: -60px; /* Compensate for the fixed navbar */
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background: rgba(114, 137, 218, 0.2);
  pointer-events: none;
}

.nav-icon {
  font-size: 1.2rem;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  /* Base Font Sizes */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Navigation */
  .navbar {
    padding: 0.75rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease-out;
    z-index: -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: background-color 0.3s, opacity 0.05s ease-out,
      transform 0.05s ease-out;
  }

  .navbar.menu-open .nav-links a {
    opacity: 1;
    transform: translateY(0);
    transition: background-color 0.3s, opacity 0.2s ease-out,
      transform 0.2s ease-out;
  }

  /* Stagger the animations for each link */
  .navbar.menu-open .nav-links a:nth-child(1) {
    transition-delay: 0.2s;
  }
  .navbar.menu-open .nav-links a:nth-child(2) {
    transition-delay: 0.25s;
  }
  .navbar.menu-open .nav-links a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .navbar.menu-open .nav-links a:nth-child(4) {
    transition-delay: 0.35s;
  }

  .navbar.menu-open .nav-links {
    transform: translateY(0);
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Hero Section */
  .hero {
    height: 90vh;
    margin-top: 60px; /* Account for fixed navbar */
  }

  .hero-image {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.6);
  }

  .hero-content {
    width: 100%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .hero-content p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  /* Main Content */
  main {
    margin-top: 60px; /* Account for fixed navbar on non-hero pages */
  }

  section {
    padding: 2.5rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .content-wrapper {
    padding: 1.5rem;
    margin: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Text Styling */
  h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  /* Feature Section */
  .highlight-section .content-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-image {
    max-width: 100%;
    height: auto;
    order: -1;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }

  .feature-card {
    padding: 1.5rem;
    margin: 0.5rem 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  /* Setup Guide & Troubleshooting */
  .guide-content,
  .troubleshoot-content {
    padding: 1rem;
    margin-top: 60px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .timeline-item {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .step-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .step-content pre,
  .step-content code {
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .step-number {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  /* Prevent text overflow for all headings and paragraphs */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  /* Ensure all containers respect max-width */
  .step-details,
  .guide-content,
  .content-wrapper,
  .timeline-item {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Handle long URLs and file paths */
  a,
  code,
  pre {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
  }

  /* Chatbot Styles */
  .chatbot-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    max-width: 400px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 50;
  }

  .chat-messages {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
  }

  .chat-input {
    padding: 1rem;
    font-size: 1rem;
  }

  /* Footer */
  footer {
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(114, 137, 218, 0.5);
    border-radius: 4px;
  }
}

/* Additional mobile-specific adjustments when JS detects mobile */
.mobile .hero-image {
  height: 60vh; /* Shorter hero section on mobile */
}

.mobile .hero-content {
  background: rgba(0, 0, 0, 0.8); /* Darker background for better readability */
}

.mobile .content-wrapper {
  backdrop-filter: blur(5px); /* Add blur effect to backgrounds on mobile */
}

.mobile .feature-card:hover {
  transform: none; /* Disable hover effects on mobile */
}

/* Touch-friendly button sizes */
.mobile .cta-button {
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
}

/* Improved mobile scrolling */
.mobile {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.no-select {
  user-select: none;
}
