/* ===========================
   ROOT DESIGN SYSTEM
=========================== */
:root {
  --bg-primary: #050711;
  --bg-secondary: #0a0d1a;
  --bg-card: #0d1224;
  --bg-card-hover: #111830;
  --bg-glass: rgba(13, 18, 36, 0.7);

  --accent-blue: #4f8ef7;
  --accent-purple: #9b59f7;
  --accent-cyan: #24d7f7;
  --accent-pink: #f759c2;

  --gradient-primary: linear-gradient(135deg, #4f8ef7 0%, #9b59f7 100%);
  --gradient-glow: linear-gradient(135deg, rgba(79, 142, 247, 0.15) 0%, rgba(155, 89, 247, 0.15) 100%);
  --gradient-card: linear-gradient(145deg, #0d1224 0%, #111830 100%);

  --text-primary: #f0f4ff;
  --text-secondary: #8892b0;
  --text-muted: #4a5568;

  --border-color: rgba(79, 142, 247, 0.15);
  --border-hover: rgba(79, 142, 247, 0.4);

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow-blue: 0 0 40px rgba(79, 142, 247, 0.25);
  --shadow-glow-purple: 0 0 40px rgba(155, 89, 247, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Promote body to its own GPU layer */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

::selection {
  background: rgba(79, 142, 247, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 3px;
}

/* ===========================
   ANIMATED BACKGROUND
=========================== */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
  /* GPU composite — avoids layout/paint on animation */
  will-change: transform;
  transform: translateZ(0);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-blue);
  top: -200px;
  left: -200px;
  animation-duration: 25s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: -150px;
  right: -150px;
  animation-duration: 30s;
  animation-delay: -10s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 20s;
  animation-delay: -5s;
  opacity: 0.06;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 30px) scale(1.02);
  }
}

/* Particles Canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===========================
   NAVIGATION
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 7, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  margin-right: auto;
}

.logo-bracket {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(79, 142, 247, 0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(79, 142, 247, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before {
  opacity: 0.08;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(79, 142, 247, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
}

.btn-outline:hover {
  background: rgba(79, 142, 247, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 142, 247, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: rgba(79, 142, 247, 0.08);
  color: var(--accent-blue);
  border-color: var(--border-hover);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--accent-blue);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.greeting {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 400;
}

.name-highlight {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
}

.role-prefix {
  color: var(--text-secondary);
}

.role-slider {
  position: relative;
  height: 1.8em;
  overflow: hidden;
  display: inline-block;
}

.role-item {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.5s ease;
}

.role-item.active {
  transform: translateY(0);
  opacity: 1;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 520px;
}

.hero-desc strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0.5rem;
  padding: 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
}

.stat-plus {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 220px;
  height: 440px;
  background: linear-gradient(145deg, #1a1f3a, #0d1224);
  border-radius: 40px;
  border: 2px solid rgba(79, 142, 247, 0.3);
  box-shadow:
    0 0 60px rgba(79, 142, 247, 0.2),
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 2;
  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #050711;
  border-radius: 10px;
  z-index: 10;
}

.phone-screen {
  position: absolute;
  inset: 4px;
  background: var(--bg-secondary);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  font-size: 0.55rem;
  color: var(--text-secondary);
  margin-top: 20px;
}

.status-icons {
  display: flex;
  gap: 4px;
  font-size: 0.5rem;
}

.app-ui {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.app-title-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-title-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  width: 80%;
}

.app-sub-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  width: 50%;
}

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.app-card {
  height: 60px;
  border-radius: 8px;
}

.card-blue {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.6), rgba(79, 142, 247, 0.2));
}

.card-purple {
  background: linear-gradient(135deg, rgba(155, 89, 247, 0.6), rgba(155, 89, 247, 0.2));
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.list-item {
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.list-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgba(79, 142, 247, 0.3);
  border-radius: 4px;
}

.list-item::after {
  content: '';
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.app-nav-bottom {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.nav-dot.active {
  background: var(--accent-blue);
  width: 16px;
  border-radius: 3px;
}

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 60px;
  background: var(--accent-blue);
  filter: blur(40px);
  opacity: 0.35;
  border-radius: 50%;
}

/* Tech Orbit */
.tech-orbit {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(79, 142, 247, 0.2);
  animation: orbitSpin 20s linear infinite;
}

.ring-1 {
  width: 300px;
  height: 300px;
  margin: -150px;
}

.ring-2 {
  width: 380px;
  height: 380px;
  margin: -190px;
  animation-direction: reverse;
  animation-duration: 30s;
  border-color: rgba(155, 89, 247, 0.15);
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.orbit-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.orbit-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ring-1 .orbit-icon:nth-child(1) {
  transform: rotate(var(--angle)) translate(150px) rotate(calc(-1 * var(--angle)));
  margin: -22px;
}

.ring-1 .orbit-icon:nth-child(2) {
  transform: rotate(var(--angle)) translate(150px) rotate(calc(-1 * var(--angle)));
  margin: -22px;
}

.ring-1 .orbit-icon:nth-child(3) {
  transform: rotate(var(--angle)) translate(150px) rotate(calc(-1 * var(--angle)));
  margin: -22px;
}

.ring-2 .orbit-icon:nth-child(1) {
  transform: rotate(var(--angle)) translate(190px) rotate(calc(-1 * var(--angle)));
  margin: -22px;
}

.ring-2 .orbit-icon:nth-child(2) {
  transform: rotate(var(--angle)) translate(190px) rotate(calc(-1 * var(--angle)));
  margin: -22px;
}

.ring-2 .orbit-icon:nth-child(3) {
  transform: rotate(var(--angle)) translate(190px) rotate(calc(-1 * var(--angle)));
  margin: -22px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(79, 142, 247, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ===========================
   SECTIONS COMMON
=========================== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--accent-blue);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* ===========================
   ABOUT SECTION
=========================== */
.about-section {
  background: linear-gradient(180deg, transparent 0%, rgba(79, 142, 247, 0.03) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}

.about-image-area {
  display: flex;
  justify-content: center;
}

.about-image-frame {
  position: relative;
  width: 280px;
  height: 320px;
}

.about-avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(79, 142, 247, 0.3);
}

.about-avatar {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  font-family: var(--font-mono);
}

.experience-badge {
  position: absolute;
  bottom: 10px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.exp-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
}

.exp-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

.floating-card img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.card-kotlin {
  bottom: 85px;
  left: -30px;
  animation: floatCard 3s ease-in-out infinite;
}

.card-flutter {
  top: 20px;
  right: -20px;
  animation: floatCard 3s ease-in-out infinite 1.5s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
}

.about-lead strong {
  color: var(--accent-blue);
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ===========================
   SKILLS SECTION
=========================== */
.skills-section {
  background: linear-gradient(180deg, transparent 0%, rgba(155, 89, 247, 0.03) 50%, transparent 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.skills-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.skill-category {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-4px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-cat-icon {
  font-size: 1.5rem;
}

.skill-cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag-primary {
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
  color: var(--accent-blue);
}

.tag-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.tag-accent {
  background: rgba(155, 89, 247, 0.12);
  border: 1px solid rgba(155, 89, 247, 0.25);
  color: var(--accent-purple);
}

.skill-tag:hover {
  transform: scale(1.05);
}

/* Proficiency Bars */
.proficiency-section {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.proficiency-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proficiency-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.proficiency-item {
  padding-bottom: 0;
}

.prof-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.prof-header span:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.prof-percent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-family: var(--font-mono);
}

.prof-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.prof-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.prof-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

/* ===========================
   EXPERIENCE SECTION
=========================== */
.experience-section {
  background: linear-gradient(180deg, transparent 0%, rgba(79, 142, 247, 0.03) 50%, transparent 100%);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1.5rem;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(79, 142, 247, 0.6);
  flex-shrink: 0;
}

.marker-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  margin-top: 8px;
  min-height: 40px;
}

.timeline-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  position: relative;
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-4px);
}

.timeline-card.current {
  border-color: rgba(79, 142, 247, 0.4);
  background: linear-gradient(145deg, rgba(79, 142, 247, 0.06) 0%, #111830 100%);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.company-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.company-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--accent-blue);
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
  background: rgba(79, 142, 247, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(79, 142, 247, 0.2);
}

.role-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.timeline-points li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 1.25rem;
  position: relative;
}

.timeline-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.timeline-points strong {
  color: var(--text-primary);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tl-tag {
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.15);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
}

/* ===========================
   PROJECTS SECTION
=========================== */
.projects-section {
  background: linear-gradient(180deg, transparent 0%, rgba(155, 89, 247, 0.03) 50%, transparent 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-purple);
}

.project-card.featured {
  grid-column: span 1;
  border-color: rgba(155, 89, 247, 0.35);
  background: linear-gradient(145deg, rgba(155, 89, 247, 0.07) 0%, #111830 100%);
}

.project-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-purple);
  filter: blur(50px);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-glow {
  opacity: 0.15;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon {
  font-size: 2rem;
}

.project-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-published {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.badge-featured {
  background: rgba(247, 197, 79, 0.15);
  border: 1px solid rgba(247, 197, 79, 0.3);
  color: #f7c54f;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tech span {
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.15);
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-size: 0.72rem;
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-section {
  background: linear-gradient(180deg, transparent 0%, rgba(79, 142, 247, 0.03) 50%, transparent 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(79, 142, 247, 0.15);
}

.contact-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.contact-card-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.05);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-sm);
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  background: rgba(5, 7, 17, 0.8);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-socials a:hover {
  border-color: var(--border-hover);
  color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.1);
  transform: translateY(-2px);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-area {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(5, 7, 17, 0.97);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.25rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .navbar {
    position: fixed;
  }

  .skills-grid,
  .skills-grid-3 {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 1.25rem;
  }

  .about-image-frame {
    width: 220px;
    height: 260px;
  }

  .about-avatar {
    font-size: 3rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ===========================
   WHATSAPP FLOATING BUTTON
=========================== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 0.85rem 1.2rem 0.85rem 1rem;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fabBounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
  overflow: hidden;
  max-width: 56px;
}

@keyframes fabBounceIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

.whatsapp-fab:hover::before {
  opacity: 1;
}

.whatsapp-fab:hover {
  max-width: 180px;
  padding-right: 1.4rem;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
  transform: translateY(-3px);
}

.whatsapp-fab svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-fab-label {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.whatsapp-fab:hover .whatsapp-fab-label {
  opacity: 1;
  max-width: 120px;
}

/* Pulse ring around FAB */
.whatsapp-fab::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid #25D366;
  opacity: 0;
  animation: waPulse 2.5s ease-in-out 2s infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* WhatsApp contact card styling */
.contact-card-whatsapp {
  border-color: rgba(37, 211, 102, 0.25) !important;
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.05) 0%, var(--bg-card) 100%) !important;
  position: relative;
}

.contact-card-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.5) !important;
  box-shadow: -4px 0 20px rgba(37, 211, 102, 0.2) !important;
  transform: translateX(4px) !important;
}

.whatsapp-badge {
  margin-left: auto;
  background: #25D366;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: waBadgePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes waBadgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }
}

/* WhatsApp footer icon hover */
#footer-whatsapp:hover {
  color: #25D366 !important;
  border-color: rgba(37, 211, 102, 0.4) !important;
  background: rgba(37, 211, 102, 0.1) !important;
}

/* ===========================
   PERFORMANCE: CONTAIN
   Limits browser paint/layout scope per section
=========================== */
.section {
  contain: layout style;
}

/* GPU layer for phone mockup animation */
.phone-mockup {
  will-change: transform;
}

/* GPU layer for orbit rings */
.orbit-ring {
  will-change: transform;
}

/* ===========================
   PREFERS-REDUCED-MOTION
   Disables all animations — boosts Lighthouse
   Accessibility score AND reduces TBT
=========================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .orb,
  .phone-mockup,
  .orbit-ring,
  .badge-dot,
  .scroll-indicator,
  .scroll-wheel,
  .floating-card,
  .whatsapp-fab,
  .whatsapp-fab::after,
  .whatsapp-badge {
    animation: none !important;
  }

  #particles-canvas {
    display: none;
  }
}