

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');


:root {
  --bg:             #0e0d0c;
  --bg-mid:         #131211;
  --bg-card:        #1a1917;
  --bg-raised:      #222120;
  --gold:           #c9a84c;
  --gold-muted:     #e8d9b0;
  --gold-dim:       rgba(201,168,76,0.14);
  --text-primary:   #f0ece4;
  --text-secondary: rgba(240,236,228,0.55);
  --text-muted:     rgba(240,236,228,0.32);
  --border:         rgba(240,236,228,0.07);
  --border-mid:     rgba(240,236,228,0.13);
  --nav-h:          68px;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  background: rgba(14,13,12,0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links li.active a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.logout-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201,168,76,0.38);
  border-radius: 100px;
  padding: 6px 18px;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s;
}

.logout-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.hamburger {
  display: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-primary);
  background: none;
  border: none;
}


.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url('images/italy.jpg') center 42% / cover no-repeat;
  text-align: center;
  padding: var(--nav-h) 24px 0;
  overflow: hidden;
}


.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,13,12,0.54) 0%,
    rgba(14,13,12,0.16) 36%,
    rgba(14,13,12,0.04) 58%,
    rgba(14,13,12,0.7)  80%,
    rgba(14,13,12,1)    100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7.5vw, 6.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.07;
  text-shadow: 0 4px 48px rgba(0,0,0,0.5);
  max-width: 880px;
}

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

.hero button {
  margin-top: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  padding: 11px 30px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.hero button:hover {
  border-color: rgba(255,255,255,0.65);
  color: #fff;
  background: rgba(255,255,255,0.06);
}


.hero::after {
  content: '';
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.85), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}


.dark-section h2,
.aspirations h2,
.projects-dark h2,
.projects-light h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 52px;
}

.dark-section h2::after,
.aspirations h2::after,
.projects-dark h2::after,
.projects-light h2::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-top: 10px;
  opacity: 0.45;
}


.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 64px 88px 72px;
}

.intro-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  margin-bottom: 22px;
}

.intro-text h4 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 360px;
}

.intro-image {
  background: url('images/me.JPG') center / cover no-repeat;
  min-height: 420px;
  position: relative;
  border-radius: 24px;
  margin: 60px 48px 60px 0;
  overflow: hidden;
}

.intro-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,13,12,0.35) 0%, transparent 30%);
}


.dark-section {
  background: var(--bg-mid);
  padding: 96px 72px;
  position: relative;
}

.flex-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


.card {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.4s ease, border-color 0.3s;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: rgba(201,168,76,0.22);
  transform: translateY(-5px);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(201,168,76,0.14) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover::after { opacity: 1; }


.stat {
  text-align: center;
  padding: 52px 24px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-card);
  transition: border-color 0.3s;
}

.stat:hover { border-color: rgba(201,168,76,0.22); }

.stat h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--gold-muted);
  line-height: 1;
  margin-bottom: 12px;
}

.stat p {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}


.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  padding-top: var(--nav-h);
  background: var(--bg);
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 64px 88px 72px;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.78;
  max-width: 400px;
  margin-bottom: 14px;
}

.about-image {
  background: url('images/me.JPG') center / cover no-repeat;
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 22%);
}

/* Inspirations */
.aspirations {
  background: var(--bg-mid);
  padding: 96px 72px;
}

.aspiration-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.aspiration-card {
  aspect-ratio: 3/4;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.3s;
}

.aspiration-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.2);
}

.aspiration-card.a1 { background: url('images/inspo1.png') center/cover; }
.aspiration-card.a2 { background: url('images/inspo2.JPG') center/cover; }
.aspiration-card.a3 { background: url('images/inspo4.png') center/cover; }

.aspiration-card::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: rgba(14,13,12,0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.aspiration-card:hover::after {
  opacity: 1;
}


.projects-intro {
  padding-top: var(--nav-h);
  min-height: 36vh;
  display: flex;
  align-items: flex-end;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.projects-intro-box { padding: 64px 72px; }

.projects-intro-box h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.07;
  margin-bottom: 16px;
}

.projects-intro-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.65;
}

.projects-dark {
  background: var(--bg);
  padding: 80px 72px 96px;
}

.projects-light {
  background: var(--bg-mid);
  padding: 80px 72px 96px;
}

.project-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-item {
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.project-item.project-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.3s;
}

.project-item:hover .project-image {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.2);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(201,168,76,0.16) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-image {
  border-radius: 14px;
  border: 3px solid rgba(201,168,76,0.25);}

.project-item:hover .project-image::after { opacity: 1; }


.fw-1 { background: url('images/A\ \(6\).png') center/cover no-repeat; }
.fw-2 { background: url('images/perfume2.png') center/cover no-repeat; }
.fw-3 { background: url('images/ss.png') center/cover no-repeat; }


.pd-1 { background: url('images/romi1.png') center/cover no-repeat; }
.pd-2 { background: url('images/parse3.png') center/cover no-repeat; }
.pd-3 { background: url('images/cnn1.jpg') center/cover no-repeat; }
.ow-1 { background: url('images/syn1.jpg') center/cover no-repeat; }
.ow-2 { background: url('images/mm4.png') center/cover no-repeat; }
.ow-3 { background: url('images/tips.png') center/cover no-repeat; }

.project-item p {
  margin-top: 13px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.project-item:hover p { color: var(--text-primary); }


.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.login-left {
  background: var(--bg-mid);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.login-left::before {
  content: '';
  position: absolute;
  bottom: -160px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.12);
  pointer-events: none;
}

.login-left::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.07);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.left-top h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.left-top h2 em {
  font-style: italic;
  color: var(--gold-muted);
}

.left-divider {
  width: 36px; height: 1px;
  background: var(--gold);
  margin-bottom: 14px;
  opacity: 0.45;
}

.left-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.login-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
}

.login-card { width: 100%; max-width: 400px; }

.card-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.login-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.login-field { margin-bottom: 20px; }

.login-field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input::placeholder { color: var(--text-muted); }

.login-field input:focus {
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07);
}

.login-error { font-size: 0.82rem; color: #e07060; margin-bottom: 14px; }

.btn-login {
  width: 100%;
  padding: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0e0d0c;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.22s, transform 0.15s;
  margin-top: 8px;
}

.btn-login:hover {
  background: var(--gold-muted);
  transform: translateY(-1px);
}

.login-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 28px;
  text-align: center;
}

.login-footer a { color: var(--gold) !important; text-decoration: none; }


footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 40px 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

footer p:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}


@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .hamburger { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(14,13,12,0.97);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .intro, .about, .login-page { grid-template-columns: 1fr; }

  .intro-image, .about-image { min-height: 280px; }

  .intro-image::before { background: linear-gradient(to bottom, var(--bg) 0%, transparent 20%); }
  .about-image::after  { background: linear-gradient(to bottom, var(--bg) 0%, transparent 20%); }

  .intro-text, .about-text { padding: 56px 28px; }

  .dark-section,
  .aspirations,
  .projects-dark,
  .projects-light { padding: 64px 28px; }

  .flex-row,
  .aspiration-cards,
  .project-row { grid-template-columns: 1fr; gap: 14px; }

  .projects-intro-box { padding: 48px 28px; }

  footer { flex-direction: column; gap: 8px; text-align: center; padding: 32px 24px; }

  .login-left { padding: 52px 28px; min-height: 36vh; border-right: none; border-bottom: 1px solid var(--border); }
  .login-right { padding: 44px 28px; }
}

@media (max-width: 580px) {
  .hero h1 { font-size: 2.2rem; }
  .stat h3  { font-size: 2.6rem; }
  .projects-intro-box h1 { font-size: 2.2rem; }
}



.detail-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-color: var(--bg-mid);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}


.detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,13,12,0.35) 0%,
    rgba(14,13,12,0.1)  35%,
    rgba(14,13,12,0.55) 65%,
    rgba(14,13,12,0.97) 100%
  );
}


.detail-nav-back {
  position: absolute;
  top: calc(var(--nav-h) + 28px);
  left: 72px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.detail-nav-back::before { content: '←'; }
.detail-nav-back:hover { color: var(--gold); }


.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 72px 72px;
  max-width: 800px;
}

.detail-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.detail-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-top: 10px;
  opacity: 0.45;
}

.detail-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 2px 48px rgba(0,0,0,0.5);
}

.detail-hero-content p {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(240,236,228,0.75);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.detail-hero-actions { display: flex; align-items: center; }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.38);
  border-radius: 100px;
  padding: 10px 26px;
  transition: background 0.22s, border-color 0.22s;
}

.detail-back:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}


.detail-gallery {
  background: var(--bg-mid);
  padding: 80px 72px 96px;
}

.detail-gallery-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 48px;
}

.detail-gallery-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-top: 10px;
  opacity: 0.45;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-grid-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), border-color 0.3s;
}

.detail-grid-img:hover {
  transform: scale(1.015);
  border-color: rgba(201,168,76,0.2);
}

.detail-grid-img.wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}


a.project-item {
  text-decoration: none;
  display: block;
  color: inherit;
}

@media (max-width: 900px) {
  .detail-hero { height: auto; min-height: 100vh; }
  .detail-hero-content { padding: 0 28px 56px; }
  .detail-nav-back { left: 28px; top: calc(var(--nav-h) + 16px); }
  .detail-gallery { padding: 56px 28px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid-img.wide { grid-column: span 1; aspect-ratio: 16/10; }
}
.resume-section {
  background: var(--bg);
}

.resume-container {
  border: 1px solid rgba(201,168,76,0.25); 
  background: var(--bg-card);
}

.resume-container::-webkit-scrollbar-thumb {
  background-color: rgba(201,168,76,0.5);
}


.logo-strip {
  overflow: hidden;
  background: var(--bg-mid);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scrollLogos 22s linear infinite;
}

.logo-track img {
  height: 82px;
  opacity: 0.8;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes scrollLogos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}




.detail-hero-img {
  position: absolute; 
  inset: 0;            
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;          
}

.card::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: rgba(14,13,12,0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}