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

:root {
  --bg: #0d0d0d;
  --bg2: #111;
  --text: #f0ede8;
  --muted: #666;
  --border: #1e1e1e;
  --accent: #c8f04a;
  --font: 'Syne', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: inherit; }

/* ── Custom Cursor ────────────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
  mix-blend-mode: difference;
}

#cursor.hovering {
  width: 44px;
  height: 44px;
}

/* ── Loader ───────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

#page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-text {
  font-family: var(--font);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}

/* ── Navigation ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.nav-logo {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-lines span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-open .menu-lines span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-lines span:nth-child(2) { opacity: 0; }
.menu-open .menu-lines span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Menu Overlay ─────────────────────────────────────────────── */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--text);
  z-index: 400;
  display: flex;
  flex-direction: column;
  padding: 6rem 2.5rem 3rem;
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
}

#menu-overlay.open { transform: translateY(0); }

.overlay-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.overlay-nav li a {
  font-family: var(--font);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--bg);
  letter-spacing: -2px;
  line-height: 1;
  display: inline-block;
  transition: letter-spacing 0.3s var(--ease), opacity 0.2s;
  position: relative;
}

.overlay-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bg);
  transition: width 0.3s var(--ease);
}

.overlay-nav li a:hover { letter-spacing: 0; }
.overlay-nav li a:hover::after { width: 100%; }

.overlay-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.overlay-socials {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.overlay-socials a {
  font-size: 0.85rem;
  color: var(--bg);
  font-weight: 600;
  opacity: 0.6;
  transition: opacity 0.2s;
  text-decoration: none;
}

.overlay-socials a:hover { opacity: 1; }

.overlay-email {
  font-size: 0.85rem;
  color: var(--bg);
  font-weight: 600;
  opacity: 0.6;
}

/* ── Page transition ──────────────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.page-transition.entering { transform: translateY(0); }
.page-transition.leaving { transform: translateY(-100%); }

/* ── Utility ──────────────────────────────────────────────────── */
.container { max-width: 1300px; margin: 0 auto; padding: 0 2.5rem; }

/* ── HOME ─────────────────────────────────────────────────────── */
#home-page { min-height: 100vh; display: flex; flex-direction: column; }

.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7rem 2.5rem 3rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.greetings {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  overflow: hidden;
  height: 1.8em;
  align-items: center;
}

.greeting-word {
  font-family: var(--font);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
  position: absolute;
}

.greeting-word.active { opacity: 1; transform: translateY(0); }

.hero-headline {
  font-family: var(--font);
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -3px;
  max-width: 900px;
  margin: 2rem 0;
}

.hero-headline em {
  font-style: italic;
  color: var(--muted);
}

.home-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.home-bio {
  max-width: 380px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
}

.home-cta:hover { background: var(--text); color: var(--bg); }

/* Recent work list */
.recent-work {
  padding: 4rem 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.work-list { list-style: none; }

.work-list-item {
  border-top: 1px solid var(--border);
  position: relative;
}

.work-list-item:last-child { border-bottom: 1px solid var(--border); }

.work-list-link {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  transition: padding-left 0.3s var(--ease);
}

.work-list-link:hover { padding-left: 0.5rem; }

.work-num {
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.work-name {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.work-cat {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* Hover image */
.hover-img {
  position: fixed;
  width: 300px;
  aspect-ratio: 4/3;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transform: scale(0.9) rotate(-3deg);
  transition: opacity 0.3s, transform 0.4s var(--ease);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
}

.hover-img.visible { opacity: 1; transform: scale(1) rotate(-1deg); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── WORK PAGE ────────────────────────────────────────────────── */
#work-page {
  padding: 8rem 2.5rem 5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.page-hero {
  margin-bottom: 4rem;
}

.page-title {
  font-family: var(--font);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}

.work-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: none;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.all-work-list { list-style: none; }

.all-work-item {
  border-top: 1px solid var(--border);
}

.all-work-item:last-child { border-bottom: 1px solid var(--border); }

.all-work-link {
  display: grid;
  grid-template-columns: 3rem 1fr 150px 80px;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  transition: padding-left 0.3s var(--ease);
}

.all-work-link:hover { padding-left: 0.5rem; }

.wl-name {
  font-family: var(--font);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.wl-cat {
  font-size: 0.82rem;
  color: var(--muted);
}

.wl-year {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

/* ── ABOUT PAGE ───────────────────────────────────────────────── */
#about-page {
  padding: 8rem 2.5rem 5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 6rem;
}

.about-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
  max-width: 480px;
  position: relative;
}

.about-img-wrap::before {
  content: 'TM.';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.07);
  pointer-events: none;
  z-index: 0;
}

.about-img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

.about-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-block h2 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-text-block p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.about-quote {
  font-family: var(--font);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.5px;
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  color: var(--text);
  margin: 2rem 0;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Social pills — about page */
.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.social-pill:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.sp-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  font-style: normal;
  flex-shrink: 0;
}

.sp-label { font-size: 0.82rem; }

/* Skills in about page */
.skills-section {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.skills-section h3 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 5rem;
}

.skill-item { }

.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.skill-name { font-size: 0.95rem; font-weight: 600; }
.skill-pct { font-size: 0.85rem; color: var(--accent); font-weight: 700; }

.skill-track {
  height: 2px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--text);
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── CONTACT PAGE ─────────────────────────────────────────────── */
#contact-page {
  padding: 8rem 2.5rem 5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.contact-link:hover { border-color: var(--text); transform: translateX(6px); }

.cl-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cl-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; display: block; }
.cl-val { font-size: 0.9rem; font-weight: 600; display: block; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fg { display: flex; flex-direction: column; gap: 0.4rem; }
.fg label { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

.fg input, .fg textarea, .fg select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--text); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--muted); }
.fg select option { background: var(--bg); }

.submit-btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  transition: background 0.2s, color 0.2s;
  cursor: none;
}

.submit-btn:hover { background: var(--accent); color: var(--bg); }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { font-family: var(--font); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.5px; }
.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-top { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.footer-top:hover { color: var(--text); }

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor { display: none; }
  .btn, .submit-btn, button { cursor: pointer; }

  #navbar { padding: 1.2rem 1.5rem; }

  .hero-headline { letter-spacing: -2px; }

  .work-list-link { grid-template-columns: 2rem 1fr; }
  .work-cat { display: none; }

  .all-work-link { grid-template-columns: 2rem 1fr auto; }
  .wl-cat { display: none; }

  .about-layout { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 100%; aspect-ratio: 4/3; }

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

  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

  .overlay-nav li a { font-size: clamp(2rem, 10vw, 4rem); }
}

@media (max-width: 480px) {
  .home-hero { padding: 6rem 1.5rem 2rem; }
  #work-page, #about-page, #contact-page { padding: 6rem 1.5rem 3rem; }
  .recent-work { padding: 3rem 1.5rem; }
}

/* ── Project Detail Modal ─────────────────────────────────────── */
.proj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  animation: pmFadeIn 0.25s ease;
}

@keyframes pmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.proj-modal {
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: pmSlideUp 0.3s var(--ease);
}

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

.proj-modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.proj-modal-close:hover { background: rgba(255,255,255,0.15); }

.proj-modal-media {
  width: 100%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #0a0a0a;
}

.proj-modal-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.proj-gallery-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  scrollbar-width: none;
}
.proj-gallery-slider::-webkit-scrollbar {
  display: none;
}
.proj-gallery-slider .proj-modal-img {
  scroll-snap-align: center;
  flex: 0 0 100%;
  border-radius: 8px;
}
.swipe-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 1px;
}

.proj-modal-video {
  width: 100%;
  max-height: 380px;
  display: block;
  background: #000;
}

.proj-modal-iframe {
  width: 100%;
  height: 350px;
  display: block;
  border: none;
}

.proj-modal-body {
  padding: 1.75rem 2rem 2rem;
}

.proj-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pm-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid #2a2a2a;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}

.proj-modal-title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.proj-modal-desc {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.proj-modal-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pm-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  border: 1px solid #2a2a2a;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.pm-social:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }

.pm-social-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  flex-shrink: 0;
}

.proj-modal-actions { display: flex; gap: 0.75rem; }

.pm-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.pm-cta:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 768px) {
  .proj-modal-body { padding: 1.25rem 1.25rem 1.5rem; }
  .proj-modal-iframe { height: 220px; }
  .proj-modal-img, .proj-modal-video { max-height: 260px; }
}

/* ── Lightbox Overlay ─────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: 2px;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

@media (max-width: 768px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-close { top: 1rem; right: 1rem; width: 36px; height: 36px; font-size: 1rem; }
  .lightbox-counter { bottom: 1rem; }
}
