/*
Theme Name: CV Andrés
Theme URI: http://localhost/cv-andres
Author: Andrés Felipe Navas
Description: Personal CV – dark warm modern theme
Version: 2.0.0
*/

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg:        #0a0d12;
  --surface:   #13181f;
  --surface2:  #1a2030;
  --border:    #252d3a;
  --border-w:  #3a4458;
  --text:      #e8edf5;
  --muted:     #7a8699;
  --gold:      #f0a832;
  --gold-dim:  #c98b28;
  --blue:      #5b9cf6;
  --green:     #3ecf6e;
  --purple:    #c084fc;
  --orange:    #fb923c;
  --radius:    12px;
  --max-w:     900px;
}

/* ── Base ───────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ── Keyframes ──────────────────────────────────────── */
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
  33%  { transform: translate(30px,-25px) scale(1.06) rotate(5deg); }
  66%  { transform: translate(-20px,20px) scale(0.96) rotate(-3deg); }
}
@keyframes float-photo {
  0%, 100% { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,168,50,0.4), 0 0 0 6px rgba(240,168,50,0.1); }
  50%  { box-shadow: 0 0 0 8px rgba(240,168,50,0.15), 0 0 0 14px rgba(240,168,50,0.05); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62,207,110,0.6); }
  50%  { box-shadow: 0 0 0 6px rgba(62,207,110,0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Scroll reveal ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1),
              transform 0.65s cubic-bezier(.22,1,.36,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.cv-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

/* organic blobs */
.cv-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blob 12s ease-in-out infinite;
}
.cv-hero__blob--1 {
  width: 360px; height: 360px;
  background: rgba(240,168,50,0.12);
  top: -80px; left: -80px;
  animation-delay: 0s;
}
.cv-hero__blob--2 {
  width: 300px; height: 300px;
  background: rgba(91,156,246,0.1);
  bottom: -60px; right: -60px;
  animation-delay: -4s;
}
.cv-hero__blob--3 {
  width: 200px; height: 200px;
  background: rgba(62,207,110,0.07);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -8s;
}

/* grid dot texture */
.cv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.cv-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* ── Photo ───────────────────────────────────────────── */
.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: float-photo 5s ease-in-out infinite;
}

.hero-photo {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  animation: pulse-ring 3s ease-in-out infinite;
  background: var(--surface2);
  flex-shrink: 0;
}

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

.hero-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--surface2), #252d3a);
  color: var(--gold);
  letter-spacing: -2px;
}

.hero-photo-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}

/* ── Hero text ───────────────────────────────────────── */
.hero-text__name {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold) 60%, #fb923c 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
  margin-bottom: 0.35rem;
}

.hero-text__role {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 1.4rem;
}

.hero-text__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.8rem;
  margin-bottom: 1.8rem;
}

.hero-text__contacts a,
.hero-text__contacts span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  transition: color 0.2s;
}
.hero-text__contacts a:hover { color: var(--gold); }
.hero-text__contacts svg { flex-shrink: 0; }

/* ── Stats row ───────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  min-width: 80px;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-pill:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.stat-pill__num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-pill__label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 0.2rem;
}

/* ══════════════════════════════════════════════════════
   MAIN
══════════════════════════════════════════════════════ */
.cv-main {
  padding: 2.2rem 1.75rem 5rem;
}

.cv-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.2rem;
}
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-print:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ── Section card ────────────────────────────────────── */
.cv-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.9rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.cv-section:hover {
  border-color: var(--border-w);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.cv-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-bottom: 0.75rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.cv-section__title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Summary ─────────────────────────────────────────── */
.summary-text {
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.85;
}

/* ── Skills ──────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.skill-group__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  padding: 0.22rem 0.58rem;
  border-radius: 5px;
  font-weight: 500;
  border: 1px solid;
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tag:hover { transform: translateY(-1px); }

.tag-gold   { color: var(--gold);   background: rgba(240,168,50,0.1);  border-color: rgba(240,168,50,0.3);  }
.tag-gold:hover   { box-shadow: 0 0 10px rgba(240,168,50,0.3); }

.tag-blue   { color: var(--blue);   background: rgba(91,156,246,0.1);  border-color: rgba(91,156,246,0.3);  }
.tag-blue:hover   { box-shadow: 0 0 10px rgba(91,156,246,0.3); }

.tag-green  { color: var(--green);  background: rgba(62,207,110,0.1);  border-color: rgba(62,207,110,0.3);  }
.tag-green:hover  { box-shadow: 0 0 10px rgba(62,207,110,0.3); }

.tag-orange { color: var(--orange); background: rgba(251,146,60,0.1);  border-color: rgba(251,146,60,0.3);  }
.tag-orange:hover { box-shadow: 0 0 10px rgba(251,146,60,0.3); }

.tag-purple { color: var(--purple); background: rgba(192,132,252,0.1); border-color: rgba(192,132,252,0.3); }
.tag-purple:hover { box-shadow: 0 0 10px rgba(192,132,252,0.3); }

/* ── Timeline ────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 1.6rem; }

.job {
  padding-left: 1.3rem;
  border-left: 2px solid var(--border);
  position: relative;
}
.job::before {
  content: '';
  position: absolute;
  left: -5px; top: 7px;
  width: 8px; height: 8px;
  background: var(--muted);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.job--current { border-left-color: var(--green); }
.job--current::before {
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.job-title   { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.job-company { font-size: 0.85rem; color: var(--gold); font-weight: 500; margin-top: 0.1rem; }

.job-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.job ul { list-style: none; display: flex; flex-direction: column; gap: 0.42rem; }
.job li {
  font-size: 0.87rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.job li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.78rem;
  top: 2px;
}
.job li strong { color: var(--text); font-weight: 600; }

/* ── Projects ────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(240,168,50,0.1);
}

.project-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.project-card li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.project-card li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--green);
  font-size: 0.75rem;
  top: 2px;
}

/* ── Bottom 3-col ────────────────────────────────────── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.9fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.bottom-grid .cv-section { margin-bottom: 0; }

.edu-item__degree { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.edu-item__school { font-size: 0.83rem; color: var(--gold); }
.edu-item__year   { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }

.cert-list { display: flex; flex-direction: column; gap: 0.6rem; }
.cert-item__name   { font-size: 0.83rem; font-weight: 500; color: var(--text); }
.cert-item__issuer { font-size: 0.74rem; color: var(--muted); }

.lang-list { display: flex; flex-direction: column; gap: 0.9rem; }
.lang-item__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.lang-item__name  { font-weight: 600; color: var(--text); }
.lang-item__level { color: var(--muted); font-size: 0.75rem; }
.lang-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.lang-bar__fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

/* ── Footer ──────────────────────────────────────────── */
.cv-footer {
  text-align: center;
  padding: 1.8rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}
.cv-footer a { color: var(--muted); }
.cv-footer a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════ */
.cv-contact {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 4.5rem;
}

.cv-contact__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: blob 14s ease-in-out infinite;
}
.cv-contact__blob--1 {
  width: 320px; height: 320px;
  background: rgba(240,168,50,0.1);
  top: -60px; right: 5%;
  animation-delay: -3s;
}
.cv-contact__blob--2 {
  width: 260px; height: 260px;
  background: rgba(91,156,246,0.08);
  bottom: -40px; left: 10%;
  animation-delay: -7s;
}

.cv-contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Info cards ──────────────────────────────────────── */
.contact-info { display: flex; flex-direction: column; gap: 0.9rem; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  border-color: var(--gold);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(240,168,50,0.1);
  text-decoration: none;
}

.contact-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card__icon--gold   { background: rgba(240,168,50,0.15); color: var(--gold); }
.contact-card__icon--green  { background: rgba(62,207,110,0.15); color: var(--green); }
.contact-card__icon--blue   { background: rgba(91,156,246,0.15); color: var(--blue); }

.contact-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.contact-card__value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.contact-availability {
  margin-top: 0.4rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.contact-availability__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.contact-availability__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.contact-availability__tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green);
  background: rgba(62,207,110,0.1);
  border: 1px solid rgba(62,207,110,0.25);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
}

/* ── Form ────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

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

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.form-input {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input::placeholder { color: var(--muted); opacity: 0.6; }
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,168,50,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  color: #000;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-send:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,168,50,0.35);
}
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-send__text { display: inline-flex; align-items: center; gap: 0.4rem; }

.form-feedback {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
}
.form-feedback--success {
  background: rgba(62,207,110,0.1);
  border: 1px solid rgba(62,207,110,0.3);
  color: var(--green);
}
.form-feedback--error {
  background: rgba(251,146,60,0.1);
  border: 1px solid rgba(251,146,60,0.3);
  color: var(--orange);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 680px) {
  .cv-hero__inner    { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-wrap   { order: -1; }
  .hero-text__contacts { justify-content: center; }
  .hero-stats        { justify-content: center; }
  .skills-grid       { grid-template-columns: 1fr; }
  .projects-grid     { grid-template-columns: 1fr; }
  .bottom-grid       { grid-template-columns: 1fr; }
  .job-header        { flex-direction: column; gap: 0.3rem; }
  .cv-contact__inner { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.4rem; }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  body, .cv-hero, .cv-section, .project-card, .bottom-grid .cv-section {
    background: #fff !important; color: #000 !important;
    border-color: #ccc !important; box-shadow: none !important;
  }
  .cv-hero__blob, .cv-hero::after { display: none; }
  .cv-hero__inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { display: none; }
  .hero-text__name { -webkit-text-fill-color: #000; background: none; }
  .hero-text__contacts a, .hero-text__contacts span,
  .cv-section__title, .job-company, .job-title, .cert-item__name,
  .edu-item__degree, .lang-item__name { color: #000 !important; }
  .tag, .job-date { border-color: #ccc !important; color: #333 !important; background: #f5f5f5 !important; }
  .btn-print, .cv-actions, .cv-contact { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
