/* ══════════════════════════════════════════════════════════════
   Jordan Aguirre Portfolio — app.css
   Blazor WASM + MudBlazor | Zero JavaScript animations
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg: #0a0a0f;
  --bg-panel: #111118;
  --text: #e8e6e3;
  --text-dim: #8a8690;
  --accent-1: #ff6b4a;
  --accent-2: #4ae0ff;
  --accent-3: #c74aff;
  --accent-4: #4aff8b;
  --accent-5: #ffd84a;
  --glow-1: rgba(255, 107, 74, 0.35);
  --glow-2: rgba(74, 224, 255, 0.35);
  --glow-3: rgba(199, 74, 255, 0.35);
  --glow-4: rgba(74, 255, 139, 0.35);
  --glow-5: rgba(255, 216, 74, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  overflow-x: hidden;
}

/* ── Grain Overlay ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ── Color utility classes ── */
.color-accent1 { color: var(--accent-1) !important; }
.color-accent2 { color: var(--accent-2) !important; }
.color-accent3 { color: var(--accent-3) !important; }
.color-accent4 { color: var(--accent-4) !important; }
.color-accent5 { color: var(--accent-5) !important; }


/* ══════════════════════════
   PRELOADER (WASM loading)
   ══════════════════════════ */
.wasm-preloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.loader-sticks {
  position: relative;
  width: 160px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}

.loader-stick {
  width: 6px;
  height: 60px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--accent-1), var(--accent-5));
  animation: stickJuggle 1.2s ease-in-out infinite;
  transform-origin: bottom center;
}

.loader-stick:nth-child(2) {
  background: linear-gradient(to top, var(--accent-2), var(--accent-4));
  animation-delay: 0.15s;
  height: 70px;
}

.loader-stick:nth-child(3) {
  background: linear-gradient(to top, var(--accent-3), var(--accent-5));
  animation-delay: 0.3s;
}

@keyframes stickJuggle {
  0%, 100% {
    transform: rotate(-15deg) translateY(0);
  }
  25% {
    transform: rotate(5deg) translateY(-20px);
  }
  50% {
    transform: rotate(15deg) translateY(0);
  }
  75% {
    transform: rotate(-5deg) translateY(-20px);
  }
}

.loader-text {
  margin-top: 2rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ══════════════════════════
   NAVBAR
   ══════════════════════════ */
.navbar-glass {
  backdrop-filter: blur(20px) !important;
  background: rgba(10, 10, 15, 0.75) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.nav-logo {
  font-family: "Playfair Display", serif !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

.nav-link {
  font-size: 0.82rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--text-dim) !important;
  margin-left: 1.5rem !important;
  position: relative;
  transition: color 0.3s ease !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-2);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text) !important;
}

.nav-link:hover::after {
  width: 100%;
}

.main-content {
  padding: 0 !important;
}


/* ══════════════════════════
   ANIMATION SYSTEM (CSS only)
   ══════════════════════════ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-slide-in {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim-slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hero staggered delays (CSS animation, not transition) */
.delay-1 { animation: fadeUpIn 0.8s ease 0.2s both; }
.delay-2 { animation: fadeUpIn 0.8s ease 0.4s both; }
.delay-3 { animation: fadeUpIn 0.8s ease 0.6s both; }
.delay-4 { animation: fadeUpIn 0.8s ease 0.8s both; }
.delay-5 { animation: fadeUpIn 0.8s ease 1.2s both; }

@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ══════════════════════════
   HERO
   ══════════════════════════ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(255, 107, 74, 0.04) 0%,
    transparent 60%
  );
}

.hero-content {
  max-width: 800px;
}

.hero-tag {
  color: var(--accent-2) !important;
  margin-bottom: 2rem;
}

.hero-heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-heading em {
  font-style: italic;
  color: var(--accent-1);
}

.hero-sub {
  font-size: 1.1rem !important;
  color: var(--text-dim) !important;
  max-width: 580px;
  margin: 0 auto 3rem !important;
  font-weight: 300;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
}

.btn-glow {
  box-shadow: 0 0 30px var(--glow-1) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.btn-glow:hover {
  box-shadow: 0 0 50px var(--glow-1) !important;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent-2), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ══════════════════════════
   SECTION HEADERS
   ══════════════════════════ */
.section-header {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 1rem;
}

.section-label {
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
}


/* ══════════════════════════
   SKILL ORBIT (circular layout)
   ══════════════════════════ */
.skills-section {
  padding: 8rem 2rem;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(199, 74, 255, 0.06) 0%,
    transparent 60%
  );
}

.orbit-container {
  --orbit-size: min(600px, 85vw);
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: 0 auto;
}

/* Decorative ring */
.orbit-ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  animation: orbitRingSpin 60s linear infinite;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.03);
  animation: orbitRingSpin 90s linear infinite reverse;
}

@keyframes orbitRingSpin {
  to { transform: rotate(360deg); }
}

/* Center piece */
.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 74, 255, 0.12) 0%, rgba(74, 224, 255, 0.06) 60%, transparent 80%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Orbital slots — positioned in a circle using CSS transforms */
.orbit-slot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
  /* Each slot is centered, then translated outward */
  top: 50%;
  left: 50%;
  z-index: 2;
}

/* .orbit-slot:hover {
  transform: translate(-50%, -50%) scale(1.1) !important;
  filter: brightness(1.15);
  z-index: 10;
} */

/*
  5 items around 360°:
  pos-0: top           (270°)
  pos-1: upper-right   (342°)
  pos-2: lower-right   (54°)
  pos-3: lower-left    (126°)
  pos-4: upper-left    (198°)

  Using calc: translate(-50%, -50%) then offset by radius * cos/sin
  Radius = 42% of container
*/
.orbit-pos-0 {
  transform: translate(-50%, -50%) translate(0, -42cqi);
}
.orbit-pos-1 {
  transform: translate(-50%, -50%) translate(40cqi, -13cqi);
}
.orbit-pos-2 {
  transform: translate(-50%, -50%) translate(24.7cqi, 34cqi);
}
.orbit-pos-3 {
  transform: translate(-50%, -50%) translate(-24.7cqi, 34cqi);
}
.orbit-pos-4 {
  transform: translate(-50%, -50%) translate(-40cqi, -13cqi);
}

/* Fallback for browsers without cqi — use percentage of parent */
@supports not (width: 1cqi) {
  .orbit-pos-0 { transform: translate(-50%, -50%) translate(0, -42%); margin-top: calc(var(--orbit-size) * -0.42); }
  .orbit-pos-1 { transform: translate(-50%, -50%) translate(40%, -13%); margin-left: calc(var(--orbit-size) * 0.4); margin-top: calc(var(--orbit-size) * -0.13); }
  .orbit-pos-2 { transform: translate(-50%, -50%) translate(24.7%, 34%); margin-left: calc(var(--orbit-size) * 0.247); margin-top: calc(var(--orbit-size) * 0.34); }
  .orbit-pos-3 { transform: translate(-50%, -50%) translate(-24.7%, 34%); margin-left: calc(var(--orbit-size) * -0.247); margin-top: calc(var(--orbit-size) * 0.34); }
  .orbit-pos-4 { transform: translate(-50%, -50%) translate(-40%, -13%); margin-left: calc(var(--orbit-size) * -0.4); margin-top: calc(var(--orbit-size) * -0.13); }
}

/* Enable container queries on the orbit */
.orbit-container {
  container-type: inline-size;
}

.orbit-label {
  text-align: center;
  margin-top: 0.5rem;
}

/* Ball orb — shared between orbit & old layout */
.ball-orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a0a0f;
  position: relative;
  animation: floatBall 4s ease-in-out infinite;
  flex-shrink: 0;
}

.orbit-pos-1 .ball-orb { animation-delay: -0.8s; }
.orbit-pos-2 .ball-orb { animation-delay: -1.6s; }
.orbit-pos-3 .ball-orb { animation-delay: -2.4s; }
.orbit-pos-4 .ball-orb { animation-delay: -3.2s; }

@keyframes floatBall {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ball-orb::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.2;
  filter: blur(15px);
  transition: opacity 0.4s;
}

.orbit-slot:hover .ball-orb::before {
  opacity: 0.5;
}

/* Orb color variants */
.orb-fire { background: linear-gradient(135deg, var(--accent-1), #ff9a4a); }
.orb-ice { background: linear-gradient(135deg, var(--accent-2), #4a9fff); }
.orb-violet { background: linear-gradient(135deg, var(--accent-3), #ff4a9a); }
.orb-mint { background: linear-gradient(135deg, var(--accent-4), #4affd8); }
.orb-gold { background: linear-gradient(135deg, var(--accent-5), #ffb84a); }

.skill-ball-label {
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  margin-bottom: 0.2rem;
  text-align: center;
  white-space: nowrap;
}

.skill-ball-desc {
  color: var(--text-dim) !important;
  text-align: center;
  max-width: 140px;
  line-height: 1.4;
  font-size: 0.72rem;
}


/* ══════════════════════════
   SKILL DIALOG
   ══════════════════════════ */
.dialog-backdrop {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.65) !important;
}

.skill-dialog .mud-dialog {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px !important;
}

.panel-tag {
  margin-bottom: 0.5rem;
}

.panel-desc {
  color: var(--text-dim) !important;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.panel-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-chip {
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.72rem !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-dim) !important;
}


/* ══════════════════════════
   EXPERIENCE TIMELINE
   ══════════════════════════ */
.experience-section {
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  padding: 4rem 2rem;   /* rail floats near centre now, no gutter needed */
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(74, 224, 255, 0.04) 0%,
    transparent 50%
  );
 
  /* Hide the native scrollbar — page still scrolls normally */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
 
.experience-section::-webkit-scrollbar {
  width: 0;
  display: none;
}
 
.scroll-rail {
  position: sticky;
  top: 0;
  height: 0;          /* no flow height → never pushes/collapses */
  z-index: 3;
  pointer-events: none;
  margin-right: 60px;
}
 
.scroll-rail-line {
  position: absolute;
  left: calc(50% - 24rem);
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent-2),
    var(--accent-3),
    var(--accent-5)
  );
  opacity: 0.5;
  border-radius: 2px;
}
 

.scroll-ball {
  position: absolute;
  left: calc(50% - 24rem);   /* must match .scroll-rail-line left */
  top: 0;                       /* overridden inline */
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(calc(-50% + 1px), -50%);
  background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent-3));
  box-shadow: 0 0 12px var(--glow-2), 0 0 24px var(--glow-3);
  transition: top 0.08s linear;  /* delete for exact 1:1 with scroll */
}
 
.scroll-ball::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.35;
  filter: blur(6px);
}
 
 
/* ══════════════════════════
   Old inner timeline line + per-item dots — hidden.
   The rail replaces them; otherwise you get a second moving line.
   ══════════════════════════ */
.timeline {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}
 
.timeline::before { display: none; }
.timeline-dot     { display: none; }
 
.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}
 
.timeline-date  { margin-bottom: 0.5rem; }
.dot-ice-text   { color: var(--accent-2) !important; }
.dot-violet-text{ color: var(--accent-3) !important; }
.dot-gold-text  { color: var(--accent-5) !important; }
 
.timeline-title {
  font-size: 1.3rem !important;
  margin-bottom: 0.3rem;
}
 
.timeline-company {
  color: var(--text-dim) !important;
  margin-bottom: 0.8rem;
}
 
.timeline-desc {
  color: var(--text-dim) !important;
  line-height: 1.7;
}

/* ══════════════════════════
   CERTIFICATIONS
   ══════════════════════════ */
.certs-section {
  padding: 8rem 2rem;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(255, 107, 74, 0.05) 0%,
    transparent 50%
  );
}

.certs-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
}

.cert-card {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  padding: 2.5rem !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.cert-gradient-fire::before {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-5));
}

.cert-gradient-cool::before {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
}

.cert-issuer {
  margin-bottom: 1rem;
}

.cert-name {
  margin-bottom: 0.8rem;
}

.cert-desc {
  color: var(--text-dim) !important;
  line-height: 1.6;
}


/* ══════════════════════════
   FLOW ARTS
   ══════════════════════════ */
.flow-section {
  padding: 8rem 2rem;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(74, 255, 139, 0.04) 0%,
    transparent 50%
  );
}

.flow-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.flow-stat {
  font-family: "Playfair Display", serif;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-4),
    var(--accent-2),
    var(--accent-3)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.flow-stat-label {
  color: var(--text-dim) !important;
  margin-bottom: 2.5rem;
}

.flow-text {
  font-size: 1.1rem !important;
  color: var(--text-dim) !important;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

.flow-text em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}


/* ══════════════════════════
   SERVICES
   ══════════════════════════ */
.services-section {
  padding: 8rem 2rem;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(255, 216, 74, 0.04) 0%,
    transparent 60%
  );
}

.services-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  padding: 2.5rem !important;
  text-align: center;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  margin-left: auto;
  margin-right: auto;
}

.service-desc {
  color: var(--text-dim) !important;
  line-height: 1.7;
  margin-top: 0.8rem;
}


/* ══════════════════════════
   CONTACT
   ══════════════════════════ */
.contact-section {
  padding: 8rem 2rem 6rem;
  text-align: center;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  border-radius: 999px !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.8rem !important;
  letter-spacing: 1px !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease !important;
}

.contact-btn:hover {
  border-color: var(--accent-1) !important;
  color: var(--accent-1) !important;
  box-shadow: 0 0 20px var(--glow-1);
}


/* ══════════════════════════
   FOOTER
   ══════════════════════════ */
.site-footer {
  max-height: 10vh;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-text {
  font-family: "JetBrains Mono", monospace !important;
  letter-spacing: 1px;
  color: var(--text-dim) !important;
}


/* ══════════════════════════
   BLAZOR ERROR UI
   ══════════════════════════ */
#blazor-error-ui {
  background: var(--accent-1);
  color: #0a0a0f;
  bottom: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}


/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }

}

@media (max-width: 768px) {
  .nav-link {
    margin-left: 0.8rem !important;
    font-size: 0.7rem !important;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  /* Orbit shrinks naturally via min() but reduce balls */
  .ball-orb {
    width: 72px;
    height: 72px;
    font-size: 1.3rem;
  }

  .orbit-center {
    width: 70px;
    height: 70px;
  }

  .orbit-center-label {
    font-size: 0.55rem;
  }

  .skill-ball-label {
    font-size: 0.75rem !important;
  }

  .skill-ball-desc {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .timeline {
    padding-left: 2.5rem;
  }

  .timeline-dot {
    left: -2.45rem;
  }

  .experience-section { padding-left: 3rem; }
  .scroll-rail-line,
  .scroll-ball { left: 1rem; }

}

@media (max-width: 520px) {
  /* On very small screens, collapse orbit to a wrapped flex grid */
  .orbit-container {
    --orbit-size: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .orbit-ring,
  .orbit-center {
    display: none;
  }

  .orbit-slot {
    position: static !important;
    transform: none !important;
  }

  .orbit-slot:hover {
    transform: scale(1.08) !important;
  }

  .skill-ball-desc {
    display: block;
  }

  .ball-orb {
    width: 80px;
    height: 80px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .nav-link {
    font-size: 0.62rem !important;
    letter-spacing: 0.5px !important;
    margin-left: 0.4rem !important;
  }

  .hero-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .cert-card {
    padding: 1.8rem !important;
  }

  .service-card {
    padding: 2rem !important;
  }
}


/* Pin the footer to the bottom of the viewport */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  max-height: 64px;
}

/* Scrollable main content sandwiched between them */
.main-scroll {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  /* Space for the fixed footer at the bottom.
     MudMainContent already reserves top space for the AppBar automatically. */
  padding-bottom: 64px;
}

/* Optional: themed scrollbar so it doesn't clash with the dark aesthetic */
.main-scroll::-webkit-scrollbar {
  width: 8px;
}
.main-scroll::-webkit-scrollbar-track {
  background: var(--bg);
}
.main-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.main-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ══════════════════════════════════════════════════════════════
   ADDITIONS to app.css — Certs viewer + Resume page
   Append these to the bottom of your existing app.css
   ══════════════════════════════════════════════════════════════ */


/* ══════════════════════════
   CERTS — extra fields & dialog
   ══════════════════════════ */

/* Make existing cards feel clickable */
.cert-card {
  cursor: pointer;
}

.cert-card:hover .cert-name {
  color: var(--text) !important;
}

/* Metadata row under cert description */
.cert-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cert-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.cert-meta-item .mud-icon-root {
  font-size: 0.95rem !important;
  color: var(--text-dim) !important;
}

.cert-cred-id {
  font-size: 0.65rem;
  opacity: 0.8;
}

.cert-action {
  margin-top: 1rem;
}

.cert-view-btn {
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--text-dim) !important;
  padding: 0.4rem 0 !important;
  min-width: 0 !important;
  transition: color 0.3s ease !important;
}

.cert-card:hover .cert-view-btn {
  color: var(--accent-2) !important;
}

/* ── PDF preview dialog ── */
.cert-dialog .mud-dialog {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px !important;
  max-width: 1000px !important;
}

.cert-dialog-title {
  padding: 0.5rem 0;
}

.cert-dialog-date {
  font-family: "JetBrains Mono", monospace !important;
  letter-spacing: 1.5px !important;
  color: var(--text-dim) !important;
  margin-top: 0.4rem !important;
  display: block;
}

.cert-pdf-frame {
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 1rem;
  min-height: 600px;
}

.cert-pdf-frame object {
  display: block;
  border: 0;
}

.cert-pdf-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 4rem 2rem;
  min-height: 400px;
}

.cert-dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cert-download-btn {
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--accent-2) !important;
}


/* ══════════════════════════
   RESUME — hero
   ══════════════════════════ */
.resume-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(74, 224, 255, 0.05) 0%,
    transparent 60%
  );
}

.resume-contact-strip {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.resume-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.resume-contact-link:hover {
  color: var(--accent-2);
}

.resume-contact-link .mud-icon-root {
  font-size: 1rem !important;
  color: inherit !important;
}

.resume-contact-sep {
  color: var(--text-dim);
  opacity: 0.4;
}


/* ══════════════════════════
   RESUME — projects
   ══════════════════════════ */
.projects-section {
  padding: 8rem 2rem;
  background: radial-gradient(
    ellipse at 70% 0%,
    rgba(199, 74, 255, 0.05) 0%,
    transparent 60%
  );
}

.projects-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.project-card {
  background: var(--bg-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  margin-bottom: 1rem;
}

.project-category {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.cat-fire { color: var(--accent-1); border: 1px solid rgba(255, 107, 74, 0.2); }
.cat-ice { color: var(--accent-2); border: 1px solid rgba(74, 224, 255, 0.2); }
.cat-violet { color: var(--accent-3); border: 1px solid rgba(199, 74, 255, 0.2); }

.project-title {
  color: var(--text) !important;
  font-weight: 600 !important;
}

.project-desc {
  color: var(--text-dim) !important;
  line-height: 1.6;
  flex-grow: 1;
}

.project-link-btn {
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--text-dim) !important;
  padding: 0.4rem 0 !important;
  margin-top: 1.25rem !important;
  align-self: flex-start;
  min-width: 0 !important;
  transition: color 0.3s ease !important;
}

.project-card:hover .project-link-btn {
  color: var(--accent-2) !important;
}


/* ══════════════════════════
   RESUME — skills grid
   ══════════════════════════ */
.resume-skills-section {
  padding: 8rem 2rem;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(74, 255, 139, 0.05) 0%,
    transparent 50%
  );
}

.skills-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.8rem;
  transition: border-color 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.skill-cat-label {
  display: block;
  margin-bottom: 1rem !important;
  letter-spacing: 2px !important;
}


/* ══════════════════════════
   RESUME — education + closing CTA
   ══════════════════════════ */
.resume-edu-section {
  padding: 8rem 2rem;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 216, 74, 0.04) 0%,
    transparent 50%
  );
}

.resume-cta {
  max-width: 750px;
  margin: 4rem auto 0;
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.resume-cta-text {
  color: var(--text-dim) !important;
  font-family: "JetBrains Mono", monospace !important;
  font-size: 0.85rem !important;
  letter-spacing: 1px;
}


/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 768px) {
  .resume-contact-strip {
    font-size: 0.7rem;
    gap: 0.5rem;
  }

  .resume-contact-sep {
    display: none;
  }

  .resume-contact-strip {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .cert-pdf-frame object {
    height: 450px !important;
  }

  .cert-dialog-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .cert-pdf-frame object {
    height: 350px !important;
  }
}
