/* ═══════════════════════════════════════════════════════════════
   LUIS DUQUE — PORTAFOLIO PROFESIONAL
   Modern Gradient Style | Bilingual ES/EN
═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* ── Bioluminescent Geodata Palette ── */
  --bg:          #060a0f;
  --bg-2:        #0a0e17;
  --bg-3:        #0f1520;
  --glass:       rgba(255,255,255,0.04);
  --glass-border:rgba(255,255,255,0.08);
  --grad-a:      #06d6a0;   /* jade bioluminiscente */
  --grad-b:      #8338ec;   /* ultravioleta espectral */
  --accent:      #ffb703;   /* ámbar dorado — herencia minera */
  --grad:        linear-gradient(135deg, var(--grad-a), var(--grad-b));
  --grad-text:   linear-gradient(90deg, var(--grad-a), var(--grad-b));
  --text:        #eef2f7;
  --text-muted:  #8fa3b8;
  --text-light:  #5a7080;
  --radius:      16px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(6,214,160,0.18);
  --shadow-lg:   0 20px 60px rgba(131,56,236,0.22);
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h:       72px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea {
  font-family: var(--font);
  outline: none;
  border: none;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grad-a); border-radius: 3px; }

/* ── Utilities ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grad-b);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.2);
  border-radius: 50px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6,214,160,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,214,160,0.5);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--grad-b);
  color: var(--grad-b);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Reveal Animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Pulse Dot ─────────────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: pulse-ring 1.5s infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-badge {
  width: 40px; height: 40px;
  background: var(--grad);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
}
.logo-text-block { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text { font-weight: 700; font-size: 0.78rem; color: var(--text); letter-spacing: -0.01em; }
.logo-subtext { font-size: 0.68rem; color: var(--text-muted); font-weight: 400; }
.logo-subtext-footer { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Language Toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass);
  transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--grad-b); }
.lang-separator { color: var(--glass-border); }
.lang-option { cursor: pointer; transition: var(--transition); }
.lang-option.active { color: var(--grad-b); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}
.hero-brand {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #86efac;
  margin-bottom: 32px;
}
.hero-name {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.typewriter {
  color: var(--grad-b);
  font-weight: 700;
}
.cursor {
  color: var(--grad-b);
  animation: blink 1s infinite;
  font-weight: 300;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-tech-stack {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.tech-tag {
  padding: 6px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.tech-tag:hover { border-color: var(--grad-a); color: var(--text); }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--grad-b);
  border-radius: 2px;
  animation: scroll-dot 2s infinite;
}
@keyframes scroll-dot {
  0%   { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* Hero entry animations */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: center;
}
.about-avatar-col { display: flex; justify-content: center; }
.avatar-wrapper { position: relative; }
.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.3;
  animation: spin-slow 8s linear infinite;
  mask: radial-gradient(farthest-side, transparent 75%, black 76%);
  -webkit-mask: radial-gradient(farthest-side, transparent 75%, black 76%);
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.avatar-badge-floating {
  position: absolute;
  bottom: -12px; right: -12px;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.about-content .section-label { margin-bottom: 12px; }
.about-text { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; line-height: 1.8; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--grad-a); background: rgba(6,214,160,0.06); }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-plus { font-size: 1.5rem; font-weight: 900; color: var(--grad-b); }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(6,214,160,0.3);
  background: rgba(6,214,160,0.05);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(131,56,236,0.2), rgba(6,214,160,0.2));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--grad-b);
}
.service-icon svg { width: 26px; height: 26px; }

/* 4-logo grid icon (Ingeniería de Datos) */
.service-icon--grid {
  width: 52px; height: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 5px;
}
.service-icon--grid .logo-img { width: 100%; height: 100%; object-fit: contain; }

/* Multi-brand icons (Power BI + Tableau) */
.service-icon--brands { gap: 7px; }
.service-icon--brands .brand-svg { width: 22px; height: 22px; flex-shrink: 0; }
.service-icon--brands img.brand-svg { object-fit: contain; }

/* Single image logo (Ciencia de Datos, Data Visualization, n8n) */
.logo-img-single { width: 42px; height: 42px; object-fit: contain; }

/* Drop-shadow para logos sobre fondo oscuro */
.service-icon .logo-img,
.service-icon .logo-img-single {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Larger SVG for neural network and regression animation */
.neural-svg, .reg-svg { width: 42px !important; height: 42px !important; }

/* ── Regression animation ───────────────────────────────── */
@keyframes regPtAnim {
  0%, 3%  { opacity: 0; transform: scale(0); }
  10%     { opacity: 1; transform: scale(1.15); }
  16%     { opacity: 1; transform: scale(1); }
  74%     { opacity: 1; }
  90%     { opacity: 0; transform: scale(0); }
  100%    { opacity: 0; }
}
@keyframes regLineAnim {
  0%, 5%  { stroke-dashoffset: 52; opacity: 0; }
  10%     { opacity: 1; }
  30%     { stroke-dashoffset: 0; opacity: 1; }
  70%     { stroke-dashoffset: 0; opacity: 1; }
  90%     { opacity: 0; }
  100%    { stroke-dashoffset: 52; opacity: 0; }
}
.reg-pt {
  transform-box: fill-box;
  transform-origin: center;
  animation: regPtAnim 6s ease infinite;
  opacity: 0;
}
.reg-pt-1 { animation-delay: 0s; }
.reg-pt-2 { animation-delay: 0.35s; }
.reg-pt-3 { animation-delay: 0.7s; }
.reg-pt-4 { animation-delay: 1.05s; }
.reg-pt-5 { animation-delay: 1.4s; }
.reg-pt-6 { animation-delay: 1.75s; }
.reg-line-anim {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
  animation: regLineAnim 6s ease infinite;
  animation-delay: 2.5s;
  opacity: 0;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  padding: 4px 10px;
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--grad-b);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════════════════════ */
.skills { background: var(--bg-2); }
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.skills-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.skill-category { margin-bottom: 28px; }
.skill-category h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.skill-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-badge {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: default;
}
.level-expert {
  background: linear-gradient(135deg, rgba(131,56,236,0.2), rgba(6,214,160,0.2));
  border: 1px solid rgba(6,214,160,0.3);
  color: #7effd4;
}
.level-mid {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}
.skill-badge:hover { transform: scale(1.05); }

.skills-bars h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.skill-bar-item { margin-bottom: 20px; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.skill-bar-label span:last-child { color: var(--grad-b); }
.skill-bar-track {
  height: 6px;
  background: var(--glass);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.skill-bar-fill {
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   EXPERIENCE — TIMELINE
═══════════════════════════════════════════════════════════════ */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--grad-a), var(--grad-b), transparent);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-dot {
  position: absolute;
  left: -34px; top: 24px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(6,214,160,0.3);
}
.timeline-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: rgba(6,214,160,0.3);
  background: rgba(6,214,160,0.05);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.timeline-header h3 { font-size: 1.1rem; font-weight: 700; }
.timeline-company { display: block; color: var(--grad-b); font-weight: 600; font-size: 0.95rem; margin-top: 2px; }
.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.timeline-location { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.timeline-bullets { margin-bottom: 20px; }
.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.7;
}
.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 5px;
  background: var(--grad-b);
  border-radius: 50%;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-tags span {
  padding: 4px 10px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(131,56,236,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: #7effd4;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════════════════════════ */
.education { background: var(--bg-2); }
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.edu-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
}
.edu-card:hover {
  border-color: rgba(6,214,160,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.edu-card--highlight {
  background: linear-gradient(135deg, rgba(6,214,160,0.08), rgba(131,56,236,0.08));
  border-color: rgba(6,214,160,0.3);
}
.edu-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.edu-icon { font-size: 1.8rem; margin-bottom: 12px; }
.edu-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.edu-institution { font-size: 0.8rem; color: var(--grad-b); font-weight: 500; margin-bottom: 4px; }
.edu-year { font-size: 0.78rem; color: var(--text-light); }

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover {
  border-color: rgba(6,214,160,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.project-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.project-img--1 { background: linear-gradient(135deg, #1e1b4b, #312e81, #1e3a5f); }
.project-img--2 { background: linear-gradient(135deg, #0c4a6e, #164e63, #1e3a5f); }
.project-img--3 { background: linear-gradient(135deg, #312e81, #1e1b4b, #0f172a); }
.project-img::after {
  content: '◈';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  opacity: 0.15;
  color: #fff;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.coming-soon {
  padding: 8px 20px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.project-body { padding: 24px; }
.project-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.project-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.project-tags span {
  padding: 4px 10px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(131,56,236,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: #7effd4;
  font-weight: 500;
}
.project-actions { display: flex; gap: 10px; }

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════════ */
.testimonials { background: var(--bg-2); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(6,214,160,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonial-quote {
  font-size: 4rem;
  line-height: 0.5;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.testimonial-card > p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; font-weight: 700; }
.testimonial-author span { display: block; font-size: 0.8rem; color: var(--text-muted); }
.testimonials-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--grad-a);
  background: rgba(6,214,160,0.05);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}
.form-feedback--success {
  display: block;
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.35);
  color: #06d6a0;
}
.form-feedback--error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.contact-link:hover {
  border-color: rgba(6,214,160,0.3);
  background: rgba(6,214,160,0.05);
  transform: translateX(4px);
}
.contact-link-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(131,56,236,0.2), rgba(6,214,160,0.2));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--grad-b);
}
.contact-link-icon svg { width: 20px; height: 20px; }
.contact-link-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-link-value { display: block; font-size: 0.9rem; font-weight: 600; }
.contact-availability {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: #86efac;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand span { font-size: 0.9rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--grad-b); }
.footer-copy { font-size: 0.82rem; color: var(--text-light); }

/* ═══════════════════════════════════════════════════════════════
   RADAR CHART — Skills section
═══════════════════════════════════════════════════════════════ */
.radar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
#radar-chart {
  width: 100%;
  max-width: 340px;
  height: 340px;
  filter: drop-shadow(0 0 18px rgba(6,214,160,0.2));
}
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.radar-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-a);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING DATA METRICS — Hero overlay
═══════════════════════════════════════════════════════════════ */
.floating-metrics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.metric-badge {
  position: absolute;
  padding: 7px 14px;
  background: rgba(6,214,160,0.07);
  border: 1px solid rgba(6,214,160,0.18);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(6,214,160,0.8);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.5s ease;
  backdrop-filter: blur(4px);
}
.metric-badge.visible { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   SERVICE ICON — hover animation
═══════════════════════════════════════════════════════════════ */
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(6,214,160,0.25), rgba(131,56,236,0.25));
  box-shadow: 0 0 20px rgba(6,214,160,0.2);
  transition: var(--transition);
}
.service-icon { transition: var(--transition); }

/* ═══════════════════════════════════════════════════════════════
   TECH TAGS — Staggered bounce entrance
═══════════════════════════════════════════════════════════════ */
.tech-tag {
  animation: tagBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes tagBounce {
  from { opacity: 0; transform: scale(0.6) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SOCIAL BUTTONS
═══════════════════════════════════════════════════════════════ */
.contact-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: var(--transition);
  cursor: pointer;
}
.contact-social-btn:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}
.contact-social-btn--wa {
  border-color: rgba(37,211,102,0.25);
}
.contact-social-btn--wa:hover {
  border-color: rgba(37,211,102,0.5);
  background: rgba(37,211,102,0.06);
}
.contact-social-btn--wa .contact-social-icon {
  background: rgba(37,211,102,0.15);
  color: #25d366;
}
.contact-social-btn--li {
  border-color: rgba(10,102,194,0.3);
}
.contact-social-btn--li:hover {
  border-color: rgba(10,102,194,0.55);
  background: rgba(10,102,194,0.07);
}
.contact-social-btn--li .contact-social-icon {
  background: rgba(10,102,194,0.15);
  color: #0a66c2;
}
.contact-social-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-social-icon svg {
  width: 26px;
  height: 26px;
}
.contact-social-btn:hover .contact-social-icon {
  transform: scale(1.1);
}
.contact-social-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-social-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.contact-social-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid,
  .projects-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .education-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-avatar-col { justify-content: center; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .skills-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .logo-text-block { display: none; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(15,15,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 70px 0; }
  .services-grid,
  .projects-grid,
  .testimonials-grid,
  .education-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .contact-form { padding: 24px; }
  .timeline { padding-left: 24px; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: -20px; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
