/* =============================================
   ROOT VARIABLES & RESET
   ============================================= */
:root {
  --primary: #00E5FF;
  --primary-dark: #00b8cc;
  --secondary: #7B61FF;
  --secondary-dark: #5a45d4;
  --accent: #FF6B6B;
  --bg: #04070f;
  --bg-2: #070c1a;
  --bg-3: #0b1120;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.065);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(0,229,255,0.35);
  --text: #eef2ff;
  --text-2: #7c8799;
  --text-3: #4a5568;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-hover: linear-gradient(135deg, var(--secondary), var(--primary));
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px rgba(0,229,255,0.12);
  --shadow-premium: 0 20px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,229,255,0.06);
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

/* removed noise texture — was expensive */

::selection { background: rgba(0,229,255,0.2); color: var(--text); }

body.loading { overflow: hidden; }

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  animation: pulse 1s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  animation: loading 2s ease forwards;
}

@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

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

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(0,229,255,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

.cursor-outline.hovering {
  width: 56px;
  height: 56px;
  border-color: var(--primary);
  background: rgba(0,229,255,0.06);
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 9998;
  width: 0%;
  transition: width 0.1s linear;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(4,7,15,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), 0 4px 32px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-bracket {
  color: var(--primary);
  font-weight: 400;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: filter var(--transition);
}

.logo-img:hover { filter: brightness(1.3); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface);
}

.nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-resume {
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border-hover);
  color: var(--primary);
  transition: all var(--transition);
}

.btn-resume:hover {
  background: rgba(0,229,255,0.1);
  border-color: var(--primary);
}

/* ── Cat Hand Easter Egg (btn-resume hover) ── */
/* z-index:1 + background create a stacking context so the hand slides UNDER the button */
.btn-resume {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.btn-resume .cat-paw {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1),
              opacity 0.2s ease;
}

.btn-resume .cat-paw-inner {
  display: block;
  line-height: 0;
}

@keyframes catHandPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

.btn-resume .cat-paw.reaching .cat-paw-inner {
  animation: catHandPulse 0.9s ease-in-out infinite;
}

/* Bottom — fingers point up */
.btn-resume .cat-paw[data-dir="bottom"] {
  bottom: -2px; left: 50%;
  transform: translateX(-50%) translateY(120%);
}
.btn-resume .cat-paw[data-dir="bottom"].reaching {
  transform: translateX(-50%) translateY(50%);
  opacity: 1;
}

/* Top — fingers point down */
.btn-resume .cat-paw[data-dir="top"] {
  top: -2px; left: 50%;
  transform: translateX(-50%) translateY(-120%) rotate(180deg);
}
.btn-resume .cat-paw[data-dir="top"].reaching {
  transform: translateX(-50%) translateY(-50%) rotate(180deg);
  opacity: 1;
}

/* Left — fingers point right */
.btn-resume .cat-paw[data-dir="left"] {
  left: -2px; top: 50%;
  transform: translateY(-50%) translateX(-120%) rotate(90deg);
}
.btn-resume .cat-paw[data-dir="left"].reaching {
  transform: translateY(-50%) translateX(-50%) rotate(90deg);
  opacity: 1;
}

/* Right — fingers point left */
.btn-resume .cat-paw[data-dir="right"] {
  right: -2px; top: 50%;
  transform: translateY(-50%) translateX(120%) rotate(-90deg);
}
.btn-resume .cat-paw[data-dir="right"].reaching {
  transform: translateY(-50%) translateX(50%) rotate(-90deg);
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,229,255,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Shimmer sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-15deg);
  animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
  0%   { left: -80%; }
  60%, 100% { left: 150%; }
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(0,229,255,0.45), 0 0 0 1px rgba(0,229,255,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
  border-color: rgba(0,229,255,0.4);
  color: var(--primary);
  background: rgba(0,229,255,0.06);
  box-shadow: 0 0 24px rgba(0,229,255,0.1);
}

.btn-full { width: 100%; justify-content: center; }

/* =============================================
   CONTAINER & SECTIONS
   ============================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

.section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #a78bff 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 10px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
  box-shadow: 0 0 24px rgba(0,229,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
}

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

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s 0.1s ease both;
}

.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 16px;
  min-height: 40px;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.typing-text {
  color: var(--primary);
  font-family: 'Fira Code', monospace;
}

.typing-cursor {
  color: var(--primary);
  animation: blink 1s infinite;
  font-family: 'Fira Code', monospace;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--text-2);
  font-family: 'Fira Code', monospace;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s 0.3s ease both;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.4s ease both;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.5s ease both;
}

.hero-socials {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.7s 0.6s ease both;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-2);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: rgba(0,229,255,0.06);
  transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.8s 0.3s ease both;
}

.hero-image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(0,229,255,0.15) 0%, rgba(123,97,255,0.1) 50%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hero-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.avatar-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--bg-3);
  box-shadow: 0 0 0 3px var(--primary), 0 0 0 8px rgba(0,229,255,0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder::before,
.avatar-placeholder::after {
  content: none;
}

/* Real photo inside hero avatar */
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  display: block;
  -webkit-text-fill-color: initial;
}

.avatar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ring-1 {
  width: 280px;
  height: 280px;
  border-color: rgba(0,229,255,0.15);
  animation: ringRotate 8s linear infinite;
}

.ring-2 {
  width: 340px;
  height: 340px;
  border-color: rgba(123,97,255,0.1);
  animation: ringRotate 12s linear infinite reverse;
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(10,15,30,0.92);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  z-index: 3;
}

.badge-1 { top: 10%; right: -5%; animation: floatBadge 3s ease-in-out infinite; color: var(--primary); }
.badge-2 { bottom: 20%; right: -10%; animation: floatBadge 3s 1s ease-in-out infinite; color: var(--secondary); }
.badge-3 { bottom: 5%; left: 5%; animation: floatBadge 3s 2s ease-in-out infinite; color: #22c55e; }

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

.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.float-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.icon-react { top: 5%; left: 5%; animation: float 4s ease-in-out infinite; }
.icon-node { top: 10%; right: 10%; animation: float 4s 1s ease-in-out infinite; color: #68D391; }
.icon-mongo { bottom: 10%; right: 5%; animation: float 4s 2s ease-in-out infinite; color: #68D391; }
.icon-js { bottom: 5%; left: 10%; animation: float 4s 3s ease-in-out infinite; color: #F6E05E; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

.hero-scroll-hint {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 32px;
  color: var(--text-3);
  font-size: 0.78rem;
  animation: fadeIn 1s 1s both;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-image-container {
  position: relative;
  margin-bottom: 32px;
}

.about-avatar {
  width: 280px;
  height: 280px;
  background: var(--bg-3);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 6px rgba(0,229,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.about-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  z-index: -1;
}

/* Real photo inside about avatar */
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  display: block;
  -webkit-text-fill-color: initial;
}

.about-image-decoration {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0,229,255,0.2);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.experience-badge {
  position: absolute;
  bottom: -10px;
  right: 0;
  background: var(--gradient);
  border-radius: 12px;
  padding: 12px 20px;
  text-align: center;
}

.exp-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.exp-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}

.about-stat:hover {
  border-color: var(--border-hover);
  background: rgba(0,229,255,0.04);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-plus {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 4px;
}

.about-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.about-text {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.qualities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.quality-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  transition: all var(--transition);
}

.quality-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.quality-icon { font-size: 1.5rem; margin-bottom: 8px; }

.quality-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}

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

/* =============================================
   SKILLS SECTION
   ============================================= */
.skills-section { background: var(--bg); }

.skills-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.skill-filter {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}

.skill-filter:hover, .skill-filter.active {
  background: rgba(0,229,255,0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.skill-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* Gradient border on hover via pseudo mask */
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}

.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.skill-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  background: rgba(0,229,255,0.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,229,255,0.08);
}

.skill-card:hover::before { opacity: 1; }
.skill-card:hover::after  { transform: scaleX(1); }

.skill-card.hidden { display: none; }

.skill-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon img,
.skill-icon svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.skill-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.skill-pct {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: 'Fira Code', monospace;
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects-section { background: var(--bg-2); }

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

.project-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
  pointer-events: none;
}

.project-card:hover {
  border-color: transparent;
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,229,255,0.1);
}

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

.project-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.gradient-1 { background: linear-gradient(90deg, var(--primary), #00ff88); }
.gradient-2 { background: linear-gradient(90deg, var(--secondary), var(--primary)); }
.gradient-3 { background: linear-gradient(90deg, #FF6B6B, var(--secondary)); }
.gradient-4 { background: linear-gradient(90deg, #F6E05E, #FF6B6B); }

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 20px 0;
}

.project-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-3);
  font-family: 'Fira Code', monospace;
  letter-spacing: 1px;
}

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

.project-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  transition: all var(--transition);
}

.project-link:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: rgba(0,229,255,0.08);
}

/* Project Preview UI */
.project-visual {
  padding: 16px 20px;
}

.project-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 160px;
}

.preview-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.preview-dot.red { background: #FF5F57; }
.preview-dot.yellow { background: #FFBD2E; }
.preview-dot.green { background: #28C840; }

.preview-content {
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: 24px 1fr;
  height: calc(100% - 32px);
  gap: 0;
}

.preview-header {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.preview-sidebar {
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
}

.preview-main {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-card {
  background: rgba(0,229,255,0.06);
  border-radius: 4px;
  height: 20px;
  border: 1px solid rgba(0,229,255,0.1);
}

.preview-card.sm { height: 14px; }

.preview-table {
  background: rgba(123,97,255,0.06);
  border-radius: 4px;
  height: 40px;
  border: 1px solid rgba(123,97,255,0.1);
}

.preview-badge {
  height: 14px;
  width: 60px;
  background: var(--gradient);
  border-radius: 20px;
  opacity: 0.5;
}

.preview-chart {
  background: rgba(123,97,255,0.08);
  border-radius: 4px;
  height: 35px;
  border: 1px solid rgba(123,97,255,0.15);
}

.preview-todo-item {
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 4px;
  height: 16px;
}

.preview-todo-item.done {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.15);
  opacity: 0.6;
}

.project-body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

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

.tech-tag {
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  font-family: 'Fira Code', monospace;
}

/* =============================================
   EXPERIENCE SECTION
   ============================================= */
.experience-section { background: var(--bg); }

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--bg);
  box-shadow: 0 0 20px rgba(0,229,255,0.4);
  position: relative;
  z-index: 1;
}

.timeline-card {
  flex: 1;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.timeline-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,229,255,0.08);
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.timeline-company {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 2px;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: 'Fira Code', monospace;
  white-space: nowrap;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tag {
  padding: 3px 10px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section { background: var(--bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0,229,255,0.07), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,229,255,0.08);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-icon-wrap {
  width: 54px;
  height: 54px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
  transition: all var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: rgba(0,229,255,0.15);
  transform: scale(1.05);
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  background: var(--bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.03), rgba(123,97,255,0.03));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.stat-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,229,255,0.08);
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover::after  { transform: scaleX(1); }

.stat-icon { font-size: 2rem; margin-bottom: 12px; display: block; }

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--primary), #a78bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-number span:last-child {
  font-size: 1rem;
  font-weight: 600;
  -webkit-text-fill-color: var(--text-2);
}

.stat-title {
  font-size: 0.88rem;
  color: var(--text-2);
  font-weight: 500;
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials-section { background: var(--bg-2); }

.testimonials-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.testimonial-card {
  min-width: calc(50% - 12px);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all var(--transition);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,229,255,0.3), rgba(123,97,255,0.3), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.testimonial-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,229,255,0.08);
}

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

.testimonial-quote {
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-3);
}

.testimonial-stars {
  margin-left: auto;
  color: #F6E05E;
  font-size: 0.8rem;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  transition: all var(--transition);
  cursor: none;
}

.testimonial-btn:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: rgba(0,229,255,0.06);
}

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

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--text-3);
  transition: all var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 20px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info-text {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

a.contact-item-value:hover { color: var(--primary); }

.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 12px;
  font-size: 0.85rem;
  color: #22c55e;
  font-weight: 500;
}

.availability-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.3px;
}

.form-input, .form-textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-3);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}

.form-input.error, .form-textarea.error {
  border-color: var(--accent);
}

.form-error {
  font-size: 0.78rem;
  color: var(--accent);
  min-height: 16px;
}

/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.popup {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.popup-overlay.visible .popup { transform: scale(1); }

.popup-icon {
  width: 72px;
  height: 72px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  margin: 0 auto 20px;
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.popup-text {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 16px 0 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  transition: all var(--transition);
}

.footer-social:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: rgba(0,229,255,0.06);
}

.footer-links-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.footer-links span {
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: 'Fira Code', monospace;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.83rem;
  color: var(--text-3);
}

.back-to-top {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  transition: all var(--transition);
}

.back-to-top:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: rgba(0,229,255,0.06);
  transform: translateY(-2px);
}

/* =============================================
   MEDIA QUERIES
   ============================================= */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image-container { max-width: 300px; }
}

/* =============================================
   MOBILE OVERLAY BACKDROP
   ============================================= */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,7,15,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================
   MOBILE MENU FOOTER ELEMENTS (hidden desktop)
   ============================================= */
.mobile-menu-footer { display: none; }

/* =============================================
   RESPONSIVE — TABLET & MOBILE (≤ 900px)
   ============================================= */
@media (max-width: 900px) {

  /* --- Full-screen slide-in menu --- */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: rgba(7,12,26,0.98);
    border-left: 1px solid rgba(255,255,255,0.07);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 0 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    will-change: transform;
  }

  .nav-links.open {
    transform: translateX(0);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }

  /* Each nav item */
  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-2);
    transition: all 0.25s ease;
    position: relative;
  }

  /* Number prefix via data-num */
  .nav-link::before {
    content: attr(data-num);
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
    color: var(--text-3);
    font-weight: 400;
    width: 24px;
    flex-shrink: 0;
    transition: color 0.25s ease;
  }

  /* Active left border accent */
  .nav-link.active {
    color: var(--primary);
    background: rgba(0,229,255,0.05);
  }

  .nav-link.active::before { color: var(--primary); }

  .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    border-radius: 0 2px 2px 0;
  }

  .nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    padding-left: 34px;
  }

  .nav-link:hover::before { color: var(--primary); }

  /* Mobile menu footer */
  .mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 28px 0;
    margin-top: 8px;
  }

  .mobile-resume-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 0.9rem;
  }

  .mobile-socials {
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .mobile-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: var(--text-2);
    transition: all 0.25s ease;
  }

  .mobile-socials a:hover {
    color: var(--primary);
    border-color: rgba(0,229,255,0.3);
    background: rgba(0,229,255,0.08);
  }

  /* Hamburger */
  .hamburger {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: all 0.25s ease;
  }

  .hamburger:hover {
    background: rgba(0,229,255,0.08);
    border-color: rgba(0,229,255,0.25);
  }

  .hamburger span {
    display: block;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  }

  .hamburger span:nth-child(1) { width: 20px; height: 2px; background: var(--text); }
  .hamburger span:nth-child(2) { width: 14px; height: 2px; background: var(--primary); }
  .hamburger span:nth-child(3) { width: 20px; height: 2px; background: var(--text); }

  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--primary); width: 20px; }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--primary); width: 20px; }

  /* Resume button hidden on mobile (inside menu instead) */
  .btn-resume { display: none; }

  /* Layout adjustments */
  .hero-container { grid-template-columns: 1fr; text-align: center; padding: 48px 20px 40px; }
  .hero-visual { display: none; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-description { margin: 0 auto 36px; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .qualities-grid { grid-template-columns: repeat(2, 1fr); }
  .cursor-dot, .cursor-outline { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-title { font-size: 2rem; letter-spacing: -1.5px; }
  .section-subtitle { font-size: 0.9rem; }
  .container { padding: 0 16px; }

  /* Hero */
  .hero-name { font-size: 2.6rem; letter-spacing: -2px; }
  .hero-description { font-size: 0.9rem; }
  .hero-role { font-size: 1rem; }
  .hero-tagline { font-size: 0.82rem; }
  .hero-buttons { gap: 10px; }
  .btn { padding: 12px 22px; font-size: 0.85rem; }

  /* About */
  .about-grid { gap: 32px; }
  .about-avatar { width: 220px; height: 220px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .about-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .qualities-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .about-title { font-size: 1.3rem; }

  /* Skills */
  .skills-categories { gap: 6px; }
  .skill-filter { padding: 6px 14px; font-size: 0.8rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .skill-card { padding: 16px 12px; }

  /* Projects */
  .project-card { border-radius: var(--radius); }
  .project-title { font-size: 1rem; }
  .project-desc { font-size: 0.84rem; }

  /* Experience */
  .timeline::before { left: 16px; }
  .timeline-dot { width: 34px; height: 34px; flex-shrink: 0; }
  .timeline-item { gap: 16px; }
  .timeline-card { padding: 20px; }
  .timeline-header { flex-direction: column; gap: 4px; }
  .timeline-role { font-size: 1rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 22px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 28px 16px; }
  .stat-number { font-size: 2.2rem; }

  /* Testimonials */
  .testimonial-card { min-width: 100%; padding: 24px; }
  .testimonial-text { font-size: 0.86rem; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 20px; border-radius: var(--radius); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-copy { font-size: 0.78rem; }
}

/* =============================================
   RESPONSIVE — EXTRA SMALL (≤ 400px)
   ============================================= */
@media (max-width: 400px) {
  .hero-name { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-avatar { width: 180px; height: 180px; }
}

/* =============================================
   PREMIUM UPGRADES
   ============================================= */

/* ── Mesh gradient orbs in Hero ── */
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,229,255,0.07) 0%, transparent 65%);
  top: -20%;
  right: -10%;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123,97,255,0.08) 0%, transparent 65%);
  bottom: 10%;
  left: -5%;
  pointer-events: none;
  animation: orbFloat 10s 2s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

/* ── Dot grid background for sections ── */
.skills-section {
  background-image:
    radial-gradient(rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.services-section {
  background-image:
    radial-gradient(rgba(123,97,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Section header line decoration ── */
.section-header {
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 20px auto 0;
  box-shadow: 0 0 12px rgba(0,229,255,0.4);
}

/* ── Premium loading screen ── */
.loader-logo {
  font-size: 3.5rem;
  letter-spacing: -3px;
}

/* ── Scroll progress glow ── */
.scroll-progress {
  box-shadow: 0 0 10px rgba(0,229,255,0.5);
}

/* ── Section background alternation enhancement ── */
.about-section  { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.projects-section { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.experience-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.testimonials-section { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.contact-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }

/* ── Stats section premium background ── */
.stats-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,229,255,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(123,97,255,0.04) 0%, transparent 70%);
}

/* ── Premium avatar glow pulse ── */
.avatar-placeholder {
  animation: avatarPulse 4s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--primary), 0 0 0 8px rgba(0,229,255,0.12), 0 0 40px rgba(0,229,255,0.1); }
  50%       { box-shadow: 0 0 0 3px var(--primary), 0 0 0 12px rgba(0,229,255,0.18), 0 0 60px rgba(0,229,255,0.18); }
}

/* ── Floating badge premium glow ── */
.floating-badge {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ── About stats card improvement ── */
.about-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.about-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,229,255,0.06), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.about-stat:hover::before { opacity: 1; }

/* ── Quality cards premium ── */
.quality-card {
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
}

.quality-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

/* ── Contact form premium ── */
.contact-form-wrapper {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,229,255,0.06), transparent 70%);
  pointer-events: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.1), 0 4px 20px rgba(0,229,255,0.08);
  background: rgba(0,229,255,0.02);
}

/* ── Testimonial quote premium ── */
.testimonial-quote {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
}

/* ── Footer premium ── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}

/* ── Service icon wrapper upgrade ── */
.service-icon-wrap {
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.12);
  box-shadow: 0 0 20px rgba(0,229,255,0.06);
}

.service-card:hover .service-icon-wrap {
  background: rgba(0,229,255,0.12);
  box-shadow: 0 0 30px rgba(0,229,255,0.15);
  transform: scale(1.08) rotate(-2deg);
}

/* ── Timeline dot premium ── */
.timeline-dot {
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px rgba(0,229,255,0.5), 0 0 40px rgba(0,229,255,0.2);
}

/* ── Nav link active glow ── */
.nav-link.active {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0,229,255,0.4);
}

/* ── Back to top upgrade ── */
.back-to-top:hover {
  background: rgba(0,229,255,0.1);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
  transform: translateY(-3px);
}

/* ── Popup premium ── */
.popup {
  background: rgba(7,12,26,0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 40px rgba(0,229,255,0.06);
}

/* ── Reveal animation upgrade ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}

/* =============================================
   ROCKET LAUNCH ANIMATION — back-to-top
   ============================================= */
.rkt-wrap {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9997;
  pointer-events: none;
  line-height: 0;
}

.rkt-body {
  animation: rktLaunch 1.9s cubic-bezier(0.15, 0.55, 0.28, 1) forwards;
}

@keyframes rktLaunch {
  0%   { transform: translateY(0)      rotate(0deg)    scale(1);    opacity: 1; }
  4%   { transform: translateY(9px)    rotate(-0.5deg) scale(0.97); }
  13%  { transform: translateY(-28px)  rotate(0.8deg)  scale(1.02); }
  35%  { transform: translateY(-120px) rotate(-1deg);  opacity: 1; }
  70%  { transform: translateY(-58vh)  rotate(1.5deg); opacity: 1; }
  93%  { transform: translateY(-108vh) rotate(-1deg);  opacity: 0.5; }
  100% { transform: translateY(-116vh);                opacity: 0; }
}

.rkt-flame {
  animation: rktFlame 0.1s ease-in-out infinite;
}

@keyframes rktFlame {
  0%, 100% { transform: scale(1); }
  33%       { transform: scaleX(1.4) scaleY(0.68); }
  66%       { transform: scaleX(0.72) scaleY(1.38); }
}

.rkt-smoke {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
}

