/* ==========================================================================
   OGS Minimalist Single-Page Stylesheet
   Domain: ogs.biz.id
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body.dark-obsidian {
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   Full Background Video Layer
   -------------------------------------------------------------------------- */
.video-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  background-color: #000000;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* --------------------------------------------------------------------------
   Terminal Header (White Text on Black Background, Blinking Cursor)
   -------------------------------------------------------------------------- */
.terminal-header {
  position: relative;
  z-index: 20;
  width: 100%;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.terminal-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.terminal-output {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, 'Fira Code', 'Courier New', monospace;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  line-height: 1.5;
  min-height: 1.5em;
  color: #ffffff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

.terminal-prompt {
  color: #ffffff;
  font-weight: 600;
  user-select: none;
  white-space: pre;
}

.terminal-text {
  color: #ffffff;
  white-space: pre;
}

.terminal-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.2em;
  background-color: #ffffff;
  margin-left: 2px;
  vertical-align: middle;
  animation: cursor-blink 1s step-end infinite;
}

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

/* --------------------------------------------------------------------------
   Main Viewport: Quote in Empty Black Area
   -------------------------------------------------------------------------- */
.main-viewport {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.quote-wrapper {
  margin-top: clamp(140px, 26vh, 260px);
  padding: 0 24px;
  text-align: center;
  max-width: 900px;
  animation: quote-appear 1.2s ease-out forwards;
}

.quote-text {
  font-family: 'Georgia', 'Cambria', 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.45rem, 4.2vw, 3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 255, 255, 0.2);
  user-select: none;
}

.quote-prefix {
  display: inline-block;
  white-space: pre;
  will-change: transform;
}

.quote-dynamic {
  display: inline-block;
  white-space: nowrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.quote-dynamic.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

@keyframes quote-appear {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Minimal Footer (OGS dev 2030)
   -------------------------------------------------------------------------- */
.minimal-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 18px 24px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-container {
  text-align: center;
}

.footer-text {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, 'Courier New', monospace;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.2em;
  text-transform: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .terminal-header {
    padding: 12px 16px;
  }
  .quote-wrapper {
    margin-top: clamp(90px, 20vh, 180px);
    padding: 0 16px;
  }
  .minimal-footer {
    padding: 14px 16px;
  }
}
