/* ==========================================================================
   Root Theme & About Section
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Audiowide&family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;700&display=swap");

:root {
  --ab-primary: #00d4ff;
  --ab-glow: rgba(0, 212, 255, 0.4);
  --ab-white: #ffffff;
  --ab-bg: #02050a;

  --font-main: "Audiowide", cursive, sans-serif;
  --font-sec: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--ab-bg);
}

.about-master-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ==========================================================================
   Ambient Space Background
   ========================================================================== */
.ab-ambient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ab-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
}
.orb-1 {
  width: 50vw;
  height: 50vw;
  background: rgba(0, 50, 100, 0.6);
  top: -10vw;
  right: -10vw;
  animation: float 15s infinite alternate ease-in-out;
}
.orb-2 {
  width: 40vw;
  height: 40vw;
  background: rgba(0, 212, 255, 0.2);
  bottom: -10vw;
  left: -10vw;
  animation: float 20s infinite alternate-reverse ease-in-out;
}
.ab-noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-30px, 30px);
  }
}

/* ==========================================================================
   Main Split Layout
   ========================================================================== */
.ab-3d-section {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6vw;
  box-sizing: border-box;
  gap: 6vw;
}

/* --- Left: Perfectly Aligned Static Header --- */
.ab-static-header {
  flex: 0 0 35%;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 160px);
  /* margin-top: 100px; */
  padding-bottom: 40px;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

/* Top: Title Area */
.ab-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ab-primary);
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.ab-label .ab-line {
  width: 40px;
  height: 2px;
  background: var(--ab-primary);
  box-shadow: 0 0 10px var(--ab-glow);
}
.ab-title {
  font-family: var(--font-main);
  font-size: clamp(36px, 4.5vw, 56px);
  color: var(--ab-white);
  letter-spacing: 2px;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}
.ab-title span {
  color: var(--ab-primary);
}

/* Middle: Expanded Tracker */
.ab-tracker {
  flex-grow: 1; /* Stretches to push slate to the bottom */
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 40px 0;
}
.ab-track-line {
  width: 2px;
  height: 80%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.ab-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25%;
  background: var(--ab-primary);
  box-shadow: 0 0 15px var(--ab-glow);
  transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ab-track-dots {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80%;
}

.ab-track-dot {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.5s ease;
  opacity: 0.3;
}
.ab-track-dot .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ab-white);
  letter-spacing: 2px;
  transition: color 0.4s ease;
}
.ab-track-dot .text {
  font-family: var(--font-sec);
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-white);
  letter-spacing: 3px;
  text-transform: uppercase;
  transform: translateX(-15px);
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s ease;
}

.ab-track-dot.active {
  opacity: 1;
  transform: scale(1.05);
}
.ab-track-dot.active .num {
  color: var(--ab-primary);
  text-shadow: 0 0 15px var(--ab-glow);
}
.ab-track-dot.active .text {
  transform: translateX(0);
  color: var(--ab-white);
}

/* Bottom: Technical HUD & Slate */
.ab-header-bottom {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: auto;
}

.ab-tech-hud {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.3);
}

.ab-slate {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px 20px;
  background: rgba(5, 10, 15, 0.6);
  backdrop-filter: blur(10px);
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.slate-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.slate-dot {
  width: 6px;
  height: 6px;
  background: var(--ab-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ab-primary);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.slate-mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slate-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-family: var(--font-main);
  font-size: 20px;
  color: var(--ab-white);
}
.slate-col span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
}
.slate-col.highlight {
  color: var(--ab-primary);
  text-shadow: 0 0 15px var(--ab-glow);
}
.slate-col.highlight span {
  color: var(--ab-primary);
}

/* --- Right: 3D Perspective Deck --- */
.ab-deck-viewport {
  flex: 1;
  height: 100%;
  position: relative;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Viewfinder Crosshairs */
.vf-mark {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  z-index: 5;
}
.vf-mark.top-left {
  top: 15%;
  left: 0;
  border-right: none;
  border-bottom: none;
}
.vf-mark.top-right {
  top: 15%;
  right: 0;
  border-left: none;
  border-bottom: none;
}
.vf-mark.bottom-left {
  bottom: 15%;
  left: 0;
  border-right: none;
  border-top: none;
}
.vf-mark.bottom-right {
  bottom: 15%;
  right: 0;
  border-left: none;
  border-top: none;
}

.ab-deck-scene {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 70vh;
  max-height: 600px;
  transform-style: preserve-3d;
}

/* The Glass Cards (Classier, softer borders) */
.ab-z-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(5, 10, 15, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -30px 40px 80px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.2s ease,
    filter 1.2s ease,
    box-shadow 1.2s ease;
  pointer-events: none;
}
.ab-z-card.active {
  pointer-events: auto;
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow:
    -30px 40px 80px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(0, 212, 255, 0.05);
}

.ab-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: transform 6s linear;
  z-index: 1;
}
.ab-z-card.active .ab-card-bg {
  transform: scale(1.08);
  opacity: 0.5;
}
.ab-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 5, 10, 0.2) 0%,
    rgba(2, 5, 10, 0.95) 100%
  );
  z-index: 2;
}

/* Card Content Styling */
.ab-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 60px;
  box-sizing: border-box;
  align-items: flex-end;
}
.ab-card-num {
  position: absolute;
  top: 40px;
  right: 50px;
  font-family: var(--font-main);
  font-size: 90px;
  color: transparent;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  transition: all 1s ease;
}
.ab-z-card.active .ab-card-num {
  -webkit-text-stroke: 1px rgba(0, 212, 255, 0.5);
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.ab-card-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 90%;
}
.ab-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ab-primary);
  letter-spacing: 4px;
  margin-bottom: 15px;
}
.ab-card-text h2 {
  font-family: var(--font-main);
  font-size: 38px;
  color: var(--ab-white);
  letter-spacing: 1px;
  margin: 0 0 20px 0;
  line-height: 1.1;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}
.ab-card-text p {
  font-family: var(--font-sec);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.ab-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}
.ab-stat h3 {
  font-family: var(--font-main);
  font-size: 32px;
  color: var(--ab-white);
  margin: 0 0 5px 0;
}
.ab-stat h3 span {
  color: var(--ab-primary);
}
.ab-stat p {
  font-family: var(--font-mono) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  letter-spacing: 2px;
}

/* ==========================================================================
   Responsive Logic
   ========================================================================== */
@media (max-width: 1200px) {
  .ab-3d-section {
    gap: 4vw;
  }
  .ab-static-header {
    flex: 0 0 40%;
  }
  .ab-title {
    font-size: 36px;
  }
  .ab-card-content {
    padding: 40px;
  }
  .ab-card-text h2 {
    font-size: 30px;
  }
}

@media (max-width: 992px) {
  .ab-3d-section {
    flex-direction: column;
    padding: 100px 5vw 40px 5vw;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }
  .ab-static-header {
    flex: none;
    width: 100%;
    height: auto;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
  }

  .ab-tracker,
  .ab-header-bottom,
  .vf-mark {
    display: none;
  } /* Clean up UI on tablets/phones */

  .ab-deck-viewport {
    width: 100%;
    justify-content: center;
  }
  .ab-deck-scene {
    max-width: 100%;
    height: 50vh;
    perspective: 1000px;
  }

  .ab-card-content {
    padding: 30px;
  }
  .ab-card-num {
    top: 20px;
    right: 30px;
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .ab-3d-section {
    padding: 90px 1rem 30px 1rem;
  }
  .ab-title {
    font-size: 32px;
    margin-bottom: 0;
  }
  .ab-deck-scene {
    height: 60vh;
  }
  .ab-z-card {
    border-radius: 16px;
  }

  .ab-card-content {
    padding: 25px;
  }
  .ab-card-num {
    top: 15px;
    right: 20px;
    font-size: 48px;
  }
  .ab-card-text {
    max-width: 100%;
  }
  .ab-card-text h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .ab-card-text p {
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ab-stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .ab-stat h3 {
    font-size: 28px;
  }
}
