/* ===============================
   GLOBAL SETUP & PARTICLE BACKGROUND
============================== */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background: #111;
  overflow: hidden;
}

/* ===============================
   SHARED FOOTER (Fixed at Bottom)
============================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(0,0,0,0.8);
  text-align: center;
  color: #00ffff;
  font-size: 1rem;
  z-index: 105;
  box-shadow: 0 -2px 10px rgba(0,255,255,0.5);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  margin: 5px 0;
}

.footer-tagline {
  font-style: italic;
  font-size: 0.9rem;
  text-shadow: 0 0 5px #00ffff;
}

/* ===============================
   HERO SECTION (Modern Glass Effect)
=============================== */
.hero {
  position: relative;
  top: 120px; /* Lowered to avoid carousel */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 60%; /* More compact */
  max-width: 600px; /* Prevents it from getting too wide */
  padding: 20px;
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent glass effect */
  backdrop-filter: blur(12px); /* Frosted glass look */
  border-radius: 12px;
  color: white;
  z-index: 10;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  transition: all 0.3s ease-in-out;
}

/* Reduce size and add subtle neon glow */
.hero h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.hero p {
  font-size: 1.1rem;
  font-weight: lighter;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

/* Subtle hover effect */
.hero:hover {
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
  transform: translateX(-50%) scale(1.02);
}

  /* Footer */
  .footer {
    padding: 15px 0;
    font-size: 0.9rem;
  }
  .footer-tagline {
    font-size: 0.85rem;
  }

  /* Hero Section (Index Page) */
  .hero {
    top: 90px; /* Adjust positioning */
    width: 85%; /* Reduce width */
    padding: 12px; /* Decrease padding */
  }

  .hero h1 {
    font-size: 1.5rem; /* Smaller heading */
  }

  .hero p {
    font-size: 0.95rem; /* Smaller paragraph */
  }

  .hero-text {
    font-size: 1.1rem;
    font-weight: lighter;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center; /* Centers the text */
    max-width: 600px; /* Ensures the text doesn't stretch too wide */
    margin: 0 auto; /* Centers within the hero div */
  }

.ai-highlight {
  font-size: 1.1rem; /* Matches .hero p */
  font-weight: lighter; /* Matches .hero p */
  line-height: 1.4; /* Matches .hero p */
  color: rgba(255, 255, 255, 0.9); /* Matches .hero p */
  
  text-shadow: 0 0 10px rgba(255, 170, 51, 0.8), 0 0 20px rgba(255, 170, 51, 0.5);
  background: rgba(255, 170, 51, 0.2); /* Semi-transparent background */
  text-decoration: none; /* Remove underline */
  
  padding: 2px 6px; /* Reduced padding for a tighter fit */
  border-radius: 5px; /* Slightly smaller border radius */
  display: inline-block; /* Ensures the box only wraps around text */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap; /* Prevents multi-line wrapping */
  text-align: center;

}

.ai-highlight:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 170, 51, 0.9);
}

.ai-center {
  display: inline; /* Fix: Keeps the link's width just around the words */
}
  /* Docs & Chat Containers */
  .docs-container,
  .chat-container {
    width: 95%;
    padding: 20px;
  }
  .docs-container h1,
  .chat-container h1 {
    font-size: 1.8rem;
  }

@media only screen and (max-width: 480px) {
  .hero {
    top: 60px; /* Adjust positioning to prevent excessive spacing */
    width: 90%; /* Keep consistent width */
    padding: 12px; /* Reduce padding slightly */
    top: 80px; /* Lowered to avoid carousel */
  }
  .hero h1 {
    font-size: 1.2rem; /* Reduce heading size for small screens */
  }

  .hero p {
    font-size: 0.9rem; /* Slightly larger for readability */
    line-height: 1.5; /* Improve spacing */
    margin: 0 auto; /* Ensure centering */
  }
  .ai-highlight {
    display: inline-block;
    padding: 4px 8px; /* Reduce padding to make the background smaller */
    font-size: 1.1rem; /* Keep text readable */
    border-radius: 6px; /* Maintain rounded effect */
    text-align: center;
    
    /* High-contrast text color */
    color: #ffffff; /* Pure white for maximum contrast */
    font-weight: bold;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 18px rgba(255, 255, 255, 0.7);
    
    /* Remove link underline */
    text-decoration: none;
}

/* Optional: Slight color glow effect on hover */
.ai-highlight:hover {
    text-decoration: none;
    color: #ffcc33; /* Bright golden hue */
    text-shadow: 0 0 14px rgba(255, 204, 51, 1), 0 0 20px rgba(255, 204, 51, 0.8);
}
}

/* ===============================
   Montserrat Font-Face Declarations
============================== */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

/* ===============================
   RUNNING TEXT (MARQUEE STYLE)
=============================== */
.scrolling-text-container {
  position: relative;
  margin: 30px auto; /* Centers horizontally */
  width: 80%;        /* Adjust width as desired */
  overflow: hidden;  /* Hides text outside the container */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
  border: 1px solid #00ffff;      /* Neon border */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  padding: 10px;
  z-index: 5; /* Ensures it sits above background elements */
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap; /* Prevents line breaks */
  animation: marquee 15s linear infinite; /* Controls scrolling speed & direction */
}

.scrolling-text p {
  display: inline-block;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0;
  padding-right: 2rem; /* Spacing between repeats */
}

/* Keyframes for the marquee effect */
@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* (Optional) Media Query Tweaks for Smaller Screens */
@media only screen and (max-width: 768px) {
  .scrolling-text-container {
    width: 90%;
  }
  .scrolling-text p {
    font-size: 1rem;
  }
}