/* ============================================================
   style.css  —  Eduardo Montero Personal Portfolio
   Inspired by AOVIX — pure black · electric violet · display type
   ============================================================ */

/* ── Google Fonts import (display + mono feel) ───────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@700;800&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Palette */
  --black:        #000000;
  --black-2:      #080808;
  --black-card:   #0d0d0d;
  --black-hover:  #111111;
  --violet:       #7c5cfc;         /* primary accent – electric violet */
  --violet-bright:#9b7dff;
  --violet-glow:  rgba(124, 92, 252, 0.35);
  --violet-dim:   rgba(124, 92, 252, 0.12);
  --violet-border:rgba(124, 92, 252, 0.22);
  --white:        #ffffff;
  --grey-1:       #f0f0f0;
  --grey-2:       #a0a0a0;
  --grey-3:       #555555;
  --border-subtle:rgba(255,255,255,0.07);
  --border-mid:   rgba(255,255,255,0.12);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing & Radius */
  --radius-pill: 100px;
  --radius-card: 18px;
  --radius-sm:   10px;
  --section-pad: 110px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 0.22s var(--ease);
  --med:  0.4s  var(--ease);

  /* Shadows */
  --shadow-card:  0 0 0 1px var(--border-subtle), 0 8px 32px rgba(0,0,0,0.6);
  --shadow-hover: 0 0 0 1px var(--violet-border), 0 12px 48px rgba(124,92,252,0.2);
  --shadow-glow:  0 0 80px rgba(124,92,252,0.3);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--grey-1);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
img  { max-width: 100%; display: block; }
strong { color: var(--white); font-weight: 600; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }

/* ── Utility ─────────────────────────────────────────────── */
.container {
  width: min(90%, 1080px);
  margin-inline: auto;
}
.accent { color: var(--violet-bright); }

/* Section label pill (like "+ About Us" in AOVIX) */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black-card);
  border: 1px solid var(--border-mid);
  color: var(--grey-2);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.section-tag::before {
  content: '+';
  color: var(--violet-bright);
  font-weight: 700;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--fast);
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}

/* Primary — solid violet pill */
.btn-primary {
  background: var(--violet);
  color: var(--white);
  border-color: var(--violet);
}
.btn-primary:hover {
  background: var(--violet-bright);
  border-color: var(--violet-bright);
  box-shadow: 0 0 30px var(--violet-glow);
  transform: translateY(-2px);
}

/* Outline — ghost pill */
.btn-outline {
  background: transparent;
  color: var(--grey-1);
  border-color: var(--border-mid);
}
.btn-outline:hover {
  border-color: var(--violet-border);
  color: var(--violet-bright);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 40px; font-size: 0.95rem; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--med), padding var(--med), border-color var(--med);
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(90%, 1080px);
  margin-inline: auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--grey-2);
  transition: color var(--fast);
}
.nav-links a:hover { color: var(--white); }

/* CTA in nav */
.btn-nav {
  background: var(--violet) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  border: 1px solid var(--violet) !important;
  transition: all var(--fast) !important;
}
.btn-nav:hover {
  background: var(--violet-bright) !important;
  border-color: var(--violet-bright) !important;
  box-shadow: 0 0 24px var(--violet-glow) !important;
  color: var(--white) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--grey-1);
  border-radius: 2px;
  transition: var(--fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 20px 100px;
  overflow: hidden;
  background: var(--black);
}

/* Background atmosphere — large soft violet orbs */
.hero-bg { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.blob-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124,92,252,0.55) 0%, transparent 70%);
  top: -180px; left: -200px;
  animation: drift1 12s ease-in-out infinite alternate;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(155,125,255,0.35) 0%, transparent 70%);
  bottom: -120px; right: -150px;
  animation: drift2 15s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, 50px) scale(1.1); }
}
@keyframes drift2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-30px,-40px) scale(1.08); }
}

/* Subtle dot grid */
.grid-overlay {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Hero text */
.hero-content {
  position: relative; z-index: 1;
  max-width: 760px;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,92,252,0.1);
  border: 1px solid var(--violet-border);
  color: var(--violet-bright);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}
.hero-greeting::before { content: '•'; }

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
  /* AOVIX-style: slightly transparent text for depth */
  background: linear-gradient(165deg, #ffffff 40%, rgba(200,190,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--grey-2);
  min-height: 1.7em;
  margin-bottom: 10px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 2px; height: 0.95em;
  background: var(--violet);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink .65s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-location {
  font-size: 0.85rem;
  color: var(--grey-3);
  margin-bottom: 40px;
}
.hero-location i { color: var(--violet-bright); margin-right: 5px; }

.hero-ctas {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Social icons — minimal circle borders */
.social-row {
  display: flex; gap: 12px; justify-content: center;
}
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: var(--grey-3);
  transition: all var(--fast);
  background: var(--black-card);
}
.social-icon:hover {
  border-color: var(--violet);
  color: var(--violet-bright);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--violet-glow);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--grey-3); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--violet), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.25; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--black-2); }

.section-header { margin-bottom: 56px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.05;
  /* gradient like AOVIX headings */
  background: linear-gradient(160deg, #fff 50%, rgba(200,185,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.about-avatar-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

/* AOVIX-style avatar — border + glow */
.avatar-placeholder {
  width: 190px; height: 190px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c35c8 0%, #7c5cfc 50%, #9b7dff 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 800;
  color: var(--white);
  position: relative;
  box-shadow: 0 0 0 1px var(--violet-border), var(--shadow-glow);
}
.avatar-placeholder::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--violet-border);
  animation: spinSlow 10s linear infinite;
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.about-badges {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}
.badge {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem; font-weight: 400;
  color: var(--grey-2);
  display: flex; align-items: center; gap: 8px;
  transition: all var(--fast);
}
.badge:hover {
  border-color: var(--violet-border);
  color: var(--grey-1);
  background: rgba(124,92,252,0.06);
}
.badge i { color: var(--violet-bright); font-size: 0.85rem; }

.about-text p { color: var(--grey-2); margin-bottom: 14px; line-height: 1.8; font-size: 0.95rem; }
.about-text strong { color: var(--white); }

.about-list {
  margin: 20px 0;
  display: flex; flex-direction: column; gap: 9px;
}
.about-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--grey-2);
}
.about-list i { color: var(--violet-bright); font-size: 0.8rem; }

/* Cert chips */
.cert-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.chip {
  background: var(--violet-dim);
  border: 1px solid var(--violet-border);
  color: var(--violet-bright);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 500;
  display: flex; align-items: center; gap: 5px;
  transition: background var(--fast);
}
.chip:hover { background: rgba(124,92,252,0.22); }

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; /* AOVIX grid effect: cards separated by 1px lines */
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.skill-card {
  background: var(--black-card);
  padding: 36px 30px;
  transition: background var(--fast), box-shadow var(--fast);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background var(--fast);
}
.skill-card.visible { opacity: 1; transform: translateY(0); }
.skill-card:hover {
  background: var(--black-hover);
  box-shadow: inset 0 0 40px rgba(124,92,252,0.08);
}

.skill-card-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--violet-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--violet-bright);
  margin-bottom: 22px;
  background: var(--violet-dim);
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 16px;
}
.skill-card ul { display: flex; flex-direction: column; gap: 8px; }
.skill-card li {
  font-size: 0.88rem; color: var(--grey-2);
  padding-left: 12px; position: relative;
}
.skill-card li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--violet);
  border-radius: 50%;
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute; left: 5px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--violet) 0%, transparent 100%);
}

.timeline-item {
  position: relative; margin-bottom: 32px;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-dot {
  position: absolute; left: -25px; top: 20px;
  width: 10px; height: 10px;
  background: var(--violet);
  border-radius: 50%;
  border: 2px solid var(--black);
  box-shadow: 0 0 12px var(--violet-glow);
}

.timeline-card {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.timeline-card:hover {
  border-color: var(--violet-border);
  box-shadow: var(--shadow-hover);
}

.timeline-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 14px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.timeline-header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em;
}
.timeline-company {
  font-size: 0.85rem; color: var(--violet-bright); margin-top: 3px;
}
.timeline-company i { margin-right: 4px; }

.timeline-date {
  background: var(--violet-dim);
  border: 1px solid var(--violet-border);
  color: var(--violet-bright);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}

.timeline-location {
  font-size: 0.82rem; color: var(--grey-3); margin-bottom: 14px;
}
.timeline-location i { color: var(--violet); margin-right: 4px; }

.timeline-bullets { display: flex; flex-direction: column; gap: 7px; }
.timeline-bullets li {
  font-size: 0.88rem; color: var(--grey-2);
  padding-left: 14px; position: relative; line-height: 1.65;
}
.timeline-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 4px; height: 4px;
  background: var(--violet);
  border-radius: 50%;
}

/* ── PROJECTS ─────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.project-card {
  background: var(--black-card);
  padding: 36px 30px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background var(--fast), box-shadow var(--fast);
  display: flex; flex-direction: column; gap: 0;
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover {
  background: var(--black-hover);
  box-shadow: inset 0 0 40px rgba(124,92,252,0.07);
}

/* Top-right index number — AOVIX style */
.project-card { position: relative; }

.project-icon {
  width: 50px; height: 50px;
  border: 1px solid var(--violet-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--violet-bright);
  margin-bottom: 22px;
  background: var(--violet-dim);
  transition: background var(--fast);
}
.project-card:hover .project-icon { background: rgba(124,92,252,0.2); }

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 10px;
}
.project-card p {
  font-size: 0.88rem; color: var(--grey-2);
  line-height: 1.75; margin-bottom: 22px; flex: 1;
}
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.project-tags span {
  background: var(--violet-dim);
  border: 1px solid var(--violet-border);
  color: var(--violet-bright);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-wrapper {
  max-width: 640px; margin-inline: auto; text-align: center;
}
.contact-lead {
  font-size: 1rem; color: var(--grey-2); line-height: 1.8; margin-bottom: 40px; font-weight: 300;
}

.contact-cards {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px;
  text-align: left;
}
.contact-card {
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  display: flex; align-items: center; gap: 18px;
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast);
  font-size: 1.25rem; color: var(--violet-bright);
}
.contact-card:hover {
  border-color: var(--violet-border);
  box-shadow: var(--shadow-hover);
  transform: translateX(5px);
}
.contact-label {
  display: block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--grey-3); font-weight: 500;
  margin-bottom: 2px;
}
.contact-value {
  display: block; font-size: 0.92rem; color: var(--white); font-weight: 400;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0; text-align: center;
}
.footer p { font-size: 0.85rem; color: var(--grey-3); }
.footer .accent { color: var(--violet-bright); }
.footer-sub { font-size: 0.75rem !important; margin-top: 6px; opacity: 0.5; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 800px) {
  :root { --section-pad: 72px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 72%; max-width: 300px; height: 100dvh;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center;
    gap: 28px; padding: 40px 32px;
    border-left: 1px solid var(--border-subtle);
    transition: right 0.4s var(--ease);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.05rem; color: var(--grey-1); }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-avatar-wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .timeline { padding-left: 22px; }
  .timeline-header { flex-direction: column; }

  .hero-scroll-hint { display: none; }

  /* Un-grid the skill/project cards on mobile */
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
}

@media (max-width: 480px) {
  .hero-name { letter-spacing: -0.04em; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn      { width: 100%; justify-content: center; }
  .about-badges { flex-direction: row; flex-wrap: wrap; }
  .badge    { flex: 1 1 auto; }
  .skills-grid,
  .projects-grid { border-radius: var(--radius-sm); }
}
