/* =========================================
   Palette : Blanc / Bordeaux (Burgundy) / Or
   ========================================= */
:root {
  --burgundy: #7d3347;
  --burgundy-dark: #4a2733;
  --burgundy-light: #9c5468;
  --gold: #c9a463;
  --gold-light: #e8cd94;
  --gold-deep: #9c7a3e;
  --cream: #faf6f0;
  --white: #ffffff;
  --text-dark: #2b2320;
  --text-muted: #6b615c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy);
}

.text-gold {
  background: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold-light) 45%, var(--gold) 75%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-cream { background-color: var(--cream); }
.bg-white { background-color: var(--white); }

.section-padding { padding: 100px 0; }

/* ===== Section titles ===== */
.section-title h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: .5rem; }
.eyebrow-dark, .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
}
.title-divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  margin-top: 1rem;
  border-radius: 3px;
}
.title-divider-light { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }

/* ===== Navbar ===== */
#mainNav {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(109, 17, 40, 0.08);
  transition: all .3s ease;
  padding: .8rem 0;
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--burgundy) !important;
}
.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 .6rem;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 100%; }
.navbar-nav .nav-link:hover { color: var(--burgundy) !important; }

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .5px;
  border-radius: 50px;
  padding: .35rem .9rem;
  cursor: pointer;
  transition: all .25s ease;
}
.lang-toggle-btn:hover {
  background: var(--burgundy);
  color: var(--white);
}
.lang-toggle-btn i { font-size: .95rem; }

.btn-gold {
  background-color: var(--gold);
  border: 2px solid var(--gold);
  color: var(--burgundy-dark) !important;
  font-weight: 600;
  border-radius: 50px;
  transition: all .3s ease;
}
.btn-gold:hover {
  background-color: transparent;
  color: var(--gold) !important;
  border-color: var(--gold);
}
.btn-outline-light {
  border-radius: 50px;
  font-weight: 600;
  border-width: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 55%, var(--burgundy-light) 100%);
  color: var(--white);
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,164,99,0.16), transparent 45%),
    radial-gradient(circle at 15% 75%, rgba(201,164,99,0.10), transparent 40%);
  z-index: 1;
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  mix-blend-mode: screen;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  padding: .4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(201,164,99,0.4);
}
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; }

.avatar-frame {
  width: 300px;
  height: 300px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  padding: 12px;
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(74,39,51,0.25);
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.social-links a {
  color: rgba(255,255,255,0.85);
  font-size: 1.3rem;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  transition: all .3s ease;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--burgundy-dark);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== About ===== */
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  padding: 1rem;
  border-radius: 12px;
  border-left: 3px solid var(--gold);
}
.info-item i { font-size: 1.4rem; color: var(--burgundy); }
.info-item span { display: block; font-size: .75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.info-item strong { font-size: .95rem; color: var(--text-dark); }

.qualities-card {
  background: var(--burgundy);
  border-radius: 16px;
  padding: 2.2rem;
  color: var(--white);
}
.qualities-card h5 { color: var(--white); }
.quality-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,75,0.35);
  border-radius: 50px;
  padding: .6rem 1rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.quality-pill i { color: var(--gold); }

/* ===== Skills ===== */
.skill-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 6px 24px rgba(125,51,71,0.08);
  border-top: 4px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
}
.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(125,51,71,0.15);
}
.skill-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.skill-card h5 { margin-bottom: 1rem; }
.skill-list { list-style: none; padding: 0; margin: 0; }
.skill-list li {
  padding: .4rem 0;
  border-bottom: 1px dashed #eadfce;
  color: var(--text-muted);
  font-size: .95rem;
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before {
  content: "\2022";
  color: var(--gold);
  font-weight: bold;
  margin-right: .6rem;
}
.progress { height: 8px; border-radius: 50px; background: #eee0c8; }
.progress-bar { background: linear-gradient(90deg, var(--burgundy), var(--gold)); }

/* ===== Projects ===== */
.project-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(125,51,71,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(125,51,71,0.16);
}
.project-header {
  background: linear-gradient(120deg, var(--burgundy-dark), var(--burgundy));
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
}
.project-header i { font-size: 2.2rem; color: var(--gold); }
.project-header h5 { color: var(--white); margin: 0; }
.project-header span { font-size: .85rem; color: rgba(255,255,255,0.75); }
.project-body { padding: 1.8rem; }
.project-body p { color: var(--text-muted); }
.project-body ul { padding-left: 1.2rem; color: var(--text-dark); margin-bottom: 1.2rem; }
.project-body ul li { margin-bottom: .3rem; font-size: .95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--cream);
  border: 1px solid var(--gold);
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 50px;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 3px solid var(--gold);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -57px;
  top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
}
.timeline-dot-gold { background: var(--gold); color: var(--burgundy-dark); }
.timeline-content {
  background: var(--white);
  padding: 1.5rem 1.8rem;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(125,51,71,0.08);
}
.timeline-date {
  display: inline-block;
  background: var(--cream);
  color: var(--burgundy);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .25rem .8rem;
  border-radius: 50px;
  margin-bottom: .6rem;
}
.timeline-content h5 { margin-bottom: .5rem; }
.timeline-content p { color: var(--text-muted); margin-bottom: 0; }

/* ===== Contact ===== */
.contact-section {
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
  position: relative;
}
.contact-info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,162,75,0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: transform .3s ease;
}
.contact-info-card:hover { transform: translateY(-6px); }
.contact-info-card i { font-size: 2rem; color: var(--gold); margin-bottom: 1rem; }
.contact-info-card h6 { color: var(--white); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; }
.contact-info-card a { color: rgba(255,255,255,0.8); text-decoration: none; word-break: break-word; }
.contact-info-card a:hover { color: var(--gold); }
.contact-info-card-whatsapp { border-color: rgba(37,211,102,0.45); }
.contact-info-card-whatsapp i { color: #25d366; }
.contact-info-card-whatsapp a:hover { color: #25d366; }

.contact-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.copy-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  cursor: pointer;
  transition: all .25s ease;
  padding: 0;
}
.copy-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--burgundy-dark); }
.copy-btn.copied { background: #25d366; border-color: #25d366; color: #fff; }

.contact-form {
  background: var(--white);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.contact-form .form-label { font-weight: 600; color: var(--burgundy); font-size: .88rem; }
.contact-form .form-control {
  border-radius: 10px;
  border: 1px solid #e2d6c3;
  padding: .7rem 1rem;
}
.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(201,162,75,0.25);
}

/* ===== Footer ===== */
.footer {
  background: var(--burgundy-dark);
  color: var(--white);
  padding: 3rem 0 2rem;
}
.footer .navbar-brand { color: var(--white) !important; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px; height: 48px;
  border-radius: 50%;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all .3s ease;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Animations au scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .section-padding { padding: 70px 0; }
  .timeline { padding-left: 30px; }
  .timeline-dot { left: -47px; width: 34px; height: 34px; }
  .avatar-frame { width: 220px; height: 220px; margin-top: 2rem; }
}
