/* ============================================================
   PORTFOLIO — Moussa Amadou SOW
   Custom CSS — Refonte complète 2025
   ============================================================ */

/* ── Variables ── */
:root {
  --pf-bg:         #0a0e17;
  --pf-bg-alt:     #0f1420;
  --pf-card:       #141a2e;
  --pf-card-hover: #1a2240;
  --pf-border:     rgba(255, 215, 0, 0.12);
  --pf-border-sub: rgba(255, 255, 255, 0.06);

  --pf-gold:       #FFD700;
  --pf-gold-light: rgba(255, 215, 0, 0.08);
  --pf-gold-mid:   rgba(255, 215, 0, 0.2);
  --pf-blue:       #4A90D9;
  --pf-green:      #2ecc71;
  --pf-purple:     #a855f7;

  --pf-text:       #e2e8f0;
  --pf-text-muted: #8b949e;
  --pf-text-dim:   #64748b;

  --pf-radius:     12px;
  --pf-radius-lg:  20px;
  --pf-shadow:     0 8px 40px rgba(0, 0, 0, 0.5);
  --pf-shadow-sm:  0 4px 20px rgba(0, 0, 0, 0.3);

  --pf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pf-font:       'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--pf-font);
  background-color: var(--pf-bg);
  color: var(--pf-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--pf-transition); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Utility ── */
.pf-gold { color: var(--pf-gold); }
.text-center { text-align: center; }

/* ── Loader ── */
#ftco-loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--pf-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s;
}
#ftco-loader:not(.show) { opacity: 0; pointer-events: none; }
.circular { animation: rotate 2s linear infinite; }
.path { stroke: var(--pf-gold); stroke-dasharray: 100; animation: dash 1.5s ease-in-out infinite; }
.path-bg { stroke: var(--pf-card); }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash { 0%,100% { stroke-dashoffset: 100; } 50% { stroke-dashoffset: 0; } }

/* ============================================================
   NAVBAR
   ============================================================ */
.pf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--pf-transition);
}
.pf-nav--scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid var(--pf-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.pf-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pf-nav__brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pf-text);
  letter-spacing: -0.5px;
}
.pf-nav__dot { color: var(--pf-gold); }

.pf-nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf-nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pf-text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--pf-transition);
}
.pf-nav__link:hover,
.pf-nav__link.active {
  color: var(--pf-gold);
  background: var(--pf-gold-light);
}
.pf-nav__link--cta {
  background: var(--pf-gold);
  color: #0a0e17 !important;
  font-weight: 600;
  padding: 8px 20px;
}
.pf-nav__link--cta:hover {
  background: #e6c200;
  color: #0a0e17 !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.pf-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.pf-nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--pf-text);
  border-radius: 2px;
  transition: var(--pf-transition);
}
.pf-nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pf-nav__toggle.open span:nth-child(2) { opacity: 0; }
.pf-nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--pf-font);
  cursor: pointer;
  border: none;
  transition: var(--pf-transition);
  white-space: nowrap;
}
.pf-btn--primary {
  background: var(--pf-gold);
  color: #0a0e17;
}
.pf-btn--primary:hover {
  background: #e6c200;
  color: #0a0e17;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,215,0,0.35);
}
.pf-btn--outline {
  background: transparent;
  color: var(--pf-text);
  border: 1px solid var(--pf-border);
}
.pf-btn--outline:hover {
  border-color: var(--pf-gold);
  color: var(--pf-gold);
  transform: translateY(-2px);
}
.pf-btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ============================================================
   HERO
   ============================================================ */
.pf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pf-bg);
}

/* Background grid */
.pf-hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,215,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Glow blobs */
.pf-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.pf-hero__glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.pf-hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,144,217,0.08) 0%, transparent 70%);
  bottom: 100px; right: -50px;
}

.pf-hero .container {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 40px;
}

.pf-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* Content */
.pf-hero__greeting {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--pf-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pf-hero__name {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.pf-hero__typed-wrap {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--pf-text-muted);
  margin-bottom: 24px;
  min-height: 2.2em;
}
.pf-hero__cursor {
  display: inline-block;
  color: var(--pf-gold);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

.pf-hero__desc {
  color: var(--pf-text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.pf-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.pf-hero__socials {
  display: flex;
  gap: 12px;
}
.pf-hero__social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pf-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--pf-text-muted);
  font-size: 0.9rem;
  transition: var(--pf-transition);
}
.pf-hero__social-link:hover {
  border-color: var(--pf-gold);
  color: var(--pf-gold);
  background: var(--pf-gold-light);
  transform: translateY(-2px);
}

/* Photo */
.pf-hero__photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-hero__photo-ring {
  position: relative;
  width: clamp(280px, 35vw, 420px);
  height: clamp(280px, 35vw, 420px);
  border-radius: 50%;
  background: conic-gradient(var(--pf-gold) 0%, var(--pf-gold) 30%, transparent 30%, transparent 65%, var(--pf-gold) 65%, var(--pf-gold) 100%);
  padding: 4px;
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
.pf-hero__photo-ring-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pf-bg);
  padding: 6px;
}
.pf-hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Floating badges */
.pf-hero__badge {
  position: absolute;
  background: var(--pf-card);
  border: 1px solid var(--pf-border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pf-text);
  display: flex; align-items: center; gap: 6px;
  backdrop-filter: blur(8px);
  box-shadow: var(--pf-shadow-sm);
}
.pf-hero__badge i { color: var(--pf-gold); }
.pf-hero__badge--flutter {
  top: 10%;
  right: -20px;
  animation: float 3s ease-in-out infinite;
}
.pf-hero__badge--angular {
  bottom: 20%;
  right: -10px;
  animation: float 3.5s ease-in-out infinite 0.5s;
}
.pf-hero__badge--ux {
  bottom: 5%;
  left: 0;
  animation: float 4s ease-in-out infinite 1s;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Stats bar */
.pf-hero__stats {
  background: var(--pf-card);
  border-top: 1px solid var(--pf-border-sub);
}
.pf-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  gap: 0;
  flex-wrap: wrap;
}
.pf-stat {
  text-align: center;
  padding: 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pf-stat__num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--pf-gold);
  line-height: 1;
}
.pf-stat__plus {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pf-gold);
  display: inline;
}
.pf-stat__label {
  font-size: 0.82rem;
  color: var(--pf-text-muted);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.pf-stat__divider {
  width: 1px;
  height: 40px;
  background: var(--pf-border-sub);
  flex-shrink: 0;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.pf-section {
  padding: 100px 0;
  background: var(--pf-bg);
}
.pf-section--alt {
  background: var(--pf-bg-alt);
}
.pf-section-header { margin-bottom: 64px; }
.pf-section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pf-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 16px;
  border: 1px solid var(--pf-border);
  border-radius: 50px;
  background: var(--pf-gold-light);
}
.pf-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.pf-section-subtitle {
  font-size: 1rem;
  color: var(--pf-text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   ABOUT
   ============================================================ */
.pf-about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.pf-about__photo-frame {
  position: relative;
  border-radius: var(--pf-radius-lg);
  overflow: visible;
}
.pf-about__photo {
  width: 100%;
  border-radius: var(--pf-radius-lg);
  object-fit: cover;
  filter: grayscale(20%);
  transition: var(--pf-transition);
}
.pf-about__photo:hover { filter: grayscale(0%); }
.pf-about__photo-deco {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--pf-gold);
  border-radius: var(--pf-radius-lg);
  z-index: -1;
  opacity: 0.4;
}
.pf-about__available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--pf-text-muted);
}
.pf-about__available-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pf-green);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(46,204,113,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(46,204,113,0.1); }
}

.pf-about__content .pf-section-label { display: inline-block; margin-bottom: 12px; }
.pf-about__content .pf-section-title { margin-bottom: 20px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.pf-about__text {
  color: var(--pf-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.pf-about__text strong { color: var(--pf-text); }

.pf-about__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}
.pf-about__info-item {
  background: var(--pf-card);
  border: 1px solid var(--pf-border-sub);
  border-radius: var(--pf-radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pf-about__info-label {
  font-size: 0.75rem;
  color: var(--pf-text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pf-about__info-label i { color: var(--pf-gold); margin-right: 5px; }
.pf-about__info-value {
  font-size: 0.9rem;
  color: var(--pf-text);
  font-weight: 500;
  word-break: break-all;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.pf-timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0;
}
.pf-timeline__line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--pf-border) 10%, var(--pf-border) 90%, transparent);
  transform: translateX(-50%);
}

.pf-timeline__item {
  position: relative;
  width: 46%;
  margin-bottom: 40px;
}
.pf-timeline__item--left { margin-right: auto; padding-right: 48px; }
.pf-timeline__item--right { margin-left: auto; padding-left: 48px; }

.pf-timeline__dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pf-border);
  border: 2px solid var(--pf-bg);
  top: 24px;
}
.pf-timeline__item--left .pf-timeline__dot { right: -6px; }
.pf-timeline__item--right .pf-timeline__dot { left: -6px; }

.pf-timeline__dot--featured {
  width: 18px; height: 18px;
  background: var(--pf-gold);
  box-shadow: 0 0 0 4px var(--pf-gold-light), 0 0 20px rgba(255,215,0,0.4);
}
.pf-timeline__item--left .pf-timeline__dot--featured { right: -8px; }

.pf-timeline__dot--edu {
  background: var(--pf-blue);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.2);
}

.pf-timeline__card {
  background: var(--pf-card);
  border: 1px solid var(--pf-border-sub);
  border-radius: var(--pf-radius-lg);
  padding: 24px 28px;
  transition: var(--pf-transition);
}
.pf-timeline__card:hover {
  border-color: var(--pf-border);
  transform: translateY(-3px);
  box-shadow: var(--pf-shadow-sm);
}
.pf-timeline__item--featured .pf-timeline__card {
  border-color: var(--pf-gold-mid);
  background: linear-gradient(135deg, rgba(255,215,0,0.04), var(--pf-card));
  box-shadow: 0 0 30px rgba(255,215,0,0.05);
}

.pf-timeline__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.pf-timeline__tag--work { background: rgba(255,215,0,0.1); color: var(--pf-gold); }
.pf-timeline__tag--edu { background: rgba(74,144,217,0.12); color: var(--pf-blue); }

.pf-timeline__date {
  font-size: 0.78rem;
  color: var(--pf-text-dim);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.pf-timeline__date i { color: var(--pf-gold); }

.pf-timeline__role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pf-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pf-timeline__company {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--pf-text-muted);
  margin-bottom: 12px;
}
.pf-timeline__logo {
  height: 28px;
  object-fit: contain;
  filter: brightness(0.9);
}

.pf-timeline__desc {
  font-size: 0.88rem;
  color: var(--pf-text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.pf-timeline__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-timeline__techs span {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--pf-gold-light);
  color: var(--pf-gold);
  border: 1px solid var(--pf-border);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ============================================================
   PROJECTS
   ============================================================ */

/* Filters */
.pf-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.pf-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--pf-border-sub);
  background: var(--pf-card);
  color: var(--pf-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--pf-font);
  cursor: pointer;
  transition: var(--pf-transition);
}
.pf-filter:hover {
  border-color: var(--pf-border);
  color: var(--pf-text);
}
.pf-filter.active {
  background: var(--pf-gold);
  border-color: var(--pf-gold);
  color: #0a0e17;
  font-weight: 600;
}
.pf-filter__count {
  background: rgba(0,0,0,0.2);
  border-radius: 50px;
  padding: 1px 7px;
  font-size: 0.75rem;
}
.pf-filter.active .pf-filter__count {
  background: rgba(0,0,0,0.15);
}

/* Project Grid */
.pf-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pf-project {
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  transition: var(--pf-transition);
}
.pf-project--featured {
  grid-column: span 1;
}
.pf-project:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pf-project__inner {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center top;
  background-color: var(--pf-card);
  border-radius: var(--pf-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--pf-border-sub);
}
.pf-project--featured .pf-project__inner { height: 340px; }

.pf-project__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,14,23,0) 0%,
    rgba(10,14,23,0.3) 40%,
    rgba(10,14,23,0.97) 100%
  );
  transition: var(--pf-transition);
}
.pf-project:hover .pf-project__overlay {
  background: linear-gradient(
    to bottom,
    rgba(10,14,23,0.1) 0%,
    rgba(10,14,23,0.5) 40%,
    rgba(10,14,23,0.99) 100%
  );
}

.pf-project__badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  display: flex; align-items: center; gap: 5px;
  z-index: 2;
}
.pf-project__badge--featured { background: var(--pf-gold); color: #0a0e17; }
.pf-project__badge--delivered { background: rgba(46,204,113,0.85); color: #fff; }
.pf-project__badge--inprogress { background: rgba(74,144,217,0.85); color: #fff; }

.pf-project__cat {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
}
.pf-project__cat--mobile { background: rgba(168,85,247,0.85); color: #fff; }
.pf-project__cat--web { background: rgba(74,144,217,0.85); color: #fff; }
.pf-project__cat--design { background: rgba(46,204,113,0.85); color: #fff; }

.pf-project__content {
  position: relative;
  z-index: 2;
  padding: 20px;
}
.pf-project__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.pf-project--featured .pf-project__title { font-size: 1.2rem; }
.pf-project__stack {
  font-size: 0.78rem;
  color: var(--pf-gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.pf-project__desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--pf-transition);
}
.pf-project:hover .pf-project__desc {
  opacity: 1;
  transform: translateY(0);
}

.pf-project__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pf-project__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0a0e17;
  background: var(--pf-gold);
  padding: 7px 16px;
  border-radius: 50px;
  transition: var(--pf-transition);
}
.pf-project__link:hover {
  background: #e6c200;
  color: #0a0e17;
  transform: translateY(-1px);
}

/* ============================================================
   SKILLS
   ============================================================ */
.pf-skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.pf-skill-group {
  background: var(--pf-card);
  border: 1px solid var(--pf-border-sub);
  border-radius: var(--pf-radius-lg);
  padding: 28px 24px;
  transition: var(--pf-transition);
}
.pf-skill-group:hover {
  border-color: var(--pf-border);
  transform: translateY(-3px);
  box-shadow: var(--pf-shadow-sm);
}
.pf-skill-group__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--pf-gold-light);
  border: 1px solid var(--pf-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--pf-gold);
  margin-bottom: 16px;
}
.pf-skill-group__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pf-text);
  margin-bottom: 16px;
}
.pf-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-skill-tag {
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--pf-border-sub);
  color: var(--pf-text-muted);
  padding: 4px 12px;
  border-radius: 50px;
  transition: var(--pf-transition);
}
.pf-skill-tag:hover {
  border-color: var(--pf-border);
  color: var(--pf-text);
}
.pf-skill-tag--primary {
  background: var(--pf-gold-light);
  border-color: var(--pf-border);
  color: var(--pf-gold);
}

/* Skill bars */
.pf-skill-bars {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pf-skill-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pf-skill-bar__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pf-text);
}
.pf-skill-bar__name i { color: var(--pf-gold); margin-right: 6px; }
.pf-skill-bar__level {
  font-size: 0.78rem;
  color: var(--pf-text-muted);
  font-weight: 500;
}
.pf-skill-bar__track {
  width: 100%;
  height: 6px;
  background: var(--pf-card);
  border-radius: 10px;
  overflow: hidden;
}
.pf-skill-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pf-gold), #f0b400);
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RÉFÉRENCES (2 cartes)
   ============================================================ */
.pf-refs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.pf-ref-card {
  background: var(--pf-card);
  border: 1px solid var(--pf-border-sub);
  border-radius: var(--pf-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--pf-transition);
}
.pf-ref-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pf-gold), transparent);
}
.pf-ref-card:hover {
  border-color: var(--pf-gold-mid);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* Photo + identité */
.pf-ref-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pf-ref-card__photo-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--pf-gold);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--pf-bg);
}
.pf-ref-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.pf-ref-card__photo-fallback {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--pf-gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pf-gold);
  letter-spacing: 1px;
}
.pf-ref-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}
.pf-ref-card__role {
  font-size: 0.82rem;
  color: var(--pf-gold);
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}
.pf-ref-card__location {
  font-size: 0.76rem;
  color: var(--pf-text-dim);
}
.pf-ref-card__location i { color: var(--pf-gold); margin-right: 4px; }

/* Badge relation */
.pf-ref-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--pf-gold-light);
  color: var(--pf-gold);
  border: 1px solid var(--pf-border);
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}
.pf-ref-card__badge--blue {
  background: rgba(74,144,217,0.1);
  color: var(--pf-blue);
  border-color: rgba(74,144,217,0.2);
}

/* Citation */
.pf-ref-card__quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--pf-text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--pf-gold);
  padding-left: 14px;
  margin: 0;
}

/* Bio */
.pf-ref-card__bio {
  font-size: 0.86rem;
  color: var(--pf-text-muted);
  line-height: 1.7;
}
.pf-ref-card__bio strong { color: var(--pf-text); }

/* Stats */
.pf-ref-card__stats {
  display: flex;
  gap: 16px;
}
.pf-ref-card__stat { text-align: center; }
.pf-ref-card__stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pf-gold);
  line-height: 1;
}
.pf-ref-card__stat-label {
  font-size: 0.68rem;
  color: var(--pf-text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
  display: block;
}

/* Techs */
.pf-ref-card__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pf-ref-card__techs span {
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--pf-border-sub);
  color: var(--pf-text-muted);
  padding: 3px 10px;
  border-radius: 50px;
}

/* Footer */
.pf-ref-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--pf-border-sub);
}
.pf-ref-card__socials {
  display: flex;
  gap: 8px;
}
.pf-ref-card__socials a {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--pf-border-sub);
  background: var(--pf-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--pf-text-muted);
  font-size: 0.85rem;
  transition: var(--pf-transition);
}
.pf-ref-card__socials a:hover {
  border-color: var(--pf-gold);
  color: var(--pf-gold);
  background: var(--pf-gold-light);
  transform: translateY(-2px);
}
.pf-ref-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pf-gold);
  border: 1px solid var(--pf-gold-mid);
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--pf-transition);
}
.pf-ref-card__link:hover {
  background: var(--pf-gold-light);
  color: var(--pf-gold);
}
.pf-ref-card__company {
  display: flex;
  align-items: center;
}

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

/* ============================================================
   SERVICES
   ============================================================ */
.pf-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pf-service {
  background: var(--pf-card);
  border: 1px solid var(--pf-border-sub);
  border-radius: var(--pf-radius-lg);
  padding: 36px 28px;
  transition: var(--pf-transition);
}
.pf-service:hover {
  border-color: var(--pf-gold-mid);
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}
.pf-service__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--pf-gold-light);
  border: 1px solid var(--pf-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--pf-gold);
  margin-bottom: 20px;
  transition: var(--pf-transition);
}
.pf-service:hover .pf-service__icon {
  background: var(--pf-gold);
  color: #0a0e17;
  transform: scale(1.1);
}
.pf-service__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pf-service__desc {
  font-size: 0.88rem;
  color: var(--pf-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.pf-service__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pf-service__list li {
  font-size: 0.84rem;
  color: var(--pf-text-muted);
  padding-left: 18px;
  position: relative;
}
.pf-service__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pf-gold);
}

/* ============================================================
   CONTACT
   ============================================================ */
.pf-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.pf-contact__card {
  background: var(--pf-card);
  border: 1px solid var(--pf-border-sub);
  border-radius: var(--pf-radius-lg);
  padding: 36px;
  height: 100%;
}
.pf-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--pf-border-sub);
}
.pf-contact__item:last-of-type { border-bottom: none; }
.pf-contact__item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pf-gold-light);
  border: 1px solid var(--pf-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--pf-gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.pf-contact__item-label {
  font-size: 0.75rem;
  color: var(--pf-text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.pf-contact__item-value {
  font-size: 0.92rem;
  color: var(--pf-text);
  font-weight: 500;
  transition: var(--pf-transition);
  word-break: break-all;
}
a.pf-contact__item-value:hover { color: var(--pf-gold); }

.pf-contact__socials {
  display: flex;
  gap: 10px;
  padding-top: 24px;
}
.pf-contact__social {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--pf-border-sub);
  background: var(--pf-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--pf-text-muted);
  font-size: 1rem;
  transition: var(--pf-transition);
}
.pf-contact__social:hover {
  border-color: var(--pf-gold);
  color: var(--pf-gold);
  background: var(--pf-gold-light);
  transform: translateY(-2px);
}

.pf-contact__cta-inner {
  background: linear-gradient(135deg, var(--pf-card), rgba(255,215,0,0.03));
  border: 1px solid var(--pf-gold-mid);
  border-radius: var(--pf-radius-lg);
  padding: 40px 36px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pf-contact__cta-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--pf-gold);
  color: #0a0e17;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(255,215,0,0.3);
}
.pf-contact__cta-inner h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.pf-contact__cta-inner p {
  font-size: 0.9rem;
  color: var(--pf-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.pf-footer {
  background: var(--pf-bg);
  border-top: 1px solid var(--pf-border-sub);
  padding: 40px 0;
}
.pf-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.pf-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.pf-footer__brand p { font-size: 0.82rem; color: var(--pf-text-muted); }
.pf-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.pf-footer__links a {
  font-size: 0.85rem;
  color: var(--pf-text-muted);
  transition: var(--pf-transition);
}
.pf-footer__links a:hover { color: var(--pf-gold); }
.pf-footer__copy {
  font-size: 0.82rem;
  color: var(--pf-text-dim);
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.pf-scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--pf-gold);
  color: #0a0e17;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--pf-transition);
  z-index: 999;
}
.pf-scroll-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.pf-scroll-top:hover { transform: translateY(-3px); }

/* ============================================================
   MODALS
   ============================================================ */
.pf-modal {
  background: #111827;
  border-radius: 16px;
  border: 1px solid var(--pf-border-sub);
  overflow: hidden;
}
.pf-modal__header {
  background: #0f1420;
  border-bottom: 1px solid var(--pf-border-sub);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pf-modal__title {
  color: var(--pf-gold) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pf-modal__title i { color: var(--pf-gold); }
.pf-modal__close {
  background: none;
  border: none;
  color: var(--pf-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--pf-transition);
  line-height: 1;
  opacity: 1 !important;
}
.pf-modal__close:hover { color: var(--pf-gold); background: var(--pf-gold-light); }
.pf-modal__body {
  display: flex;
  gap: 28px;
  padding: 28px;
  max-height: 80vh;
  overflow-y: auto;
  flex: 1;
}
.pf-modal__gallery { flex: 1; min-width: 0; }
.pf-modal__info { flex: 1; min-width: 0; }
.pf-modal__status {
  background: rgba(46,204,113,0.07);
  border: 1px solid rgba(46,204,113,0.25);
  border-radius: var(--pf-radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--pf-text-muted);
  margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.5;
}
.pf-modal__status i { color: var(--pf-green); flex-shrink: 0; margin-top: 2px; }
.pf-modal__section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pf-gold);
  margin-bottom: 12px;
  margin-top: 20px;
}
.pf-modal__info p {
  font-size: 0.88rem;
  color: var(--pf-text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.pf-modal__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.pf-modal__list li {
  font-size: 0.86rem;
  color: var(--pf-text-muted);
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--pf-border-sub);
}
.pf-modal__list li:last-child { border-bottom: none; }
.pf-modal__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pf-gold);
}
.pf-modal__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-modal__techs span {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--pf-gold-light);
  color: var(--pf-gold);
  border: 1px solid var(--pf-border);
  padding: 4px 12px;
  border-radius: 50px;
}

/* Owl nav in modals */
.modal .owl-carousel .owl-nav button.owl-prev,
.modal .owl-carousel .owl-nav button.owl-next {
  background: rgba(255,215,0,0.15) !important;
  color: var(--pf-gold) !important;
  font-size: 18px;
  padding: 8px 12px !important;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--pf-transition);
}
.modal .owl-carousel .owl-nav button.owl-prev { left: -40px; }
.modal .owl-carousel .owl-nav button.owl-next { right: -40px; }
.modal .owl-carousel .owl-nav button:hover {
  background: var(--pf-gold) !important;
  color: #0a0e17 !important;
}
.modal .owl-carousel .owl-item img {
  border-radius: 10px;
  object-fit: contain;
}
.modal .owl-dots .owl-dot span { background: var(--pf-border) !important; }
.modal .owl-dots .owl-dot.active span { background: var(--pf-gold) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .pf-projects { grid-template-columns: repeat(2, 1fr); }
  .pf-project--featured { grid-column: span 1; }
  .pf-project--featured .pf-project__inner { height: 340px; }
  .pf-skills-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-hero__inner { gap: 40px; }
  .pf-stat { padding: 16px 28px; }
}

/* Tablet — 900px */
@media (max-width: 900px) {
  .pf-about { grid-template-columns: 1fr; gap: 40px; }
  .pf-about__photo-frame { max-width: 360px; margin: 0 auto; }

  .pf-timeline__line { left: 24px; }
  .pf-timeline__item { width: 100%; margin-left: 0 !important; padding-left: 60px !important; padding-right: 0 !important; }
  .pf-timeline__item--left .pf-timeline__dot,
  .pf-timeline__item--right .pf-timeline__dot { left: 18px; right: auto; }
  .pf-timeline__item--left .pf-timeline__dot--featured { left: 15px; right: auto; }

  .pf-services { grid-template-columns: 1fr 1fr; }
  .pf-contact { grid-template-columns: 1fr; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  .pf-nav__links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10,14,23,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 80px 24px 32px;
    gap: 4px;
    border-bottom: 1px solid var(--pf-border-sub);
  }
  .pf-nav__links.open { display: flex; }
  .pf-nav__link { font-size: 1rem; padding: 12px 16px; width: 100%; }
  .pf-nav__toggle { display: flex; z-index: 1001; }
  .pf-nav__brand { z-index: 1001; position: relative; }

  .pf-section { padding: 70px 0; }
  .pf-section-header { margin-bottom: 40px; }

  .pf-hero .container { padding-top: 80px; }
  .pf-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .pf-hero__desc { margin: 0 auto 32px; }
  .pf-hero__actions { justify-content: center; }
  .pf-hero__socials { justify-content: center; }
  .pf-hero__photo-wrap { order: -1; }
  .pf-hero__photo-ring { width: 220px; height: 220px; }
  .pf-hero__badge { display: none; }

  .pf-stats { gap: 0; }
  .pf-stat { padding: 14px 18px; }
  .pf-stat__num { font-size: 1.8rem; }
  .pf-stat__divider { height: 30px; }

  .pf-about__info-grid { grid-template-columns: 1fr; }

  .pf-projects { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pf-project__desc { display: none; }
  .pf-project--featured { grid-column: span 1; }

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

  .pf-modal__body { flex-direction: column; padding: 16px; }
  .modal .owl-carousel .owl-nav button.owl-prev { left: 0; }
  .modal .owl-carousel .owl-nav button.owl-next { right: 0; }

  .pf-footer__inner { flex-direction: column; text-align: center; }
  .pf-footer__links { justify-content: center; }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .pf-hero__name { font-size: 1.9rem; }
  .pf-projects { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pf-project--featured { grid-column: span 1; }
  .pf-stats { flex-wrap: wrap; }
  .pf-stat { flex: 1 1 40%; }
  .pf-stat__divider { display: none; }
  .pf-filters { gap: 6px; }
  .pf-filter { padding: 8px 14px; font-size: 0.82rem; }
}
