@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;
  --accent-orange: #f25022;
  --accent-orange-glow: rgba(242, 80, 34, 0.2);

  --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: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
  line-height: 1.5;
}

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

.canvas-container {
  width: 100%;
  min-height: var(--canvas-height);
  position: relative;
  overflow: hidden;
  background: var(--color-start);
  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%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* 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: hidden;
  box-sizing: border-box;
  position: relative;
}

/* FluidGlass 3D canvas container — fills the about-glass-box */
#fluid-glass-root {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: auto;
  background: transparent;
}

#fluid-glass-root canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

.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;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.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;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* When 3D FluidGlass mounts successfully, visually hide static HTML text to prevent duplication,
   while preserving full accessibility and SEO */
.about-glass-box.has-fluid-glass .about-text,
.about-glass-box.has-fluid-glass .about-highlight {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: normal;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ========================================================= */
/* ========================================================= */
/* 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;
}


/* ========================================================= */
/* 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: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.scroll-stack-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  flex: 1;
}

.scroll-stack-arrow {
  width: clamp(48px, 5.5vw, 58px);
  height: clamp(48px, 5.5vw, 58px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.scroll-stack-arrow svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-stack-card:hover .scroll-stack-arrow,
.scroll-stack-arrow:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 12px 30px -4px rgba(56, 189, 248, 0.35),
              0 0 20px rgba(56, 189, 248, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scroll-stack-card:hover .scroll-stack-arrow svg,
.scroll-stack-arrow:hover svg {
  transform: translateX(3px);
}

.scroll-stack-arrow:active {
  transform: scale(0.95);
}

/* 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;
    gap: 16px;
  }

  .scroll-stack-arrow {
    width: 46px;
    height: 46px;
  }

  .scroll-stack-end {
    height: 240px;
  }
}

/* ========================================================= */
/* SECTION 4: SITE FOOTER (~220px PROPORTIONAL)              */
/* ========================================================= */
.site-footer {
  width: 100%;
  min-height: 330px;
  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: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-header {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.25s ease, transform 0.25s ease;
  width: fit-content;
}

.footer-brand-header:hover {
  opacity: 0.95;
  transform: translateX(2px);
}

.mlsc-logo-icon {
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

.mlsc-sq {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.footer-brand-header:hover .mlsc-sq-orange {
  filter: drop-shadow(0 0 8px rgba(242, 80, 34, 0.6));
}

.footer-brand-header:hover .mlsc-sq-green {
  filter: drop-shadow(0 0 8px rgba(127, 186, 0, 0.6));
}

.footer-brand-header:hover .mlsc-sq-blue {
  filter: drop-shadow(0 0 8px rgba(0, 164, 239, 0.6));
}

.footer-brand-header:hover .mlsc-sq-yellow {
  filter: drop-shadow(0 0 8px rgba(255, 185, 0, 0.6));
}

.footer-brand-title {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.25;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

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

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

.footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
  width: fit-content;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-social-link .footer-social-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover .footer-social-icon {
  opacity: 1;
  transform: scale(1.1);
}

.footer-social-link[aria-label*="LinkedIn"]:hover {
  color: #38bdf8;
}

.footer-social-link[aria-label*="Instagram"]:hover {
  color: #f472b6;
}

.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 GLASSMORPHISM NAVBAR (2nd Viewport & Onwards)    */
/* ========================================================= */
.glass-navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -24px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  width: auto;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

.glass-navbar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.glass-navbar.navbar-fixed {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: none;
}

.glass-nav-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 18, 22, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 10px 6px 18px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.75),
              0 0 0 1px rgba(255, 255, 255, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.18),
              0 0 24px rgba(56, 189, 248, 0.08);
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-nav-container:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 44px -10px rgba(0, 0, 0, 0.82),
              0 0 0 1px rgba(255, 255, 255, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.25),
              0 0 28px rgba(56, 189, 248, 0.12);
}

.glass-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
  transition: opacity 0.2s ease;
}

.glass-nav-brand:hover {
  opacity: 0.85;
}

.nav-logo-icon {
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.glass-nav-brand:hover .mlsc-sq-orange {
  filter: drop-shadow(0 0 6px rgba(242, 80, 34, 0.7));
}

.glass-nav-brand:hover .mlsc-sq-green {
  filter: drop-shadow(0 0 6px rgba(127, 186, 0, 0.7));
}

.glass-nav-brand:hover .mlsc-sq-blue {
  filter: drop-shadow(0 0 6px rgba(0, 164, 239, 0.7));
}

.glass-nav-brand:hover .mlsc-sq-yellow {
  filter: drop-shadow(0 0 6px rgba(255, 185, 0, 0.7));
}

.nav-brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.glass-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.glass-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  position: relative;
  letter-spacing: -0.005em;
}

.glass-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

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

.glass-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Responsive adjustment for tablet and mobile */
@media (max-width: 680px) {
  .glass-navbar {
    top: 14px;
    max-width: calc(100vw - 20px);
  }

  .glass-nav-container {
    padding: 5px 8px 5px 12px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .glass-nav-container::-webkit-scrollbar {
    display: none;
  }

  .glass-nav-brand {
    padding-right: 8px;
  }

  .nav-brand-text {
    font-size: 0.95rem;
  }

  .glass-nav-link {
    font-size: 0.82rem;
    padding: 6px 12px;
  }
}

/* ========================================================= */
/* ACHIEVEMENTS PAGE: 4-SECTION BACKGROUND & LAYOUT STRUCTURE */
/* ========================================================= */
.achievements-section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, 5vh, 64px) 24px;
  border-bottom: 1px solid #ffffff;
  box-sizing: border-box;
}

.achievements-container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.achievements-section.hero-section {
  padding: clamp(90px, 14vh, 130px) 24px clamp(40px, 6vh, 60px);
  text-align: center;
}

.achievements-section.hero-section .hero-container {
  gap: clamp(14px, 2.2vh, 22px);
  max-width: 900px;
}


.achievements-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: #ffffff;
  margin: 0;
  max-width: 860px;
}

.achievements-gradient-text {
  color: #f25022; /* MLSC Orange */
  display: inline-block;
  text-shadow: 0 0 28px rgba(242, 80, 34, 0.35);
}

.achievements-hero-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 660px;
  margin: 0;
  opacity: 0.92;
}

@media (max-width: 768px) {
  .achievements-section {
    padding: clamp(24px, 4vh, 48px) 16px;
  }

  .achievements-section.hero-section {
    padding: clamp(80px, 12vh, 100px) 18px clamp(36px, 5vh, 48px);
  }
}

/* ========================================================= */
/* ACHIEVEMENTS: OUR JOURNEY SCROLL-DRIVEN TIMELINE          */
/* ========================================================= */
.journey-section {
  width: 100%;
  height: 280vh; /* Pinned vertical scroll envelope */
  min-height: 280vh;
  position: relative;
  padding: 0;
  border-bottom: 1px solid #ffffff;
  box-sizing: border-box;
  display: block;
}

.journey-sticky-container {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(70px, 10vh, 90px) 24px clamp(30px, 5vh, 50px);
  box-sizing: border-box;
}

.journey-content-wrap {
  width: min(1200px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4.5vh, 48px);
  position: relative;
  box-sizing: border-box;
}

.journey-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}


.journey-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}

.journey-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Timeline Wrapper & Track */
.journey-timeline-wrapper {
  width: 100%;
  position: relative;
  padding: 20px 0;
}

.journey-timeline-track {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Single Blue Timeline Line (Desktop) */
.journey-line-base {
  position: absolute;
  top: 100px; /* Centered with milestone-dot-anchor */
  left: 12.5%;
  width: 75%;
  height: 3px;
  background: rgba(0, 164, 239, 0.25); /* Muted MLSC Blue base */
  border-radius: 9999px;
  transform: translateY(-50%);
  z-index: 1;
}

.journey-line-progress {
  position: absolute;
  top: 100px; /* Same vertical center */
  left: 12.5%;
  width: 75%;
  height: 3px;
  background: #00a4ef; /* Pure MLSC Blue light */
  border-radius: 9999px;
  transform-origin: left center;
  transform: translateY(-50%) scaleX(0);
  box-shadow: 0 0 14px #00a4ef, 0 0 28px rgba(0, 164, 239, 0.7);
  z-index: 2;
  will-change: transform;
}

/* Milestones Row (4 columns) */
.journey-milestones {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.journey-milestone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 1. Year Above Timeline */
.milestone-year-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 80px;
  justify-content: flex-end;
  position: relative;
}

.milestone-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: #00a4ef; /* MLSC Blue */
  letter-spacing: -0.01em;
  opacity: 0.45;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              text-shadow 0.35s ease;
  user-select: none;
}

/* Active Year Lifts Up */
.journey-milestone-item.is-active .milestone-year {
  opacity: 1;
  transform: translateY(-10px); /* Smooth upward lift */
  text-shadow: 0 0 18px rgba(0, 164, 239, 0.65), 0 0 35px rgba(0, 164, 239, 0.35);
}

/* Subtle Stem connecting Year down to Dot */
.milestone-stem.stem-top {
  width: 1.5px;
  height: 16px;
  background: rgba(0, 164, 239, 0.3);
  margin-top: 6px;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.journey-milestone-item.is-active .milestone-stem.stem-top {
  background: #00a4ef;
  box-shadow: 0 0 8px rgba(0, 164, 239, 0.7);
}

/* 2. Dot Directly ON the Timeline */
.milestone-dot-anchor {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.milestone-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #080808;
  border: 2.5px solid rgba(0, 164, 239, 0.45); /* Base blue border */
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Active Dot Illuminates in Bright Blue */
.journey-milestone-item.is-active .milestone-dot {
  background: #ffffff;
  border: 3px solid #00a4ef; /* Bright MLSC Blue */
  box-shadow: 0 0 16px #00a4ef, 0 0 30px rgba(0, 164, 239, 0.85);
  transform: scale(1.2);
}

/* 3. Description Below Timeline (No Card / No Box) */
.milestone-desc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
  max-width: 250px;
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-milestone-item.is-active .milestone-desc-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* Stem connecting Dot down to Description */
.milestone-stem.stem-bottom {
  width: 1.5px;
  height: 16px;
  background: rgba(0, 164, 239, 0.3);
  margin-bottom: 12px;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.journey-milestone-item.is-active .milestone-stem.stem-bottom {
  background: #00a4ef;
  box-shadow: 0 0 8px rgba(0, 164, 239, 0.7);
}

.milestone-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.milestone-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.85rem, 0.95vw, 0.92rem);
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ========================================================= */
/* MOBILE VERTICAL TIMELINE ADAPTATION                       */
/* ========================================================= */
@media (max-width: 820px) {
  .journey-section {
    height: auto !important;
    min-height: auto !important;
    padding: 60px 16px 80px;
    display: block;
  }

  .journey-sticky-container {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .journey-content-wrap {
    width: 100%;
    gap: 36px;
  }

  .journey-header {
    text-align: left;
    align-items: flex-start;
  }

  .journey-timeline-wrapper {
    padding: 20px 0 0;
  }

  /* Vertical Timeline Lines running down the left */
  .journey-line-base {
    top: 20px;
    bottom: 40px;
    left: 20px;
    width: 3px;
    height: auto;
    transform: none;
  }

  .journey-line-progress {
    top: 20px;
    bottom: 40px;
    left: 20px;
    width: 3px;
    height: auto;
    transform-origin: top center;
    transform: scaleY(0);
  }

  .journey-milestones {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .journey-milestone-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: flex-start;
    text-align: left;
  }

  /* Stems hidden on mobile */
  .milestone-stem {
    display: none;
  }

  .milestone-dot-anchor {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    justify-content: flex-start;
    padding-left: 11px;
    box-sizing: border-box;
  }

  .milestone-year-wrap {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .milestone-year {
    font-size: 1.4rem;
  }

  .journey-milestone-item.is-active .milestone-year {
    transform: translateY(-4px);
  }

  .milestone-desc-wrap {
    grid-column: 2;
    grid-row: 2;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    transform: none;
  }

  .milestone-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .milestone-desc {
    font-size: 0.88rem;
  }
}

/* ========================================================= */
/* ACHIEVEMENTS: SECTION 3 - HACKATHON WINNERS               */
/* ========================================================= */
.hackathon-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(60px, 10vh, 100px) 24px;
}

.hackathon-container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5.5vh, 52px);
}

.hackathon-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}


.hackathon-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}

.hackathon-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

/* 3-Card Horizontal Grid (Desktop) */
.hackathon-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  width: 100%;
  align-items: stretch;
}

/* Individual Winner Information Card */
.winner-card {
  position: relative;
  background: rgba(22, 22, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(24px, 2.8vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  outline: none;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

/* Subtle Top Accent Highlight */
.winner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: #7fba00; /* MLSC Green */
  opacity: 0.22;
  border-radius: 2px;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle Lifted / Active State using MLSC Green */
.winner-card:hover,
.winner-card:focus-visible,
.winner-card.is-active {
  transform: translateY(-6px);
  border-color: rgba(127, 186, 0, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.75),
              0 0 22px -4px rgba(127, 186, 0, 0.16);
}

.winner-card:hover::before,
.winner-card:focus-visible::before,
.winner-card.is-active::before {
  opacity: 0.85;
  box-shadow: 0 0 10px rgba(127, 186, 0, 0.5);
}

/* Card Top: Position Pill */
.winner-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2px;
}

.winner-position {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #7fba00; /* MLSC Green */
  background: rgba(127, 186, 0, 0.1);
  border: 1px solid rgba(127, 186, 0, 0.25);
  padding: 5px 13px;
  border-radius: 9999px;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.winner-card:hover .winner-position,
.winner-card:focus-visible .winner-position,
.winner-card.is-active .winner-position {
  background: rgba(127, 186, 0, 0.18);
  border-color: rgba(127, 186, 0, 0.55);
  box-shadow: 0 0 10px rgba(127, 186, 0, 0.25);
}

/* Card Data Fields */
.winner-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.winner-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.winner-value {
  margin: 0;
  line-height: 1.4;
}

/* Hackathon Name */
.winner-hackathon {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Team Name - Highly Noticeable */
.winner-team {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Team Members - Clean Footer Field */
.winner-members-field {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.winner-members {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mobile & Tablet Responsive Stacking */
@media (max-width: 860px) {
  .hackathon-section {
    padding: clamp(48px, 8vh, 72px) 16px;
  }

  .hackathon-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 480px;
    margin: 0 auto;
  }

  .winner-card {
    padding: 22px 20px;
    gap: 16px;
  }
}

/* ========================================================= */
/* ACHIEVEMENTS: SECTION 4 - LEADERBOARD (MLSC ORANGE THEME) */
/* ========================================================= */
.leaderboard-section {
  width: 100%;
  position: relative;
  padding: 60px 24px 80px;
  border-bottom: 1px solid #ffffff;
  box-sizing: border-box;
}

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

.leaderboard-header-wrap {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.05;
  margin: 4px 0 6px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboard-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0;
}

/* Search & Timeframe Controls */
.leaderboard-controls-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  background: rgba(22, 22, 22, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  padding: 14px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.timeframe-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 10, 10, 0.6);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeframe-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.timeframe-btn:hover {
  color: #ffffff;
}

.timeframe-btn.active {
  background: rgba(242, 80, 34, 0.18);
  color: var(--accent-orange);
  border: 1px solid rgba(242, 80, 34, 0.4);
  box-shadow: 0 0 15px rgba(242, 80, 34, 0.25);
}

.leaderboard-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 14px;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
  transition: var(--transition-smooth);
}

.leaderboard-search-box:focus-within {
  border-color: rgba(242, 80, 34, 0.5);
  box-shadow: 0 0 16px var(--accent-orange-glow);
}

.leaderboard-search-box .search-icon {
  color: var(--text-dim);
}

.leaderboard-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  width: 100%;
}

.leaderboard-search-box input::placeholder {
  color: var(--text-dim);
}

/* ========================================================= */
/* PODIUM SECTION (Top 3 Users)                              */
/* ========================================================= */
.podium-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 28px);
  width: 100%;
  margin: 0 auto;
  padding-top: 20px;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 20px;
  border-radius: 28px;
  background: rgba(22, 22, 22, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  flex: 1;
  max-width: 320px;
}

.podium-card:hover {
  transform: translateY(-8px);
}

/* Rank 1 (Gold - Center) */
.podium-card.rank-1 {
  order: 2;
  min-height: 380px;
  border-color: rgba(255, 185, 0, 0.4);
  box-shadow: 0 25px 60px -10px rgba(255, 185, 0, 0.22),
              0 0 30px rgba(255, 185, 0, 0.12),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(40, 32, 12, 0.75) 0%, rgba(22, 22, 22, 0.85) 100%);
  z-index: 3;
}

.podium-card.rank-1:hover {
  border-color: rgba(255, 185, 0, 0.7);
  box-shadow: 0 30px 70px -10px rgba(255, 185, 0, 0.35),
              0 0 40px rgba(255, 185, 0, 0.25);
}

/* Rank 2 (Silver - Left) */
.podium-card.rank-2 {
  order: 1;
  min-height: 330px;
  border-color: rgba(203, 213, 225, 0.3);
  box-shadow: 0 20px 50px -10px rgba(203, 213, 225, 0.15);
  background: linear-gradient(180deg, rgba(30, 35, 45, 0.75) 0%, rgba(22, 22, 22, 0.85) 100%);
  z-index: 2;
}

.podium-card.rank-2:hover {
  border-color: rgba(203, 213, 225, 0.6);
}

/* Rank 3 (Bronze - Right) */
.podium-card.rank-3 {
  order: 3;
  min-height: 290px;
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 20px 50px -10px rgba(217, 119, 6, 0.15);
  background: linear-gradient(180deg, rgba(40, 26, 18, 0.75) 0%, rgba(22, 22, 22, 0.85) 100%);
  z-index: 1;
}

.podium-card.rank-3:hover {
  border-color: rgba(217, 119, 6, 0.6);
}

.podium-crown-wrap {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  filter: drop-shadow(0 6px 12px rgba(255, 185, 0, 0.5));
}

.podium-avatar-outer {
  position: relative;
  margin-top: 10px;
  margin-bottom: 14px;
}

.podium-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.rank-1 .podium-avatar {
  width: 96px;
  height: 96px;
  border-color: #ffb900;
  box-shadow: 0 0 24px rgba(255, 185, 0, 0.4);
}

.rank-2 .podium-avatar {
  border-color: #cbd5e1;
  box-shadow: 0 0 18px rgba(203, 213, 225, 0.3);
}

.rank-3 .podium-avatar {
  border-color: #d97706;
  box-shadow: 0 0 18px rgba(217, 119, 6, 0.3);
}

.podium-rank-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: #080808;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.rank-1 .podium-rank-badge {
  background: linear-gradient(135deg, #ffb900, #f59e0b);
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
}

.rank-2 .podium-rank-badge {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}

.rank-3 .podium-rank-badge {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #ffffff;
}

.podium-user-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.podium-name {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.podium-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.podium-tier-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-orange);
}

.rank-1 .podium-tier-tag {
  background: rgba(255, 185, 0, 0.15);
  border-color: rgba(255, 185, 0, 0.4);
  color: #ffb900;
}

/* Podium Pedestal Block */
.podium-pedestal-base {
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

.podium-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.podium-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.podium-stat-val.pts {
  color: var(--accent-orange);
}

.rank-1 .podium-stat-val.pts {
  color: #ffb900;
}

.podium-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================================= */
/* CURRENT USER HIGHLIGHT CARD (Inspired by Reference Image)  */
/* ========================================================= */
.user-highlight-card {
  width: 100%;
  background: linear-gradient(135deg, rgba(242, 80, 34, 0.16) 0%, rgba(22, 22, 22, 0.8) 100%);
  border: 1px solid rgba(242, 80, 34, 0.4);
  border-radius: 24px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 15px 40px -10px rgba(242, 80, 34, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.user-highlight-card:hover {
  box-shadow: 0 20px 50px -10px rgba(242, 80, 34, 0.32),
              0 0 25px rgba(242, 80, 34, 0.22);
  border-color: rgba(242, 80, 34, 0.6);
}

.user-card-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user-card-avatar-wrap {
  position: relative;
}

.user-card-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange-glow);
}

.user-you-tag {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background: var(--accent-orange);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.user-card-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.user-card-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.user-card-stats-grid {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}

.user-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.user-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.user-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.user-stat-val.accent {
  color: var(--accent-orange);
}

/* ========================================================= */
/* RANKINGS TABLE LIST                                      */
/* ========================================================= */
.rankings-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.rankings-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rankings-count-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent-orange);
  background: rgba(242, 80, 34, 0.12);
  border: 1px solid rgba(242, 80, 34, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
}

.rankings-table-header {
  display: grid;
  grid-template-columns: 80px 1fr 140px 140px 140px;
  padding: 12px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rankings-table-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 140px 140px;
  align-items: center;
  padding: 16px 24px;
  background: rgba(22, 22, 22, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  transition: var(--transition-smooth);
}

.ranking-row:hover {
  background: rgba(30, 30, 30, 0.75);
  border-color: var(--border-glass-hover);
  transform: translateX(4px);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6),
              0 0 15px var(--accent-orange-glow);
}

.ranking-row.is-current-user {
  background: linear-gradient(90deg, rgba(242, 80, 34, 0.16) 0%, rgba(22, 22, 22, 0.75) 100%);
  border-color: rgba(242, 80, 34, 0.4);
}

.col-rank {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.ranking-row.is-current-user .col-rank {
  color: var(--accent-orange);
}

.col-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.row-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  flex-shrink: 0;
}

.row-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-name {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.row-you-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent-orange);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 6px;
}

.col-solved {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--text-main);
}

.col-points {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.col-badge {
  display: flex;
  align-items: center;
}

.tier-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.tier-badge.grandmaster {
  background: rgba(255, 185, 0, 0.15);
  border-color: rgba(255, 185, 0, 0.4);
  color: #ffb900;
}

.tier-badge.master {
  background: rgba(192, 132, 252, 0.15);
  border-color: rgba(192, 132, 252, 0.4);
  color: var(--accent-purple);
}

.tier-badge.knight {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent);
}

.tier-badge.specialist {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--accent-emerald);
}

/* ========================================================= */
/* RESPONSIVE LEADERBOARD MEDIA QUERIES                       */
/* ========================================================= */
@media (max-width: 900px) {
  .podium-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .podium-card {
    width: 100%;
    max-width: 500px;
    min-height: auto !important;
  }

  .podium-card.rank-1 {
    order: 1;
  }

  .podium-card.rank-2 {
    order: 2;
  }

  .podium-card.rank-3 {
    order: 3;
  }

  .user-highlight-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-card-stats-grid {
    width: 100%;
    justify-content: space-between;
  }

  .rankings-table-header {
    display: none;
  }

  .ranking-row {
    grid-template-columns: 50px 1fr 100px;
    gap: 12px;
    padding: 14px 16px;
  }

  .col-badge {
    display: none;
  }
}

@media (max-width: 580px) {
  .leaderboard-controls-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .leaderboard-search-box {
    max-width: 100%;
    min-width: auto;
  }

  .timeframe-toggle {
    justify-content: center;
  }

  .ranking-row {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }

  .col-solved {
    display: none;
  }

  .user-card-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .user-stat-box {
    text-align: left;
  }
}


