:root {
  /* Dracula Theme Colors */
  --bg: #282a36;
  --surface: #44475a;
  --surface-transparent: rgba(68, 71, 90, 0.4);
  --fg: #f8f8f2;
  --muted: #6272a4;
  --cyan: #8be9fd;
  --green: #50fa7b;
  --orange: #ffb86c;
  --pink: #ff79c6;
  --purple: #bd93f9;
  --red: #ff5555;
  --yellow: #f1fa8c;

  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(var(--surface-transparent) 1px, transparent 1px),
    radial-gradient(at 0% 0%, rgba(189, 147, 249, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 121, 198, 0.08) 0px, transparent 50%);
  background-size: 20px 20px, 100% 100%, 100% 100%;
  background-position: center, center, center;
  background-attachment: fixed;
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  /* Hide default cursor to use custom one */
}

/* Force custom cursor on ALL elements — prevent browser overriding with pointer/auto */
*,
*::before,
*::after {
  cursor: none !important;
}


/* Custom Interactive Glow Cursor */
#cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan);
}

/* Hover states for interactive elements */
a:hover~#cursor-dot,
button:hover~#cursor-dot,
.glass-card:hover~#cursor-dot {
  width: 12px;
  height: 12px;
  background-color: var(--purple);
  box-shadow: 0 0 15px var(--purple), 0 0 30px var(--purple);
}

/* Stardust trailing particles */
.stardust-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9998;
  animation: stardustFade 1s forwards cubic-bezier(0.1, 0.8, 0.3, 1);
  transform: translate(-50%, -50%);
  /* Center the particle on generation point */
}

@keyframes stardustFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
  }
}

/* Revert cursor for text elements */
input,
textarea,
p,
h1,
h2,
h3 {
  cursor: auto;
}

/* Typography */
h1,
h2,
h3,
.logo-font {
  font-family: 'Kdam Thmor Pro', sans-serif;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
nav {
  padding: 32px 0;
  display: flex;
  justify-content: flex-end;
}

nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  margin-left: 32px;
  transition: var(--transition);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--cyan);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 64px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 48px;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
  }

  .profile-container {
    margin: 0 auto;
  }
}

.hero-text {
  flex: 1;
}

.subtitle-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(189, 147, 249, 0.1);
  border: 1px solid rgba(189, 147, 249, 0.3);
  color: var(--purple);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.title .dot {
  color: var(--muted);
}

.title .ext {
  color: var(--green);
}

.cursor {
  display: inline-block;
  width: 0.5ch;
  height: 1em;
  background: currentColor;
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.description {
  font-size: 1.15rem;
  color: var(--fg);
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
  font-weight: 300;
}

@media (max-width: 768px) {
  .description {
    margin-left: auto;
    margin-right: auto;
  }
}

.profile-container {
  position: relative;
  perspective: 1000px;
}

/* Holographic Variables */
:root {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --card-opacity: 0;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --background-x: 50%;
  --background-y: 50%;
  --sunpillar-1: hsl(2, 100%, 73%);
  --sunpillar-2: hsl(53, 100%, 69%);
  --sunpillar-3: hsl(93, 100%, 69%);
  --sunpillar-4: hsl(176, 100%, 76%);
  --sunpillar-5: hsl(228, 100%, 74%);
  --sunpillar-6: hsl(283, 100%, 73%);
  --sunpillar-clr-1: var(--sunpillar-1);
  --sunpillar-clr-2: var(--sunpillar-2);
  --sunpillar-clr-3: var(--sunpillar-3);
  --sunpillar-clr-4: var(--sunpillar-4);
  --sunpillar-clr-5: var(--sunpillar-5);
  --sunpillar-clr-6: var(--sunpillar-6);
  --card-radius: 30px;
}

.holo-wrapper,
.pc-card {
  width: min(380px, calc(100vw - 48px));
  height: auto;
  aspect-ratio: 0.718;
  border-radius: var(--card-radius);
  position: relative;
  background-blend-mode: color-dodge, normal, normal, normal;
  animation: glow-bg 12s linear infinite;
  box-shadow: rgba(0, 0, 0, 0.8) calc((var(--pointer-from-left) * 10px) - 3px) calc((var(--pointer-from-top) * 20px) - 6px) 20px -5px;
  transition: transform 1s ease;
  transform: translate3d(0, 0, 0.1px) rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
  background-size: 100% 100%;
  background-position: 0 0, 0 0, 50% 50%, 0 0;
  background-image: radial-gradient(farthest-side circle at var(--pointer-x) var(--pointer-y), hsla(266, 100%, 90%, var(--card-opacity)) 4%, hsla(266, 50%, 80%, calc(var(--card-opacity) * 0.75)) 10%, hsla(266, 25%, 70%, calc(var(--card-opacity) * 0.5)) 50%, hsla(266, 0%, 60%, 0) 100%), radial-gradient(35% 52% at 55% 20%, #00ffaac4 0%, #073aff00 100%), radial-gradient(100% 100% at 50% 50%, #00c1ffff 1%, #073aff00 76%), conic-gradient(from 124deg at 50% 50%, #c137ffff 0%, #07c6ffff 40%, #07c6ffff 60%, #c137ffff 100%);
  overflow: hidden;
  z-index: 2;
}

.pc-card:hover,
.pc-card.active {
  transition: none;
}

.pc-card * {
  display: grid;
  grid-area: 1/-1;
  border-radius: var(--card-radius);
  transform: translate3d(0, 0, 0.1px);
  pointer-events: none;
}

.pc-inside {
  inset: 1px;
  position: absolute;
  background-image: linear-gradient(145deg, #60496e8c 0%, #71C4FF44 100%);
  background-color: rgba(0, 0, 0, 0.9);
  transform: translate3d(0, 0, 0.01px);
}

.pc-shine {
  mask-image: none;
  transition: filter 0.6s ease;
  filter: brightness(0.66) contrast(1.33) saturate(0.33) opacity(0.5);
  animation: holo-bg 18s linear infinite;
  mix-blend-mode: color-dodge;
}

.pc-shine,
.pc-shine::after {
  --space: 5%;
  --angle: -45deg;
  transform: translate3d(0, 0, 1px);
  overflow: hidden;
  z-index: 3;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-image: repeating-linear-gradient(0deg, var(--sunpillar-clr-1) calc(var(--space) * 1), var(--sunpillar-clr-2) calc(var(--space) * 2), var(--sunpillar-clr-3) calc(var(--space) * 3), var(--sunpillar-clr-4) calc(var(--space) * 4), var(--sunpillar-clr-5) calc(var(--space) * 5), var(--sunpillar-clr-6) calc(var(--space) * 6), var(--sunpillar-clr-1) calc(var(--space) * 7)), repeating-linear-gradient(var(--angle), #0e152e 0%, hsl(180, 10%, 60%) 3.8%, hsl(180, 29%, 66%) 4.5%, hsl(180, 10%, 60%) 5.2%, #0e152e 10%, #0e152e 12%), radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y), hsla(0, 0%, 0%, 0.1) 12%, hsla(0, 0%, 0%, 0.15) 20%, hsla(0, 0%, 0%, 0.25) 120%);
  background-position: 0 var(--background-y), var(--background-x) var(--background-y), center;
  background-blend-mode: color, hard-light;
  background-size: 500% 500%, 300% 300%, 200% 200%;
  background-repeat: repeat;
}

.pc-shine::before,
.pc-shine::after {
  content: '';
  background-position: center;
  background-size: cover;
  grid-area: 1/1;
  opacity: 0;
}

.pc-card:hover .pc-shine,
.pc-card.active .pc-shine {
  filter: brightness(0.85) contrast(1.5) saturate(0.5);
  animation: none;
}

.pc-card:hover .pc-shine::before,
.pc-card.active .pc-shine::before,
.pc-card:hover .pc-shine::after,
.pc-card.active .pc-shine::after {
  opacity: 1;
}

.pc-shine::before {
  background-image: linear-gradient(45deg, var(--sunpillar-4), var(--sunpillar-5), var(--sunpillar-6), var(--sunpillar-1), var(--sunpillar-2), var(--sunpillar-3)), radial-gradient(circle at var(--pointer-x) var(--pointer-y), hsl(0, 0%, 70%) 0%, hsla(0, 0%, 30%, 0.2) 90%), none;
  background-size: 250% 250%, 100% 100%, 220px 220px;
  background-position: var(--pointer-x) var(--pointer-y), center, calc(var(--pointer-x) * 0.01) calc(var(--pointer-y) * 0.01);
  background-blend-mode: color-dodge;
  filter: brightness(calc(2 - var(--pointer-from-center))) contrast(calc(var(--pointer-from-center) + 2)) saturate(calc(0.5 + var(--pointer-from-center)));
  mix-blend-mode: luminosity;
}

.pc-shine::after {
  background-position: 0 var(--background-y), calc(var(--background-x) * 0.4) calc(var(--background-y) * 0.5), center;
  background-size: 200% 300%, 700% 700%, 100% 100%;
  mix-blend-mode: difference;
  filter: brightness(0.8) contrast(1.5);
}

.pc-glare {
  transform: translate3d(0, 0, 1.1px);
  overflow: hidden;
  background-image: radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y), hsl(248, 25%, 80%) 12%, hsla(207, 40%, 30%, 0.8) 90%);
  mix-blend-mode: overlay;
  filter: brightness(0.8) contrast(1.2);
  z-index: 4;
}

.pc-avatar-content {
  mix-blend-mode: screen;
  overflow: hidden;
}

.pc-avatar-content .avatar {
  width: 85%;
  height: 75%;
  object-fit: contain;
  object-position: bottom;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5px;
  opacity: calc(1.75 - var(--pointer-from-center));
}

.pc-avatar-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(30px);
  mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 1) 90%,
      rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 1) 90%,
      rgba(0, 0, 0, 1) 100%);
  pointer-events: none;
}

.pc-user-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(40, 42, 54, 0.4);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 12px 14px;
  pointer-events: auto;
}

.pc-user-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.pc-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pc-user-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.pc-handle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.pc-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.pc-contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.pc-contact-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.pc-content {
  max-height: 100%;
  overflow: hidden;
  text-align: center;
  position: relative;
  transform: translate3d(calc(var(--pointer-from-left) * -6px + 3px), calc(var(--pointer-from-top) * -6px + 3px), 0.1px) !important;
  z-index: 5;
  mix-blend-mode: luminosity;
}

.pc-details {
  width: 100%;
  position: absolute;
  top: 3em;
  display: flex;
  flex-direction: column;
}

.pc-details h3 {
  font-weight: 600;
  margin: 0;
  font-size: min(5svh, 2em);
  /* Adjusted size to fit earlier UI */
  background-image: linear-gradient(to bottom, #fff, #6f6fbe);
  background-size: 1em 1.5em;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.pc-details p {
  font-weight: 600;
  position: relative;
  top: -2px;
  /* Adjusted alignment */
  white-space: nowrap;
  font-size: 16px;
  margin: 0 auto;
  width: min-content;
  background-image: linear-gradient(to bottom, #fff, #4a4ac0);
  background-size: 1em 1.5em;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

@keyframes glow-bg {
  0% {
    --bgrotate: 0deg;
  }

  100% {
    --bgrotate: 360deg;
  }
}

@keyframes holo-bg {
  0% {
    background-position: 0 var(--background-y), 0 0, center;
  }

  100% {
    background-position: 0 var(--background-y), 90% 90%, center;
  }
}

@keyframes pulseGlow {
  0% {
    background-position: center, 0% 50%;
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.95);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.05);
  }

  100% {
    background-position: center, 100% 50%;
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .actions {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(189, 147, 249, 0.4);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(189, 147, 249, 0.6);
}

.btn.secondary {
  background: var(--surface-transparent);
  border-color: rgba(248, 248, 242, 0.1);
  color: var(--fg);
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(68, 71, 90, 0.8);
  transform: translateY(-2px);
  border-color: var(--cyan);
}

/* Sections */
section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  display: inline-block;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

/* Grid layout for what I do */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.glass-card {
  background: var(--surface-transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--transparent), var(--transparent));
  transition: var(--transition);
}

/* Unique geometric cut in the corner of glass cards */
.glass-card::after {
  content: '';
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 25px 25px;
  border-color: transparent transparent rgba(255, 255, 255, 0.03) transparent;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(68, 71, 90, 0.7);
}

.glass-card:hover::after {
  border-color: transparent transparent rgba(189, 147, 249, 0.2) transparent;
}

.glass-card.card-1:hover::before {
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.glass-card.card-2:hover::before {
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.glass-card.card-3:hover::before {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 24px;
  display: inline-block;
  background: var(--surface);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--fg);
}

.card-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

/* --- Experiencia Section --- */
.view-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.view-toggle {
  position: relative;
  display: flex;
  background: rgba(40, 42, 54, 0.8);
  border: 1px solid rgba(189, 147, 249, 0.3);
  border-radius: 100px;
  padding: 4px;
  backdrop-filter: blur(10px);
}

.view-toggle input[type="radio"] {
  display: none;
}

.toggle-label {
  position: relative;
  z-index: 2;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border-radius: 100px;
}

.view-toggle input[type="radio"]:checked+.toggle-label {
  color: #fff;
}

.toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  border-radius: 100px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(189, 147, 249, 0.4);
}

.view-toggle input[id="view-2"]:checked~.toggle-slider {
  transform: translateX(100%);
}

.exp-views-wrapper {
  position: relative;
  min-height: 520px;
}

.exp-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.exp-view.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Terminal View */
.terminal-window {
  padding: 0;
  border: 1px solid rgba(80, 250, 123, 0.3);
  background: #1e1e1e;
  /* Classic terminal dark */
}

.terminal-window:hover {
  border-color: rgba(80, 250, 123, 0.6);
  background: #1e1e1e;
}

.terminal-window:hover::after {
  border-color: transparent transparent rgba(80, 250, 123, 0.2) transparent;
}

.terminal-header {
  background: #2d2d2d;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #444;
}

.term-dots {
  display: flex;
  gap: 8px;
}

.term-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.term-dots .dot.red {
  background: #ff5f56;
}

.term-dots .dot.yellow {
  background: #ffbd2e;
}

.term-dots .dot.green {
  background: #27c93f;
}

.term-title {
  margin: 0 auto;
  color: #bbb;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transform: translateX(-24px);
  /* offset for dots */
}

.terminal-body {
  padding: 24px;
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.term-prompt {
  color: var(--green);
  margin-right: 8px;
}

.term-line {
  margin-top: 16px;
  margin-bottom: 8px;
  word-break: break-all;
}

.term-line:first-child {
  margin-top: 0;
}

.term-output {
  margin-bottom: 24px;
}

.term-block {
  margin-bottom: 12px;
}

.term-key {
  color: var(--cyan);
  font-weight: 600;
  margin-right: 8px;
  display: inline-block;
  min-width: 90px;
}

.term-list>div {
  margin-left: 16px;
  margin-bottom: 4px;
  color: #ccc;
}

.json-output {
  white-space: pre-wrap;
  color: #ccc;
  word-break: break-all;
}

.json-key {
  background-color: transparent;
  color: var(--pink);
}

.json-val {
  background-color: transparent;
  color: var(--yellow);
}

/* Timeline View */
.timeline-container {
  position: relative;
  padding-left: 24px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--purple), var(--cyan), transparent);
}

.timeline-node {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: -27px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--purple);
  box-shadow: 0 0 10px var(--purple);
}

.timeline-content {
  padding: 32px;
}

.timeline-header {
  margin-bottom: 24px;
}

.role-title {
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 8px;
}

.company-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.company-name {
  color: var(--cyan);
  font-weight: 600;
  font-size: 1.1rem;
}

.company-period {
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(98, 114, 164, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
}

.role-tasks {
  list-style: none;
  margin-bottom: 32px;
}

.role-tasks li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--fg);
  opacity: 0.9;
}

.role-tasks li span {
  flex: 1;
  /* Asegura que el texto ocupe todo el espacio sobrante y wrap correctamente */
  line-height: 1.5;
}

.role-tasks li svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-skills p {
  margin: 0;
}

.skills-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-group h5 {
  font-size: 0.95rem;
  color: var(--purple);
  margin-bottom: 12px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .view-toggle-container {
    transform: scale(0.9);
  }
}

/* Stack section */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

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

@media (max-width: 480px) {
  .holo-wrapper {
    width: min(320px, calc(100vw - 32px));
  }

  .hero-content {
    gap: 16px;
  }

  .role-title {
    font-size: 1.25rem;
    /* Ajuste para que el título no se deforme en pantallas pequeñas */
  }

  .timeline-content {
    padding: 20px;
    /* Reducción de padding para ganar espacio horizontal */
  }
}

.stack-category {
  background: rgba(40, 42, 54, 0.6);
  border: 1px solid var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.stack-category:hover {
  border-color: rgba(189, 147, 249, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stack-title {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  font-family: 'Kdam Thmor Pro', sans-serif;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge:hover {
  background: var(--surface-transparent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dynamic badge borders */
.badge-ts {
  border-left: 2px solid #3178c6;
}

.badge-ang {
  border-left: 2px solid #dd0031;
}

.badge-nxt {
  border-left: 2px solid #fff;
}

.badge-pg {
  border-left: 2px solid #336791;
}

.badge-aws {
  border-left: 2px solid #ff9900;
}

.badge-doc {
  border-left: 2px solid #2496ed;
}

/* Footer */
footer {
  border-top: 1px solid var(--surface);
  padding: 40px 0;
  margin-top: 60px;
  background: rgba(0, 0, 0, 0.15);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  color: var(--muted);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--cyan);
}

/* Reveal Animation class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for scroll-reveal children */
.reveal-d1 {
  transition-delay: 0.15s;
}

.reveal-d2 {
  transition-delay: 0.3s;
}

.reveal-d3 {
  transition-delay: 0.45s;
}

.reveal-d4 {
  transition-delay: 0.6s;
}

/* === Hero Entrance Animations (on load) === */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeRight {
  from {
    opacity: 0;
    transform: translateX(36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

nav {
  animation: heroFadeUp 0.6s cubic-bezier(0.5, 0, 0, 1) 0.05s both;
}

.subtitle-badge {
  animation: heroFadeUp 0.7s cubic-bezier(0.5, 0, 0, 1) 0.2s both;
}

.hero-text .title {
  animation: heroFadeUp 0.7s cubic-bezier(0.5, 0, 0, 1) 0.45s both;
}

.hero-text .description {
  animation: heroFadeUp 0.7s cubic-bezier(0.5, 0, 0, 1) 0.65s both;
}

.hero-text .actions {
  animation: heroFadeUp 0.7s cubic-bezier(0.5, 0, 0, 1) 0.85s both;
}

.profile-container {
  animation: heroFadeRight 0.9s cubic-bezier(0.5, 0, 0, 1) 0.3s both;
}

@media (max-width: 768px) {
  .profile-container {
    animation-name: heroFadeUp;
  }
}