@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500&display=swap');

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

  :root {
    --gold: #C9A84C;
    --dark: #0E0E0E;
    --dark-2: #1A1A1A;
    --dark-3: #252525;
    --dark-rgb: 14, 14, 14;
    --text: #F0EDE6;
    --text-muted: #8A8680;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    background: var(--dark);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--dark-rgb), 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid rgba(201,168,76,0.15);
  }

  .nav-logo {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 0.05em;
  }

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

  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
  }

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

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

  .lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
  }

  .lang-opt {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.2s;
  }

  .lang-opt.active { color: var(--gold); }

  .lang-sep {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
  }

  .lang-toggle:hover .lang-opt:not(.active) { color: var(--text); }

  .nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-muted);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55%;
    height: 120%;
    background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
    border-left: 0.5px solid rgba(201,168,76,0.12);
    transform: skewX(-8deg);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding-top: 5rem;
  }

  .available-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201,168,76,0.08);
    color: var(--gold);
    border: 0.5px solid rgba(201,168,76,0.3);
    padding: 0.4rem 1.2rem;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    font-family: var(--sans);
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.3rem;
    margin-bottom: 1.5rem;
    font-family: var(--sans);
  }

  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    color: var(--text);
  }

  .hero h1 span { color: var(--gold); }

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

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

  .btn-primary {
    padding: 0.75rem 2rem;
    background: var(--gold);
    color: var(--dark);
    border: none;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    display: inline-block;
  }

  .btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

  .btn-outline {
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--text-muted);
    border: 0.5px solid rgba(201,168,76,0.3);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
  }

  .btn-outline:hover { color: var(--gold); border-color: var(--gold); }

  .nav-tool-link {
    color: var(--gold) !important;
    border: 0.5px solid rgba(201,168,76,0.35);
    border-radius: 4px;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    transition: all 0.2s;
  }
  .nav-tool-link:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }

  .hero-cv {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
  }

  .btn-cv {
    padding: 0.45rem 1.2rem;
    background: transparent;
    color: var(--text-muted);
    border: 0.5px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
  }

  .btn-cv:hover { color: var(--gold); border-color: rgba(201,168,76,0.4); }

  /* HERO PHOTO SIDE */
  .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .hero-photo-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(201,168,76,0.1);
  }

  .hero-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-photo-initials {
    font-family: var(--serif);
    font-size: 3.5rem;
    color: var(--gold);
    opacity: 0.45;
    user-select: none;
  }

  /* SECTION BASE */
  section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 3rem;
  }

  .section-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 0.5px;
    background: var(--gold);
  }

  .section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text);
  }

  /* SKILLS */
  .skills-section { background: var(--dark-2); }

  .skills-categories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .skill-category-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }

  .skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .skill-pill {
    background: rgba(201,168,76,0.08);
    color: var(--gold);
    border: 0.5px solid rgba(201,168,76,0.25);
    padding: 0.5rem 1.2rem;
    font-size: 13px;
    font-family: var(--sans);
    letter-spacing: 0.04em;
    border-radius: 4px;
    cursor: default;
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  .skill-pill:hover {
    background: rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.5);
  }

  /* PROJECTS */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .project-card {
    background: var(--dark-2);
    border: 0.5px solid rgba(201,168,76,0.1);
    padding: 2rem;
    transition: border-color 0.25s, transform 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
  }

  .project-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
  }

  .project-card:hover { border-color: rgba(201,168,76,0.35); transform: translateY(-4px); }
  .project-card:hover::after { transform: scaleX(1); }

  .project-number {
    font-family: var(--serif);
    font-size: 3rem;
    color: rgba(201,168,76,0.1);
    position: absolute;
    top: 1rem; right: 1.5rem;
    line-height: 1;
    font-weight: 700;
  }

  .project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .tag {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.08);
    border: 0.5px solid rgba(201,168,76,0.2);
    padding: 3px 10px;
  }

  .project-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
    color: var(--text);
  }

  .project-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .project-client {
    display: block;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 1.2rem;
    font-family: var(--sans);
  }

  .project-link {
    display: inline-block;
    font-size: 12px;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.06em;
    border-bottom: 0.5px solid rgba(201,168,76,0.4);
    padding-bottom: 1px;
    transition: opacity 0.2s;
  }
  .project-link:hover { opacity: 0.75; }

  #perso { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }


  /* TIMELINE */
  .xp-section { background: var(--dark-2); }

  .timeline { position: relative; }

  .timeline::before {
    content: '';
    position: absolute;
    left: 160px;
    top: 0; bottom: 0;
    width: 0.5px;
    background: rgba(201,168,76,0.15);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: 158px;
    top: 6px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
  }

  .timeline-date {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-align: right;
    padding-top: 2px;
  }

  .timeline-content h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 3px;
    color: var(--text);
  }

  .timeline-content .company {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
    letter-spacing: 0.05em;
  }

  .timeline-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
  }

  /* CONTACT */
  .contact-centered {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }

  .contact-heading {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.5rem;
  }

  .contact-heading .heading-accent { color: var(--gold); }

  .contact-intro {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 13px;
    color: var(--text-muted);
  }

  .contact-item-icon {
    width: 32px; height: 32px;
    border: 0.5px solid rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: var(--gold);
  }

  .contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  .contact-item a:hover { color: var(--gold); }

  /* CONTACT FORM */
  .honeypot { display: none; }

  .contact-divider {
    border: none;
    border-top: 0.5px solid rgba(201,168,76,0.1);
    margin: 2rem 0;
    width: 100%;
  }

  .contact-form { text-align: left; width: 100%; }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .form-group input,
  .form-group textarea {
    background: var(--dark-2);
    border: 0.5px solid rgba(201,168,76,0.15);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: rgba(201,168,76,0.5);
    box-shadow: 0 0 0 2px rgba(201,168,76,0.08);
  }

  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }

  .btn-submit {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0.9rem 2.5rem;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s;
  }

  .btn-submit:hover:not(:disabled) { opacity: 0.85; }

  .btn-submit:disabled {
    background: var(--dark-3);
    color: var(--text-muted);
    cursor: not-allowed;
  }

  .form-feedback {
    font-size: 13px;
    color: var(--gold);
    min-height: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .form-limit,
  .form-success {
    background: var(--dark-2);
    border: 0.5px solid rgba(201,168,76,0.2);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
  }

  .form-limit p,
  .form-success p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 0.5rem;
  }

  .form-limit a { color: var(--gold); text-decoration: underline; }

  .form-limit-icon,
  .form-success-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* FOOTER */
  footer {
    border-top: 0.5px solid rgba(201,168,76,0.1);
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
  }

  .footer-logo {
    font-family: var(--serif);
    color: var(--gold);
    font-size: 1rem;
  }

  footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  footer a:hover { color: var(--gold); }

  .footer-links {
    display: flex;
    gap: 1.5rem;
  }

  /* SCROLL ANIMATIONS */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .delay-1 { transition-delay: 0.1s; }
  .delay-2 { transition-delay: 0.2s; }
  .delay-3 { transition-delay: 0.3s; }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }

    .nav-burger { display: flex; }

    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(var(--dark-rgb), 0.97);
      flex-direction: column;
      padding: 1.5rem 3rem;
      gap: 1.5rem;
      border-bottom: 0.5px solid rgba(201,168,76,0.15);
      backdrop-filter: blur(12px);
    }

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

    .hero { padding: 0 1.5rem; }
    .hero-grid {
      grid-template-columns: 1fr;
      padding-top: 6rem;
      gap: 3rem;
    }

    .hero-visual {
      display: flex;
      justify-content: center;
      margin-bottom: 2rem;
      order: -1;
    }

    .hero-photo-circle {
      width: 160px;
      height: 160px;
    }

    section { padding: 4rem 1.5rem; }

    .timeline::before { left: 0; }
    .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .timeline-item::before { left: -2px; }
    .timeline-date { text-align: left; padding-left: 1rem; }

    footer { flex-direction: column; gap: 1rem; text-align: center; }

    .form-row { grid-template-columns: 1fr; }
  }

/* 404 */
.not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.not-found-bg {
  font-family: var(--serif);
  font-size: clamp(12rem, 38vw, 24rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  opacity: 0.06;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
}

.not-found-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.not-found-badge {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
  padding: 0.3rem 1rem;
  border-radius: 2px;
}

.not-found h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
}

.not-found p {
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.7;
  font-size: 0.95rem;
}
