/* ── Fonts ── */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/josefin-sans-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/josefin-sans-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/josefin-sans-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/josefin-sans-700.ttf') format('truetype');
}

/* ── CSS variable overrides (tailwind.min.css is pre-compiled) ── */
:root {
  --color-primary: #2DBFAD;
  --color-cta:     #FF6347;
  --color-bg:      #FAFAFA;
  --color-bg-dark: #1C1F26;
  --color-surface: #FFFFFF;
  --color-border:  #B2EBEC;
  --color-text:    #1A1A2E;
  --color-muted:   #6B7280;
  --font-sans:     'Josefin Sans', sans-serif;
}

/* ── Base font ── */
body {
  font-family: 'Josefin Sans', sans-serif;
}

/* ── Global transitions (dark mode) ── */
*,
*::before,
*::after {
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }

/* ── Card hover glow ── */
.card-hover {
  transition: box-shadow 300ms ease, transform 300ms ease;
}
.card-hover:hover {
  box-shadow: 0 0 0 2px #2DBFAD, 0 8px 24px rgba(0, 206, 209, 0.15);
  transform: translateY(-4px);
}

/* ── CTA pulse ── */
.btn-cta {
  transition: box-shadow 300ms ease, transform 200ms ease;
}
.btn-cta:hover {
  box-shadow: 0 0 0 4px rgba(255, 99, 71, 0.3);
  transform: scale(1.03);
}

/* ── Photo strip ── */
.photo-strip-item {
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 400ms ease;
}
.photo-strip-item:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 8px 32px rgba(0, 206, 209, 0.25);
}

/* ── Pillow nav shadow on scroll ── */
.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.dark .nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ── Nav links — pill button style ── */
.nav-link {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease,
              box-shadow 200ms ease, transform 150ms ease;
}
.nav-link:hover {
  background: rgba(0, 206, 209, 0.08);
  color: #2DBFAD;
  box-shadow: 0 2px 8px rgba(0, 206, 209, 0.15);
  transform: translateY(-1px);
}
.dark .nav-link:hover {
  background: rgba(0, 206, 209, 0.1);
  box-shadow: 0 2px 12px rgba(0, 206, 209, 0.2);
}
.nav-link.active {
  background: rgba(0, 206, 209, 0.12);
  color: #2DBFAD;
  box-shadow: 0 2px 10px rgba(0, 206, 209, 0.18);
  font-weight: 600;
}
.dark .nav-link.active {
  background: rgba(0, 206, 209, 0.14);
  box-shadow: 0 2px 14px rgba(0, 206, 209, 0.25);
}

/* ── SimFive inline badge link ── */
.simfive-badge {
  display: inline;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: inherit;
  color: #2DBFAD;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: background 200ms ease, box-shadow 200ms ease,
              transform 150ms ease, border-color 200ms ease;
}
.simfive-badge:hover {
  background: rgba(0, 206, 209, 0.08);
  border-color: rgba(0, 206, 209, 0.3);
  box-shadow: 0 2px 8px rgba(0, 206, 209, 0.15);
  transform: translateY(-1px);
}
.dark .simfive-badge:hover {
  background: rgba(0, 206, 209, 0.1);
  border-color: rgba(0, 206, 209, 0.35);
  box-shadow: 0 2px 12px rgba(0, 206, 209, 0.2);
}

/* ── Experience Cards — hover glow ── */
.exp-card {
  transition: border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
}
.exp-card:hover {
  border-color: rgba(64, 191, 176, 0.75) !important;
  background: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 0 28px rgba(64, 191, 176, 0.18);
}

/* ── Experience Timeline Animations ── */
/* Disable the default Y-shift on exp rows — use directional card anims instead */
#experience .reveal {
  transform: none !important;
}
#experience .reveal.visible {
  transform: none !important;
}

/* ── Smooth scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── Selection color ── */
::selection {
  background: rgba(0, 206, 209, 0.2);
  color: #1A1A2E;
}
.dark ::selection {
  background: rgba(0, 206, 209, 0.3);
  color: #F0FAFA;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #B2EBEC;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #2a2f3a;
}

/* ── Projects Swiper Card — Photo Style ── */
.proj-card {
  cursor: pointer;
  pointer-events: auto;
  width: 320px !important;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 400ms cubic-bezier(0.22,1,.36,1), box-shadow 400ms ease;
  will-change: transform;
}
.proj-card:nth-child(odd)  { transform: rotate(-2.5deg); }
.proj-card:nth-child(even) { transform: rotate(2deg); }
.proj-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.04) !important;
  box-shadow: 0 0 0 2px #2DBFAD, 0 20px 48px rgba(45,191,173,.3);
  z-index: 2;
}
.proj-img {
  position: relative;
  height: 440px;
  overflow: hidden;
}
.proj-dots {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(circle, #2DBFAD 1px, transparent 1px);
  background-size: 22px 22px;
}
.proj-dots-grid {
  background-image: linear-gradient(rgba(45,191,173,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(45,191,173,.5) 1px, transparent 1px);
  background-size: 28px 28px;
}
.proj-dots-amber {
  background-image: radial-gradient(circle, #f59e0b 1px, transparent 1px);
  background-size: 22px 22px;
}
.proj-icon-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
}
.proj-icon-wrap > svg {
  padding: 14px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.proj-num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: .68rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.28);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
/* Overlay: dark fade at bottom → title + tags */
.proj-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 100%);
}
.proj-overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.proj-tags span {
  font-size: .75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #2DBFAD;
  border: 1px solid rgba(45,191,173,.4);
  background: rgba(0,0,0,.35);
  padding: 2px 7px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ── Marquee ── */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrapper {
  overflow: hidden;
  padding: 20px 0 32px;
  clip-path: inset(-80px 0);   /* show rotated card shadows */
}
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* ── Lightbox ── */
#proj-lightbox { animation: lb-in 200ms ease; }
@keyframes lb-in { from { opacity:0; } to { opacity:1; } }
#proj-panel      { animation: panel-up 280ms cubic-bezier(0.22,1,.36,1); }
@keyframes panel-up {
  from { opacity:0; transform:scale(.93) translateY(16px); }
  to   { opacity:1; transform:scale(1)   translateY(0);    }
}

/* ── Mobile menu ── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open {
  max-height: 300px;
}

/* ── Custom Cursor Ring ── */

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 2px solid #2DBFAD;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  will-change: transform;
  transition: opacity 200ms ease;
}

/* ── Mobile overrides (< 768px) ── */
@media (max-width: 767px) {

  /* Experience: fshih linjën qendrore dhe dot-et absolute */
  .exp-timeline > div[style*="position:absolute"] { display: none !important; }

  /* Timeline rows: stack vertikalisht, jo grid 3-kolona */
  .exp-timeline > .reveal {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin-bottom: 1.5rem;
  }

  /* Fshih kolonën qendrore (year badge + vija lidhëse) */
  .exp-timeline > .reveal > div:nth-child(2) {
    display: none !important;
  }

  /* Fshih kolonat boshe (div:empty) */
  .exp-timeline > .reveal > div:empty { display: none !important; }

  /* Karta: full width, pa padding anash */
  .exp-timeline > .reveal > div:not(:empty) {
    padding: 0 !important;
  }

  /* Marquee cards: më të vogla në mobile */
  .proj-card { width: 240px !important; }
  .proj-img  { height: 300px; }
}
