/* ==========================================================================
   MACOS DESIGN SYSTEM & CSS VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-dark: #090a10;
  --bg-modal: rgba(28, 29, 36, 0.88);
  --bg-chrome: rgba(38, 40, 50, 0.85);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-dock: rgba(255, 255, 255, 0.18);
  --bg-menubar: rgba(20, 22, 28, 0.72);
  --bg-input: rgba(0, 0, 0, 0.35);
  --bg-input-focus: rgba(0, 0, 0, 0.55);

  /* Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-bright: rgba(255, 255, 255, 0.22);
  --border-focus: #3b82f6;

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Accents */
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-purple: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;

  /* Shadows */
  --shadow-window: 0 35px 80px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  --shadow-dock: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.25);
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.25);

  /* Animation Timings */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-system);
  color: var(--text-main);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* ==========================================================================
   DESKTOP WALLPAPER & CANVAS BACKGROUND
   ========================================================================== */
:root {
  /* Wallpaper: default scenic rolling green hills landscape matching Image 3 */
  --desktop-wallpaper: url('background.jpg');
}

.portfolio-canvas {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-system);
  color: var(--text-main);
  background-color: #2b5536;
  background-image: 
    var(--desktop-wallpaper),
    url('background.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

/* ==========================================================================
   1. CANVAS STAGE & CENTER HEADLINE (Image 3)
   ========================================================================== */
.canvas-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.stage-center-headline {
  text-align: left;
  transform: translateY(-24px);
  pointer-events: none;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.headline-giant {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  font-size: clamp(52px, 8vw, 122px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  user-select: none;
  position: relative;
}

.headline-row {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  white-space: nowrap;
}

.headline-text {
  display: inline-block;
  line-height: 0.88;
}

.headline-row-1 {
  position: relative;
  margin-bottom: 0.02em;
}

.headline-row-2 {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.02em;
}

.headline-row-3 {
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.02em;
}

.headline-row-4 {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* ==========================================================================
   2.1 PLAYFUL DESIGN STICKERS / BADGES (Image Reference)
   ========================================================================== */
.hero-sticker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 0.9vw, 14px) clamp(20px, 2vw, 32px) clamp(8px, 0.9vw, 14px) clamp(52px, 4.8vw, 68px);
  border-radius: 16px 6px 16px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1.45vw, 22px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.26s ease;
  z-index: 10;
}

.hero-sticker:hover {
  box-shadow: 
    0 20px 42px rgba(0, 0, 0, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.16);
}

/* Circular Icon Badge hanging off top-left edge */
.sticker-circle-badge {
  position: absolute;
  top: clamp(-16px, -1.3vw, -20px);
  left: clamp(10px, 1.1vw, 15px);
  width: clamp(38px, 3.2vw, 48px);
  height: clamp(38px, 3.2vw, 48px);
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sticker-circle-badge svg {
  width: 54%;
  height: 54%;
  display: block;
}

/* Metallic Paperclip graphic */
.sticker-paperclip-wrap {
  position: absolute;
  top: clamp(-20px, -1.6vw, -24px);
  left: clamp(56px, 4.8vw, 72px);
  width: clamp(20px, 1.7vw, 26px);
  height: clamp(34px, 2.9vw, 44px);
  transform: rotate(25deg);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

.sticker-paperclip {
  width: 100%;
  height: 100%;
  display: block;
}

/* Top-Right Dog-Ear Folded Corner */
.sticker-dogear-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(18px, 1.5vw, 24px);
  height: clamp(18px, 1.5vw, 24px);
  pointer-events: none;
  z-index: 5;
}

.sticker-dogear {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sticker 1: UI/UX Design (Lime Green) */
.sticker-uiux {
  position: absolute;
  right: clamp(-30px, -2vw, -10px);
  bottom: 74%;
  background: #f1f8ed;
  color: #172412;
  transform: rotate(-7.5deg);
  z-index: 15;
}

.sticker-uiux:hover {
  transform: rotate(-5deg) translateY(-4px) scale(1.04);
}

.sticker-uiux .badge-green {
  background: #7ec815;
  box-shadow: 0 4px 14px rgba(126, 200, 21, 0.5);
}

/* Sticker 2: Illustration (Magenta / Orchid Pink) */
.sticker-illustration {
  background: #faf0f8;
  color: #271226;
  transform: rotate(-4.5deg);
  margin-left: auto;
  margin-right: clamp(-8px, -0.6vw, 0px);
  z-index: 14;
}

.sticker-illustration:hover {
  transform: rotate(-2.5deg) translateY(-4px) scale(1.04);
}

.sticker-illustration .badge-magenta {
  background: #d946ef;
  box-shadow: 0 4px 14px rgba(217, 70, 239, 0.5);
}

/* Sticker 3: 3D Design (Royal Purple) */
.sticker-3d {
  background: #f2effb;
  color: #1a162b;
  transform: rotate(-7deg);
  margin-left: clamp(-18px, -1.5vw, -6px);
  margin-right: clamp(-28px, -2.4vw, -16px);
  z-index: 16;
}

.sticker-3d:hover {
  transform: rotate(-5deg) translateY(-4px) scale(1.04);
}

.sticker-3d .badge-purple {
  background: #7c3aed;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.5);
}

.word-people {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   3. TOP-LEFT FLOATING PROFILE CARD / PILL (Image 1 & 2)
   ========================================================================== */
.floating-profile-card {
  position: fixed;
  top: 26px;
  left: 30px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  border-radius: 34px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  z-index: 150;
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 460px;
  overflow: hidden;
}

.card-pill-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 12px;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.pill-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  background: #0284c7;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.pill-avatar-img,
.pill-avatar-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.pill-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pill-status-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-emerald-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.status-text {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.pill-role-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Expandable Drawer (Image 2) */
.card-pill-drawer {
  max-height: 0;
  opacity: 0;
  padding: 0 22px;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.35s ease;
  overflow: hidden;
}

/* Hover or Click to expand into Image 2 card */
.floating-profile-card:hover,
.floating-profile-card.expanded {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.24);
}

.floating-profile-card:hover .card-pill-drawer,
.floating-profile-card.expanded .card-pill-drawer {
  max-height: 180px;
  opacity: 1;
  padding: 4px 22px 20px 22px;
}

.drawer-bio {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.drawer-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.tag-sep {
  opacity: 0.6;
}

/* ==========================================================================
   4. BOTTOM-LEFT QUOTE (Image 3)
   ========================================================================== */
.stage-bottom-left-quote {
  position: fixed;
  bottom: 34px;
  left: 34px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  z-index: 100;
  pointer-events: auto;
}

.quote-dash {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.quote-body {
  display: flex;
  flex-direction: column;
}

.quote-lead {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.quote-sub {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   5. MODAL OVERLAY & MACOS WINDOW APP SYSTEM
   ========================================================================== */
/* ==========================================================================
   5. LIGHT & WHIMSICAL MODAL SYSTEM (Inspired by References)
   ========================================================================== */
/* Daylight translucent backdrop overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Light & Whimsical macOS Modal Window */
.macos-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(880px, 92vw);
  max-height: 86vh;
  background-color: #faf9f5;
  /* Whimsical Graph Paper Grid (Image 2 & 3) */
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: 24px;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 25px 65px -15px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  display: flex;
  flex-direction: column;
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
  color: #1e293b;
}

/* Active animated open state */
.macos-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Window Chrome / Titlebar (Light Frosted) */
.window-chrome {
  height: 48px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  cursor: grab;
}

.window-controls {
  display: flex;
  align-items: center;
  width: 32px;
}

/* Minimalist Window Close Button */
.traffic-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: all 0.15s ease;
}

.traffic-btn svg {
  width: 8px;
  height: 8px;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.traffic-btn:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.traffic-btn.close {
  background-color: #ff5f56;
  border: 0.5px solid #e0443e;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.25);
}

.traffic-btn.close:hover {
  filter: brightness(0.92);
  transform: scale(1.12);
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

.window-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f172a;
  text-align: center;
  flex-grow: 1;
}

.window-spacer {
  width: 32px;
}

/* Modal Scrollable Body */
.window-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 36px;
}

/* Custom sleek scrollbar */
.modal-scroll-content::-webkit-scrollbar {
  width: 8px;
}

.modal-scroll-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.14);
  border-radius: 10px;
}

.modal-scroll-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   WHIMSICAL TAPE STICKER (Images 2, 3, 4)
   ========================================================================== */
.whimsy-tape-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0ea5e9;
  color: #ffffff;
  padding: 7px 16px 7px 13px;
  border-radius: 22px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: rotate(-2.5deg);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.32);
  margin-bottom: 12px;
  width: fit-content;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.whimsy-tape-sticker:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.sticker-pin {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  transform: rotate(10deg);
}

.sticker-label {
  font-weight: 800;
  line-height: 1;
}

/* ==========================================================================
   ABOUT MODAL CONTENT (Light & Whimsical)
   ========================================================================== */
.about-container {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 38px;
  align-items: start;
}

/* ==========================================================================
   POLAROID PROFILE PICTURE FRAME (Whimsical Analog Style)
   ========================================================================== */
.about-photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 14px;
}

/* Authentic Polaroid Card Frame */
.about-photo-card {
  position: relative;
  background: #ffffff;
  width: 270px;
  padding: 15px 15px 24px 15px;
  border-radius: 3px;
  /* Multi-layered paper drop shadow for physical analog feel */
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 14px 32px -4px rgba(15, 23, 42, 0.16),
    0 24px 44px -8px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  /* Playful whimsical tilt like it was taped to the desk */
  transform: rotate(-3.5deg);
  transform-origin: center 10px;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

/* Cute Translucent Washi Tape Strip pinned to the top */
.about-photo-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  width: 95px;
  height: 26px;
  background: rgba(254, 240, 138, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-left: 2px dashed rgba(202, 138, 4, 0.35);
  border-right: 2px dashed rgba(202, 138, 4, 0.35);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  z-index: 10;
  pointer-events: none;
  opacity: 0.95;
}

/* Interactive Hover State: Smooth lift & straighten */
.about-photo-card:hover {
  transform: rotate(0deg) scale(1.03) translateY(-4px);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 22px 42px -6px rgba(15, 23, 42, 0.22),
    0 34px 56px -10px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Polaroid Photo Emulsion Aperture (Square, Glossy Film Look) */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #e0f2fe 0%, #fef3c7 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 
    inset 0 0 0 1px rgba(0, 0, 0, 0.06), 
    inset 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle Film Gloss & Vignette Sheen */
.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.05) 38%,
    transparent 58%,
    rgba(0, 0, 0, 0.07) 100%
  );
  pointer-events: none;
}

.photo-avatar-img,
.photo-avatar-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Handwritten Polaroid Chin / Caption */
.polaroid-caption {
  width: 100%;
  padding-top: 16px;
  padding-bottom: 2px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polaroid-caption-text {
  font-family: 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.01em;
  transform: rotate(-1.5deg);
  display: inline-block;
  line-height: 1.1;
  text-shadow: 0 0.5px 0.5px rgba(0, 0, 0, 0.1);
}

/* Description About Me on Right */
.about-bio-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bio-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
}

.bio-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 4px 0 6px 0;
}

.bio-tagline {
  font-size: 16px;
  line-height: 1.5;
  color: #475569;
  font-weight: 500;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
}

.about-action-bar {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Friendly Buttons */
.macos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.macos-btn.primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.macos-btn.primary:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.macos-btn.secondary {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.macos-btn.secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* ==========================================================================
   5. CONTACT MODAL CONTENT (Light & Whimsical)
   ========================================================================== */
#contactModal {
  width: min(580px, 92vw);
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-header-text {
  text-align: center;
}

.contact-subheading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 6px;
}

.contact-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
}

/* Form Styles as sketched: Name, Email, and Message */
.macos-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
}

.input-container {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-input:focus,
.form-textarea:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.form-submit-btn {
  flex: 1;
}

.form-feedback-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

.form-feedback-message.success {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #047857;
}

.form-feedback-message.error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
}

.contact-alt-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1.5px dashed #e2e8f0;
}

.alt-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.alt-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.alt-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.alt-val {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}

/* ==========================================================================
   6. SERVICES MODAL CONTENT (Light & Whimsical Bento Grid & FAQs)
   ========================================================================== */
#servicesModal {
  width: min(960px, 94vw);
}

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6366f1;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 6px 0 6px 0;
}

.section-intro {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.5;
}

/* Bento Grid System - Whimsical Pastel Cards */
.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 0.95fr;
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}

.bento-card {
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Bento Card Shapes on Desktop */
.bento-tall {
  grid-row: span 2;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
}

.bento-wide {
  grid-column: 2;
}

.bento-compact {
  grid-column: 3;
}

/* Color palettes & styling for individual cards */
/* Card 1: Bento Tall (Full-Stack / Modern Web) - Pastel Rose / Peach */
.bento-tall .bento-badge {
  background: #ffffff;
  border: 1px solid #fecdd3;
  color: #e11d48;
  box-shadow: 0 2px 4px rgba(225, 29, 72, 0.08);
}

.bento-tall .bento-icon {
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  color: #e11d48;
}

.bento-tall .bento-features li {
  color: #334155;
}

.bento-tall .bento-features li::before {
  content: "✓";
  color: #e11d48;
  font-weight: 800;
}

.bento-tall .bento-pill {
  background: #ffffff;
  border: 1px solid #fecdd3;
  color: #be123c;
}

/* Card 2: Bento Wide Top (UI/UX) - Pastel Sky Blue */
.bento-card:nth-child(2) {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
}

.bento-card:nth-child(2) .bento-icon {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
}

.bento-card:nth-child(2) .bento-pill {
  background: #ffffff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

/* Card 3: Bento Compact Top (Performance Tuning) - Pastel Mint / Sage */
.bento-card:nth-child(3) {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
}

.bento-card:nth-child(3) .bento-icon {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* Card 4: Bento Wide Bottom (System Architecture) - Pastel Butter Yellow */
.bento-card:nth-child(4) {
  background: #fefce8;
  border: 1.5px solid #fef08a;
}

.bento-card:nth-child(4) .bento-icon {
  background: #fef9c3;
  border: 1px solid #fef08a;
  color: #ca8a04;
}

.bento-card:nth-child(4) .bento-pill {
  background: #ffffff;
  border: 1px solid #fef08a;
  color: #a16207;
}

/* Card 5: Bento Compact Bottom (Code Reviews) - Pastel Lilac / Lavender */
.bento-card:nth-child(5) {
  background: #faf5ff;
  border: 1.5px solid #e9d5ff;
}

.bento-card:nth-child(5) .bento-icon {
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #9333ea;
}

.bento-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.bento-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.bento-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}

.bento-features {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-features li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.bento-card-footer,
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.bento-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* FAQ Accordion Section - Whimsical Pastel Pills with Circular Badge Toggle */
.faq-section {
  padding-top: 28px;
  border-top: 1.5px dashed #cbd5e1;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ Cards with borders & background color inspired by Reference Image 3 */
.faq-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Whimsical subtle pastel accents on individual FAQ cards */
.faq-card:nth-child(1),
.faq-card:nth-child(1).open {
  background: #fff5f5;
  border-color: #fecdd3;
}

.faq-card:nth-child(2),
.faq-card:nth-child(2).open {
  background: #f7fee7;
  border-color: #d9f99d;
}

.faq-card:nth-child(3),
.faq-card:nth-child(3).open {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.faq-card:nth-child(4),
.faq-card:nth-child(4).open {
  background: #fefce8;
  border-color: #fef08a;
}

.faq-question-btn {
  width: 100%;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.faq-answer-pane {
  border-top: 1px dashed #e2e8f0;
}

.faq-answer-inner {
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

/* ==========================================================================
   7. MACOS FLOATING DOCK (Sketch Homepage #5 & #6)
   ========================================================================== */
.macos-dock-wrapper {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1700;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Hide dock completely when any app is opened */
body.app-modal-open .macos-dock-wrapper,
.modal-overlay.active ~ .macos-dock-wrapper {
  transform: translateY(180%);
  opacity: 0;
  pointer-events: none;
}

.macos-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  border-radius: 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.3s var(--ease-spring);
}

/* Dock Hover: only lift the hovered icon smoothly */
.dock-item {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring);
}

.dock-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease-spring), filter 0.15s ease;
}

.dock-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dock-item:hover {
  transform: translateY(-6px) scale(1.1);
}

.dock-item:active .dock-icon {
  transform: scale(0.94);
}

/* Tooltip */
.dock-tooltip {
  position: absolute;
  top: -34px;
  background: rgba(20, 22, 28, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Running App Indicator Dot (positioned absolutely so all icons stay on exact same level) */
.dock-active-dot {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dock-active-dot.active {
  opacity: 1;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 860px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .about-photo-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
  }
  
  .about-photo-card {
    width: 240px;
  }

  .quick-facts {
    flex: 1;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .bento-tall,
  .bento-wide,
  .bento-compact,
  .bento-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: auto;
  }

  .floating-profile-card {
    top: 18px;
    left: 18px;
  }

  .stage-bottom-left-quote {
    bottom: 96px;
    left: 20px;
  }
}

@media (max-width: 600px) {
  .floating-profile-card {
    top: 14px;
    left: 14px;
    right: 14px;
    max-width: none;
  }

  .pill-role-text {
    font-size: 13px;
  }

  .canvas-top-header {
    display: none;
  }

  .stage-bottom-left-quote {
    display: none;
  }

  .stage-center-headline {
    padding: 0 14px;
    transform: translateY(-16px);
  }

  .headline-giant {
    font-size: clamp(34px, 8.8vw, 46px);
    line-height: 0.90;
  }

  .hero-sticker {
    padding: 5px 12px 5px 28px;
    font-size: 11px;
    border-radius: 10px 4px 10px 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  }

  .sticker-circle-badge {
    width: 22px;
    height: 22px;
    top: -9px;
    left: 7px;
    border-width: 1.8px;
  }

  .sticker-circle-badge svg {
    width: 12px;
    height: 12px;
  }

  .sticker-paperclip-wrap {
    top: -12px;
    left: 30px;
    width: 13px;
    height: 22px;
  }

  .sticker-dogear-wrap {
    width: 12px;
    height: 12px;
  }

  .sticker-uiux {
    right: -8px;
    bottom: 76%;
  }

  .sticker-3d {
    margin-left: -6px;
    margin-right: -12px;
  }

  .dock-icon {
    width: 44px;
    height: 44px;
  }

  .window-body {
    padding: 20px 16px;
  }

  .contact-alt-methods {
    grid-template-columns: 1fr;
  }

  .about-photo-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
  }

  .about-photo-card {
    width: 220px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bento-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .bento-title {
    font-size: 16.5px;
  }

  .bento-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .bento-features {
    margin: 12px 0;
    gap: 6px;
  }

  .bento-features li {
    font-size: 12.5px;
  }

  .bento-badge {
    top: 14px;
    right: 14px;
    font-size: 10px;
    padding: 3px 8px;
  }

  .bento-card-footer,
  .bento-tags {
    margin-top: 12px;
  }

  .services-wrapper {
    gap: 32px;
  }
}
