/* =================================
   1. LAYOUT FIXES
================================= */
body.home #content .ast-container,
body.home #primary.site-main {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* =================================
   2. HERO SECTION
================================= */
.fluent-hero {
  background-color: var(--fluent-bg); /* Variable Usage */
  color: #fff;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-text-container {
  width: 50%;
  padding-left: 5%;
  box-sizing: border-box;
  z-index: 2;
}

.hero-text-container h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0;
  letter-spacing: -0.03em;
}

.hero-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    max-width: 90%;
}

.hero-animation-container {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#bciAnimationCanvas {
  width: 100%;
  height: 100%;
}

/* =================================
   3. MISSION SECTION
================================= */
.fluent-mission {
  background-color: var(--fluent-bg); /* Variable Usage */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  text-align: center;
  position: relative;
  z-index: 5;
  box-sizing: border-box;
}

.mission-text {
  font-family: 'Raleway', sans-serif;
  font-size: 48px; 
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  max-width: 1100px; 
  margin: 0 auto;
  letter-spacing: -0.02em;
}

/* =================================
   4. TERMINAL ANIMATION SECTION
================================= */
.terminal-section {
    background-color: #000;
    color: #fff;
    position: relative;
    width: 100%;
    height: 400vh; 
}

.terminal-sticky-wrapper {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.terminal-box {
    width: 80%;
    max-width: 900px;
    font-family: 'Courier New', Courier, monospace; 
    font-size: 32px;
    line-height: 1.6;
    color: #ffffff; 
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    min-height: 1.5em; 
    text-align: left !important; 
    margin: 0 auto;
}

/* BRAND COLOR UTILITY */
.fluent-blue {
    color: #00C2FF;
}

/* Triggers */
.terminal-trigger {
    height: 100vh; 
    width: 100%;
    position: absolute;
    left: 0;
    pointer-events: none;
}
.terminal-trigger[data-step="1"] { top: 0; }
.terminal-trigger[data-step="2"] { top: 100vh; }
.terminal-trigger[data-step="3"] { top: 200vh; }

/* The Cursor */
.terminal-cursor {
    display: inline-block;
    width: 14px; 
    height: 38px;
    background-color: #ffffff; 
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); 
    margin-left: 4px; 
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

.terminal-cursor.typing {
    animation: none;
    opacity: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    /* REFINEMENT: Better text wrapping for mobile */
    .hero-text-container h1 {
        font-size: 42px; 
        word-wrap: break-word;
        hyphens: manual;
    }
    
    .terminal-box {
        font-size: 22px;
        width: 90%;
    }
    .terminal-cursor {
        height: 26px;
        width: 10px;
    }
    .hero-subtext { font-size: 18px; }
    .mission-text { font-size: 28px; }
}