/* ==========================================================================
   ROMEO PAOLO L. TOLENTINO — Digital Resume & Portfolio
   Design System: Editorial Luxury Dark Aesthetic (Inspired by Mark Matthew Masalunga)
   Monochromatic Fluid Smoke, Editorial Serif Accents, Floating Pill Navigation
   ========================================================================== */

:root,
html[data-theme="dark"] {
  /* Dark Foundation */
  --bg-body: #050507;
  --bg-surface: #0a0b10;
  --bg-card: rgba(15, 17, 24, 0.72);
  --bg-card-hover: rgba(22, 26, 38, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 255, 255, 0.35);

  /* Monochromatic & Accent Palette */
  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-warm: #d97706;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --sheet-width: 820px;
  color-scheme: dark;
}


/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-body);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: transparent;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}
/* Active Animated Fluid Wave Canvas Background */
.bg-fluid-mesh-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-color: #050507;
}

/* Common Typography Classes */
.editorial-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.section-mono-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.editorial-serif-heading {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.section-subtitle-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Header & Floating Capsule Navigation
   ========================================================================== */
.editorial-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  pointer-events: none;
}

.nav-monogram {
  pointer-events: auto;
}

.monogram-link {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.monogram-link:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* Centered Floating Pill */
.floating-pill-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease,
              border-color 0.25s, background 0.25s, box-shadow 0.35s ease;
}

.editorial-header.scrolling-down .floating-pill-nav {
  transform: translateX(-50%) translateY(-12px) scale(0.96);
  opacity: 0.76;
}

.editorial-header.scrolling-up .floating-pill-nav,
.editorial-header.at-page-top .floating-pill-nav {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

.editorial-header.is-scrolling .floating-pill-nav {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.58), 0 0 24px rgba(56, 189, 248, 0.14),
              inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.editorial-header.scrolling-up .pill-nav-link,
.editorial-header.at-page-top .pill-nav-link {
  animation: navLinkRise 0.45s both;
}

.editorial-header.scrolling-up .pill-nav-link:nth-child(2) { animation-delay: 0.03s; }
.editorial-header.scrolling-up .pill-nav-link:nth-child(3) { animation-delay: 0.06s; }
.editorial-header.scrolling-up .pill-nav-link:nth-child(4) { animation-delay: 0.09s; }
.editorial-header.scrolling-up .pill-nav-link:nth-child(5) { animation-delay: 0.12s; }
.editorial-header.scrolling-up .pill-nav-link:nth-child(6) { animation-delay: 0.15s; }

@keyframes navLinkRise {
  from { opacity: 0.65; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.pill-nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.pill-nav-link {
  position: relative;
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill-nav-text {
  position: relative;
  z-index: 3;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.pill-nav-link:hover .pill-nav-text {
  color: #ffffff;
}

.pill-nav-link.active .pill-nav-text {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   Celestial Star Navigation System
   ========================================================================== */

/* Active Pill Highlight inside floating-pill-nav */
.pill-nav-link.active {
  color: #ffffff;
}

.pill-nav-link.active .pill-nav-text {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Star Tracker Capsule (Frames the active navigation pill) */
.nav-star-tracker {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), inset 0 0 12px rgba(56, 189, 248, 0.18);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.25, 1),
              width 0.38s cubic-bezier(0.2, 0.9, 0.25, 1),
              height 0.38s cubic-bezier(0.2, 0.9, 0.25, 1),
              opacity 0.25s ease;
  opacity: 0;
}

.nav-star-tracker.ready {
  opacity: 1;
}

/* Orbiting Celestial Star that circles the active navigation button */
.nav-orbit-star {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 5;
  will-change: transform, left, top;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px #38bdf8) drop-shadow(0 0 12px rgba(255, 255, 255, 0.95));
  transform-origin: center center;
}

.star-svg-icon {
  width: 18px;
  height: 18px;
  animation: starCosmicSpin 8s linear infinite;
  filter: drop-shadow(0 0 4px #ffffff);
}

.star-aura-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.65) 0%, rgba(255, 255, 255, 0.4) 35%, transparent 70%);
  animation: starPulseGlow 1.8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes starCosmicSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes starPulseGlow {
  0% { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.3); }
}

/* Directional motion indicators when traveling on scroll */
.nav-star-tracker.traveling-down .nav-orbit-star {
  filter: drop-shadow(0 0 10px #38bdf8) drop-shadow(-10px 0 16px rgba(56, 189, 248, 0.95));
}

.nav-star-tracker.traveling-up .nav-orbit-star {
  filter: drop-shadow(0 0 10px #38bdf8) drop-shadow(10px 0 16px rgba(56, 189, 248, 0.95));
}

/* Circling Star Falling Breakaway & Re-arrival Animations */
.nav-orbit-star.star-falling-away {
  opacity: 0 !important;
  transform: scale(0.1) !important;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.nav-orbit-star.star-arrival {
  animation: starArrivalBurst 0.65s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards;
}

@keyframes starArrivalBurst {
  0% {
    opacity: 0;
    transform: scale(0.1);
    filter: drop-shadow(0 0 25px #ffffff) drop-shadow(0 0 50px #38bdf8);
  }
  60% {
    opacity: 1;
    transform: scale(1.5);
    filter: drop-shadow(0 0 15px #38bdf8) drop-shadow(0 0 35px #ffffff);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 6px #38bdf8) drop-shadow(0 0 12px rgba(255, 255, 255, 0.95));
  }
}

/* Aggressive Orbit Mode (when user clicks the navigation tab they are already viewing) */
.nav-orbit-star.aggressive-orbit {
  filter: drop-shadow(0 0 14px #38bdf8) drop-shadow(0 0 25px #ffffff) drop-shadow(0 0 45px #0284c7) !important;
}

.nav-orbit-star.aggressive-orbit .star-svg-icon {
  animation: aggressiveStarSpin 0.22s linear infinite !important;
}

.nav-orbit-star.aggressive-orbit .star-aura-glow {
  opacity: 1 !important;
  transform: scale(2.2) !important;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.95) 0%, rgba(255, 255, 255, 0.9) 45%, transparent 75%) !important;
}

.nav-star-tracker.aggressive-orbit {
  border-color: rgba(56, 189, 248, 0.95) !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.8), inset 0 0 18px rgba(56, 189, 248, 0.5) !important;
}

@keyframes aggressiveStarSpin {
  0% { transform: rotate(0deg) scale(1.35); }
  100% { transform: rotate(360deg) scale(1.35); }
}

.pill-resume-highlight {
  color: #38bdf8 !important;
  font-weight: 700;
}

/* Right Action Buttons Cluster */
.nav-right-cluster {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 1.15rem;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.pill-icon-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.cmd-symbol {
  font-size: 1.2rem;
  font-weight: 700;
}

.mobile-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   Interactive Click Wave Effect (Shockwave Waves that Ripple on Click)
   ========================================================================== */
.click-wave-shockwave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  border: 2.5px solid rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6), inset 0 0 25px rgba(16, 185, 129, 0.4);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(16, 185, 129, 0.12) 40%, transparent 70%);
  animation: shockwaveExpand 0.75s cubic-bezier(0.1, 0.82, 0.25, 1) forwards;
}

@keyframes shockwaveExpand {
  0% {
    width: 0px;
    height: 0px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.1);
  }
  40% {
    opacity: 0.9;
  }
  100% {
    width: 1500px;
    height: 1500px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

.click-wave-secondary {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
  animation: shockwaveExpandSecondary 0.85s 0.07s cubic-bezier(0.1, 0.82, 0.25, 1) forwards;
}

@keyframes shockwaveExpandSecondary {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.1);
  }
  100% {
    width: 1700px;
    height: 1700px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

.btn-wave-burst {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55) 0%, rgba(16, 185, 129, 0.35) 50%, transparent 80%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: btnWaveExpand 0.6s ease-out forwards;
}

@keyframes btnWaveExpand {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    width: 320px;
    height: 320px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ==========================================================================
   Falling Celestial Star / Meteor Transport System
   ========================================================================== */
.falling-star-comet {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: meteorFallDown 0.95s cubic-bezier(0.18, 0.89, 0.32, 1) forwards;
}

.falling-star-head {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 20px #38bdf8) drop-shadow(0 0 35px #0284c7);
  animation: cometSpin 0.95s linear forwards;
}

.falling-star-head svg {
  width: 100%;
  height: 100%;
  display: block;
}

.falling-star-trail {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 4.5px;
  height: 220px;
  transform: translateX(-50%);
  background: linear-gradient(to top, #ffffff 0%, rgba(56, 189, 248, 0.95) 25%, rgba(14, 165, 233, 0.6) 65%, transparent 100%);
  border-radius: 999px;
  filter: blur(0.5px) drop-shadow(0 0 14px rgba(56, 189, 248, 0.95));
  transform-origin: bottom center;
}

.falling-star-sparkle {
  position: fixed;
  z-index: 999998;
  pointer-events: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #38bdf8, 0 0 18px #ffffff;
  animation: starSparkleFade 0.75s ease-out forwards;
}

@keyframes meteorFallDown {
  0% {
    transform: translate(-50%, 0) scale(0.5);
    opacity: 0;
  }
  12% {
    transform: translate(-50%, 30px) scale(1.35);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, calc(80vh)) scale(1.15);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, calc(115vh)) scale(0.4);
    opacity: 0;
  }
}

@keyframes cometSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(540deg); }
}

@keyframes starSparkleFade {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx, 0px), var(--ty, 35px)) scale(0);
    opacity: 0;
  }
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 20px;
  right: 20px;
  background: rgba(15, 18, 26, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.mobile-menu-drawer.open {
  display: flex;
}

.mobile-drawer-link {
  font-size: 1rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Hero Section (Image 1 replica: Monochromatic Fluid Smoke)
   ========================================================================== */
.editorial-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 30px 80px;
  text-align: center;
  overflow: hidden;
  background-color: transparent;
}

/* Smoky Silk Monochrome Ambient Lighting - Hidden for Dynamic Canvas Aurora */
.hero-ambient-fluid {
  display: none !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.fluid-wave {
  position: absolute;
  filter: blur(75px);
  opacity: 0.35;
  border-radius: 50%;
  pointer-events: none;
}

.wave-1 {
  width: 900px;
  height: 480px;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%) rotate(-8deg);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.28) 0%, rgba(180, 190, 210, 0.12) 45%, transparent 70%);
  animation: fluidPulse 12s ease-in-out infinite alternate;
}

.wave-2 {
  width: 750px;
  height: 380px;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -10%) rotate(12deg);
  background: radial-gradient(ellipse at center, rgba(220, 230, 255, 0.2) 0%, rgba(120, 140, 180, 0.08) 50%, transparent 75%);
  animation: fluidPulse 16s ease-in-out infinite alternate-reverse;
}

.fluid-light-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  filter: blur(50px);
}

@keyframes fluidPulse {
  0% { transform: translate(-50%, -20%) rotate(-8deg) scale(0.96); opacity: 0.25; }
  100% { transform: translate(-48%, -16%) rotate(4deg) scale(1.08); opacity: 0.42; }
}

/* Center Hero Typography */
.hero-center-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-giant-name {
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 7.8vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 10px 45px rgba(0, 0, 0, 0.8);
}

.hero-statement-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-eyebrow-kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.9;
}

.hero-editorial-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  color: #f8fafc;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* Bottom Telemetry Badges (Text on the side - Enlarged & Glassmorphic) */
.hero-telemetry-corner {
  position: absolute;
  bottom: 45px;
  z-index: 2;
  text-align: left;
  line-height: 1.4;
  background: rgba(10, 12, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-telemetry-corner:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15);
}

.telemetry-left {
  left: 45px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.telemetry-left:active {
  transform: scale(0.97);
}

.telemetry-left.is-ala-eh {
  border-color: #f59e0b !important;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.5), inset 0 0 15px rgba(245, 158, 11, 0.25) !important;
  animation: alaEhShake 0.45s ease-in-out;
}

.telemetry-left.is-ala-eh .telemetry-label {
  color: #f59e0b !important;
}

.telemetry-left.is-ala-eh .telemetry-main {
  color: #fbbf24 !important;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
}

.telemetry-left.is-ala-eh .telemetry-sub {
  color: #fef08a !important;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ala-eh-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.25);
  z-index: 10;
}

.ala-eh-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 24px;
  border-width: 6px;
  border-style: solid;
  border-color: #d97706 transparent transparent transparent;
}

.telemetry-left.is-ala-eh .ala-eh-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes alaEhShake {
  0%, 100% { transform: translateY(-3px) rotate(0deg); }
  20% { transform: translateY(-3px) rotate(-3deg) scale(1.05); }
  40% { transform: translateY(-3px) rotate(3deg) scale(1.05); }
  60% { transform: translateY(-3px) rotate(-2deg); }
  80% { transform: translateY(-3px) rotate(2deg); }
}

.telemetry-right {
  right: 45px;
  text-align: right;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.telemetry-right:active {
  transform: scale(0.97);
}

.telemetry-right.is-code-rain {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.5), inset 0 0 15px rgba(56, 189, 248, 0.25) !important;
  animation: codeRainShake 0.45s ease-in-out;
}

.telemetry-right.is-code-rain .telemetry-label {
  color: #38bdf8 !important;
}

.telemetry-right.is-code-rain .telemetry-main {
  color: #7dd3fc !important;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.telemetry-right.is-code-rain .telemetry-sub {
  color: #bae6fd !important;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.code-rain-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.25);
  z-index: 10;
}

.code-rain-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 24px;
  border-width: 6px;
  border-style: solid;
  border-color: #0369a1 transparent transparent transparent;
}

.telemetry-right.is-code-rain .code-rain-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes codeRainShake {
  0%, 100% { transform: translateY(-3px) rotate(0deg); }
  20% { transform: translateY(-3px) rotate(3deg) scale(1.05); }
  40% { transform: translateY(-3px) rotate(-3deg) scale(1.05); }
  60% { transform: translateY(-3px) rotate(2deg); }
  80% { transform: translateY(-3px) rotate(-2deg); }
}

/* Falling Programming Languages Overlay */
.falling-code-rain-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999;
  overflow: hidden;
}

.falling-lang-chip {
  position: fixed;
  top: -80px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 22px var(--chip-glow, rgba(56, 189, 248, 0.45));
  border: 1.5px solid var(--chip-border, rgba(255, 255, 255, 0.35));
  background: var(--chip-bg, rgba(15, 23, 42, 0.94));
  color: var(--chip-color, #ffffff);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: langFallDown var(--fall-duration, 3.2s) var(--fall-delay, 0s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform, opacity;
  pointer-events: none;
}

@keyframes langFallDown {
  0% {
    transform: translateY(0) translateX(0) rotate(var(--rot-start, 0deg)) scale(0.65);
    opacity: 0;
  }
  12% {
    opacity: 1;
    transform: translateY(60px) translateX(var(--sway-1, 15px)) rotate(var(--rot-mid1, 12deg)) scale(1.08);
  }
  50% {
    transform: translateY(52vh) translateX(var(--sway-2, -25px)) rotate(var(--rot-mid2, -14deg)) scale(1);
    opacity: 0.96;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(118vh) translateX(var(--sway-3, 30px)) rotate(var(--rot-end, 40deg)) scale(0.8);
    opacity: 0;
  }
}

.telemetry-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.telemetry-main {
  display: block;
  font-size: 1.30rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.telemetry-sub {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   Editorial Main Wrapper & Sections
   ========================================================================== */
.editorial-main-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 30px 120px;
}

.editorial-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   About Section (Image 2 replica: Portrait Card & "Code with purpose")
   ========================================================================== */
.about-grid-layout {
  display: grid;
  grid-template-columns: minmax(460px, 500px) 1fr;
  gap: 75px;
  align-items: center;
  position: relative;
  left: -220px;
}

.about-photo-col {
  display: flex;
  justify-content: center;
}

/* 3D Interactive Flip Photo Card in About Section (profile.jfif & PROFILE2.jfif) */
.profile-flip-card {
  perspective: 1200px;
  width: 100%;
  max-width: 500px;
  height: 620px;
  cursor: pointer;
  user-select: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: 28px;
}

.profile-flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.15);
  background: #090b12;
}

.flip-card-back {
  transform: rotateY(180deg);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.18);
}

.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.5s ease;
}

.profile-flip-card:hover .flip-img {
  transform: scale(1.04);
}

.photo-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 75%, rgba(5, 7, 12, 0.55) 100%);
  pointer-events: none;
}

.flip-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.top-badge {
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
}

.top-badge.badge-warm {
  border-color: rgba(245, 158, 11, 0.45);
}

.top-badge.badge-warm .badge-dot {
  background: #f59e0b;
}

.bottom-badge {
  bottom: 16px;
  right: 16px;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #38bdf8;
  transition: transform 0.2s, background 0.2s;
}

.profile-flip-card:hover .bottom-badge {
  transform: scale(1.05);
  background: rgba(56, 189, 248, 0.22);
}

/* Terminal Card for About Section (Zero Images) */
.about-terminal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(12, 15, 23, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.about-terminal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.15);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.t-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 24px 22px 28px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.85;
}

.terminal-line {
  color: #94a3b8;
}

.terminal-line.indent {
  padding-left: 20px;
}

.c-kwd { color: #c084fc; font-weight: 600; }
.c-cls { color: #38bdf8; font-weight: 600; }
.c-prop { color: #60a5fa; }
.c-str { color: #34d399; }

.about-card-badge {
  margin: 0 16px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
}

.badge-warm { color: #f59e0b; }

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.about-bio-col {
  display: flex;
  flex-direction: column;
}

.about-bio-col .section-mono-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: #94a3b8;
  margin-bottom: 14px;
}

.about-bio-col .editorial-serif-heading {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5.8vw, 4.8rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 26px;
}

.about-bio-col .editorial-serif-heading .editorial-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
}

.about-paragraphs {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.88;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 38px;
}

.about-paragraphs p {
  margin: 0;
}

.about-paragraphs strong {
  color: #ffffff;
  font-weight: 600;
}

.about-social-strip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s, transform 0.2s, border-color 0.2s;
}

.about-icon-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
  transform: translateY(-3px);
}

/* ==========================================================================
   Featured Projects (Image 3, 4, 5 replica: Alternating Device Mockups)
   ========================================================================== */
.projects-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

@media (min-width: 1025px) {
  .projects-showcase-list {
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2 + 8px);
  }
}

.editorial-project-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.editorial-project-card.project-align-right {
  grid-template-columns: 0.85fr 1.15fr;
}

.editorial-project-card.reveal-on-scroll {
  transform: translateX(-90px);
}

.editorial-project-card.project-align-right.reveal-on-scroll {
  transform: translateX(90px);
}

.editorial-project-card.reveal-on-scroll.is-revealed,
.editorial-project-card.project-align-right.reveal-on-scroll.is-revealed {
  transform: translateX(0);
}

.editorial-project-card.project-is-focused {
  position: relative;
  z-index: 2;
  transform: scale(1.015);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
  filter: brightness(1.08);
}

.editorial-project-card.project-is-focused .project-mockup-wrapper {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.78), 0 0 45px rgba(56, 189, 248, 0.16);
}

.editorial-project-card:focus-visible {
  border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.75);
}

/* Mockup Canvas Container */
.project-mockup-wrapper {
  position: relative;
  height: 440px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Background Color Themes */
.bg-identitrack {
  background: radial-gradient(circle at 50% 35%, #2a1f1a 0%, #150f0c 100%);
  border-color: rgba(180, 110, 70, 0.2);
}

.bg-rentease {
  background: radial-gradient(circle at 50% 35%, #141c38 0%, #0a0e1c 100%);
  border-color: rgba(90, 120, 210, 0.2);
}

.bg-asrt {
  background: radial-gradient(circle at 50% 35%, #0f2b22 0%, #061510 100%);
  border-color: rgba(40, 160, 110, 0.2);
}

/* Phone Mockup Frame */
.device-mockup-frame {
  position: relative;
  width: 220px;
  height: 380px;
  background: #000000;
  border-radius: 36px;
  border: 4px solid #333333;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), inset 0 0 4px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* RentEase Smartphone Mockup Frame */
.rentease-phone-frame {
  width: 202px;
  height: 396px;
  background: #000000;
  border-radius: 36px;
  border: 3.5px solid #232d4b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.92), 0 0 35px rgba(96, 165, 250, 0.18), inset 0 0 4px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rentease-phone-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 32px 75px rgba(0, 0, 0, 0.96), 0 0 45px rgba(96, 165, 250, 0.32);
}

.rentease-screen-inner {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 30px;
}

.rentease-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.rentease-phone-frame:hover .rentease-screen-img {
  transform: scale(1.03);
}

/* Identitrack Desktop Portal Frame */
.identitrack-portal-frame {
  width: 98%;
  max-width: 580px;
  background: #11141c;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(245, 158, 11, 0.12);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.identitrack-portal-frame:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.95), 0 0 45px rgba(245, 158, 11, 0.22);
}

.identitrack-screen-wrapper {
  width: 100%;
  line-height: 0;
  background: #090c12;
  overflow: hidden;
}

.identitrack-portal-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.4s ease;
}

.identitrack-portal-frame:hover .identitrack-portal-img {
  transform: scale(1.02);
}

/* ASRT Desktop Portal Frame */
.asrt-portal-frame {
  width: 98%;
  max-width: 580px;
  background: #0f1715;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(16, 185, 129, 0.12);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.asrt-portal-frame:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.95), 0 0 45px rgba(16, 185, 129, 0.22);
}

.asrt-screen-wrapper {
  width: 100%;
  line-height: 0;
  background: #070d0b;
  overflow: hidden;
}

.asrt-portal-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.4s ease;
}

.asrt-portal-frame:hover .asrt-portal-img {
  transform: scale(1.02);
}

/* Laptop Mockup Frame */
.laptop-device-frame {
  width: 90%;
  max-width: 480px;
  background: #11141c;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.device-screen-inner {
  padding: 0;
}

.code-preview-screen {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: #0b0d14;
}

.screen-top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-subtle);
}

.s-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.s-red { background: #ef4444; }
.s-yellow { background: #f59e0b; }
.s-green { background: #10b981; }

.s-title {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.screen-code-block {
  padding: 20px 22px;
  color: #cbd5e1;
  line-height: 1.6;
  white-space: pre-wrap;
}

.mockup-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #f1f5f9;
}

.badge-blue { color: #60a5fa; }
.badge-green { color: #34d399; }

/* Project Details Side */
.project-details-content {
  display: flex;
  flex-direction: column;
}

.project-category-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.editorial-proj-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.editorial-proj-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 24px;
}

.editorial-pill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.pill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: #e2e8f0;
  letter-spacing: 0.04em;
  transition: background 0.15s, border-color 0.15s;
}

.pill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-focus);
}

.editorial-arrow-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.editorial-arrow-btn:hover {
  gap: 12px;
  color: #38bdf8;
}

.arrow-glyph {
  font-size: 1.1rem;
}

/* ==========================================================================
   Development Ecosystem Grid ("all the language i learn")
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}

.ecosystem-card {
  position: relative;
  min-height: 238px;
  background: linear-gradient(145deg, rgba(20, 27, 40, 0.88), rgba(8, 10, 16, 0.84));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 26px 22px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ecosystem-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #a855f7, transparent);
  opacity: 0.75;
}

.ecosystem-card::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  filter: blur(30px);
  pointer-events: none;
}

.ecosystem-card:hover {
  transform: translateY(-7px);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.52), 0 0 26px rgba(56, 189, 248, 0.08);
}

.ecosystem-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.eco-cat-icon {
  flex: 0 0 auto;
  position: relative;
  font-size: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #e0f2fe;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.eco-cat-icon:hover,
.eco-cat-icon:focus-visible {
  outline: none;
  transform: translateY(-3px) rotate(-4deg);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.42), rgba(168, 85, 247, 0.24));
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.28);
}

.eco-cat-title {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.eco-tags-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.81rem;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}

.eco-pill:hover,
.eco-pill:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(56, 189, 248, 0.12);
  outline: none;
}

.eco-modal-context {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.09);
  color: #bae6fd;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eco-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.eco-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.eco-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eco-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(650px, 90vh);
  overflow: auto;
  padding: 38px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(19, 28, 43, 0.98), rgba(7, 10, 17, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72), 0 0 45px rgba(56, 189, 248, 0.13);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.eco-modal.is-open .eco-modal-panel {
  transform: translateY(0) scale(1);
}

.eco-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.eco-modal-close:hover,
.eco-modal-close:focus-visible {
  color: #fff;
  background: rgba(56, 189, 248, 0.18);
  transform: rotate(90deg);
  outline: none;
}

.eco-modal-title {
  margin: 10px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
}

.eco-modal-description {
  max-width: 46ch;
  margin-bottom: 26px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.eco-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.modal-is-open {
  overflow: hidden;
}

.eco-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  color: #ffffff;
}

/* ==========================================================================
   Professional Certifications (High-Impact Editorial Showcase)
   ========================================================================== */
.certifications-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .certifications-editorial-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.cert-showcase-card {
  position: relative;
  background: rgba(14, 18, 27, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cert-showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
}

/* Certificate Preview Container */
.cert-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #06090e;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.cert-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: brightness(0.97);
}

.cert-preview-frame:hover .cert-preview-img {
  transform: scale(1.02);
  filter: brightness(1.02);
}

.cert-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 12, 19, 0.85) 0%, rgba(9, 12, 19, 0.2) 50%, rgba(9, 12, 19, 0.05) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 20px;
  pointer-events: none;
  transition: background 0.3s ease;
}

.cert-preview-frame:hover .cert-preview-overlay {
  background: linear-gradient(to top, rgba(9, 12, 19, 0.92) 0%, rgba(9, 12, 19, 0.35) 50%, rgba(9, 12, 19, 0.1) 100%);
}

.cert-zoom-cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.cert-preview-frame:hover .cert-zoom-cue {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  transform: translateY(-2px);
}

/* Certificate Body Details */
.cert-card-body {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cert-badge-issuer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.verified-dot-pulse {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreenDot 2s infinite ease-in-out;
}

@keyframes pulseGreenDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.cert-title-editorial {
  font-size: 1.32rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 10px;
}

.cert-date-validity {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-description-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Verification ID Strip */
.cert-credential-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 20px;
}

.cert-cred-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-cred-code-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-cred-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.btn-copy-cred {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-cred:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #38bdf8;
}

/* Competency Tags Flow */
.cert-competencies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cert-skill-pill {
  font-size: 0.76rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.cert-skill-pill:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

/* Action Button Group */
.cert-action-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.btn-cert-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  color: #090d16;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid #f8fafc;
}

.btn-cert-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #000;
}

.btn-cert-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.84rem;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.btn-cert-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* Lightbox Modal for Certificate Zoom */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.cert-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cert-lightbox-container {
  position: relative;
  max-width: 1080px;
  width: 95vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: rgba(15, 20, 31, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.15);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cert-lightbox.is-open .cert-lightbox-container {
  transform: scale(1);
}

.cert-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 23, 0.85);
  flex-shrink: 0;
}

.cert-lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  font-family: var(--font-sans);
}

.cert-lightbox-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.cert-lightbox-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.cert-lightbox-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(92vh - 130px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px;
  background: #04070c;
  -webkit-overflow-scrolling: touch;
}

.cert-lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
  display: block;
  margin: 0 auto;
}

.cert-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 23, 0.85);
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.cert-lightbox-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
}


/* ==========================================================================
   ATS Resume Paper Sheet (Matches TOLENTINO_CV.pdf with Pristine Alignment)
   ========================================================================== */
.resume-viewer-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.viewer-toolbar {
  width: var(--sheet-width);
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.viewer-label {
  font-size: 0.86rem;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}
.btn-primary:hover {
  background: #e2e8f0;
}

.burning-pdf-button {
  position: relative;
  border: 1px solid rgba(251, 146, 60, 0.8);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.24);
  overflow: visible;
}

.burning-pdf-button::before {
  content: "\1F525";
  position: absolute;
  top: -18px;
  right: -10px;
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.9));
  transform-origin: 50% 100%;
  animation: pdfButtonFlame 0.8s ease-in-out infinite alternate;
}

.burning-pdf-button:hover,
.burning-pdf-button:focus-visible {
  border-color: #f97316;
  box-shadow: 0 0 26px rgba(249, 115, 22, 0.55), 0 0 48px rgba(239, 68, 68, 0.2);
}

@keyframes pdfButtonFlame {
  from { transform: rotate(-8deg) scale(0.9); }
  to { transform: rotate(8deg) scale(1.15); }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Clean Paper Sheet - Dark Default */
.paper-sheet {
  width: var(--sheet-width);
  max-width: 100%;
  background: #0d131f;
  color: #f1f5f9;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 38px 46px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  font-family: var(--font-sans);
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Sheet Header */
.sheet-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 12px;
  margin-bottom: 14px;
  text-align: left;
}

.sheet-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 4px;
  text-align: left;
}

.sheet-phone-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
  text-align: left;
}

.sheet-contact-line {
  font-size: 0.81rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  line-height: 1.4;
  text-align: left;
}

.sheet-contact-link {
  color: #94a3b8;
  text-decoration: none;
}
.sheet-contact-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.sheet-pipe {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
  user-select: none;
}

/* Sheet Sections */
.sheet-section {
  margin-bottom: 13px;
  page-break-inside: avoid;
  break-inside: avoid;
  text-align: left;
}

.sheet-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 3px;
  margin-bottom: 7px;
  letter-spacing: 0.04em;
  text-align: left;
}

/* Personal Information Grid */
.sheet-personal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4px 20px;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.sheet-pi-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-align: left;
}

.sheet-pi-label {
  font-weight: 700;
  color: #f8fafc;
  min-width: 95px;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  text-align: left;
}

.sheet-pi-val {
  color: #cbd5e1;
  letter-spacing: normal;
  text-align: left;
}

/* Educational Background */
.sheet-edu-block {
  margin-bottom: 7px;
  text-align: left;
}

.sheet-edu-header-line {
  font-size: 0.85rem;
  color: #f8fafc;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  text-align: left;
}

.sheet-edu-school {
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.sheet-edu-years {
  font-weight: 700;
  color: #60a5fa;
}

.sheet-edu-degree {
  font-size: 0.83rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 1px;
  text-align: left;
}

.sheet-edu-spec {
  font-size: 0.81rem;
  color: #94a3b8;
  margin-top: 1px;
  text-align: left;
}

.sheet-edu-honor {
  font-weight: 700;
  color: #38bdf8;
}

/* Professional Profile */
.sheet-text {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.55;
  text-align: left !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  margin: 0;
}

/* Sheet Projects */
.sheet-project-block {
  margin-bottom: 8px;
  page-break-inside: avoid;
  break-inside: avoid;
  text-align: left;
}

.sheet-proj-heading {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  text-align: left;
}

.sheet-proj-role {
  font-size: 0.79rem;
  font-weight: 600;
  color: #60a5fa;
  margin-top: 2px;
  text-align: left;
}

.sheet-proj-list {
  list-style: disc;
  padding-left: 18px;
  margin: 4px 0 0 0;
  text-align: left;
}

.sheet-proj-list li {
  font-size: 0.805rem;
  color: #cbd5e1;
  line-height: 1.45;
  text-align: left !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  margin-bottom: 2.5px;
}

/* Sheet Technical Skills */
.sheet-skills-list {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  text-align: left;
}

.sheet-skill-row {
  display: grid;
  grid-template-columns: 205px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 0.815rem;
  line-height: 1.45;
  text-align: left;
}

.sheet-skill-label {
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: left;
}

.sheet-skill-value {
  color: #cbd5e1;
  letter-spacing: normal;
  text-align: left;
}

/* Modern ATS Resume Sheet Components */
.sheet-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.sheet-bold-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.sheet-right-badge {
  font-weight: 700;
  color: #60a5fa;
  font-size: 0.82rem;
  white-space: nowrap;
}

.sheet-sub-text {
  font-size: 0.82rem;
  color: #e2e8f0;
  margin-top: 1px;
}

.sheet-meta-text {
  font-size: 0.80rem;
  color: #94a3b8;
  margin-top: 1px;
}

.sheet-proj-name-bold {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.85rem;
}

.sheet-proj-tech {
  font-size: 0.81rem;
  color: #94a3b8;
  font-weight: 500;
}

.sheet-cert-block {
  margin-bottom: 7px;
}

.sheet-cert-desc {
  font-size: 0.80rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-top: 2px;
  text-align: left;
}

/* White Paper Preview Styles */
.paper-sheet.sheet-theme-light,
html[data-theme="light"] .paper-sheet {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08) !important;
}

.paper-sheet.sheet-theme-light .sheet-header,
html[data-theme="light"] .paper-sheet .sheet-header {
  border-bottom: 2px solid #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-name,
html[data-theme="light"] .paper-sheet .sheet-name {
  color: #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-phone-title,
html[data-theme="light"] .paper-sheet .sheet-phone-title {
  color: #2563eb !important;
}

.paper-sheet.sheet-theme-light .sheet-contact-line,
.paper-sheet.sheet-theme-light .sheet-contact-link,
html[data-theme="light"] .paper-sheet .sheet-contact-line,
html[data-theme="light"] .paper-sheet .sheet-contact-link {
  color: #475569 !important;
}

.paper-sheet.sheet-theme-light .sheet-contact-link:hover,
html[data-theme="light"] .paper-sheet .sheet-contact-link:hover {
  color: #2563eb !important;
}

.paper-sheet.sheet-theme-light .sheet-pipe,
html[data-theme="light"] .paper-sheet .sheet-pipe {
  color: #94a3b8 !important;
}

.paper-sheet.sheet-theme-light .sheet-section-title,
html[data-theme="light"] .paper-sheet .sheet-section-title {
  color: #0f172a !important;
  border-bottom: 1.5px solid #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-pi-label,
html[data-theme="light"] .paper-sheet .sheet-pi-label {
  color: #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-pi-val,
html[data-theme="light"] .paper-sheet .sheet-pi-val {
  color: #334155 !important;
}

.paper-sheet.sheet-theme-light .sheet-edu-school,
html[data-theme="light"] .paper-sheet .sheet-edu-school {
  color: #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-edu-years,
html[data-theme="light"] .paper-sheet .sheet-edu-years {
  color: #2563eb !important;
}

.paper-sheet.sheet-theme-light .sheet-edu-degree,
html[data-theme="light"] .paper-sheet .sheet-edu-degree {
  color: #1e293b !important;
}

.paper-sheet.sheet-theme-light .sheet-edu-spec,
html[data-theme="light"] .paper-sheet .sheet-edu-spec {
  color: #475569 !important;
}

.paper-sheet.sheet-theme-light .sheet-edu-honor,
html[data-theme="light"] .paper-sheet .sheet-edu-honor {
  color: #0284c7 !important;
}

.paper-sheet.sheet-theme-light .sheet-text,
html[data-theme="light"] .paper-sheet .sheet-text {
  color: #334155 !important;
}

.paper-sheet.sheet-theme-light .sheet-proj-heading,
html[data-theme="light"] .paper-sheet .sheet-proj-heading {
  color: #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-proj-role,
html[data-theme="light"] .paper-sheet .sheet-proj-role {
  color: #2563eb !important;
}

.paper-sheet.sheet-theme-light .sheet-proj-list li,
html[data-theme="light"] .paper-sheet .sheet-proj-list li {
  color: #334155 !important;
}

.paper-sheet.sheet-theme-light .sheet-skill-label,
html[data-theme="light"] .paper-sheet .sheet-skill-label {
  color: #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-skill-value,
html[data-theme="light"] .paper-sheet .sheet-skill-value {
  color: #334155 !important;
}

.paper-sheet.sheet-theme-light .sheet-bold-title,
html[data-theme="light"] .paper-sheet .sheet-bold-title {
  color: #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-right-badge,
html[data-theme="light"] .paper-sheet .sheet-right-badge {
  color: #1d4ed8 !important;
}

.paper-sheet.sheet-theme-light .sheet-sub-text,
html[data-theme="light"] .paper-sheet .sheet-sub-text {
  color: #1e293b !important;
}

.paper-sheet.sheet-theme-light .sheet-meta-text,
html[data-theme="light"] .paper-sheet .sheet-meta-text {
  color: #475569 !important;
}

.paper-sheet.sheet-theme-light .sheet-proj-name-bold,
html[data-theme="light"] .paper-sheet .sheet-proj-name-bold {
  color: #0f172a !important;
}

.paper-sheet.sheet-theme-light .sheet-proj-tech,
html[data-theme="light"] .paper-sheet .sheet-proj-tech {
  color: #475569 !important;
}

.paper-sheet.sheet-theme-light .sheet-cert-desc,
html[data-theme="light"] .paper-sheet .sheet-cert-desc {
  color: #334155 !important;
}

/* ==========================================================================
   Editorial High-Impact Footer ("Ready for the next opportunity")
   ========================================================================== */
.editorial-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 110px 30px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.footer-cta-container {
  max-width: 900px;
  margin: 0 auto 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-mono-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-giant-heading {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 22px;
}

.footer-sub-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 650px;
  margin-bottom: 40px;
}

.footer-action-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.editorial-primary-btn {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.editorial-primary-btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.editorial-secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.editorial-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* Footer Bottom Directory Strip */
.footer-bottom-strip {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Toast Feedback
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Editorial Motion & Fluid Animations
   ========================================================================== */

/* Hero Entrance Animations */
.hero-giant-name {
  animation: heroTitleIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-eyebrow-kicker {
  animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

.hero-editorial-italic {
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
}

.hero-telemetry-corner {
  animation: heroFadeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

@keyframes heroTitleIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle Status Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 8px #38bdf8;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 16px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.4);
    transform: scale(1.15);
  }
}

.badge-dot {
  animation: pulseGlow 2.4s infinite ease-in-out;
}

/* Scroll-Driven Reveal Engine */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay for Cards */
.ecosystem-card:nth-child(1) { transition-delay: 0.05s; }
.ecosystem-card:nth-child(2) { transition-delay: 0.12s; }
.ecosystem-card:nth-child(3) { transition-delay: 0.19s; }
.ecosystem-card:nth-child(4) { transition-delay: 0.26s; }
.ecosystem-card:nth-child(5) { transition-delay: 0.33s; }
.ecosystem-card:nth-child(6) { transition-delay: 0.40s; }

.cert-card:nth-child(1) { transition-delay: 0.08s; }
.cert-card:nth-child(2) { transition-delay: 0.18s; }
.cert-card:nth-child(3) { transition-delay: 0.28s; }

/* Interactive Device Mockup Shimmer Pass */
.device-mockup-frame::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.07) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: shimmerPass 6.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmerPass {
  0%, 75% { transform: translateY(-100%) rotate(25deg); }
  100% { transform: translateY(100%) rotate(25deg); }
}

/* Interactive Card 3D Depth */
.about-photo-card,
.project-mockup-wrapper {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  transform-style: preserve-3d;
}

.about-photo-card:hover {
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.project-mockup-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 255, 255, 0.04);
}

/* Micro-animations on Buttons & Tags */
.editorial-arrow-btn .arrow-glyph {
  transition: transform 0.2s ease;
}

.editorial-arrow-btn:hover .arrow-glyph {
  transform: translateX(6px);
}

.pill-icon-btn:hover {
  transform: scale(1.08) rotate(8deg);
}

.editorial-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.editorial-secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    left: 0;
  }
  .about-photo-col {
    justify-content: center;
  }
  .about-social-strip {
    justify-content: center;
  }
  .ecosystem-grid,
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-project-card,
  .editorial-project-card.project-align-right {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .editorial-project-card.reveal-on-scroll,
  .editorial-project-card.project-align-right.reveal-on-scroll {
    transform: translateY(34px);
  }
  .editorial-project-card.reveal-on-scroll.is-revealed,
  .editorial-project-card.project-align-right.reveal-on-scroll.is-revealed {
    transform: translateY(0);
  }
  .editorial-project-card.project-align-right .project-details-content {
    order: 2;
  }
  .editorial-project-card.project-align-right .project-mockup-wrapper {
    order: 1;
  }
}

@media (max-width: 860px) {
  .floating-pill-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hero-telemetry-corner {
    display: none;
  }
  .ecosystem-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .editorial-header {
    padding: 14px 20px;
  }
  .editorial-hero {
    padding: 100px 20px 60px;
  }
  .editorial-main-wrapper {
    padding: 20px 18px 80px;
  }
  .project-mockup-wrapper {
    height: 340px;
  }
  .device-mockup-frame {
    width: 180px;
    height: 310px;
  }
  .rentease-phone-frame {
    width: 155px;
    height: 304px;
  }
  .paper-sheet {
    padding: 24px 20px;
  }
  .sheet-personal-grid,
  .sheet-skill-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ==========================================================================
   Strict ATS Print Optimization (@media print)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 8.8pt !important;
  }

  .editorial-header,
  .editorial-hero,
  #about,
  #projects,
  #ecosystem,
  #certifications,
  .viewer-toolbar,
  .editorial-footer,
  .toast,
  .hero-ambient-fluid {
    display: none !important;
  }

  .editorial-main-wrapper,
  .editorial-section,
  .resume-viewer-wrap {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .paper-sheet {
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000000 !important;
    text-align: left !important;
  }

  .paper-sheet * {
    color: #000000 !important;
    border-color: #333333 !important;
    text-align: left !important;
  }

  .sheet-header {
    border-bottom: 2pt solid #000000 !important;
    padding-bottom: 8pt !important;
    margin-bottom: 9pt !important;
    text-align: left !important;
  }

  .sheet-name {
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #000000 !important;
    letter-spacing: 0.02em !important;
  }

  .sheet-phone-title {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-bottom: 3pt !important;
  }

  .sheet-contact-line {
    font-size: 8pt !important;
    color: #222222 !important;
    gap: 3pt 6pt !important;
  }

  .sheet-pipe {
    color: #666666 !important;
  }

  .sheet-section {
    margin-bottom: 8pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    text-align: left !important;
  }

  .sheet-section-title {
    font-size: 9pt !important;
    font-weight: 800 !important;
    color: #000000 !important;
    border-bottom: 1pt solid #000000 !important;
    padding-bottom: 2pt !important;
    margin-bottom: 5pt !important;
    text-align: left !important;
  }

  .sheet-personal-grid {
    grid-template-columns: 1.05fr 0.95fr !important;
    gap: 2pt 12pt !important;
    font-size: 8pt !important;
    text-align: left !important;
  }

  .sheet-pi-label {
    min-width: 85pt !important;
    font-weight: 700 !important;
  }

  .sheet-edu-block {
    margin-bottom: 4pt !important;
    text-align: left !important;
  }

  .sheet-edu-header-line {
    font-size: 8.5pt !important;
    gap: 3pt 5pt !important;
  }

  .sheet-edu-school {
    font-weight: 800 !important;
  }

  .sheet-edu-years {
    font-weight: 700 !important;
  }

  .sheet-edu-degree {
    font-size: 8pt !important;
    font-weight: 600 !important;
  }

  .sheet-edu-spec {
    font-size: 7.8pt !important;
  }

  .sheet-text {
    font-size: 8pt !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }

  .sheet-project-block {
    margin-bottom: 4pt !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    text-align: left !important;
  }

  .sheet-proj-heading {
    font-size: 8.2pt !important;
    font-weight: 700 !important;
  }

  .sheet-proj-role {
    font-size: 7.8pt !important;
    font-weight: 600 !important;
  }

  .sheet-proj-list {
    padding-left: 14pt !important;
    margin-top: 2pt !important;
  }

  .sheet-proj-list li {
    font-size: 7.8pt !important;
    line-height: 1.35 !important;
    margin-bottom: 1.5pt !important;
    text-align: left !important;
  }

  .sheet-skills-list {
    gap: 2pt !important;
    text-align: left !important;
  }

  .sheet-skill-row {
    grid-template-columns: 120pt 1fr !important;
    gap: 6pt !important;
    font-size: 8pt !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  .sheet-skill-label {
    font-weight: 700 !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
