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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --bg: #0a0e17;
  --bg-light: #111827;
  --accent: #ff4757;
  --accent-secondary: #ffc048;
  --accent-tertiary: #536dfe;
  --accent-soft: rgba(255, 71, 87, 0.1);
  --accent-glow: rgba(255, 71, 87, 0.3);
  --accent-rgb: 255, 71, 87;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  cursor: none;
  overflow-x: hidden;
}

a, button, .btn, .skill-card, .project-card, .contact-card, .social-link, .hamburger {
  cursor: none;
}

/* Custom Cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease;
  transform: translate(-50%, -50%);
}

/* Particles */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent-tertiary), var(--accent));
  background-size: 300% 100%;
  animation: navBorderGlow 4s ease infinite;
}

@keyframes navBorderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Scroll progress bar */
.nav-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent-tertiary));
  width: 0;
  z-index: 101;
  transition: width 0.05s linear;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  transition: text-shadow 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5), 0 0 40px rgba(var(--accent-rgb), 0.2);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: none;
  transition: transform 0.3s ease;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 71, 87, 0.07) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(83, 109, 254, 0.07) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(255, 192, 72, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  width: 100%;
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 640px;
}

.hero-image-wrapper {
  flex-shrink: 0;
  position: relative;
  display: flex;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.05);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
}

.hero-greeting {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  font-size: 5rem;
  font-weight: 800;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-wrapper {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  height: 48px;
}

.typing-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.cursor-blink {
  color: var(--accent-tertiary);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.4);
}

.btn-primary i {
  transition: transform 0.3s;
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-outline {
  border: 1.5px solid rgba(var(--accent-rgb), 0.4);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.15);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 70px;
  position: relative;
}

.hero-stats::before,
.hero-stats::after {
  content: '◆';
  color: var(--accent);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  opacity: 0.3;
}

.hero-stats::before { left: 5%; }
.hero-stats::after { right: 5%; }

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* Section */
section {
  padding: 120px 0;
  position: relative;
}

.section-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.section-number {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  font-family: 'M PLUS Rounded 1c', 'SF Mono', 'Fira Code', monospace;
  background: rgba(var(--accent-rgb), 0.08);
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #fff;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary), transparent);
  position: relative;
}

.section-line::after {
  content: '✦';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.6rem;
  opacity: 0.5;
}

.section-desc {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About */
.about-content {
  max-width: 750px;
  margin: 0 auto;
}

.about-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
  border-color: rgba(var(--accent-rgb), 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(var(--accent-rgb), 0.05);
}

.about-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06), transparent 70%);
  pointer-events: none;
  transition: all 0.6s ease;
}

.about-card:hover .about-card-glow {
  top: -30%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1), transparent 70%);
}

.about-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.08);
  padding: 6px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.about-card-badge i {
  font-size: 0.75rem;
}

.about-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.about-card-dots {
  display: flex;
  gap: 6px;
}

.about-card-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

.about-card:hover .about-card-dots span:nth-child(1) { background: var(--accent); }
.about-card:hover .about-card-dots span:nth-child(2) { background: var(--accent-secondary); }
.about-card:hover .about-card-dots span:nth-child(3) { background: var(--accent-tertiary); }

.about-card-lines {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Stagger fade-in */
.fade-in-stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-stagger:nth-child(1) { transition-delay: 0.1s; }
.fade-in-stagger:nth-child(2) { transition-delay: 0.3s; }
.fade-in-stagger:nth-child(3) { transition-delay: 0.5s; }

.fade-in-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.about-image-wrapper,
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
}

.about-image {
  width: 280px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.05);
}

.about-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg);
}

.about-image-border {
  position: absolute;
  width: 280px;
  height: 320px;
  border: 2px solid transparent;
  border-radius: 12px;
  top: 16px;
  left: 16px;
  z-index: 1;
  transition: all 0.3s;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent-tertiary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about-image-wrapper:hover .about-image-border,
.hero-image-wrapper:hover .about-image-border {
  top: 12px;
  left: 12px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Skills */
#skills {
  position: relative;
}

#skills::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
  top: -200px;
  right: -250px;
  pointer-events: none;
  z-index: 0;
}

#skills .container {
  position: relative;
  z-index: 1;
}

.skills-zigzag {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.skills-intro h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 16px;
}

.skills-intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Focus areas */
.skill-focus-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.skill-focus-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.skill-focus-item i {
  font-size: 0.75rem;
  color: var(--accent);
}

.skill-focus-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.08);
}

/* Quick tags with icons */
.skill-quick-tag i {
  font-size: 0.8rem;
  color: var(--accent);
}

/* Currently learning */
.skill-learning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.skill-learning i {
  color: var(--accent);
  font-size: 0.9rem;
}

.skill-learning strong {
  color: var(--accent);
  font-weight: 600;
}

/* Skill stats row */
.skill-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}

.skill-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.skill-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  line-height: 1.2;
}

.skill-stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.skill-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
}

/* Quick tags */
.skill-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.skill-quick-tag {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  transition: all 0.3s ease;
}

.skill-quick-tag:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.1);
}

.skills-intro .btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.skills-intro .btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card.fade-in:nth-child(1) { transition-delay: 0s; }
.skill-card.fade-in:nth-child(2) { transition-delay: 0.05s; }
.skill-card.fade-in:nth-child(3) { transition-delay: 0.1s; }
.skill-card.fade-in:nth-child(4) { transition-delay: 0.15s; }
.skill-card.fade-in:nth-child(5) { transition-delay: 0.2s; }
.skill-card.fade-in:nth-child(6) { transition-delay: 0.25s; }
.skill-card.fade-in:nth-child(7) { transition-delay: 0.3s; }
.skill-card.fade-in:nth-child(8) { transition-delay: 0.35s; }
.skill-card.fade-in:nth-child(9) { transition-delay: 0.4s; }
.skill-card.fade-in:nth-child(10) { transition-delay: 0.45s; }

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  padding: 28px 16px;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(var(--accent-rgb), 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.06), transparent);
  transition: left 0.6s;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover::after {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 12px 48px rgba(var(--accent-rgb), 0.08);
}

.skill-icon {
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.2));
}

.skill-card:hover .skill-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.4));
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-pct {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.25);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -60%; }
  100% { left: 160%; }
}

/* Skills extra */
.skills-extra {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.skills-subtitle {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}

.skills-subtitle i {
  color: var(--accent);
  font-size: 1rem;
}

/* Tools grid */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tool-badge:hover {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.1);
}

.tool-badge i {
  font-size: 1.05rem;
}

/* Soft skills */
.soft-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.soft-skill-tag {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.soft-skill-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(var(--accent-rgb), 0.1), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.soft-skill-tag:hover::before {
  opacity: 1;
}

.soft-skill-tag:hover {
  background: rgba(var(--accent-rgb), 0.04);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.08);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.project-img {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay a {
  color: #fff;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

.project-overlay a:hover {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.1);
}

.project-body {
  padding: 24px;
}

.project-type {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.project-body h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.project-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech span {
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: 1px solid rgba(var(--accent-rgb), 0.1);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary), var(--accent-tertiary), transparent);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.1);
}

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

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

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  z-index: 1;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4);
  animation: timelinePulse 2.5s ease-in-out infinite;
}

.timeline-item:last-child .timeline-dot {
  animation: timelinePulse 2.5s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  padding: 24px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content:hover {
  border-color: rgba(var(--accent-rgb), 0.2);
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(var(--accent-rgb), 0.05);
}

/* Timeline header */
.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.timeline-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.timeline-content:hover .timeline-icon {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.25);
  transform: scale(1.05);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-bottom: 4px;
  display: inline-block;
  padding: 2px 10px;
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 4px;
}

.timeline-content h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-company {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
}

.timeline-content > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 0;
}

/* Timeline achievements */
.timeline-achievements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline-achievement {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.timeline-achievement i {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.timeline-content:hover .timeline-achievement {
  color: var(--text);
}

/* Timeline tags */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(var(--accent-rgb), 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  transition: all 0.3s ease;
}

.timeline-tag:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Contact */
#contact {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: contactGlowPulse 4s ease-in-out infinite;
}

@keyframes contactGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Availability badge */
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.15);
  margin-bottom: 24px;
}

.contact-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn-wa {
  border-color: #25d366 !important;
  color: #25d366 !important;
}

.contact-btn-wa:hover {
  background: rgba(37, 211, 102, 0.1) !important;
  border-color: #25d366 !important;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.2) !important;
}

.contact-btn {
  padding: 16px 44px;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s;
}

.contact-btn:hover::before {
  left: 100%;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.contact-btn:hover .btn-icon {
  transform: translate(4px, -4px) rotate(-10deg);
}

.contact-response {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.contact-response i {
  color: var(--accent-secondary);
  animation: boltFlicker 2s ease-in-out infinite;
}

@keyframes boltFlicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.social-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.social-link:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link i {
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px 24px;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.footer-wave {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-wave span {
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0.3;
  animation: waveFloat 3s ease-in-out infinite;
}

.footer-wave span:nth-child(2) {
  animation-delay: 0.5s;
}

.footer-wave span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes waveFloat {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-4px); opacity: 0.6; }
}

.footer-small {
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 16px;
  }

  .hero-name {
    font-size: 2.8rem;
  }

  .hero-title-wrapper {
    font-size: 1.2rem;
    height: auto;
    min-height: 40px;
  }

  .hero-greeting {
    font-size: 0.85rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    max-width: 100%;
    padding: 0;
  }

  .hero-content {
    padding: 85px 16px 150px;
  }

  .hero-stats {
    gap: 20px;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
  }

  .stat-num {
    font-size: 2rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: none;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
    padding: 12px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.25s; }

  .nav-links a {
    font-size: 1rem;
    padding: 14px 16px;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(var(--accent-rgb), 0.08);
  }

  .nav-links a::after {
    display: none;
  }

  .hamburger {
    display: block;
    z-index: 101;
    transition: transform 0.4s ease;
  }

  .hamburger.spin {
    transform: rotate(90deg);
  }

  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .about-content {
    text-align: center;
    max-width: 100%;
  }

  .about-text p {
    font-size: 0.95rem;
    text-align: center;
  }

  .about-card {
    padding: 24px 16px;
  }

  .about-card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .about-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 280 / 320;
  }

  .about-image-border {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 280 / 320;
    top: 14px;
    left: 14px;
  }

  .contact-wrapper {
    max-width: 100%;
  }

  .section-top {
    justify-content: center;
    gap: 12px;
  }

  .section-title {
    font-size: 1.4rem;
    white-space: normal;
  }

  .section-desc {
    font-size: 0.9rem;
    padding: 0;
  }

  .skills-zigzag {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skill-card {
    padding: 20px 12px;
  }

  .skill-icon {
    font-size: 2rem;
  }

  .skill-name {
    font-size: 0.8rem;
  }

  .skills-intro h3 {
    font-size: 1.2rem;
  }

  .skills-intro p {
    font-size: 0.9rem;
  }

  .skill-focus-areas {
    gap: 6px;
    margin-bottom: 18px;
  }

  .skill-focus-item {
    padding: 5px 12px;
    font-size: 0.7rem;
    gap: 5px;
  }

  .skill-stats-row {
    padding: 12px 14px;
    gap: 12px;
  }

  .skill-stat-num {
    font-size: 1.1rem;
  }

  .skill-stat-label {
    font-size: 0.6rem;
  }

  .skill-quick-tags {
    gap: 6px;
  }

  .skill-quick-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .skill-learning {
    font-size: 0.72rem;
    padding: 8px 12px;
  }

  .skills-intro .btn-outline {
    display: none;
  }

  .skills-extra {
    margin-top: 36px;
    gap: 28px;
  }

  .tool-badge {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .soft-skill-tag {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-body {
    padding: 18px;
  }

  .project-body h3 {
    font-size: 1.05rem;
  }

  .project-body p {
    font-size: 0.85rem;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    padding-left: 20px;
    margin-bottom: 32px;
  }

  .timeline-dot {
    left: -18px;
    width: 12px;
    height: 12px;
  }

  .timeline-content {
    padding: 16px 18px;
  }

  .timeline-header {
    gap: 12px;
  }

  .timeline-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-achievements {
    padding: 10px 12px;
    gap: 6px;
  }

  .timeline-achievement {
    font-size: 0.78rem;
  }

  .timeline-tag {
    font-size: 0.62rem;
    padding: 3px 10px;
  }

  .contact-badge {
    font-size: 0.72rem;
    padding: 5px 14px;
    margin-bottom: 18px;
  }

  .contact-desc {
    font-size: 0.92rem;
    padding: 0;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .contact-btn, .contact-btn-wa {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .contact-btn {
    padding: 14px 24px;
    font-size: 0.92rem;
  }

  .contact-btn-wa {
    padding: 14px 24px;
    font-size: 0.92rem;
  }

  .contact-response {
    font-size: 0.72rem;
  }

  .contact-social {
    gap: 14px;
    margin-top: 28px;
  }

  .social-link {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
  }

  .cursor, .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }

  a, button, .btn, .skill-card, .project-card, .contact-card, .social-link, .hamburger {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }

  .hero-name {
    font-size: 1.8rem;
  }

  .hero-title-wrapper {
    font-size: 0.9rem;
    height: auto;
    min-height: 24px;
  }

  .hero-greeting {
    font-size: 0.75rem;
  }

  .hero-desc {
    font-size: 0.88rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 4px 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-content {
    padding: 80px 12px 130px;
  }

  .hero-stats {
    gap: 10px;
    flex-direction: column;
    margin-top: 16px;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .btn-primary i {
    display: inline-flex;
  }

  .about-image {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 280 / 320;
  }

  .about-image-border {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 280 / 320;
    top: 12px;
    left: 12px;
  }

  .about-card {
    padding: 20px 16px;
  }

  .about-text p {
    font-size: 0.88rem;
    margin-bottom: 14px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-desc {
    font-size: 0.85rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .skill-icon {
    font-size: 1.6rem;
  }

  .skill-name {
    font-size: 0.72rem;
  }

  .skill-focus-areas {
    gap: 4px;
    margin-bottom: 12px;
  }

  .skill-focus-item {
    padding: 3px 8px;
    font-size: 0.62rem;
    gap: 3px;
  }

  .skill-stats-row {
    padding: 10px 10px;
    gap: 8px;
  }

  .skill-stat-num {
    font-size: 1rem;
  }

  .skill-stat-label {
    font-size: 0.55rem;
  }

  .skill-quick-tag {
    font-size: 0.65rem;
    padding: 3px 10px;
  }

  .skill-learning {
    font-size: 0.65rem;
    padding: 6px 10px;
    gap: 6px;
  }

  .skill-card {
    padding: 14px 8px;
    gap: 8px;
  }

  .skills-extra {
    margin-top: 28px;
    gap: 20px;
  }

  .skills-subtitle {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .tools-grid {
    gap: 6px;
  }

  .tool-badge {
    padding: 6px 10px;
    font-size: 0.72rem;
    gap: 5px;
  }

  .soft-skill-tag {
    padding: 5px 12px;
    font-size: 0.72rem;
  }

  .section-top {
    gap: 8px;
    margin-bottom: 32px;
  }

  .section-number {
    font-size: 0.78rem;
  }

  .section-line {
    display: none;
  }

  section {
    padding: 60px 0;
  }

  .timeline {
    padding-left: 14px;
  }

  .timeline-item {
    padding-left: 14px;
    margin-bottom: 24px;
  }

  .timeline-dot {
    left: -10px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .timeline-content {
    padding: 14px 16px;
  }

  .timeline-content h3 {
    font-size: 0.95rem;
  }

  .timeline-content > p {
    font-size: 0.8rem;
  }

  .timeline-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .timeline-header {
    gap: 8px;
  }

  .timeline-achievements {
    padding: 8px 10px;
    gap: 4px;
  }

  .timeline-achievement {
    font-size: 0.72rem;
    gap: 6px;
  }

  .timeline-tag {
    font-size: 0.6rem;
    padding: 2px 8px;
  }

  .contact-badge {
    font-size: 0.62rem;
    padding: 3px 10px;
    gap: 5px;
  }

  .contact-badge-dot {
    width: 5px;
    height: 5px;
  }

  .contact-desc {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .contact-btn, .contact-btn-wa {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .contact-btn {
    padding: 10px 24px;
    font-size: 0.82rem;
  }

  .contact-btn-wa {
    padding: 10px 24px;
    font-size: 0.82rem;
  }

  .contact-response {
    font-size: 0.65rem;
    margin-top: 8px;
  }

  .contact-social {
    gap: 10px;
    margin-top: 24px;
  }

  .social-link {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .project-body {
    padding: 14px;
  }

  .project-body h3 {
    font-size: 1rem;
  }

  .project-body p {
    font-size: 0.8rem;
  }

  .project-tech span {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: flex;
  }
}

.scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-text {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid #888;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Glow effect on hover for interactive elements */
.project-card:hover .project-body h3 {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chat-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  font-weight: 800;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  cursor: none;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.chat-toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent-tertiary), var(--accent));
  background-size: 300% 300%;
  animation: toggleRing 4s linear infinite;
  z-index: -1;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 1px));
}

.chat-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  z-index: -1;
  animation: togglePulse 3s ease-in-out infinite;
}

.chat-toggle-icon {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  animation: toggleFloat 3s ease-in-out infinite;
}

@keyframes toggleRing {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes togglePulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3), 0 0 0 0 rgba(var(--accent-rgb), 0.2); }
  50% { box-shadow: 0 6px 30px rgba(var(--accent-rgb), 0.5), 0 0 0 10px rgba(var(--accent-rgb), 0); }
}

@keyframes toggleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.chat-toggle:hover .chat-toggle-icon {
  animation: none;
  transform: scale(1.1);
}

.chat-toggle.hidden {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: all 0.4s ease;
}

.chat-panel {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  max-height: 520px;
  background: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent-tertiary), var(--accent));
  background-size: 300% 100%;
  animation: navBorderGlow 4s ease infinite;
}

.chat-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2), 0 0 20px rgba(var(--accent-rgb), 0.15);
  animation: avatarGlow 3s ease-in-out infinite;
}

.chat-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary), var(--accent-tertiary), var(--accent));
  background-size: 300% 300%;
  animation: avatarRing 4s linear infinite;
  z-index: -1;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 1px));
}

@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2), 0 0 20px rgba(var(--accent-rgb), 0.15); }
  50% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.3), 0 0 30px rgba(var(--accent-rgb), 0.25); }
}

@keyframes avatarRing {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.chat-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: badgePulse 2s ease-in-out infinite;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: none;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.3s;
}

.chat-close:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.chat-messages {
  padding: 16px;
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: msgIn 0.3s ease;
}

.chat-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
  align-items: flex-start;
}

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

.chat-bubble {
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  border-radius: 14px;
}

.chat-message.bot .chat-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(255, 192, 72, 0.15));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s;
}

.chat-input:focus {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.chat-input::placeholder {
  color: var(--text-dim);
}

.chat-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--bg);
  border: none;
  font-size: 1rem;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.chat-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

.chat-send:disabled {
  opacity: 0.5;
  transform: none;
}

.chat-limit-msg {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
}

.chat-typing .chat-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
}

.chat-typing .chat-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingDot 1.4s infinite;
}

.chat-typing .chat-bubble span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing .chat-bubble span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chat-footer {
  padding: 8px 16px 10px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
}

.chat-limit {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: 'SF Mono', 'Fira Code', monospace;
  transition: color 0.3s;
}

.chat-limit.warning {
  color: var(--accent-secondary);
}

.chat-limit.exhausted {
  color: var(--accent);
}

.chat-limit-msg {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
    bottom: 64px;
    max-height: 460px;
  }

  .chat-messages {
    height: 280px;
  }
}
