/* ══════════════════════════════════════════════════════════════
   Partho Paul — macOS Sonoma / Pro Web Experience
   Advanced Animations, 3D Tilt, Spotlight, Glassmorphic Windows
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  --bg-desktop: #08090d;
  --bg-window: rgba(18, 20, 29, 0.75);
  --bg-window-solid: #12141d;
  --bg-sidebar: rgba(13, 15, 22, 0.85);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  --border-window: rgba(255, 255, 255, 0.12);
  --border-specular: rgba(255, 255, 255, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --apple-blue: #007aff;
  --apple-cyan: #00f2fe;
  --apple-green: #30d158;
  --apple-yellow: #ffd60a;
  --apple-red: #ff453a;
  --apple-purple: #bf5af2;

  --traffic-red: #ff5f56;
  --traffic-yellow: #ffbd2e;
  --traffic-green: #27c93f;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --spring-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* ── 2. Global Reset ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
  background-color: var(--bg-desktop);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-desktop);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background: rgba(0, 122, 255, 0.35);
  color: #fff;
}

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

/* ── 3. Dynamic Interactive Wallpaper & Aurora Lights ──────── */
.ambient-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-desktop);
}

.ambient-aurora {
  position: absolute;
  border-radius: 54% 46% 42% 58% / 58% 50% 50% 42%;
  filter: blur(140px);
  opacity: 0.26;
  will-change: transform, border-radius;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: screen;
}
.aurora-1 {
  top: -100px;
  left: 14%;
  width: 750px;
  height: 580px;
  background: radial-gradient(circle at 40% 40%, rgba(0, 242, 254, 0.75), rgba(0, 122, 255, 0.5), transparent 70%);
  animation: auroraMorph1 22s ease-in-out infinite alternate;
}
.aurora-2 {
  top: 320px;
  right: 5%;
  width: 680px;
  height: 540px;
  background: radial-gradient(circle at 50% 50%, rgba(191, 90, 242, 0.7), rgba(121, 40, 202, 0.45), transparent 70%);
  animation: auroraMorph2 26s ease-in-out infinite alternate;
  animation-delay: -6s;
}
.aurora-3 {
  bottom: 80px;
  left: 5%;
  width: 700px;
  height: 560px;
  background: radial-gradient(circle at 45% 45%, rgba(0, 210, 255, 0.6), rgba(58, 123, 213, 0.45), transparent 70%);
  animation: auroraMorph3 28s ease-in-out infinite alternate;
  animation-delay: -12s;
}
.aurora-4 {
  top: 48%;
  left: 45%;
  width: 550px;
  height: 460px;
  background: radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.4), rgba(139, 92, 246, 0.45), transparent 70%);
  animation: auroraMorph4 30s ease-in-out infinite alternate;
  animation-delay: -18s;
}

@keyframes auroraMorph1 {
  0% {
    border-radius: 54% 46% 42% 58% / 58% 50% 50% 42%;
    filter: blur(100px) hue-rotate(0deg);
  }
  33% {
    border-radius: 68% 32% 59% 41% / 44% 63% 37% 56%;
    filter: blur(115px) hue-rotate(12deg);
  }
  66% {
    border-radius: 38% 62% 35% 65% / 65% 38% 62% 35%;
    filter: blur(95px) hue-rotate(-8deg);
  }
  100% {
    border-radius: 48% 52% 61% 39% / 52% 43% 57% 48%;
    filter: blur(105px) hue-rotate(5deg);
  }
}

@keyframes auroraMorph2 {
  0% {
    border-radius: 62% 38% 48% 52% / 45% 58% 42% 55%;
    filter: blur(105px) hue-rotate(0deg);
  }
  33% {
    border-radius: 40% 60% 65% 35% / 60% 40% 60% 40%;
    filter: blur(120px) hue-rotate(-15deg);
  }
  66% {
    border-radius: 58% 42% 38% 62% / 38% 62% 38% 62%;
    filter: blur(95px) hue-rotate(10deg);
  }
  100% {
    border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
    filter: blur(110px) hue-rotate(-5deg);
  }
}

@keyframes auroraMorph3 {
  0% {
    border-radius: 48% 52% 58% 42% / 52% 45% 55% 48%;
    filter: blur(95px) hue-rotate(0deg);
  }
  33% {
    border-radius: 65% 35% 42% 58% / 40% 60% 40% 60%;
    filter: blur(110px) hue-rotate(15deg);
  }
  66% {
    border-radius: 42% 58% 62% 38% / 58% 42% 58% 42%;
    filter: blur(125px) hue-rotate(-12deg);
  }
  100% {
    border-radius: 55% 45% 45% 55% / 48% 52% 48% 52%;
    filter: blur(100px) hue-rotate(6deg);
  }
}

@keyframes auroraMorph4 {
  0% {
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
    filter: blur(110px);
  }
  50% {
    border-radius: 65% 35% 60% 40% / 40% 60% 40% 60%;
    filter: blur(125px);
  }
  100% {
    border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%;
    filter: blur(100px);
  }
}

/* Dynamic Cursor Radial Spotlight Glow */
.cursor-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    650px circle at var(--cursor-x, 50vw) var(--cursor-y, 50vh),
    rgba(0, 242, 254, 0.12) 0%,
    rgba(191, 90, 242, 0.08) 28%,
    rgba(0, 122, 255, 0.02) 60%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

/* Interactive Floating Particle Canvas */
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Click Ripple Pulse */
.click-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 242, 254, 0.7);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleExpand 0.75s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  z-index: 4;
}
@keyframes rippleExpand {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.9;
  }
  100% {
    width: 650px;
    height: 650px;
    opacity: 0;
  }
}

/* ── 4. Authentic macOS Top Menu Bar ───────────────────────── */
.macos-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  user-select: none;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.apple-icon {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  opacity: 0.95;
  transition: opacity 0.2s;
}
.apple-icon:hover { opacity: 1; }

.app-name {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.menubar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.menubar-item {
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
  font-size: 13px;
}
.menubar-item:hover,
.menubar-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menubar-status-icon {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.menubar-status-icon:hover { color: var(--text-primary); }

.spotlight-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.spotlight-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.spotlight-trigger kbd {
  font-family: var(--font-mono);
  font-size: 10px;
}

.system-clock {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  font-weight: 500;
}

/* ── 5. Spotlight Search Palette (⌘K) ──────────────────────── */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--spring-ease);
}
.spotlight-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.spotlight-modal {
  width: 90%;
  max-width: 580px;
  background: rgba(20, 22, 32, 0.92);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.25s var(--spring-ease);
}
.spotlight-overlay.open .spotlight-modal {
  transform: scale(1) translateY(0);
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.spotlight-search-icon {
  color: var(--apple-blue);
  flex-shrink: 0;
}
.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font-sans);
}
.spotlight-input::placeholder { color: var(--text-muted); }

.spotlight-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.spotlight-item:hover,
.spotlight-item.selected {
  background: var(--apple-blue);
  color: #fff;
}
.spotlight-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spotlight-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  opacity: 0.7;
}

/* ── 6. macOS Window Architecture & Traffic Lights ─────────── */
.macos-window {
  background: var(--bg-window);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--border-window);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--spring-ease), box-shadow 0.3s var(--spring-ease);
}
.macos-window:hover {
  box-shadow: 
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.window-header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  position: relative;
  transition: all 0.15s ease;
}
.traffic-light::before {
  opacity: 0;
  transition: opacity 0.15s;
}
.traffic-lights:hover .traffic-light::before {
  opacity: 1;
}

.traffic-red    { background: var(--traffic-red); }
.traffic-red::before { content: '×'; }
.traffic-yellow { background: var(--traffic-yellow); }
.traffic-yellow::before { content: '−'; font-weight: 900; }
.traffic-green  { background: var(--traffic-green); }
.traffic-green::before { content: '+'; font-size: 8px; }

.window-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ── 7. Page Container & Info Desk Sliding System ───────────── */
.main-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 44px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Interactive Sections Box (Slide Controller Desk) */
.sections-desk-controller {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px auto 14px auto;
  position: relative;
  z-index: 15;
}

.sections-pill-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.desk-pill-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 20, 30, 0.85);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--spring-ease);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  user-select: none;
}
.desk-pill-arrow:hover {
  color: #fff;
  border-color: rgba(0, 242, 254, 0.65);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.4), rgba(0, 242, 254, 0.25));
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(0, 242, 254, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.desk-pill-arrow:active {
  transform: scale(0.94);
}

.sections-box {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(18, 20, 30, 0.82);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 5px;
  position: relative;
  gap: 4px;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
}
.sections-box:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 242, 254, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.section-glider {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: 95px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.45), rgba(0, 242, 254, 0.3));
  border: 1px solid rgba(0, 242, 254, 0.65);
  box-shadow: 
    0 0 20px rgba(0, 242, 254, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.section-box-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--spring-ease);
  position: relative;
  z-index: 2;
  user-select: none;
  white-space: nowrap;
}
.section-box-item:hover,
.section-box-item.active {
  color: #ffffff;
}
.section-box-item.active {
  text-shadow: 0 0 14px rgba(0, 242, 254, 0.6);
}
.box-icon {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s var(--spring-ease);
}
.section-box-item:hover .box-icon {
  transform: scale(1.25);
}

/* Horizontal Sliding Info Desk Viewport */
.desk-slider-viewport {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 10px 0;
  height: 560px;
}

.desk-slider-track {
  display: flex;
  width: 600%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.desk-slide {
  width: 16.666667%;
  flex: 0 0 16.666667%;
  box-sizing: border-box;
  padding: 0 8px;
  height: 100%;
  opacity: 0.35;
  transform: scale(0.975);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.desk-slide.active-slide {
  opacity: 1;
  transform: scale(1);
}

/* Uniform Desk Window Architecture Across All 6 Slides */
.desk-slide .section {
  padding: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.desk-slide .hero-window {
  margin-top: 0;
}
.desk-slide .macos-window {
  height: 540px;
  min-height: 540px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Minimalist Glass Scrollbar for Desk Windows */
.finder-content::-webkit-scrollbar,
.finder-sidebar::-webkit-scrollbar,
.skills-wrapper::-webkit-scrollbar,
.terminal-body::-webkit-scrollbar,
.about-body::-webkit-scrollbar {
  width: 5px;
}
.finder-content::-webkit-scrollbar-track,
.finder-sidebar::-webkit-scrollbar-track,
.skills-wrapper::-webkit-scrollbar-track,
.terminal-body::-webkit-scrollbar-track,
.about-body::-webkit-scrollbar-track {
  background: transparent;
}
.finder-content::-webkit-scrollbar-thumb,
.finder-sidebar::-webkit-scrollbar-thumb,
.skills-wrapper::-webkit-scrollbar-thumb,
.terminal-body::-webkit-scrollbar-thumb,
.about-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}
.finder-content::-webkit-scrollbar-thumb:hover,
.finder-sidebar::-webkit-scrollbar-thumb:hover,
.skills-wrapper::-webkit-scrollbar-thumb:hover,
.terminal-body::-webkit-scrollbar-thumb:hover,
.about-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.45);
}

/* Floating Navigation Chevrons - Centered to uniform 540px desk */
.desk-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 22, 34, 0.88);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.25s var(--spring-ease);
  box-shadow: 
    0 10px 28px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.desk-nav-btn:hover {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.45), rgba(0, 242, 254, 0.3));
  border-color: rgba(0, 242, 254, 0.7);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 
    0 14px 34px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(0, 242, 254, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.desk-prev-btn { left: 8px; }
.desk-next-btn { right: 8px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── 8. Hero: macOS Interactive Terminal ───────────────────── */
.hero-window {
  margin-top: 24px;
}

.terminal-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: #e2e8f0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.term-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.term-prompt {
  color: var(--apple-green);
  font-weight: 700;
}
.term-path {
  color: var(--apple-cyan);
  font-weight: 500;
}
.term-symbol {
  color: var(--text-muted);
}
.term-cmd {
  color: #fff;
  font-weight: 500;
}

.term-output-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 10px 0 14px 0;
}

.term-name-hero {
  font-size: clamp(24px, 4vw, 36px);
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1.2;
}

.term-subtitle {
  font-size: 14px;
  color: var(--apple-cyan);
  font-weight: 500;
  margin-bottom: 14px;
}

.term-bio {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-family: var(--font-sans);
  margin-bottom: 16px;
}
.term-bio strong { color: #fff; }

.term-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.term-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: var(--text-secondary);
}

.term-interactive-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  flex: 1;
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--apple-green);
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.term-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.mac-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--spring-ease);
  letter-spacing: -0.01em;
}
.mac-btn-primary {
  background: linear-gradient(180deg, #0084ff, #0066cc);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.mac-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.mac-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.mac-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* ── 9. CP Monitor Window (Activity Monitor Style) ─────────── */
.desk-slide #slide-cp .macos-window {
  display: flex;
  flex-direction: column;
}

.cp-monitor-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.cp-card-wrapper {
  width: 100%;
  max-width: 680px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.cp-svg-link {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.25s var(--spring-ease), filter 0.25s ease;
}

.cp-svg-link:hover {
  transform: translateY(-2px) scale(1.008);
  filter: drop-shadow(0 14px 30px rgba(88, 166, 255, 0.18));
}

.cp-svg-mount {
  width: 100%;
  display: flex;
  justify-content: center;
}

.cp-svg-mount svg,
.cp-svg-mount img {
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(88, 166, 255, 0.08);
}

.cp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #21262d;
  padding-bottom: 14px;
}

.cp-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1c2129;
  border: 1px solid #30363d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cp-title-sub {
  font-weight: 400;
  color: #6e7681;
}

.cp-card-subtitle {
  font-size: 11px;
  color: #8b949e;
  margin-top: 2px;
}

/* Radar Pulse in Header */
.cp-radar-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 4px 26px;
  border-radius: 99px;
  background: #1c2129;
  border: 1px solid #30363d;
}

.sonar-core-dot {
  position: absolute;
  left: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 8px #3fb950;
}

.sonar-ring {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #3fb950;
  pointer-events: none;
}
.sonar-ring.ring-1 {
  animation: sonarWave 2s infinite ease-out;
}
.sonar-ring.ring-2 {
  animation: sonarWave 2s 1s infinite ease-out;
}

@keyframes sonarWave {
  0% {
    width: 7px;
    height: 7px;
    opacity: 0.85;
    left: 10px;
  }
  100% {
    width: 22px;
    height: 22px;
    opacity: 0;
    left: 2.5px;
  }
}

.cp-radar-text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  color: #3fb950;
  letter-spacing: 0.05em;
}

/* 4 Primary Stat Columns */
.cp-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 4px 0;
}

.stat-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-val {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-sans);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-blue {
  color: #58a6ff;
  text-shadow: 0 0 16px rgba(88, 166, 255, 0.4);
}

.stat-streak-flame {
  background: linear-gradient(135deg, #ff9f0a 0%, #ff375f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(255, 159, 10, 0.4));
}

.unit-days {
  font-size: 13px;
  font-weight: 500;
  color: #8b949e;
  -webkit-text-fill-color: #8b949e;
  margin-left: 3px;
}

.stat-green {
  color: #3fb950;
  text-shadow: 0 0 16px rgba(63, 185, 80, 0.4);
}

.unit-pct {
  font-size: 15px;
  font-weight: 600;
  margin-left: 1px;
}

.stat-white {
  color: #c9d1d9;
}

.stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #8b949e;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Segmented Laser Bar */
.segmented-laser-wrap {
  width: 100%;
}

.segmented-laser-track {
  width: 100%;
  height: 8px;
  background: #21262d;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
}

.laser-segment {
  height: 100%;
  transition: width 1s var(--spring-ease);
}
.seg-cf {
  background: #58a6ff;
}
.seg-cses {
  background: #3fb950;
}
.seg-ac {
  background: #d29922;
}
.seg-lc {
  background: #f0883e;
}
.seg-toph {
  background: #a371f7;
}

.laser-sweep-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  filter: blur(2px);
  animation: laserSweep 3s infinite linear;
  pointer-events: none;
}

@keyframes laserSweep {
  0% { transform: translateX(-100px); }
  100% { transform: translateX(700px); }
}

/* 5 Platform Pills with Blinking Animation */
.platform-pills-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.platform-pill {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  transition: border-color 0.2s, background 0.2s;
}
.platform-pill:hover {
  background: #1c2129;
  border-color: #58a6ff;
}

.platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  animation: dotBlink 1.8s infinite ease-in-out;
}

@keyframes dotBlink {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.5;
    box-shadow: 0 0 2px currentColor;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 8px currentColor, 0 0 14px currentColor;
  }
}

.dot-cf {
  background: #58a6ff;
  color: #58a6ff;
  animation-duration: 2s;
}
.dot-cses {
  background: #3fb950;
  color: #3fb950;
  animation-duration: 2.25s;
}
.dot-ac {
  background: #d29922;
  color: #d29922;
  animation-duration: 2.5s;
}
.dot-lc {
  background: #f0883e;
  color: #f0883e;
  animation-duration: 2.75s;
}
.dot-toph {
  background: #a371f7;
  color: #a371f7;
  animation-duration: 3s;
}

.platform-name {
  color: #8b949e;
  font-weight: 600;
  font-size: 11px;
}

.platform-val {
  margin-left: auto;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #e6edf3;
  font-size: 12px;
}

/* Subtle Footer */
.cp-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  font-size: 11px;
}

.cp-footer-left {
  color: #484f58;
  font-family: var(--font-sans);
}

.cp-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #58a6ff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: opacity 0.2s, gap 0.2s;
}
.cp-footer-link:hover {
  opacity: 0.85;
  gap: 7px;
}

/* ── 10. Projects: macOS Finder Style ──────────────────────── */
.finder-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.finder-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 12px;
  height: 100%;
  overflow-y: auto;
  user-select: none;
}

.sidebar-category-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  margin-bottom: 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: var(--apple-blue);
  color: #fff;
}

.finder-content {
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
  height: 100%;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.finder-content.single-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.finder-content.single-item .project-tile {
  width: 100%;
  max-width: 540px;
  min-height: 250px;
  margin: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 242, 254, 0.22);
}

.finder-content.single-item .project-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.4);
}

.project-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--spring-ease);
  position: relative;
}
.project-tile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.tile-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tile-type-pill {
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--apple-blue);
  border: 1px solid rgba(0, 122, 255, 0.25);
}
.tile-type-pill.pill-flutter {
  background: rgba(2, 86, 155, 0.15);
  color: #54c5f8;
  border: 1px solid rgba(84, 197, 248, 0.3);
}
.tile-type-pill.pill-bot {
  background: rgba(88, 101, 242, 0.15);
  color: #7983f5;
  border: 1px solid rgba(121, 131, 245, 0.3);
}
.tile-type-pill.pill-algo {
  background: rgba(175, 82, 222, 0.15);
  color: #d084f7;
  border: 1px solid rgba(208, 132, 247, 0.3);
}

.tile-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9d1d9;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.tile-source-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
  transform: translateY(-1px);
}

.tile-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.tile-title-link:hover .tile-title {
  color: var(--apple-cyan);
}

.tile-title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
  transition: color 0.2s ease;
}

.tile-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}
.tile-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.tile-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
  margin-top: auto;
  display: flex;
  align-items: center;
}

.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--apple-blue);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.tile-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-link svg {
  flex-shrink: 0;
}
.tile-link:hover {
  color: var(--apple-cyan);
  gap: 8px;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* ── 11. Skills: macOS System Settings Grid ────────────────── */
.skills-wrapper {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.skills-deck {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.25s var(--spring-ease);
  cursor: default;
}
.tech-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.4);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.tech-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.tech-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.tech-level {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── 12. Contact Card ──────────────────────────────────────── */
.contact-window {
  margin: 0;
}

.contact-body {
  padding: 40px 28px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-hero-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.contact-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.28s var(--spring-ease);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.contact-btn:hover {
  transform: translateY(-3px) scale(1.02);
  color: #ffffff;
}
.contact-btn-email {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(0, 242, 254, 0.12);
}
.contact-btn-email:hover {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.3), rgba(0, 242, 254, 0.25));
  border-color: rgba(0, 242, 254, 0.8);
  box-shadow: 0 8px 28px rgba(0, 122, 255, 0.4), 0 0 24px rgba(0, 242, 254, 0.45);
}
.contact-btn-github {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(168, 85, 247, 0.12);
}
.contact-btn-github:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.25));
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.4), 0 0 24px rgba(168, 85, 247, 0.45);
}
.contact-btn-cf {
  border-color: rgba(255, 159, 10, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 159, 10, 0.12);
}
.contact-btn-cf:hover {
  background: linear-gradient(135deg, rgba(255, 159, 10, 0.3), rgba(255, 69, 58, 0.25));
  border-color: rgba(255, 159, 10, 0.8);
  box-shadow: 0 8px 28px rgba(255, 159, 10, 0.4), 0 0 24px rgba(255, 159, 10, 0.45);
}

/* ── 13. Interactive 3D Card Tilt & Cursor Spotlight ───────── */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

.spotlight-card {
  position: relative;
}

/* Linear/Vercel-style Iridescent Glowing Border Beam on Hover */
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 242, 254, 0.65),
    rgba(168, 85, 247, 0.45),
    rgba(0, 122, 255, 0.2),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
.spotlight-card:hover::before {
  opacity: 1;
}

/* Soft Inner Glare */
.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 242, 254, 0.08),
    rgba(168, 85, 247, 0.04),
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.spotlight-card:hover::after {
  opacity: 1;
}

/* ── 14. Footer ────────────────────────────────────────────── */
.macos-footer {
  padding: 40px 0 60px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.macos-footer p { margin-bottom: 4px; }
.macos-footer a { color: var(--text-secondary); }
.macos-footer a:hover { color: var(--apple-blue); }

/* ── 8B. About Window: macOS System Information ──────────── */
.about-window {
  margin: 0;
}
.about-body {
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: center;
  flex: 1;
  overflow-y: auto;
}
.about-identity-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}
.about-avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 14px;
}
.about-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #007aff, #00f2fe, #bf5af2, #007aff);
  animation: rotateRing 8s linear infinite;
}
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.about-avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #141721;
  border: 3px solid #08090d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: var(--apple-cyan);
}
.about-name-hero {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.about-subtitle-hero {
  font-size: 12px;
  color: var(--apple-cyan);
  font-weight: 500;
  margin-bottom: 12px;
}
.about-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.25);
  font-size: 11px;
  color: var(--apple-blue);
  font-weight: 500;
}
.about-specs-pane {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.specs-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.spec-row {
  display: grid;
  grid-template-columns: 165px 1fr;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.5;
}
.spec-key {
  color: var(--text-secondary);
  font-weight: 500;
}
.spec-val {
  color: #fff;
  font-weight: 500;
}
.spec-val a {
  color: var(--apple-blue);
  transition: color 0.15s;
}
.spec-val a:hover {
  color: var(--apple-cyan);
  text-decoration: underline;
}

/* Terminal Interactive Log */
.term-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  max-height: 200px;
  overflow-y: auto;
}
.term-hist-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.term-hist-cmd {
  color: var(--apple-cyan);
  font-size: 13px;
  font-family: var(--font-mono);
}
.term-hist-out {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid rgba(0, 122, 255, 0.3);
  font-family: var(--font-mono);
}

/* ── 15. Responsive Design ─────────────────────────────────── */
@media (max-width: 860px) {
  .menubar-nav { display: none; }
  .about-body { grid-template-columns: 1fr; }
  .finder-layout { grid-template-columns: 1fr; }
  .finder-sidebar { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .cp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-deck { grid-template-columns: repeat(3, 1fr); }
  .spec-row { grid-template-columns: 145px 1fr; font-size: 12.5px; }
  .sections-box { padding: 4px; gap: 2px; }
  .section-box-item { padding: 7px 12px; font-size: 12px; }
  .desk-nav-btn { width: 38px; height: 38px; }
}

@media (max-width: 600px) {
  .sections-box {
    border-radius: 18px;
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .section-box-item {
    justify-content: center;
    padding: 8px 6px;
    font-size: 11.5px;
  }
  .section-glider { display: none; }
  .section-box-item.active {
    background: rgba(0, 122, 255, 0.35);
    border: 1px solid rgba(0, 242, 254, 0.5);
  }
  .desk-nav-btn { display: none; }
  .cp-stats-grid { grid-template-columns: 1fr; }
  .skills-deck { grid-template-columns: repeat(2, 1fr); }
  .term-cta-row { flex-direction: column; align-items: stretch; }
  .mac-btn { justify-content: center; }
  .contact-buttons { flex-direction: column; }
}

/* ── 16. Super Animated Hover Interactions ─────────────────── */
.spec-row {
  transition: transform 0.25s var(--spring-ease), background 0.25s ease, padding-left 0.25s ease;
  border-radius: 8px;
  padding: 8px 10px;
  position: relative;
}
.spec-row:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.04);
}
.spec-row:hover::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 2px;
  background: var(--apple-cyan);
  box-shadow: 0 0 10px var(--apple-cyan);
}

.project-tile {
  transition: transform 0.35s var(--spring-ease), box-shadow 0.35s var(--spring-ease), border-color 0.3s;
}
.project-tile:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 
    0 24px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 242, 254, 0.2);
}
.project-tile:hover .tile-title {
  color: var(--apple-cyan);
  transform: translateX(4px);
  transition: color 0.2s, transform 0.2s var(--spring-ease);
}

.tech-card {
  transition: transform 0.3s var(--spring-ease), box-shadow 0.3s var(--spring-ease), border-color 0.3s;
}
.tech-card:hover {
  transform: translateY(-8px) scale(1.06);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(0, 242, 254, 0.3);
}
.tech-card .tech-svg {
  transition: transform 0.3s var(--spring-ease);
}
.tech-card:hover .tech-svg {
  transform: scale(1.18) rotate(4deg);
}

.cp-widget {
  transition: transform 0.3s var(--spring-ease), box-shadow 0.3s var(--spring-ease), border-color 0.3s;
}
.cp-widget:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 242, 254, 0.25);
}

.mac-btn {
  transition: all 0.25s var(--spring-ease);
  position: relative;
  overflow: hidden;
}
.mac-btn:hover {
  transform: translateY(-3px) scale(1.03);
}
.mac-btn-primary:hover {
  box-shadow: 
    0 10px 28px rgba(0, 122, 255, 0.55),
    0 0 20px rgba(0, 242, 254, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.mac-btn-secondary:hover {
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(0, 242, 254, 0.25);
}

