/* ============================================
   IMPORTS
   External resources loaded first
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap");


/* ============================================
   CSS RESET & NORMALIZATION
   Ensures consistent behavior across browsers
   ============================================ */

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

html {
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
}

ul {
  padding: 0 1.25rem;
  line-height: 1.6;
}

p {
  line-height: 1.6;
}


/* ============================================
   BASE STYLES
   Default typography and layout
   ============================================ */

body {
  display: grid;
  place-items: center;
  min-height: 100%;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  background-color: var(--color-bg-dark);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   TYPOGRAPHY
   Headings and text styles
   ============================================ */

.main__heading {
  /* Layout */
  margin-top: 6.25rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  
  /* Typography */
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  text-align: center;
  
  /* Gradient text effect */
  background: var(--gradient-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Typewriter effect setup */
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.125rem solid var(--color-primary);
  width: 0;
  max-width: 9ch;
  
  /* Animations */
  animation:
    typing 2.5s steps(30, end) forwards,
    blink-caret 0.75s step-end 5 forwards;
}

@keyframes typing {
  from { 
    width: 0; 
  }
  to { 
    width: 30ch; 
  }
}

@keyframes blink-caret {
  from, to { 
    border-color: transparent; 
  }
  50% { 
    border-color: var(--color-primary); 
  }
  100% { 
    border-color: transparent; 
  }
}

.status_heading {
  margin-top: 0;
  color: var(--text-color);
  text-align: center;
  font-size: 2rem;
  font-family: 'Montserrat', monospace;
}

h2 {
  /* Layout */
  margin: 1.5rem 0 1rem;
  position: relative;
  width: fit-content;
  padding: 0.5rem 0;
  
  /* Typography */
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  text-align: left;
  
  /* Gradient text */
  background: var(--gradient-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.3125rem;
  left: 1rem;
  width: 50%;
  height: 0.125rem;
  background: var(--gradient-heading);
}

h3 {
  color: var(--text-color);
  text-align: left;
  padding-bottom: 0.625rem;
}


/* ============================================
   SECTIONS
   Main content sections
   ============================================ */

section {
  margin-bottom: 2.5rem;
}

.overview-section {
  background-color: transparent;
  padding: 1rem 2rem;
  margin-left: 0;
  position: relative;
  width: 100%;
}


/* ============================================
   BACKGROUND EFFECTS
   Lottie animation background
   ============================================ */

.lottie-absolute {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
}


/* ============================================
   TEXT COMPONENTS
   Paragraphs and lists
   ============================================ */

.paragraph-stylized {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.project-list {
  padding-left: 1.5rem;
  font-size: 1.05rem;
  margin-top: 1rem;
  line-height: 1.75;
}

.highlighted-paragraph {
  background-color: var(--pipeline-highlight-bg);
  border: 0.0625rem solid var(--highlight-paragraph-border);
  padding: 1.25rem;
  border-radius: 0.3125rem;
  margin: 1.25rem 0;
}


/* ============================================
   FEATURE BOXES
   Content highlight containers
   ============================================ */

.feature-box {
  background-color: var(--color-bg-dark);
  border: 0.0625rem solid var(--pipeline-feature-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}


/* ============================================
   JOB CARDS
   Pipeline job display cards
   ============================================ */

.job-card {
  flex: 0 1 calc(50% - 1rem);
  background: var(--pipeline-selection-bg);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.job-card h4 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.job-card p {
  color: var(--primary-color);
}


/* ============================================
   WORKFLOW STEPS
   Step-by-step workflow display
   ============================================ */

.workflow-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.9375rem;
}

.step-number {
  background-color: var(--color-bg-darker);
  color: var(--bg-color);
  width: 1.5625rem;
  height: 1.5625rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.9375rem;
  flex-shrink: 0;
  font-weight: 700;
}


/* ============================================
   RESPONSIVE DESIGN
   Tablet and mobile optimizations
   ============================================ */

/* Tablet: up to 1024px */
@media (max-width: 64rem) {
  body {
    font-size: 1rem;
    padding: 0;
  }

  .main__heading {
    font-size: clamp(1.5rem, 3.5vw, 1.8rem);
    margin-top: 5rem;
    white-space: normal;
    border-right: none;
    animation: none;
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem;
    word-break: break-word;
    overflow: visible;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding: 0 0.9375rem;
    width: 100%;
  }

  h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    padding: 0 0.9375rem;
    width: 100%;
  }

  .overview-section {
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
    hyphens: auto;
    text-align: left;
    width: 100%;
  }

  .paragraph-stylized {
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
    hyphens: auto;
    text-align: left;
    width: 98%;
  }

  .project-list {
    padding-left: 1.2rem;
    font-size: 1rem;
    margin-top: 0.8rem;
    line-height: 1.6;
    width: 100%;
  }

  .job-card {
    flex: 1 1 100%;
    margin: 0 0 1rem 0;
    padding: 1.2rem;
    width: 100%;
  }

  .lottie-absolute {
    width: 150%;
    height: 150%;
    opacity: 0.15;
  }

  section {
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
    hyphens: auto;
    text-align: left;
    width: 100%;
  }
}

/* Mobile: up to 768px */
@media (max-width: 48rem) {
  body {
    font-size: 0.875rem;
    padding: 0 0.625rem;
  }

  .status_heading {
    font-size: 0.875rem;
  }

  .main__heading {
    font-size: 1.5rem;
    margin-top: 3.75rem;
    padding: 0 0.625rem;
  }

  .feature-box {
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
  }

  .feature-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
  }

  .workflow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.9375rem;
  }

  .step-number {
    margin-right: 0.625rem;
    margin-top: 0.3125rem;
    font-size: 0.8rem;
  }

  .highlighted-paragraph {
    font-size: 0.875rem;
    padding: 1rem;
    margin: 1rem 0;
  }

  .overview-section {
    padding: 1rem;
    font-size: 0.875rem;
    margin-left: 0;
    width: 100%;
  }

  .overview-section h2 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    padding: 0 0.625rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  ul, p {
    font-size: 0.875rem;
  }
}
