/* ============================
   CSS RESET & BASE
   ============================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}

:root {
  /* Colors — dark theme matching Figma */
  --bg-primary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-border: #252525;
  --border-hover: #3d3d3d;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b6b;
  --accent-blue: #1D9BF0;
  --divider: #252525;
  --btn-border: #333333;
  --btn-hover: #1e1e1e;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container-max-width: 900px;
  --section-padding: 80px 0;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-card: #f5f5f5;
  --bg-card-border: #e0e0e0;
  --border-hover: #c2c2c2;
  --text-primary: #111111;
  --text-secondary: #333333;
  --text-muted: #888888;
  --divider: #e0e0e0;
  --btn-border: #ccccca;
  --btn-hover: #ebebeb;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* ============================
   LAYOUT
   ============================ */
.portfolio {
  width: 100%;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  padding: 80px 0 60px;
}

/* Avatar Photo Stack (tanvir.io hover fanned photo deck effect) */
.avatar-stack-container {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  cursor: pointer;
}

.avatar-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: scale(0.4) rotate(0deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
}

.avatar-main-card {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.avatar-img {
  width: 72px;
  height: 72px;
  /* Squircle shape matching reference image */
  border-radius: 20px;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Tight 4-Card Fanned Deck State — matching user reference screenshot */
.avatar-stack-container:hover .avatar-main-card {
  transform: scale(1.02);
}

/* card-1: bottom-left card */
.avatar-stack-container:hover .card-1 {
  opacity: 1;
  transform: translate(-34px, -8px) rotate(-16deg) scale(0.96);
  transition-delay: 0.00s;
}

/* card-2: top-left card */
.avatar-stack-container:hover .card-2 {
  opacity: 1;
  transform: translate(-22px, -42px) rotate(-8deg) scale(0.96);
  transition-delay: 0.04s;
}

/* card-3: top-right card */
.avatar-stack-container:hover .card-3 {
  opacity: 1;
  transform: translate(20px, -44px) rotate(12deg) scale(0.96);
  transition-delay: 0.08s;
}

/* card-4: mid-right card */
.avatar-stack-container:hover .card-4 {
  opacity: 1;
  transform: translate(34px, -8px) rotate(16deg) scale(0.96);
  transition-delay: 0.12s;
}


/* Name Row */
.identity {
  margin-bottom: 24px;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.verified-badge {
  flex-shrink: 0;
  overflow: visible;
}

.title {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

/* Bio */
.bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 630px;
  margin-bottom: 24px;
  text-wrap: pretty;
}

/* Location */
.location-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.location-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.flag-icon {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

/* Action Buttons */
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #111111;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.btn-resume:hover {
  background-color: #e8e8e8;
  border-color: #e8e8e8;
}

[data-theme="light"] .btn-resume {
  color: #ffffff;
  background: #2D2D2D;
  border-color: #2D2D2D;
}

[data-theme="light"] .btn-resume:hover {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-icon:hover {
  background-color: transparent;
  transform: translateY(-2px);
}

#btn-email:hover {
  color: #ffffff;
}

[data-theme="light"] #btn-email:hover {
  color: #000000;
}

#btn-linkedin:hover {
  color: #0a66c2;
}

#btn-x:hover {
  color: #000000;
}

[data-theme="dark"] #btn-x:hover {
  color: #ffffff;
}

#btn-whatsapp:hover {
  color: #25d366;
}

/* ============================
   EXPERIENCE SECTION
   ============================ */
.experience {
  padding: var(--section-padding);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 48px;
}

/* Experience Table */
.experience-table {
  width: 100%;
}

.experience-header {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 120px;
  padding-bottom: 12px;
}

.experience-header span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.col-summary {
  padding-left: 0;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--divider);
}

/* Experience Row */
.experience-row {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 120px;
  padding: 24px 0;
}

.exp-period {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  min-height: 146px;
}

.exp-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-role-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.exp-role {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.exp-at {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
}

.exp-company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.exp-company:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.company-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.company-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.exp-company:hover .company-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.exp-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 430px;
}

/* ============================
   PROJECTS SECTION
   ============================ */
.projects {
  padding: 40px 0 80px;
}

.projects-subtitle {
  max-width: 400px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.project-card:hover {
  transform: translateY(-6px);
  cursor: none;
}

.project-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  transform: scale(0.88) translateY(35px);
  opacity: 0.4;
  transition: transform 0.15s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.15s linear;
  will-change: transform, opacity;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.project-card:hover .project-image {
  transform: scale(1.035);
}

.project-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.project-desc {
  font-family: 'Inter', "Inter Fallback", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 22.4px;
  color: var(--text-secondary);
  max-width: 846px;
}

.project-card:active {
  transform: scale(0.985);
  transition: transform 0.1s ease;
}

.project-cta {
  display: none;
}

@media (max-width: 960px) {
  .project-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.75;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), gap 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .project-card:active .project-cta {
    opacity: 1;
    gap: 10px;
  }

  .project-cta svg {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Explore Cursor */
.explore-cursor {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #000000;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-family);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  border: 1px solid #333;
}

.explore-cursor.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.explore-cursor svg {
  flex-shrink: 0;
}

/* ============================
   CRAFT SECTION (Figma Design)
   ============================ */
.craft {
  padding: 40px 0 80px;
}

.craft-marquee-container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.craft-marquee-container::-webkit-scrollbar {
  display: none;
}

.craft-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.craft-card {
  flex-shrink: 0;
  width: 480px;
  aspect-ratio: 4 / 3;
  background-color: transparent;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.craft-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.craft-media-box {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  background-color: #111111;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .craft-media-box {
  background-color: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.craft-card:hover .craft-media-box {
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .craft-card:hover .craft-media-box {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.craft-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

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



@media (max-width: 768px) {
  .craft-card {
    width: 340px;
  }
  .craft-marquee-container {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  .craft-marquee-track {
    gap: 16px;
  }
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ============================
   CONTACT / FOOTER SECTION
   ============================ */
.contact {
  padding: 60px 0 80px;
}

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

.contact-cta {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 32px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-family);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 228px;
}

.btn-dark {
  background-color: #222;
  color: #ffffff;
  border: 1px solid #333;
}

.btn-dark:hover {
  background-color: #2a2a2a;
  border-color: #444;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid #444;
}

.btn-outline:hover {
  background-color: var(--btn-hover);
  border-color: #555;
}

/* Footer Info */
.footer-info {
  border-top: 1px solid var(--divider);
  padding-top: 32px;
  text-align: left;
  max-width: 496px;
  margin: 0 auto;
  padding-left: 16px;
}

.footer-updated {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-location {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-dot {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 6px;
}

.footer-email-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.footer-email-wrapper:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-email-btn {
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: color 0.2s ease;
}

.footer-email-wrapper:hover .footer-email-btn,
.footer-email-btn:hover {
  color: var(--text-secondary);
}

.copy-icon {
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-email-wrapper:hover .copy-icon {
  color: var(--text-secondary);
  transform: scale(1.1);
}

.copy-icon-success {
  display: none;
  animation: popIn 0.25s ease cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-email-wrapper.copied .copy-icon {
  display: none;
}

.footer-email-wrapper.copied .copy-icon-success {
  display: inline-block;
}

.footer-email-wrapper.copied .footer-email-btn,
.footer-email-wrapper.copied .copy-icon-success {
  color: var(--text-primary);
}

/* Tooltip Badge */
.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.9);
  background-color: #1f2937;
  color: #ffffff;
  border: 1px solid #374151;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

.copy-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .experience-header {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .col-summary {
    display: none;
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .exp-period {
    min-height: auto;
  }

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

  .section-description {
    max-width: 100%;
  }

  .bio {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 18px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-contact {
    width: 100%;
    min-width: auto;
  }
}



/* ============================
   SCROLL REVEAL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.4s; }

/* ============================================================
   HAMZA ALABOU STYLE FLOATING GLASS DOCK & ANIMATIONS
   ============================================================ */
:root {
  --dur-color: 200ms;
  --dur-move: 160ms;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --dock-bg: rgba(22, 22, 22, 0.76);
  --dock-hover: rgba(255, 255, 255, 0.06);
  --dock-active: rgba(255, 255, 255, 0.08);
  --dock-ring: rgba(255, 255, 255, 0.12);
  --dock-icon: #a0a0a0;
  --dock-icon-hover: #ffffff;
}

[data-theme="light"] {
  --dock-bg: rgba(255, 255, 255, 0.78);
  --dock-hover: rgba(0, 0, 0, 0.04);
  --dock-active: rgba(0, 0, 0, 0.07);
  --dock-ring: rgba(0, 0, 0, 0.08);
  --dock-icon: #555555;
  --dock-icon-hover: #111111;
}

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

.dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  gap: 10px;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.dock-pill,
.dock-bubble {
  display: flex;
  align-items: center;
  background: var(--dock-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02), 0 0 0 0.5px var(--dock-ring);
  animation: dockItemFadeUp 0.65s var(--ease) 0.2s backwards;
}

.dock-pill {
  height: 40px;
  padding: 4px 6px;
  border-radius: 9999px;
  gap: 2px;
}

.dock-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border: none;
  background: var(--dock-bg);
  color: var(--dock-icon);
  transition: color var(--dur-color) var(--ease), background-color var(--dur-color) var(--ease), transform var(--dur-move) var(--ease);
}

.dock-bubble:hover {
  background: var(--dock-hover);
  color: var(--dock-icon-hover);
}

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

.dock-bubble button,
.dock-bubble-top button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

.dock-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--dur-color) var(--ease), background-color var(--dur-color) var(--ease), transform var(--dur-move) var(--ease);
}

.dock-item:hover {
  color: var(--text-primary);
  background: var(--dock-hover);
}

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

.dock-item.active,
.dock-item[aria-current="page"] {
  color: var(--text-primary);
  background: var(--dock-active);
  font-weight: 500;
}

.dock-item-icon {
  display: none;
  width: 16px;
  height: 16px;
}

.dock-item-label {
  display: inline;
}

/* Theme Toggle Icons & Animations (from Hamza Alabou) */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  transition: color var(--dur-color) var(--ease);
}

.theme-toggle-icons {
  position: relative;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  opacity: 0;
  transform-origin: center;
  transition: opacity var(--dur-color) var(--ease);
  pointer-events: none;
}

[data-theme="light"] .theme-icon--sun {
  opacity: 1;
}

[data-theme="dark"] .theme-icon--moon {
  opacity: 1;
}

@keyframes themeIconMoon {
  0% {
    transform: rotate(-45deg) scale(0.5);
    opacity: 0;
  }
  70% {
    transform: rotate(8deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes dockIconPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  70% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes dockIconBloom {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

[data-theme="dark"] .theme-icon--moon.trigger-anim {
  animation: themeIconMoon 0.55s var(--ease);
}

[data-theme="light"] .theme-icon--sun.trigger-anim {
  animation: dockIconPop 0.4s var(--ease);
}

[data-theme="light"] .theme-icon--sun.trigger-anim path {
  transform-origin: 12px 12px;
  animation: dockIconBloom 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 60ms backwards;
}

.dock-bubble-top.trigger-anim svg {
  animation: dockIconPop 0.4s var(--ease);
}

.dock-bubble-top.trigger-anim svg path {
  transform-origin: 12px 12px;
  animation: dockIconBloom 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 60ms backwards;
}

/* Mobile Version (Hamza Alabou Dock Icon Mode) */
@media (max-width: 540px) {
  .dock {
    bottom: 16px;
    gap: 8px;
    max-width: calc(100vw - 24px);
  }
  .dock-pill {
    padding: 3px 4px;
    height: 38px;
  }
  .dock-bubble {
    width: 38px;
    height: 38px;
  }
  .dock-item {
    padding: 8px 10px;
    border-radius: 9999px;
    justify-content: center;
  }
  .dock-item-icon {
    display: inline-flex;
  }
  .dock-item-label {
    display: none;
  }
}

@media (max-width: 360px) {
  .dock-bubble-top {
    display: none;
  }
}

/* ============================================================
   CRAFT LIGHTBOX MODAL (Inspora Style)
   ============================================================ */
.craft-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.craft-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.craft-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 0.3s ease;
}

[data-theme="light"] .craft-lightbox-overlay {
  background: rgba(240, 240, 240, 0.88);
}

.craft-lightbox-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  max-width: 90%;
  max-height: 85vh;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.craft-lightbox.active .craft-lightbox-container {
  transform: scale(1);
}

.craft-lightbox-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 85vh;
  box-sizing: border-box;
}

[data-theme="light"] .craft-lightbox-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.craft-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* Custom Cursor Close Button (Inspora Style) */
.craft-lightbox-cursor {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2020;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  left: 0;
  top: 0;
}

[data-theme="light"] .craft-lightbox-cursor {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Show custom cursor when active */
.craft-lightbox.active .craft-lightbox-cursor {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.craft-lightbox-cursor svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Hide default cursor inside lightbox */
.craft-lightbox {
  cursor: none !important;
}
.craft-lightbox * {
  cursor: none !important;
}

/* Responsive: coarse pointers (touchscreen) do not have a moving cursor, so hide custom cursor and show default tap behavior */
@media (pointer: coarse) {
  .craft-lightbox-cursor {
    display: none !important;
  }
  .craft-lightbox {
    cursor: auto !important;
  }
  .craft-lightbox * {
    cursor: auto !important;
  }
}

