/* ============================================================
   PORTFOLIO — Trésor Zossoungbo
   style.css — Golden Pixel Digital
   ============================================================ */

:root {
  --gold: #d6a100;
  --gold-light: #ffd36a;
  --gold-dim: rgba(214, 161, 0, .15);
  --violet: #6b3fa0;
  --violet-light: #9b6fd0;
  --bg: #080810;
  --bg2: #0d0d18;
  --card: rgba(255, 255, 255, .03);
  --border: rgba(255, 255, 255, .07);
  --text: #e8e8f0;
  --muted: #7a7a9a;
}

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

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

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .2s, height .2s, opacity .2s;
}

#cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(214, 161, 0, .4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left .12s ease, top .12s ease;
}

body:hover #cursor { opacity: 1; }

/* ===== NOISE OVERLAY ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

/* ===== FLOATING ORBS ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 20s infinite alternate ease-in-out;
}

.orb1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(107, 63, 160, .18) 0%, transparent 70%);
  top: -150px;
  left: -150px;
  animation-duration: 25s;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214, 161, 0, .12) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation-duration: 30s;
  animation-delay: -10s;
}

.orb3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(107, 63, 160, .1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  animation-duration: 18s;
  animation-delay: -5s;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.05); }
  100% { transform: translate(-20px, 20px) scale(.97); }
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s, backdrop-filter .4s;
}

nav.scrolled {
  background: rgba(8, 8, 16, .8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .5px;
}

.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: .3s;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 8, 16, .97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 1001; }
}

/* ===== LAYOUT ===== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sec-label {
  font-family: "Space Mono", monospace;
  font-size: .75rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: .75rem;
  display: block;
}

.sec-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.sec-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  border: 1px solid rgba(214, 161, 0, .3);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 161, 0, .2); }
  50%       { box-shadow: 0 0 0 8px rgba(214, 161, 0, 0); }
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title em { font-style: normal; color: var(--gold); }

.hero-desc {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

@media (max-width: 900px) {
  .hero-desc { margin: 0 auto 2.5rem; }
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-btns { justify-content: center; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #111;
  font-weight: 700;
  padding: .8rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(214, 161, 0, .3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: .8rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: .95rem;
  transition: border-color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .04);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) { .hero-chips { justify-content: center; } }

.chip {
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
  background: var(--card);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-photo-wrap {
  position: relative;
  width: 320px;
  height: 320px;
}

@media (max-width: 900px) {
  .hero-photo-wrap { width: 250px; height: 250px; }
}

.hero-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(214, 161, 0, .2);
  animation: spin-slow 20s linear infinite;
}

.hero-ring2 {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px dashed rgba(107, 63, 160, .3);
  animation: spin-slow 30s linear infinite reverse;
}

/* ===== PHOTO HERO — tête non coupée ===== */
.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Centrage vertical : ajustez "20%" vers "10%" si le visage est encore coupé */
  object-position: center 20%;
  border-radius: 50%;
  border: 4px solid rgba(214, 161, 0, .4);
  display: block;
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(214, 161, 0, .15), transparent 60%);
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-float-badge {
  position: absolute;
  background: rgba(8, 8, 16, .9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .6rem 1rem;
  font-size: .75rem;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.hero-float-badge.tl {
  top: 10px;
  left: -30px;
  animation: float 3s ease-in-out infinite;
}

.hero-float-badge.br {
  bottom: 20px;
  right: -40px;
  animation: float 3.5s ease-in-out infinite .5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.badge-num {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
}

@media (max-width: 900px) {
  .hero-float-badge.tl,
  .hero-float-badge.br { display: none; }
}

/* ===== ABOUT ===== */
#about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* ===== PHOTO PRO (section À propos) ===== */
.about-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 340px;
  margin: 0 0 2rem 0;
  border: 1px solid rgba(214,161,0,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ajustez object-position pour cadrer sur le buste/visage */
  object-position: center top;
  display: block;
  transition: transform .5s ease;
}

.about-photo-wrap:hover img {
  transform: scale(1.04);
}

.about-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.about-photo-label {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding-left: .75rem;
  line-height: 1.4;
}

/* ===== TIMELINE ===== */
.timeline {
  margin-top: 2rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.t-item {
  position: relative;
  margin-bottom: 2rem;
}

.t-dot {
  position: absolute;
  left: -1.83rem;
  top: .4rem;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(214, 161, 0, .15);
}

.t-year {
  font-family: "Space Mono", monospace;
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: .25rem;
}

.t-item h6 { font-weight: 600; margin-bottom: .3rem; }
.t-item p  { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color .3s, transform .3s;
}

.stat-card:hover {
  border-color: rgba(214, 161, 0, .3);
  transform: translateY(-4px);
}

.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
}

.stat-label { color: var(--muted); font-size: .85rem; margin-top: .25rem; }

/* ===== CV DOWNLOAD ===== */
.cv-strip {
  background: linear-gradient(135deg, rgba(107, 63, 160, .15), rgba(214, 161, 0, .08));
  border: 1px solid rgba(214, 161, 0, .2);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cv-strip p  { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.cv-strip h6 { font-weight: 600; font-size: 1rem; }

/* ===== SKILL BARS ===== */
.bar-wrap { margin-top: .5rem; }

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .4rem;
}

.bar-track {
  height: 4px;
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--violet), var(--gold));
  border-radius: 999px;
  width: 0;
  transition: width 1.2s ease;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) { .skills-grid { grid-template-columns: 1fr; } }

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.skill-card:hover {
  border-color: rgba(214, 161, 0, .25);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.skill-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.skill-card h5 { font-weight: 700; margin-bottom: 1rem; }

.skill-tags { display: flex; flex-direction: column; gap: .6rem; }

.skill-tag {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--muted);
}

.skill-tag::before { content: "▹"; color: var(--gold); flex-shrink: 0; }
.skill-tag strong  { color: var(--text); font-weight: 500; }

/* ===== PROJECTS ===== */
#projects { background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); }

.filter-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  margin-top: 2rem;
}

.filter-btn {
  padding: .45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  cursor: pointer;
  transition: .2s;
  font-family: "DM Sans", sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 500px) { .projects-grid { grid-template-columns: 1fr; } }

.proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
  position: relative;
}

.proj-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, .4);
  border-color: rgba(214, 161, 0, .25);
}

.proj-card .proj-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

/* ===== PLACEHOLDER IMAGE si screenshot non disponible ===== */
.proj-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .85rem;
  background: linear-gradient(135deg, rgba(107,63,160,.15), rgba(214,161,0,.08));
}

.proj-img-placeholder span { font-size: 2rem; }

.proj-card .proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s;
}

.proj-card:hover .proj-img img { transform: scale(1.06); }

.proj-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, .9), transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.proj-card:hover .proj-overlay { opacity: 1; }

.proj-overlay-link {
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(214, 161, 0, .4);
  padding: .4rem 1rem;
  border-radius: 999px;
  transition: .2s;
}

.proj-overlay-link:hover { background: var(--gold); color: #111; }

.proj-body { padding: 1.2rem; }

.proj-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.proj-name { font-weight: 700; font-size: .95rem; }

.proj-tag {
  font-size: .7rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(214, 161, 0, .12);
  border: 1px solid rgba(214, 161, 0, .25);
  color: var(--gold-light);
}

.proj-desc { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.proj-url  { font-size: .72rem; color: var(--muted); margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-card.hidden { display: none; }

/* ===== POSTERS / CRÉATIONS GRAPHIQUES ===== */
#posters { background: var(--bg); }

.posters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.poster-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.poster-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}

/* Zone image affiche — accepte une vraie <img> ou un placeholder */
.poster-img-wrap {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--gold));
}

.poster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s;
}

.poster-card:hover .poster-img-wrap img { transform: scale(1.06); }

.poster-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, .7) 0%, transparent 50%);
  pointer-events: none;
}

/* Emoji de fallback si pas d'image */
.poster-emoji {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.poster-info { padding: .8rem 1rem; }
.poster-info h6 { font-size: .85rem; font-weight: 600; margin-bottom: .2rem; }
.poster-info p  { font-size: .75rem; color: var(--muted); }

/* Carte "ajouter affiche" */
.poster-add {
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  color: var(--muted);
  min-height: 200px;
  border-radius: 16px;
  font-size: .85rem;
  cursor: pointer;
  transition: .2s;
}

.poster-add:hover {
  border-color: rgba(214, 161, 0, .3);
  color: var(--gold-light);
}

/* ===== TESTIMONIALS ===== */
#testimonials {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) { .testimonials-track { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: border-color .3s, transform .3s;
}

.testi-card:hover {
  border-color: rgba(214, 161, 0, .2);
  transform: translateY(-4px);
}

.testi-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: "Playfair Display", serif;
  font-size: 5rem;
  color: rgba(214, 161, 0, .1);
  line-height: 1;
}

.testi-stars { color: var(--gold); font-size: .9rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-text  { color: var(--muted); font-size: .9rem; line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }

.testi-author { display: flex; align-items: center; gap: .8rem; }

.testi-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(214, 161, 0, .3);
}

.testi-author strong { display: block; font-size: .9rem; }
.testi-author span   { color: var(--muted); font-size: .8rem; }

/* ===== CONTACT ===== */
#contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h4 { font-family: "Playfair Display", serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p  { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }

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

.contact-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--text);
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: .2s;
  font-size: .9rem;
}

.contact-link:hover {
  border-color: rgba(214, 161, 0, .3);
  background: var(--gold-dim);
  color: var(--gold-light);
}

.contact-link .link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .5rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: .95rem;
  outline: none;
  transition: .2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(214, 161, 0, .4);
  background: rgba(214, 161, 0, .03);
}

.form-group textarea { height: 130px; }

#formStatus { font-size: .85rem; color: var(--gold-light); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { font-family: "Playfair Display", serif; font-size: 1.1rem; color: var(--gold); font-weight: 700; }
.footer-copy { color: var(--muted); font-size: .8rem; }

.footer-socials { display: flex; gap: .75rem; }

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  transition: .2s;
}

.footer-socials a:hover {
  border-color: rgba(214, 161, 0, .4);
  color: var(--gold-light);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 740px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 161, 0, .3) transparent;
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, .07);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.modal-close:hover { background: rgba(214, 161, 0, .2); color: var(--gold); }

.modal-tag   { font-family: "Space Mono", monospace; font-size: .7rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: .5rem; display: block; }
.modal-title { font-family: "Playfair Display", serif; font-size: 1.8rem; font-weight: 900; margin-bottom: .75rem; }
.modal-desc  { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; font-size: .95rem; }

.modal-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top center;
  background: rgba(255, 255, 255, .04);
}

.modal-techs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }

.modal-tech {
  padding: .3rem .7rem;
  border-radius: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(214, 161, 0, .25);
  color: var(--gold-light);
  font-size: .78rem;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.modal-list li {
  color: var(--muted);
  font-size: .9rem;
  padding-left: 1.2rem;
  position: relative;
}

.modal-list li::before { content: "▹"; position: absolute; left: 0; color: var(--gold); }

/* ===== SCROLL PROGRESS ===== */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--violet), var(--gold));
  z-index: 1001;
  transition: width .1s;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

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

/* ===== PARTICLES ===== */
#particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* ===== BACK TO TOP ===== */
#btt {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #111;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: .3s;
  z-index: 500;
}

#btt.show  { opacity: 1; transform: translateY(0); }
#btt:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ===== SECTION DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(214, 161, 0, .2), transparent);
  margin: 0 auto;
  width: 80%;
}
