/* ==========================================================================
   PAVAN POOJARY — PERSONAL PORTFOLIO
   High-performance developer tools, product stack & autonomous workflows.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Theme Tokens — Light Mode (Default) */
  --background: #ffffff;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --card-hover: #fcfcfd;
  --muted: #f4f4f5;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --primary: #09090b;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --ring: #3b82f6;

  /* Dock Tokens */
  --dock-bg: rgba(255, 255, 255, 0.45);
  --dock-border: rgba(0, 0, 0, 0.12);
  --dock-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --container-max: 680px;

  scrollbar-color: #cbd5e1 #ffffff;
}

/* Dark Mode Overrides */
html.dark,
html[data-theme="dark"] {
  color-scheme: dark;

  --background: #000000;
  --foreground: #f4f4f5;
  --card: #09090b;
  --card-foreground: #f4f4f5;
  --card-hover: #121215;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --border: rgba(255, 255, 255, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --primary: #ffffff;
  --primary-foreground: #000000;
  --secondary: #18181b;
  --secondary-foreground: #f4f4f5;
  --ring: #60a5fa;

  --dock-bg: rgba(10, 10, 12, 0.55);
  --dock-border: rgba(255, 255, 255, 0.15);
  --dock-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  scrollbar-color: #27272a #000000;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* SVG Global Defensive Reset */
svg {
  box-sizing: content-box;
  overflow: hidden;
  vertical-align: middle;
}

/* ==========================================================================
   FLOATING GLASS DOCK (Bottom Navigation)
   ========================================================================== */
.dock-outer {
  position: fixed;
  bottom: 1.5rem;
  top: auto;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

.dock-container {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 52px;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  padding: 0 0.625rem;
  background: var(--dock-bg);
  border: 1px solid var(--dock-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--dock-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dock-nav-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--muted-foreground);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.dock-item:hover {
  color: var(--foreground);
  background-color: rgba(125, 125, 125, 0.12);
}

.dock-item.active {
  color: var(--foreground);
}

/* Active indicator pill under active nav items */
.dock-active-pill {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 9999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dock-divider {
  width: 1px;
  height: 22px;
  background-color: var(--border);
  margin: 0 0.2rem;
  flex-shrink: 0;
}

.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--foreground);
  color: var(--background);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}

.dock-item:hover .dock-tooltip,
.dock-item:focus-visible .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .dock-outer {
    bottom: 0.875rem;
    top: auto;
    padding: 0 0.25rem;
  }
  .dock-container {
    height: 44px;
    padding: 0 0.4rem;
    gap: 0.15rem;
    width: max-content;
    max-width: calc(100vw - 0.5rem);
  }
  .dock-nav-group {
    gap: 0.1rem;
  }
  .dock-item {
    width: 30px;
    height: 30px;
  }
  .dock-item svg {
    width: 16px;
    height: 16px;
  }
  .dock-divider {
    height: 16px;
    margin: 0 0.1rem;
  }
}

/* ==========================================================================
   MAIN CONTAINER & TYPOGRAPHY
   ========================================================================== */
.main-wrapper {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .main-wrapper {
    padding: 4.5rem 1.5rem 4rem;
    gap: 3rem;
  }
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   HERO & ABOUT SECTION
   ========================================================================== */
.hero-header {
  width: 100%;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.hero-text-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem;
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

.wave-hand {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.2s infinite;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.hero-avatar-container {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

.hero-avatar-wrap {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero-avatar-cat {
  position: absolute;
  top: calc(100% - 12px);
  left: 63%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 50% 15%;
}

.hero-avatar-cat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-avatar-container:hover .hero-avatar-cat {
  transform: translateX(-50%) translateY(3px) rotate(4deg) scale(1.05);
}

@media (min-width: 640px) {
  .hero-avatar-container {
    width: 112px;
    height: 112px;
  }
  .hero-avatar-cat {
    width: 46px;
    height: 46px;
    top: calc(100% - 13px);
    left: 63%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .hero-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100%;
  }
  .hero-text-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero-title {
    font-size: 1.35rem !important;
    line-height: 1.15;
  }
  .wave-hand svg {
    width: 22px;
    height: 22px;
  }
  .hero-subtitle {
    font-size: 0.8125rem;
    line-height: 1.35;
    overflow-wrap: break-word;
  }
  .hero-avatar-container {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
  }
  .hero-avatar-cat {
    width: 32px !important;
    height: 32px !important;
    top: calc(100% - 9px) !important;
    left: 63% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

.hero-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-paragraph {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.about-paragraph a {
  color: var(--foreground);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.about-paragraph a:hover {
  color: var(--ring);
}

/* ==========================================================================
   SKIPER-UI / SKIPER49 INVERTED PERSPECTIVE COVERFLOW CAROUSEL
   ========================================================================== */
.skiper49-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  overflow: visible;
}

.skiper49-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.skiper49-title-group h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.skiper49-title-group p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.skiper49-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skiper49-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.4);
}

.skiper49-btn:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.skiper49-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* Swiper Container */
.skiper49-swiper {
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.skiper49-slide {
  background-position: center;
  background-size: cover;
  width: 310px;
  max-width: 85vw;
  height: 400px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .skiper49-slide {
    width: 350px;
    height: 410px;
  }
}

/* Slide Card Content */
.skiper49-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.skiper49-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.skiper49-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.skiper49-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.skiper49-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.skiper49-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.skiper49-card-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.skiper49-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main);
  opacity: 0.9;
  flex-grow: 1;
}

.skiper49-card-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skiper49-pagination {
  position: absolute;
  bottom: 0.5rem !important;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.skiper49-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--muted-foreground);
  opacity: 0.4;
  transition: all 0.2s ease;
  border-radius: var(--radius-full);
}

.skiper49-pagination .swiper-pagination-bullet-active {
  width: 22px;
  background: var(--text-main);
  opacity: 1;
  border-radius: 4px;
}

/* Video Controls & Tactile Neobrutalist Button */
.video-controls {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.tactile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--foreground);
  cursor: pointer;
  box-shadow: 4px 4px 0px 0px var(--foreground);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.tactile-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0px 0px var(--foreground);
}

.tactile-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px var(--foreground);
}

/* ==========================================================================
   SECTION HEADINGS & LAYOUT
   ========================================================================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   PRODUCTS & CASE STUDY CARDS ("Things I've Built")
   ========================================================================== */
.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.built-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.built-card:hover {
  transform: translateY(-2px);
  border-color: var(--foreground);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.built-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.built-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.built-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.built-footer {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tech-tag {
  font-size: 0.6875rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-family: var(--font-mono);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  min-height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.card-action-link:hover {
  opacity: 0.88;
}

.card-action-link.secondary-link {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

/* ==========================================================================
   CONTACT SECTION & CAL.COM INTEGRATION
   ========================================================================== */
.contact-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.contact-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.contact-sub {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  max-width: 520px;
}

.contact-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.contact-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.contact-badge-btn:hover {
  transform: translateY(-1px);
  border-color: var(--foreground);
  background-color: var(--muted);
}

/* ==========================================================================
   BLOG & PORTFOLIO PAGES (Client-Side Tabs)
   ========================================================================== */
.view-section {
  display: none;
}

.view-section.active-view {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: fadeIn 0.3s ease;
}

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

.view-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.view-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.view-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* Blog Article Cards */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.125rem;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--foreground);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.blog-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.blog-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-pin-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.blog-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.blog-summary {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ==========================================================================
   3D FLOATING RESUME FOLDER BUTTON & MODAL
   ========================================================================== */
.floating-resume-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
}

@media (max-width: 640px) {
  .floating-resume-wrap {
    bottom: 6.25rem;
    right: 1rem;
  }
}

.resume-btn-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  perspective: 400px;
}

.resume-btn-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.resume-btn-pill:active {
  transform: scale(0.97);
}

/* 3D Interactive CSS Folder */
.folder-3d-box {
  position: relative;
  width: 28px;
  height: 20px;
  transform-style: preserve-3d;
}

.folder-back {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.folder-tab {
  position: absolute;
  top: -3px;
  left: 2px;
  width: 10px;
  height: 5px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

.folder-sheet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  width: 20px;
  height: 12px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  opacity: 0;
  z-index: 4;
}

.folder-front {
  position: absolute;
  inset: 0;
  bottom: 0;
  height: 85%;
  top: auto;
  border-radius: 3px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  transform-origin: bottom center;
  transform: rotateX(-20deg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.resume-btn-pill:hover .folder-front {
  transform: rotateX(-45deg);
}

.resume-btn-pill:hover .folder-sheet {
  transform: translateX(-50%) translateY(-6px);
  opacity: 1;
}

/* Resume Modal Dialog */
.resume-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.resume-dialog-backdrop.show {
  display: flex;
}

.resume-modal {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title-text {
  font-size: 0.9375rem;
  font-weight: 600;
}

.modal-subtitle-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--muted);
  color: var(--foreground);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.modal-close-btn:hover {
  opacity: 0.8;
}

.modal-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  overflow-y: auto;
}

.modal-chooser-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-chooser-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-chooser-title p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.resume-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 540px) {
  .resume-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resume-choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}

.resume-choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--foreground);
  background: var(--card-hover);
}

.resume-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
}

.resume-choice-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.resume-choice-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.resume-viewer-wrap {
  width: 100%;
  height: 70vh;
  display: none;
  flex-direction: column;
}

.resume-viewer-wrap.active {
  display: flex;
}

.resume-sheet {
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.resume-sheet-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

@media (min-width: 600px) {
  .resume-sheet-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.resume-sheet-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.resume-sheet-role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.resume-sheet-contact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
}

.resume-sheet-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.resume-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.resume-section-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-main);
}

.resume-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resume-product-item {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
}

.resume-item-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.resume-item-top span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.resume-product-item p {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.resume-sheet-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* ==========================================================================
   A11Y FOCUS & SCROLLBAR
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Footer note */
.page-footer {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}
