/* glossary.css - AEOSIGNAL.Space */

.glossary-page {
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.glossary-page {
    width: 100%;
    max-width: 100%; /* Ensure no overflow */
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column; /* ensure vertical stacking */
    align-items: center;
    overflow-x: hidden; /* Prevent horizontal overflow */
}


 ===============================
   HERO SECTION
================================= */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}


.hero {
    height: 100vh; /* exact viewport height */
    width: 100%; /* ensure full width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0; /* remove conflicting padding */
    position: relative;
    overflow: hidden;
    color: var(--text-on-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    background: linear-gradient(135deg, #d0eaff, #a0e7e5, #f0f0f0, #d0eaff);
    background-size: 300% 300%;
    animation: heroGradientShift 20s ease infinite;
}
.hero-content {
    max-width: 700px;
    padding: 20px; /* apply padding here */
}


body.dark .hero {
    background: linear-gradient(135deg, #4e049b, #300369, #8d05e1, #110534, #e834e0);
    background-size: 400% 400%;
    animation: heroGradientShift 20s ease infinite;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.scroll-indicator {
  font-size: 2rem;
  margin-top: 20px;
  color: var(--accent);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0);}
  50% { transform: translateY(-8px);}
}

.section-intro-box {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.intro-box {
  display: flex;
  align-items: center;
  background: var(--card-bg, #d0eaff);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 12px;
  padding: 20px;
  max-width: 1000px;
  width: 100%;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.intro-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.intro-box-image {
  flex: 0 0 250px;
  margin-right: 20px;
}

.intro-box-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.intro-box-content {
  flex: 1;
}

.intro-box-content h2 {
  font-size: 1.8rem;
  color: var(--section-heading);
  margin-bottom: 15px;
}

.intro-box-content p {
  font-size: 1rem;
  color: var(--paragraph);
  line-height: 1.6;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .intro-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .intro-box-image {
    margin: 0 0 15px 0;
    flex: 0 0 auto;
  }
  .intro-box-content h2 {
    font-size: 1.5rem;
  }
}
.intro-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.intro-box ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: var(--text);
}

.intro-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.section-closing-cta {
    text-align: center;
    padding: 60px 20px;
}

.section-closing-cta h2 {
    font-size: 2rem;
    color: var(--section-heading);
}

.section-closing-cta p {
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: var(--paragraph);
}

.cta-button {
    background: var(--accent);
    color: var(--cta-text);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--accent-hover);
}

/* Accordion Structure */

.glossary-accordion {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.accordion-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg, #f9f9f9);
    border: 1px solid var(--border-color, #ddd);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.accordion-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--section-heading);
    text-align: left;
    font-family: 'Orbitron', sans-serif;
}

.accordion-toggle:focus {
    outline: 2px solid var(--accent);
}

.accordion-content {
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--paragraph);
    line-height: 1.5;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotate {
    transform: rotate(180deg);
}

.why-it-matters {
    color: var(--accent);
    font-weight: 600;
    margin-top: 10px;
}

.cta-final-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d0eaff, #a0e7e5, #f0f0f0, #d0eaff);
    background-size: 300% 300%;
    animation: heroGradientShift 10s ease infinite;
    text-align: center;
    padding: 80px 20px;
}

body.dark .cta-final-section {
    background: linear-gradient(135deg, #4e049b, #300369, #8d05e1, #110534, #e834e0);
    background-size: 400% 400%;
    animation: heroGradientShift 10s ease infinite;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-final-section .cta-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    opacity: 0.05;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}

.cta-final-section h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-final-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    color: #1f2937; /* dark text for readability on light bg */
}

body.dark .cta-final-section p {
    color: #ffffff; /* white text for readability on dark bg */
}

.cta-final-section .cta-button {
    background: var(--accent, #0056FF); /* use your accent color as background */
    color: var(--cta-text, #ffffff); /* white text */
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    position: relative;
    z-index: 1;
}

.cta-final-section .cta-button:hover {
    background: var(--accent-hover, #003ECC); /* darker brand shade on hover */
    color: var(--cta-text, #ffffff); /* keep text white on hover */
}