/* ===== Colorful CV theme system ===== */
:root, [data-theme="ocean"] {
  --c1: #0ea5e9; --c2: #6366f1; --c3: #22d3ee;
  --bg: #f0f7ff; --surface: #ffffff; --surface-2: #e8f1fd;
  --text: #0f1b2d; --muted: #52627a; --line: #d6e3f5;
}
[data-theme="sunset"] {
  --c1: #f97316; --c2: #ec4899; --c3: #facc15;
  --bg: #fff6ef; --surface: #ffffff; --surface-2: #ffeadc;
  --text: #2b1409; --muted: #7a5445; --line: #f6d9c7;
}
[data-theme="forest"] {
  --c1: #10b981; --c2: #0d9488; --c3: #84cc16;
  --bg: #f0fbf5; --surface: #ffffff; --surface-2: #dcf5e8;
  --text: #0b2418; --muted: #4a6b5a; --line: #cdeadb;
}
[data-theme="royal"] {
  --c1: #8b5cf6; --c2: #d946ef; --c3: #6366f1;
  --bg: #f7f3ff; --surface: #ffffff; --surface-2: #ede4ff;
  --text: #1e1236; --muted: #64587c; --line: #e2d7fb;
}
[data-theme="rainbow"] {
  --c1: #ef4444; --c2: #3b82f6; --c3: #22c55e;
  --bg: #fffdf5; --surface: #ffffff; --surface-2: #fef3c7;
  --text: #1c1917; --muted: #6b625a; --line: #eee4cc;
}
[data-theme="midnight"] {
  --c1: #22d3ee; --c2: #a855f7; --c3: #f472b6;
  --bg: #0b1020; --surface: #131a2e; --surface-2: #1b2440;
  --text: #e8ecf8; --muted: #9aa6c4; --line: #26304d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 16px;
  transition: background .4s, color .4s;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.grad { background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3)); }
.grad-text {
  background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wrap { width: min(1150px, 100% - 32px); margin-inline: auto; }

/* ===== Header ===== */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: .25s;
}
.nav a:hover, .nav a.active { color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--text); cursor: pointer; }

/* ===== Hero ===== */
.hero { position: relative; padding: 130px 0 90px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; z-index: 0; animation: float 12s ease-in-out infinite; }
.blob.b1 { width: 420px; height: 420px; background: var(--c1); top: -80px; left: -120px; }
.blob.b2 { width: 360px; height: 360px; background: var(--c2); bottom: -120px; right: -80px; animation-delay: -4s; }
.blob.b3 { width: 260px; height: 260px; background: var(--c3); top: 40%; left: 45%; animation-delay: -8s; }
@keyframes float { 50% { transform: translate(30px, -30px) scale(1.08); } }

.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted);
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #22c55e33; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1.08; font-weight: 800; margin: 18px 0 12px; letter-spacing: -.03em; }
.hero .role { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.hero .role b { color: var(--text); }
.hero p.lead { color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 14px;
  font-weight: 600; font-size: .95rem; transition: transform .25s, box-shadow .25s; cursor: pointer; border: 0;
}
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 25px -8px var(--c2); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn:hover { transform: translateY(-3px); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: .25s;
}
.socials a:hover { color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; transform: translateY(-3px); }

.photo-card { position: relative; justify-self: center; width: min(360px, 100%); }
.photo-ring { padding: 8px; border-radius: 36px; background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3)); animation: hue 8s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
[data-theme] .photo-ring { animation: none; }
[data-theme="rainbow"] .photo-ring { animation: hue 8s linear infinite; }
.photo-ring img { border-radius: 30px; aspect-ratio: 4/5; object-fit: cover; width: 100%; background: var(--surface); }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 15px 35px -15px #0004;
  font-size: .82rem; font-weight: 600; animation: bob 5s ease-in-out infinite;
}
.float-badge i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.float-badge small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.float-badge.fb1 { top: 30px; left: -40px; }
.float-badge.fb2 { bottom: 40px; right: -30px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; text-align: center;
  box-shadow: 0 20px 40px -25px #0003;
}
.stat b { display: block; font-size: 2rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ===== Sections ===== */
section.block { padding: 90px 0 20px; }
.sec-head { margin-bottom: 36px; }
.sec-head .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.sec-head .bar { width: 70px; height: 5px; border-radius: 5px; margin-top: 10px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 25px 45px -28px var(--c2); border-color: color-mix(in srgb, var(--c1) 45%, var(--line)); }

.profile-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.profile-grid p { color: var(--muted); font-size: 1.02rem; }
.info-list { list-style: none; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: center; font-size: .93rem; word-break: break-word; }
.ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}

/* Timeline */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--c1), var(--c2), var(--c3)); }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -32px; top: 30px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--c1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c1) 20%, transparent);
}
.tl-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.tl-top h3 { font-size: 1.2rem; font-weight: 700; }
.date {
  font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.org { color: var(--c2); font-weight: 600; font-size: .95rem; margin: 4px 0 12px; }
[data-theme="midnight"] .org { color: var(--c1); }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; font-size: .8rem; color: var(--c1); }
.highlight {
  margin-top: 14px; padding: 12px 16px; border-radius: 14px; font-size: .9rem;
  background: var(--surface-2); border-left: 4px solid var(--c3);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.card .ico { margin-bottom: 14px; width: 48px; height: 48px; font-size: 1.15rem; border-radius: 14px; }
.card .meta { color: var(--muted); font-size: .9rem; }
.card a.link { color: var(--c2); font-weight: 600; }
[data-theme="midnight"] .card a.link { color: var(--c1); }

/* Workshops */
.ws-list { display: grid; gap: 14px; }
.ws { display: flex; gap: 16px; align-items: flex-start; }
.ws .num {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c2), var(--c3));
}
.ws p { color: var(--muted); font-size: .93rem; }
.ws strong { color: var(--text); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); transition: .25s;
}
.chip i { margin-right: 6px; color: var(--c1); }
.chip:hover { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; border-color: transparent; }
.chip:hover i { color: #fff; }

/* Skills */
.skill-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.skill-card .tags span { font-size: .8rem; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text); }
.skill-card:nth-child(4n+1) .ico { background: linear-gradient(135deg, var(--c1), var(--c2)); }
.skill-card:nth-child(4n+2) .ico { background: linear-gradient(135deg, var(--c2), var(--c3)); }
.skill-card:nth-child(4n+3) .ico { background: linear-gradient(135deg, var(--c3), var(--c1)); }
.skill-card:nth-child(4n+4) .ico { background: linear-gradient(135deg, var(--c2), var(--c1)); }

/* Awards */
.award-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 34px;
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-bottom: 20px;
}
.award-hero .medal {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem;
  background: linear-gradient(135deg, #fde68a, #f59e0b); color: #7c2d12; box-shadow: 0 0 0 8px #ffffff33;
}
.award-hero h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.25; }
.award-hero p { opacity: .92; }

/* Languages */
.lang { display: grid; gap: 18px; }
.lang .row { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.lang .row span { color: var(--muted); font-weight: 500; font-size: .85rem; }
.meter { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

/* Contact */
.contact-box {
  border-radius: 28px; padding: 44px; color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
.contact-box h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.15; }
.contact-box p { opacity: .92; margin-top: 10px; }
.contact-links { display: grid; gap: 12px; }
.contact-links a {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px;
  background: #ffffff26; border: 1px solid #ffffff40; transition: .25s; word-break: break-word;
}
.contact-links a:hover { background: #ffffff40; transform: translateX(6px); }
.contact-links i { width: 20px; text-align: center; }

footer { text-align: center; padding: 50px 16px 40px; color: var(--muted); font-size: .9rem; }

/* ===== Theme switcher ===== */
.theme-fab {
  position: fixed; right: 20px; bottom: 96px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 1.3rem;
  background: conic-gradient(#ef4444, #f59e0b, #22c55e, #0ea5e9, #8b5cf6, #ec4899, #ef4444);
  box-shadow: 0 12px 28px -8px #0006; transition: transform .3s;
}
.theme-fab:hover { transform: rotate(45deg) scale(1.06); }
.theme-panel {
  position: fixed; right: 20px; bottom: 160px; z-index: 60; width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  box-shadow: 0 25px 50px -20px #0005; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.96); transition: .25s;
}
.theme-panel.open { opacity: 1; visibility: visible; transform: none; }
.theme-panel h4 { font-size: .85rem; margin-bottom: 12px; color: var(--muted); font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch { border: 2px solid transparent; background: none; cursor: pointer; border-radius: 14px; padding: 4px; font: inherit; font-size: .72rem; color: var(--text); }
.swatch span { display: block; height: 38px; border-radius: 10px; margin-bottom: 4px; }
.swatch.active { border-color: var(--c1); }

.whatsapp_float {
  position: fixed; right: 20px; bottom: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 12px 28px -8px #0006;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s; }
.reveal.show { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero .wrap, .profile-grid, .contact-box { grid-template-columns: 1fr; }
  .photo-card { order: -1; width: min(290px, 80%); }
  .float-badge.fb1 { left: -20px; } .float-badge.fb2 { right: -20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 18px;
    background: var(--surface); border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .award-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px; }
  .contact-box { padding: 28px 20px; }
  .card { padding: 20px; }
  .timeline { padding-left: 26px; }
  .tl-item::before { left: -24px; }
  .timeline::before { left: 6px; }
  .float-badge { font-size: .72rem; }
  .float-badge.fb1 { left: -10px; } .float-badge.fb2 { right: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
