/*
  Elias Zoleta — Portfolio
  Custom dark SaaS/product-style design system.
*/

/*--------------------------------------------------------------
# Design Tokens
--------------------------------------------------------------*/
:root {
  --bg: #14151c;
  --bg-elevated: #1b1d26;
  --surface: #21232f;
  --surface-2: #2a2d3b;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #f5f5f7;
  --text-secondary: #b0b0bd;
  --text-muted: #80808f;

  --accent: #2b5fe0;
  --accent-2: #5b9dff;
  --accent-3: #0a1f4d;
  --accent-gradient: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 55%, var(--accent-2) 100%);
  --accent-text: #6fa0ff;

  --success: #34d399;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px -20px rgba(43, 95, 224, 0.35);
  --shadow-card: 0 10px 40px -15px rgba(0, 0, 0, 0.6);

  --container-width: 1180px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
}

/*--------------------------------------------------------------
# Scrollbar + selection polish
--------------------------------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(43, 95, 224, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(43, 95, 224, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Header / Nav
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

#header.header-scrolled {
  background: rgba(20, 21, 28, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

#navmenu {
  display: flex;
  align-items: center;
  gap: 4px;
}

#navmenu a {
  display: block;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

#navmenu a:hover,
#navmenu a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 900px) {
  #navmenu {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(13, 13, 20, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: var(--shadow-card);
  }

  #header.menu-open #navmenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #navmenu a {
    padding: 13px 16px;
  }

  .header-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--bg);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero-glow::before {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -160px;
  right: -120px;
  animation: float-a 14s ease-in-out infinite;
}

.hero-glow::after {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  bottom: -160px;
  left: -140px;
  animation: float-b 16s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 10%, transparent 75%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-copy h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-copy h1 .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 1.4em;
}

.hero-role .typed-cursor {
  color: var(--accent);
}

.hero-bio {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 34px;
}

@media (max-width: 992px) {
  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

@media (max-width: 992px) {
  .hero-ctas {
    justify-content: center;
  }
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 992px) {
  .hero-socials {
    justify-content: center;
  }
}

.hero-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 17px;
  transition: all 0.25s ease;
}

.hero-socials a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(43, 95, 224, 0.12);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
}

@media (max-width: 992px) {
  .hero-visual {
    height: 420px;
    margin-top: 20px;
  }
}

.hero-visual-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(70px);
  opacity: 0.45;
  bottom: 40px;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-strong);
  box-shadow: 0 0 0 10px rgba(43, 95, 224, 0.1), 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

@media (max-width: 992px) {
  .hero-photo-frame {
    width: 240px;
    height: 240px;
  }
}

.hero-float-card {
  position: absolute;
  z-index: 2;
  background: rgba(18, 18, 27, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-card .fc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
}

.hero-float-card .fc-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hero-float-card .fc-label {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-float-card.card-1 {
  top: 6%;
  left: -6%;
}

.hero-float-card.card-2 {
  bottom: 8%;
  right: -8%;
}

@media (max-width: 992px) {
  .hero-float-card.card-1 { left: 0; top: 0; }
  .hero-float-card.card-2 { right: 0; bottom: 0; }
}

@media (max-width: 560px) {
  .hero-float-card { display: none; }
}

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--text-muted), transparent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { opacity: 0; transform: scaleY(0.3); transform-origin: top; }
  40% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

@media (max-width: 768px) {
  .hero-scroll-cue { display: none; }
}

/*--------------------------------------------------------------
# Stats strip
--------------------------------------------------------------*/
.stats {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 48px 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-muted);
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: rgba(43, 95, 224, 0.12);
  color: var(--accent-text);
  border: 1px solid rgba(43, 95, 224, 0.25);
}

.service-card h3 {
  font-size: 18.5px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.services-note {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}

.portfolio-filters.centered {
  justify-content: center;
}

.portfolio-filters li {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.portfolio-filters li:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.portfolio-filters li.filter-active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(43, 95, 224, 0.6);
}

/* Sliding gallery: one fixed-frame item at a time per category, instead
   of a scrolling grid of differently-sized cards. */
.gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.gallery-category {
  display: block;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 6px;
}

.gallery-caption-text h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.gallery-caption-text p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
}

#galleryCta {
  flex-shrink: 0;
}

.gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-frame {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .gallery-frame {
    aspect-ratio: 4 / 3;
  }
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(50px) brightness(0.55) saturate(1.2);
  transform: scale(1.2);
}

.gallery-media {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: gallery-fade-in 0.5s ease;
}

@keyframes gallery-fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-zoom {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 21, 28, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-zoom:hover {
  background: var(--accent-gradient);
  border-color: transparent;
}

.gallery-counter {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  right: 14px;
  background: rgba(20, 21, 28, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.gallery-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-nav:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 18px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 76px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-2);
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.25s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover {
  opacity: 0.85;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 95, 224, 0.18);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-dot:hover {
  background: var(--text-muted);
}

.gallery-dot.active {
  width: 24px;
  background: var(--accent-gradient);
}

/*--------------------------------------------------------------
# Resume / Experience
--------------------------------------------------------------*/
.resume-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}

@media (max-width: 900px) {
  .resume-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.resume-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .resume-summary-card {
    position: static;
  }
}

.resume-summary-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.resume-summary-card .name {
  font-size: 22px;
  margin-bottom: 12px;
}

.resume-summary-card p.bio {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.resume-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.resume-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.resume-contact-list i {
  color: var(--accent-text);
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.resume-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--border-strong), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 95, 224, 0.15);
}

.timeline-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 17px;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-text);
  background: rgba(43, 95, 224, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.timeline-org {
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
  margin-bottom: 10px;
}

.timeline-item ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-item ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.timeline-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-group-title {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.skill-pills.skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 380px));
  justify-content: center;
  align-items: start;
  gap: 10px 48px;
  max-width: 820px;
  margin: 0 auto;
}

.skill-list .skill-pill {
  display: list-item;
  list-style: disc;
  list-style-position: inside;
  margin-left: 4px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  text-align: left;
}

.skill-list .skill-pill:hover {
  background: none;
  transform: none;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-heading);
  transition: all 0.25s ease;
}

.skill-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(43, 95, 224, 0.08);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .skill-pills {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .skill-pills.skill-list {
    display: flex;
    grid-template-columns: none;
    max-width: none;
    margin: 0;
  }

  .skill-pill {
    display: list-item;
    list-style: disc;
    list-style-position: inside;
    margin-left: 4px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    text-align: left;
  }

  .skill-pill:hover {
    background: none;
    transform: none;
  }

  .skill-group-title {
    text-align: left;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-item .info-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(43, 95, 224, 0.12);
  color: var(--accent-text);
  border: 1px solid rgba(43, 95, 224, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.info-item h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-item p,
.info-item a {
  font-size: 14.5px;
  color: var(--text);
}

.info-item a:hover {
  color: var(--accent-text);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 95, 224, 0.18);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  margin-bottom: 20px;
}

.form-status {
  text-align: center;
  font-size: 14px;
  margin-bottom: 14px;
  display: none;
}

.form-status.loading {
  color: var(--text-muted);
}

.form-status.error-message {
  color: #f87171;
}

.form-status.sent-message {
  color: var(--success);
}

.contact-form-card .btn {
  width: 100%;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  text-align: center;
}

#footer .logo {
  justify-content: center;
  margin-bottom: 14px;
}

#footer p {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 480px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  transition: all 0.25s ease;
}

.footer-socials a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(43, 95, 224, 0.12);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/*--------------------------------------------------------------
# Scroll-top button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 8000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px -10px rgba(43, 95, 224, 0.7);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
}
