/* =========================================================
   Armando Bojorges — Portfolio v2
   Design: Dark editorial / tech-security aesthetic
   Fonts: Syne (display) + IBM Plex Mono + Inter (body)
   ========================================================= */

:root {
  --bg:           #0a0d14;
  --bg-alt:       #0e1220;
  --surface:      #131829;
  --surface-2:    #1a2236;
  --border:       rgba(100,120,180,0.15);
  --cyan:         #00e5ff;
  --cyan-dim:     rgba(0,229,255,0.12);
  --cyan-glow:    rgba(0,229,255,0.25);
  --text:         #e2e8f4;
  --text-muted:   #7a8ba8;
  --text-dim:     #4a5568;
  --white:        #ffffff;
  --radius:       12px;
  --radius-lg:    20px;
  --nav-h:        68px;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --font-body:    'Inter', sans-serif;
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mono { font-family: var(--font-mono); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }


/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(10,13,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

#menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#menu li a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.04em;
}

#menu li a:hover { color: var(--white); background: var(--surface); }

.nav-cta {
  color: var(--cyan) !important;
  border: 1px solid rgba(0,229,255,0.35) !important;
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover {
  background: var(--cyan-dim) !important;
  color: var(--cyan) !important;
}

/* Mobile toggle */
#mobile-menu-open {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
#mobile-menu-open span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile overlay */
#mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,13,20,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
#mobile-overlay.active { display: flex; }
#mobile-overlay ul { text-align: center; }
#mobile-overlay li { margin-bottom: 1.5rem; }
#mobile-overlay li a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}
#mobile-overlay li a:hover { color: var(--cyan); }
#mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition);
}
#mobile-menu-close:hover { color: var(--white); }


/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#lead {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding: 0 2rem;
}

/* Animated grid bg */
.lead-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.lead-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}

#lead-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.lead-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

#lead-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.lead-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.6s;
}

.lead-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.8s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: var(--bg) !important;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  background: #33ecff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,255,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
  background: var(--surface);
}

#lead-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.1s;
}
#lead-down span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
  animation: bounce 2s ease infinite;
}
#lead-down span:hover { border-color: var(--cyan); color: var(--cyan); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════
   SECTION LABELS
══════════════════════════════════════ */
.section-label {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label .mono {
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 400;
}
.section-label.light { color: var(--white); }


/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
#about {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.photo-frame {
  position: relative;
  width: 240px;
}

.photo-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  object-fit: cover;
  aspect-ratio: 3/4;
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.photo-frame:hover img { filter: grayscale(0%); }

.photo-border {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--cyan);
  border-radius: calc(var(--radius-lg) + 8px);
  opacity: 0.4;
  pointer-events: none;
}

.about-text-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--text) !important;
  font-weight: 500;
  margin-bottom: 1.25rem !important;
}

.about-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.meta-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.meta-item i { color: var(--cyan); }


/* ══════════════════════════════════════
   EXPERIENCE
══════════════════════════════════════ */
#experience {
  padding: 100px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

#experience-timeline {
  position: relative;
  max-width: 900px;
}

#experience-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 220px;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), rgba(0,229,255,0.1));
}

.vtimeline-point {
  position: relative;
  display: flex;
  margin-bottom: 2.5rem;
}

.vtimeline-date {
  width: 200px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-top: 1.1rem;
  text-align: right;
  padding-right: 2rem;
  line-height: 1.4;
}

.vtimeline-icon {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  z-index: 1;
  transform: translateX(-50%);
  margin-left: 220px;
}
.vtimeline-icon i { font-size: 0.75rem; color: var(--cyan); }

.vtimeline-content {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-left: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vtimeline-content:hover {
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 0 24px rgba(0,229,255,0.06);
}

.vtimeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.vtimeline-content h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 400;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}
.vtimeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}


/* ══════════════════════════════════════
   EDUCATION
══════════════════════════════════════ */
#education {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.edu-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color var(--transition);
}
.edu-block:hover { border-color: rgba(0,229,255,0.25); }

.edu-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 1rem;
}

.edu-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.5rem;
}

.edu-content h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.edu-content p,
.edu-content ul li {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.edu-content ul { padding-left: 1rem; list-style: disc; }
.edu-content ul li { margin-bottom: 0.2rem; }


/* ══════════════════════════════════════
   PROJECTS
══════════════════════════════════════ */
#projects {
  padding: 100px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: rgba(0,229,255,0.3);
  transform: translateY(-4px);
}

.project-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.05); }

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,13,20,0.9) 100%);
}

.project-body { padding: 1.5rem; }

.project-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.project-status.active {
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.3);
}
.project-status.done {
  background: rgba(100,120,180,0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.project-body ul { list-style: none; padding: 0; }
.project-body ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.project-body ul li::before {
  content: '—';
  color: var(--cyan);
  opacity: 0.5;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.project-body ul li:last-child { border-bottom: none; }


/* ══════════════════════════════════════
   SKILLS
══════════════════════════════════════ */
#skills {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 800px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: default;
}
.skill-pill i { font-size: 0.8rem; color: var(--cyan); opacity: 0.7; }
.skill-pill:hover {
  color: var(--white);
  border-color: rgba(0,229,255,0.3);
  background: var(--surface-2);
  transform: translateY(-2px);
}


/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
#contact {
  padding: 100px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

#contact-form {
  max-width: 520px;
}

.form-row { margin-bottom: 1rem; }

#contact-form input,
#contact-form textarea {
  display: block;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder { color: var(--text-dim); }
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.06);
}
#contact-form textarea {
  height: 140px;
  resize: vertical;
}

#contact-form button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}
#contact-form button:hover {
  background: #33ecff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.25);
}
#contact-form button i { font-size: 0.75rem; }


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.social { display: flex; gap: 0.25rem; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-dim);
  transition: var(--transition);
  font-size: 0.9rem;
}
.social a:hover {
  color: var(--cyan);
  background: var(--surface);
}


/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .photo-frame { width: 160px; margin: 0 auto 2rem; }

  .edu-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  #experience-timeline::before { left: 0; }
  .vtimeline-point { flex-direction: column; padding-left: 2rem; }
  .vtimeline-date { width: auto; text-align: left; padding-right: 0; padding-top: 0; margin-bottom: 0.5rem; }
  .vtimeline-icon { position: absolute; left: -20px; top: 0; margin-left: 0; transform: none; }
  .vtimeline-content { margin-left: 0; }
}

@media (max-width: 768px) {
  #menu { display: none; }
  #mobile-menu-open { display: flex; }

  #lead-content h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .lead-actions { flex-direction: column; align-items: center; }

  .section-label { font-size: 1.6rem; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  #about, #experience, #education, #projects, #skills, #contact { padding: 70px 0; }
}
