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

:root {
  --bg: #160f22;
  --bg2: #21172f;
  --bg3: #2d2040;
  --accent: #c5a3ff;
  --accent2: #e1c9ff;
  --text: #f4edf9;
  --text2: #bbadc9;
  --border: #382847;
  --border2: #514064;
  --glass: rgba(33, 23, 47, 0.55);
  --radius: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── CURSOR NATIVO DEL NAVEGADOR ── */
html,
body {
  cursor: auto !important;
}
a,
button,
[role="button"],
.btn,
.carousel-btn,
.carousel-dot {
  cursor: pointer !important;
}
input,
textarea {
  cursor: text !important;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition:
    background 0.4s,
    color 0.4s;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bg3);
  border-radius: 3px;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 16px max(24px, calc((100% - 1280px) / 2));
  background: rgba(22, 15, 34, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition:
    box-shadow 0.3s,
    background 0.4s;
}

nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.06em;
  text-decoration: none;
}
.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.nav-logo .brand-dot {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-right {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}
.nav-gh {
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(197, 163, 255, 0.25);
  padding: 9px 14px;
  border-radius: 9px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.nav-gh:hover {
  background: rgba(197, 163, 255, 0.08);
  box-shadow: 0 0 12px rgba(197, 163, 255, 0.15);
}

/* ── HERO ── */
.hero-wrap {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  padding: 74px 0 66px;
}
.hero-copy {
  min-width: 0;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: 26px;
  animation: fadeDown 0.8s ease both;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.status-location {
  margin-left: 4px;
  color: var(--text2);
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 7vw, 94px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.02;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero h1 .name {
  color: var(--text);
}
.hero h1 .surname {
  color: var(--accent);
  font-size: clamp(32px, 4.9vw, 60px);
  white-space: nowrap;
}
.hero h1 .name-dot {
  color: var(--text);
}

.hero-focus {
  margin-top: 24px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: var(--text);
  animation: fadeUp 0.9s 0.3s ease both;
}
.hero-focus span {
  color: var(--accent);
}

.hero-desc {
  max-width: 530px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text2);
  animation: fadeUp 0.9s 0.4s ease both;
}

.hero-tech {
  margin-top: 28px;
  animation: fadeUp 0.9s 0.5s ease both;
}

.hero-tech-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text2);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.hero .hero-tags {
  gap: 7px;
}
.hero .tag {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0;
}
.hero .tag-green {
  color: var(--accent2);
  border-color: var(--border2);
  background: var(--bg2);
}

.tag {
  padding: 0.3rem 0.7rem;
  border: 1px solid;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.tag:hover {
  transform: translateY(-2px);
}
.tag-green {
  color: var(--accent);
  border-color: rgba(197, 163, 255, 0.25);
  background: rgba(197, 163, 255, 0.06);
}
.tag-green:hover {
  box-shadow: 0 4px 12px rgba(197, 163, 255, 0.15);
}
.tag-gray {
  color: var(--text2);
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.03);
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  animation: fadeUp 0.9s 0.6s ease both;
}
.hero .btn {
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.hero .btn-outline {
  color: var(--text);
  border-color: var(--border2);
}
.hero .btn-solid:hover {
  background: var(--accent2);
}
.hero .btn-outline:hover {
  background: var(--bg2);
  border-color: var(--accent);
}
.hero-cv {
  padding: 10px 2px;
  margin-left: 5px;
  font-size: 11px;
  text-underline-offset: 5px;
  color: var(--text2);
}
.hero-cv:hover {
  color: var(--accent);
}
.hero-identity {
  position: relative;
  margin: 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--border2);
  border-radius: 160px 160px 20px 20px;
  background: var(--bg2);
  animation: fadeUp 1s 0.35s ease both;
}
.identity-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
}
.identity-heading > span:first-child {
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.06em;
  color: var(--accent2);
}
.identity-caption {
  color: var(--text2);
  font: 9px/1.7 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.profile-stage {
  position: relative;
  aspect-ratio: 1;
  margin: 14px 0 8px;
}
.profile-ring {
  position: absolute;
  inset: 4.5%;
  border: 1px solid var(--border2);
  border-radius: 50%;
}
.profile-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--border2);
  border-radius: 50%;
}
.profile-stage img {
  position: absolute;
  inset: 9%;
  z-index: 1;
  display: block;
  max-width: 100%;
  width: 82%;
  height: 82%;
  border: 1px solid var(--border2);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
}
.hero-identity figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--text);
}
.identity-topics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font: 9px/1.7 "Courier New", monospace;
  color: var(--text2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s,
    background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn-solid {
  background: var(--accent);
  color: #160f22;
  border: none;
  font-weight: 600;
}
.btn-solid:hover {
  box-shadow: 0 6px 20px rgba(197, 163, 255, 0.3);
  opacity: 0.9;
}
.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(197, 163, 255, 0.1);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px var(--accent);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
    box-shadow: 0 0 2px var(--accent);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Compactar el hero en pantallas de poca altura para que los botones
     sigan visibles sin hacer scroll. */
@media (max-height: 820px) and (min-width: 681px) {
  .hero {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .hero-status {
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(58px, 6.5vw, 80px);
  }
  .hero-focus {
    margin-top: 18px;
  }
  .hero-desc {
    margin-top: 18px;
  }
  .hero-tech {
    margin-top: 22px;
  }
  .hero-tech-label {
    margin-bottom: 10px;
  }
  .hero-cta {
    margin-top: 24px;
  }
}

/* El inicio ocupa la primera pantalla en escritorio. */
@media (min-width: 981px) {
  .hero {
    min-height: calc(100svh - 86px);
    padding: 16px 0;
  }
  .hero-identity {
    width: min(100%, max(300px, calc(100svh - 286px)));
    justify-self: end;
  }
}
@media (min-width: 981px) and (max-height: 650px) {
  .hero-status {
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: clamp(58px, 5.5vw, 68px);
  }
  .hero-focus,
  .hero-desc {
    margin-top: 14px;
  }
  .hero-tech {
    margin-top: 18px;
  }
  .hero-tech-label {
    margin-bottom: 8px;
  }
  .hero-cta {
    margin-top: 20px;
  }
}

/* ── SECTIONS ── */
section {
  padding: 5rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.full-border {
  border-top: 1px solid var(--border);
}

/* ── PROJECTS — GLASSMORPHISM ── */
#projects .section-header {
  margin-bottom: 1.25rem;
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.project-filter {
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  background: transparent;
  color: var(--text2);
  font: 0.76rem "Courier New", monospace;
  line-height: 1.5;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.project-filter:hover {
  background: var(--bg2);
  color: var(--text);
}
.project-filter[aria-pressed="true"] {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--accent2);
}
.project-filter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.project-filters[hidden],
.project-card[hidden] {
  display: none;
}
.project-filter-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.project-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.project-card:hover::before {
  transform: scaleX(1);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(197, 163, 255, 0.1);
}
.project-card.coming {
  opacity: 0.65;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-icon {
  font-size: 1.4rem;
}
.project-links {
  display: flex;
  gap: 0.5rem;
}
.project-link {
  font-size: 0.75rem;
  font-family: "Courier New", monospace;
  color: var(--text2);
  text-decoration: none;
  border: 1px solid var(--border2);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.project-link:hover {
  color: var(--accent);
  border-color: rgba(197, 163, 255, 0.3);
}
.project-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.project-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.65;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.ptag {
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  color: var(--accent2);
  background: rgba(225, 201, 255, 0.07);
  border: 1px solid rgba(225, 201, 255, 0.18);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
}
.coming-label {
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--text2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  text-decoration: none;
  margin-top: 0.5rem;
  align-self: flex-start;
}
.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── EXPERIENCE — compact cards ── */
.exp-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  gap: 1px;
  background: var(--border);
}
.exp-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.3rem 1.5rem;
  background: var(--bg2);
  padding: 1.1rem 1.5rem;
  transition: background 0.2s;
  position: relative;
}
.exp-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.exp-item:hover {
  background: var(--bg3);
}
.exp-item:hover::before {
  opacity: 1;
}
.exp-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  grid-column: 1;
  grid-row: 1;
}
.exp-meta {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.exp-company {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: "Courier New", monospace;
}
.exp-details {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--text2);
  font-size: 0.8rem;
  line-height: 1.75;
}
.exp-details li + li {
  margin-top: 0.3rem;
}

.exp-right {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
}
.exp-period {
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  color: var(--text2);
  white-space: nowrap;
}
.exp-type {
  font-size: 0.65rem;
  font-family: "Courier New", monospace;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.type-volunteer {
  color: var(--accent);
  border-color: rgba(197, 163, 255, 0.3);
  background: rgba(197, 163, 255, 0.07);
}
.type-internship {
  color: var(--accent2);
  border-color: rgba(225, 201, 255, 0.3);
  background: rgba(225, 201, 255, 0.07);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-text strong {
  color: var(--text);
  font-weight: 500;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2);
  padding: 0.9rem 1.25rem;
  transition: background 0.2s;
}
.stat-row:hover {
  background: var(--bg3);
}
.stat-label {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  color: var(--text2);
  letter-spacing: 0.04em;
}
.stat-val {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* ── EDUCATION — minimal ── */
.edu-list {
  display: flex;
  flex-direction: column;
}
.edu-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: opacity 0.2s;
}
.edu-item:first-child {
  padding-top: 0;
}
.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.edu-item:hover {
  opacity: 0.85;
}
.edu-year {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}
.edu-content {
}
.edu-degree {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.edu-school {
  font-size: 0.78rem;
  color: var(--text2);
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.skill-group {
  background: var(--bg2);
  padding: 1.4rem 1.5rem;
  transition: background 0.2s;
}
.skill-group:hover {
  background: var(--bg3);
}
.skill-group-label {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-group-label::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
.skill-list {
  list-style: none;
}
.skill-list li {
  font-size: 0.82rem;
  color: var(--text2);
  padding: 0.22rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    color 0.2s,
    transform 0.2s;
}
.skill-list li:hover {
  color: var(--text);
  transform: translateX(4px);
}
.skill-list li::before {
  content: "▸";
  color: var(--accent);
  font-size: 0.55rem;
  flex-shrink: 0;
}

/* ── CERTS ── */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cert-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg2);
  padding: 1.2rem 1.5rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.cert-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.cert-row:hover::after {
  transform: scaleY(1);
}
.cert-row:hover {
  background: var(--bg3);
}
.cert-logo {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--bg3);
  border: 1px solid var(--border2);
}
.cert-info {
  flex: 1;
}
.cert-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.cert-issuer {
  font-size: 0.78rem;
  color: var(--text2);
}
.cert-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  min-width: 120px;
}
.cert-badge {
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid;
}
.badge-active {
  color: var(--accent);
  border-color: rgba(197, 163, 255, 0.3);
  background: rgba(197, 163, 255, 0.08);
}
.badge-planned {
  color: var(--text2);
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.03);
}

/* ── BLOG CAROUSEL ── */
.carousel-wrap {
  position: relative;
}
.carousel-track-outer {
  overflow: hidden;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  user-select: none;
}
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  flex: 0 0 calc(33.333% - 0.67rem);
  min-width: 0;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.blog-card:hover::before {
  transform: scaleX(1);
}
.blog-card:hover {
  border-color: rgba(197, 163, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-card-source {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-card-date {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--text2);
}
.blog-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.blog-card-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}
.blog-card-tag {
  font-family: "Courier New", monospace;
  font-size: 0.65rem;
  color: var(--accent2);
  background: rgba(225, 201, 255, 0.07);
  border: 1px solid rgba(225, 201, 255, 0.18);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  align-self: flex-start;
}
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
}
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border2);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.carousel-arrows {
  display: flex;
  gap: 0.5rem;
}
.carousel-btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  font-family: "Courier New", monospace;
}
.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(197, 163, 255, 0.06);
}
@media (max-width: 680px) {
  .blog-card {
    flex: 0 0 100%;
  }
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-intro {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.8;
}
.contact-intro strong {
  color: var(--text);
  font-weight: 500;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}
.contact-link:hover {
  border-color: rgba(197, 163, 255, 0.25);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.contact-link-icon {
  font-size: 1rem;
}
.contact-link-label {
  font-size: 0.8rem;
  color: var(--text2);
  flex: 1;
}
.contact-link-val {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--accent);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.footer-text {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  color: var(--text2);
  letter-spacing: 0.04em;
}
.footer-text span {
  color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 1180px) {
  nav {
    gap: 14px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 11px;
  }
  .hero {
    gap: 40px;
  }
}
@media (max-width: 980px) {
  nav {
    flex-wrap: wrap;
  }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
  .hero {
    gap: 30px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .hero h1 {
    font-size: 72px;
  }
  .hero-identity {
    padding: 16px 18px 20px;
  }
}
@media (max-width: 680px) {
  nav {
    padding: 1rem 1.25rem;
  }
  .nav-links {
    display: none;
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-wrap {
    padding: 0 22px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding: 48px 0 32px;
  }
  .hero-status {
    line-height: 1.6;
  }
  .hero h1 {
    font-size: clamp(62px, 18vw, 88px);
  }
  .hero h1 .surname {
    font-size: clamp(30px, 8.5vw, 52px);
    letter-spacing: -0.025em;
    word-spacing: 0.1em;
  }
  .hero-desc {
    margin-top: 18px;
    font-size: 14px;
  }
  .hero-focus {
    margin-top: 19px;
    font-size: 18px;
  }
  .hero-tech {
    margin-top: 24px;
  }
  .hero-cta {
    margin-top: 25px;
  }
  .hero-identity {
    width: min(100%, 320px);
    justify-self: center;
    padding-top: 15px;
  }
  .identity-heading {
    margin-top: 8px;
  }
  .profile-stage {
    margin-top: 6px;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .cert-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .cert-progress-wrap {
    width: 100%;
    align-items: flex-start;
    min-width: unset;
  }

  .exp-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 1.1rem 1.25rem;
  }
  .exp-right {
    grid-column: 1;
    grid-row: 3;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
  }
  .exp-details {
    grid-row: 4;
    margin-top: 0.35rem;
  }
}
