

/* ===============================
   DOCS-SPECIFIC GLOBAL SETUP
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  background: radial-gradient(ellipse at center, #0a0a0a, #1c1c1c);
  color: #fff;
  overflow-y: auto;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===============================
   DOCS-SPECIFIC CONTAINER & EFFECTS
============================== */
.docs-container {
  position: relative;
  z-index: 5;
  margin: 80px auto 40px auto;
  width: 90%;
  max-width: 1400px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0,255,255,0.5);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.docs-container::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background:
    repeating-linear-gradient(to right, transparent, transparent 10px, rgba(0,255,255,0.2) 11px, transparent 12px),
    repeating-linear-gradient(to bottom, transparent, transparent 10px, rgba(0,255,255,0.2) 11px, transparent 12px);
  background-blend-mode: screen;
  animation: flow 10s linear infinite;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

@keyframes flow {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 100px 100px, 100px 100px; }
}

.docs-container h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  font-size: 2rem;
  font-weight: 700;
}

.doc-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #0ff;
  text-shadow: 0 0 5px #0ff;
  font-weight: 700;
}

.doc-section p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ===============================
   DOCS RESPONSIVE ADJUSTMENTS
============================== */
@media only screen and (max-width: 768px) {
  .docs-container {
    margin: 120px auto 20px auto;
    padding: 20px;
  }
  .doc-section h2 {
    font-size: 1.4rem;
  }
  .doc-section p {
    font-size: 0.9rem;
  }
}

/* ========================================
   📱 SMALL SCREEN FIXES (iPhone SE, etc.)
======================================== */
@media only screen and (max-width: 480px) {
  .docs-container {
    margin: 80px auto 15px auto; /* Move container higher */
    padding: 15px; /* Reduce padding for compact display */
    width: 95%; /* Slightly reduce width for better fit */
  }

  .doc-section h2 {
    font-size: 1.2rem; /* Smaller font for better readability */
    margin-bottom: 10px;
  }

  .doc-section p {
    font-size: 0.85rem; /* Adjust paragraph size */
    line-height: 1.5;
  }

  .doc-section {
    padding-bottom: 15px;
  }
}

/* ===============================
   TAB CONTROL STYLES
============================== */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-button {
  background: rgba(0, 255, 255, 0.2);
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin: 0 5px;
}

.tab-button:hover {
  background: rgba(0, 255, 255, 0.5);
}

.active-tab {
  background: rgba(0, 255, 255, 0.8);
  color: #111;
  text-shadow: none;
}

.tab-content {
  display: none;
}

.tab-content:first-of-type {
  display: block; /* Show the first tab by default */
}