/* =============================================
   PORTFOLIO SERGIO AGULLA 
   Negro absoluto + Acentos rojos 
   ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  background: #060606;
  color: #f5f5f7;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
::selection {
  background: #ff2d2d;
  color: #fff;
}

/* CSS variables */
:root {
  --bg: #060606;
  --bg-2: #0a0a0a;
  --bg-3: #111;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --red: #ff2d2d;
  --red-2: #ff5050;
  --red-deep: #b30000;
  --red-glow: rgba(255, 45, 45, 0.35);
  --red-soft: rgba(255, 45, 45, 0.12);
  --max: 1280px;
  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* =============== Grain overlay =============== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============== Scroll progress =============== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  z-index: 1001;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-2));
  box-shadow: 0 0 12px var(--red-glow);
  transition: width 80ms linear;
}

/* =============== NAV =============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  background: rgba(6, 6, 6, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.nav.scrolled {
  padding: 12px var(--pad);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 16px var(--red-glow);
}
.logo-text {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 17px;
}
.logo-dot {
  color: var(--red);
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.lang-opt {
  transition: color 0.2s ease;
}
.lang-opt.active {
  color: var(--red);
}
.lang-sep {
  color: var(--text-3);
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s ease;
}
.menu-btn.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(6, 6, 6, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px var(--pad);
  display: none;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.open {
  display: flex;
  animation: slideDown 0.35s var(--ease);
}
.mobile-menu a {
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}
.mobile-menu a:hover {
  background: var(--surface);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}
@media (max-width: 600px) {
  .nav {
    padding: 14px var(--pad);
  }
  .nav.scrolled {
    padding: 10px var(--pad);
  }
  .logo-text {
    display: none;
  }
  .lang-toggle {
    padding: 6px 11px;
    font-size: 11px;
  }
}

/* =============== HERO =============== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 700px) {
  .hero {
    padding: 120px var(--pad) 80px;
    min-height: auto;
  }
}
.hero-glow {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(
    circle at center,
    var(--red-glow) 0%,
    transparent 60%
  );
  filter: blur(40px);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}
.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 45, 45, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: var(--red-2);
  font-weight: 500;
  margin-bottom: 32px;
}
.pin-icon {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
  animation: pinBob 2.6s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes pinBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.hero-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
}
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero-line:nth-child(2) .hero-line-inner {
  animation-delay: 0.15s;
}
.hero-line-inner.accent {
  color: var(--red);
  position: relative;
}
.hero-line-inner.accent::after {
  content: "";
  position: absolute;
  right: -0.05em;
  bottom: 0.18em;
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 24px var(--red-glow);
}
@keyframes lineUp {
  to {
    transform: translateY(0);
  }
}

.hero-role {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 16px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 0 40px;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s ease,
    color 0.3s ease;
  white-space: nowrap;
  border: none;
}
.btn-large {
  padding: 18px 32px;
  font-size: 16px;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 30px var(--red-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* Hero photo */
.hero-photo {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 900px) {
  .hero-photo {
    justify-self: center;
    max-width: 360px;
  }
}
@media (max-width: 480px) {
  .hero-photo {
    max-width: 280px;
  }
}
.photo-aura {
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle at center, var(--red) 0%, transparent 65%);
  filter: blur(60px);
  opacity: 0.5;
  animation: glowPulse 6s ease-in-out infinite;
}
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px var(--red-soft);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  animation: photoIn 1.4s var(--ease) 0.4s forwards;
}
@keyframes photoIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.photo-frame:hover img {
  transform: scale(1.04);
}
.photo-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite 2s;
  pointer-events: none;
}
@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}

.floating-tag {
  position: absolute;
  padding: 8px 14px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: floatTag 4s ease-in-out infinite;
  opacity: 0;
  animation-fill-mode: both;
}
.tag-1 {
  top: 8%;
  left: -8%;
  animation-delay: 1.2s, 0s;
}
.tag-2 {
  top: 28%;
  right: -12%;
  animation-delay: 1.4s, 1s;
}
.tag-3 {
  bottom: 18%;
  left: -10%;
  animation-delay: 1.6s, 2s;
}
.tag-4 {
  bottom: 6%;
  right: -6%;
  animation-delay: 1.8s, 0.5s;
}
@media (max-width: 600px) {
  .tag-1 {
    left: 4%;
  }
  .tag-2 {
    right: 4%;
  }
  .tag-3 {
    left: 4%;
  }
  .tag-4 {
    right: 4%;
  }
}
.floating-tag {
  animation:
    tagIn 0.8s var(--ease) forwards,
    floatTag 5s ease-in-out infinite 2s;
}
@keyframes tagIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes floatTag {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.01% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* =============== SECTION BASE =============== */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 32px;
  font-family: "JetBrains Mono", monospace;
}
.section-meta.center {
  justify-content: center;
  width: 100%;
}
.section-num {
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
}
.section-name {
  color: var(--text-2);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.big-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 80px;
  max-width: 1100px;
}
@media (max-width: 720px) {
  .big-heading {
    margin-bottom: 50px;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-words .word {
  display: inline-block;
  overflow: hidden;
}
.reveal-words .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.reveal-words.in .word-inner {
  transform: translateY(0);
}
.reveal-words .word {
  margin-right: 0.25em;
}

/* =============== ABOUT =============== */
.about-section .big-heading {
  margin-bottom: 28px;
}
.about-location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 45, 45, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: var(--red-2);
  font-weight: 500;
  margin-bottom: 60px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}
.about-paragraph {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 640px;
}
.about-paragraph:last-child {
  margin-bottom: 0;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
@media (max-width: 900px) {
  .about-stats {
    flex-direction: row;
    padding-left: 0;
    padding-top: 32px;
    border-left: none;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 32px;
  }
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
}
.stat-plus {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--red);
}
.stat-label {
  width: 100%;
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =============== STACK =============== */
.stack-section {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg-2) 50%,
    var(--bg) 100%
  );
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.stack-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s ease,
    background 0.4s ease;
  overflow: hidden;
}
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    var(--red-soft),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 45, 0.3);
}
.stack-card:hover::before {
  opacity: 1;
}
.stack-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stack-card-title svg {
  width: 16px;
  height: 16px;
}
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-pill {
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  transition: all 0.25s ease;
}
.stack-pill:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red-2);
  transform: translateY(-2px);
}

/* =============== TIMELINE / PATH =============== */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border),
    transparent
  );
}
@media (min-width: 900px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-item {
  position: relative;
  padding: 24px 0 24px 56px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.timeline-item.in {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 900px) {
  .timeline-item {
    width: 50%;
    padding: 24px 0;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 60px;
    text-align: right;
  }
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 60px;
  }
}
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 16px var(--red-glow);
}
@media (min-width: 900px) {
  .timeline-item:nth-child(odd) .timeline-dot {
    left: auto;
    right: -7px;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
  }
}
.timeline-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.timeline-school {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 16px;
}
.timeline-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-points li {
  color: var(--text-3);
  font-size: 14px;
}
@media (min-width: 900px) {
  .timeline-item:nth-child(odd) .timeline-points {
    align-items: flex-end;
  }
  .timeline-item:nth-child(odd) .timeline-points li {
    text-align: right;
  }
}

/* =============== PROJECTS =============== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s ease,
    box-shadow 0.5s var(--ease);
  opacity: 0;
  transform: translateY(50px);
}
.project-card.in {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  border-color: rgba(255, 45, 45, 0.35);
  transform: translateY(-4px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 40px var(--red-soft);
}
@media (max-width: 900px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}
.project-visual {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #0a0a0a;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s var(--ease),
    filter 0.6s ease;
  filter: saturate(0.85) contrast(1.05);
}
.project-card:hover .project-img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.1);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 6, 6, 0.55) 0%,
    rgba(6, 6, 6, 0.15) 40%,
    rgba(255, 45, 45, 0.18) 100%
  );
  pointer-events: none;
  mix-blend-mode: multiply;
}
.project-num {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 2;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
  padding: 6px 12px;
  background: rgba(6, 6, 6, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
.project-content {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-tag {
  padding: 5px 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--red-2);
  background: var(--red-soft);
  border: 1px solid rgba(255, 45, 45, 0.25);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.project-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.project-desc {
  color: var(--text-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  margin: 0 0 24px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-stack-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 0;
}
.project-stack-item:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--border-strong);
}
.project-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.project-repo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.3s ease;
}
.project-repo-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}
.project-repo-btn:hover {
  color: #fff;
  background: var(--red-soft);
  border-color: rgba(255, 45, 45, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 18px var(--red-glow);
}
.project-repo-btn:hover svg {
  transform: rotate(-6deg) scale(1.08);
}
.project-repo-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* =============== EXPERIENCE =============== */
.experience-section {
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg-2) 60%,
    var(--bg) 100%
  );
}
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.exp-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition:
    border-color 0.4s ease,
    transform 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.exp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.5;
}
.exp-card:hover {
  border-color: rgba(255, 45, 45, 0.3);
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 30px var(--red-soft);
}
.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .exp-header {
    flex-direction: column;
    gap: 16px;
  }
}
.exp-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 30px var(--red-glow);
}
.exp-logo svg {
  width: 32px;
  height: 32px;
}
.exp-head-text {
  flex: 1;
  min-width: 0;
}
.exp-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--red-soft);
  border: 1px solid rgba(255, 45, 45, 0.3);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--red-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.exp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red);
  animation: expPulse 2s ease-in-out infinite;
}
@keyframes expPulse {
  0% {
    box-shadow: 0 0 0 0 var(--red-glow);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.exp-company {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.exp-role {
  color: var(--text);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 500;
  margin-bottom: 4px;
}
.exp-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.exp-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 24px;
}
.exp-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.exp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--red);
}
.exp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.exp-stack-item {
  padding: 5px 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}
.exp-stack-item:hover {
  color: var(--red-2);
  border-color: rgba(255, 45, 45, 0.3);
  background: var(--red-soft);
}

/* =============== EXTRAS (Languages & Certs) =============== */
.extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 760px) {
  .extras-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}
.lang-list,
.cert-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lang-item,
.cert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.lang-item:last-child,
.cert-item:last-child {
  border-bottom: 1px solid var(--border);
}
.lang-name,
.cert-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
}
.lang-level,
.cert-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.lang-level.native,
.cert-status.done {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(255, 45, 45, 0.25);
}
.lang-level.b2 {
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cert-status.progress {
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* =============== CONTACT =============== */
.contact-section {
  background: linear-gradient(180deg, var(--bg) 0%, #0e0303 100%);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 110vw;
  height: 110vw;
  max-width: 1400px;
  max-height: 1400px;
  background: radial-gradient(
    circle at center,
    var(--red-glow) 0%,
    transparent 55%
  );
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.contact-container {
  position: relative;
  text-align: center;
  z-index: 1;
}
.contact-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(44px, 8vw, 110px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 24px;
}
.contact-sub {
  color: var(--text-2);
  font-size: clamp(17px, 1.5vw, 20px);
  margin: 0 0 50px;
}
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.contact-direct {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--text-3);
}
.contact-line {
  color: var(--text-2);
  transition: color 0.25s ease;
}
.contact-line:hover {
  color: var(--red);
}
.contact-line.muted {
  color: var(--text-3);
}
.contact-sep {
  color: var(--text-3);
}

/* =============== FOOTER =============== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.footer-meta {
  color: var(--text-3);
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--red);
}
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =============== TOAST =============== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 24px);
  z-index: 1100;
  padding: 12px 20px;
  background: rgba(20, 20, 22, 0.95);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 24px var(--red-soft);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 600px) {
  .toast {
    bottom: 20px;
    font-size: 12px;
    padding: 10px 16px;
  }
}

/* =============== UTIL =============== */

/* Hide React root override */
#root {
  display: none;
}
