@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --color-start: #0c0c0c;
  --color-end: #171717;
  --canvas-height: 2500px;
  --bg-app: #080808;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-glow: rgba(56, 189, 248, 0.2);
  --accent-purple: #c084fc;
  --accent-emerald: #34d399;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(56, 189, 248, 0.4);
  --glass-card: rgba(22, 22, 22, 0.65);
  --glass-blur: blur(16px);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto;
}

/* Global Lenis Smooth Scroll Integration */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* ========================================================= */
/* CANVAS VIEWPORT & LAYOUT                                  */
/* ========================================================= */
.canvas-viewport {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  background: #050505;
}

.canvas-container {
  width: 100%;
  min-height: var(--canvas-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-start) 0%, var(--color-end) 100%);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
}

/* Background HTML5 canvas */
#gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.grid-overlay.visible {
  opacity: 1;
}

/* Height ruler */
.height-ruler {
  position: absolute;
  top: 0;
  right: 16px;
  height: 100%;
  width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.height-ruler.visible {
  opacity: 0.7;
}

.ruler-marker {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.ruler-line {
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.ruler-marker.key-marker {
  color: var(--accent);
  font-weight: 500;
}

.ruler-marker.key-marker .ruler-line {
  width: 20px;
  background: var(--accent);
}

/* Site Content Container */
.site-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Screen Section (100vh / 100dvh full area of screen) */
.screen-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

/* ========================================================= */
/* SECTION 1: HERO (Raw B/W "MLSC" - No Description, No Tab) */
/* ========================================================= */
.hero-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
  border-bottom: 1px solid #ffffff;
  box-sizing: border-box;
}

.hero-raw-title {
  font-size: clamp(3.5rem, min(24vw, 24vh), 18rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #ffffff;
  line-height: 0.9;
  text-align: center;
  user-select: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* MLSC Letter Brand Solid Colors (Matched to Microsoft Learn Chapter banner) */
.letter-m {
  color: #f25022; /* Microsoft Orange / Red */
}

.letter-l {
  color: #7fba00; /* Microsoft Green */
}

.letter-s {
  color: #ffb900; /* Microsoft Yellow / Amber */
}

.letter-c {
  color: #00a4ef; /* Microsoft Blue */
}

/* ========================================================= */
/* SECTION 2: ABOUT US SECTION (100vh)                       */
/* ========================================================= */
.about-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vh, 48px) 24px;
  box-sizing: border-box;
  border-bottom: 1px solid #ffffff;
  overflow: hidden;
}

.about-container {
  width: min(960px, 88vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 26px);
  box-sizing: border-box;
}

.about-title {
  font-size: clamp(1.8rem, min(4vw, 4vh), 3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}

/* Greyish rectangular box with glassmorphism (shrunk for comfortable breathing room) */
.about-glass-box {
  width: 100%;
  min-height: clamp(280px, 48vh, 460px);
  max-height: clamp(320px, 60vh, 520px);
  background: rgba(140, 140, 140, 0.14);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(16px, 2.5vw, 24px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  gap: clamp(16px, 2vh, 24px);
  text-align: center;
  overflow-y: auto;
  box-sizing: border-box;
}

.about-text {
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-main);
  max-width: 820px;
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
}

.about-highlight {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--accent-hover);
  font-weight: 600;
  max-width: 820px;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ========================================================= */
/* ========================================================= */
/* SECTION 3: EXPLORE SECTION (Native Window ScrollStack)    */
/* ========================================================= */
.explore-section {
  width: 100%;
  position: relative;
  padding: 80px 24px 60px;
  border-bottom: 1px solid #ffffff;
  box-sizing: border-box;
}

.explore-container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.explore-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.compact-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.compact-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-top: 2px;
}

.compact-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 440px;
}

/* ========================================================= */
/* REACT BITS: SCROLLSTACK NATIVE WINDOW COMPONENT CSS       */
/* ========================================================= */
.scroll-stack-inner {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 0;
  box-sizing: border-box;
}

.scroll-stack-card {
  transform-origin: top center;
  will-change: transform;
  backface-visibility: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85),
              0 0 20px rgba(0, 0, 0, 0.3);
  height: 20rem;
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-radius: clamp(22px, 3vw, 36px);
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* 5 Clean Neutral/Dark Gradient Cards */
.scroll-stack-card.card-1 {
  background: #18191e;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scroll-stack-card.card-2 {
  background: #1e2027;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.scroll-stack-card.card-3 {
  background: #242630;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.scroll-stack-card.card-4 {
  background: #2a2d39;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.scroll-stack-card.card-5 {
  background: #313543;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.scroll-stack-card h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.1;
}

.scroll-stack-card p {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

/* Bottom buffer so full 5-card stack stays pinned before scrolling out to footer */
.scroll-stack-end {
  width: 100%;
  height: 380px;
}

@media (max-width: 768px) {
  .explore-section {
    padding: 60px 16px 40px;
  }
  .scroll-stack-card {
    height: auto;
    min-height: 16rem;
    padding: 2rem 1.5rem;
    border-radius: 22px;
  }
  .scroll-stack-end {
    height: 240px;
  }
}

/* ========================================================= */
/* SECTION 4: SITE FOOTER (~220px PROPORTIONAL)              */
/* ========================================================= */
.site-footer {
  width: 100%;
  min-height: 220px;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid #ffffff;
  background: #0c0c0c;
  display: flex;
  align-items: center;
  padding: 44px 24px 28px;
  position: relative;
  z-index: 10;
}

.footer-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-badge-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer-links-group {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}

/* ========================================================= */
/* RESPONSIVE BREAKPOINTS                                    */
/* ========================================================= */
@media (max-width: 960px) {
  .explore-card-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .compact-section {
    min-height: auto;
    padding: 48px 24px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
  .footer-links-group {
    gap: 32px;
  }
}

/* ========================================================= */
/* FLOATING TOP-LEFT HAMBURGER (2nd Viewport & Onwards)      */
/* ========================================================= */
.nav-hamburger {
  position: fixed;
  top: 26px;
  left: 26px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-16px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
}

/* Shown strictly from 2nd viewport onwards */
.nav-hamburger.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-hamburger:hover {
  background: rgba(36, 36, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.nav-hamburger.visible:hover {
  transform: scale(1.05);
}

.nav-hamburger:active {
  transform: scale(0.96);
}

/* Pure White Hamburger Lines */
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Animated Morph into 'X' when sidebar is open */
.nav-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.nav-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================= */
/* LEFT SIDEBAR DRAWER (Grey tone with dark glass aesthetic) */
/* ========================================================= */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 84vw);
  height: 100vh;
  height: 100dvh;
  background: #181818;
  background: linear-gradient(180deg, #1e1e1e 0%, #141414 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 25px 0 60px rgba(0, 0, 0, 0.85);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  box-sizing: border-box;
}

.sidebar-drawer.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.sidebar-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 0;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(4px);
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
}

.link-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  opacity: 0.8;
}

.link-label {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

.sidebar-social-links {
  display: flex;
  gap: 16px;
}

.sidebar-social-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-social-links a:hover {
  color: #ffffff;
}

