/* ======================================
   ANISH CHAUHAN - PORTFOLIO CSS
   Ultra Premium Design 2026
====================================== */

/* ---- ROOT VARIABLES ---- */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #f59e0b;
  --accent: #10b981;
  --pink: #ec4899;
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --surface: #16162a;
  --surface2: #1e1e35;
  --border: rgba(99, 102, 241, 0.15);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #475569;
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  --glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --glow-strong: 0 0 80px rgba(99, 102, 241, 0.4);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --navbar-h: 80px;
}

[data-theme="light"] {
  --bg: #f8faff;
  --bg2: #f1f5ff;
  --bg3: #eef2ff;
  --surface: #ffffff;
  --surface2: #f0f0ff;
  --border: rgba(99, 102, 241, 0.2);
  --text: #1e1b4b;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.4s ease, color 0.4s ease;
}

body.loading {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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: 10px;
}

/* ---- CUSTOM CURSOR ---- */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: normal;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  /* No hover effect - cursor stays same size */
}

@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .cursor, .cursor-follower {
    display: none !important;
  }
  body, button, a, .btn, input, textarea {
    cursor: auto !important;
  }
}

/* ---- PRELOADER ---- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-character {
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
  animation: characterFloat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.45));
}

.preloader-character svg {
  width: 100%;
  height: 100%;
}

@keyframes characterFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.preloader-subtitle {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 6px 0 18px;
  opacity: 0;
  animation: subtitleFade 0.6s ease forwards 0.7s;
}

@keyframes subtitleFade {
  to {
    opacity: 1;
  }
}

.preloader-text {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  justify-content: center;
}

.preloader-text span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: preloaderChar 0.6s ease forwards;
  opacity: 0;
  display: inline-block;
}

.preloader-text span:nth-child(1) {
  animation-delay: 0.1s;
}

.preloader-text span:nth-child(2) {
  animation-delay: 0.2s;
}

.preloader-text span:nth-child(3) {
  animation-delay: 0.3s;
}

.preloader-text span:nth-child(4) {
  animation-delay: 0.4s;
}

.preloader-text span:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes preloaderChar {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--surface2);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

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

@keyframes preloaderFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ---- PARTICLE CANVAS ---- */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 255, 0.85);
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dot {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: right var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon,
.sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon,
.moon-icon {
  display: block;
}

[data-theme="light"] .sun-icon {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: none;
}

.hamburger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.35s ease;
  transform-origin: left;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(-1px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(1px);
}

/* ---- HERO SECTION ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--navbar-h) + 40px) 5% 60px;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -80px;
  right: -80px;
  animation-delay: 0s;
}

.orb2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #ec4899, transparent);
  bottom: -40px;
  left: -40px;
  animation-delay: -3s;
}

.orb3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #10b981, transparent);
  top: 50%;
  left: 40%;
  animation-delay: -6s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: heroFadeIn 0.8s ease 0.5s both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.hero-heading {
  animation: heroFadeIn 0.8s ease 0.7s both;
}

.greeting {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.name-highlight {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-roles {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: heroFadeIn 0.8s ease 0.9s both;
}

.role-prefix {
  color: var(--text);
}

.typed-text {
  color: var(--primary-light);
}

.cursor-blink {
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin-bottom: 2rem;
  animation: heroFadeIn 0.8s ease 1.1s both;
}

.highlight-text {
  color: var(--primary-light);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: heroFadeIn 0.8s ease 1.3s both;
}

.hero-socials {
  display: flex;
  gap: 1rem;
  animation: heroFadeIn 0.8s ease 1.5s both;
}

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

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.4s ease;
}

.btn:hover::before {
  transform: translateX(100%) skewX(-15deg);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  background: rgba(99, 102, 241, 0.05);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

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

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- HERO IMAGE ---- */
.hero-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeIn 0.8s ease 0.6s both;
}

.image-frame {
  position: relative;
  width: 380px;
  height: 450px;
}

.frame-glow {
  position: absolute;
  inset: -20px;
  background: conic-gradient(from 0deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
  border-radius: calc(var(--radius-xl) + 20px);
  opacity: 0.35;
  animation: rotateGlow 6s linear infinite;
  filter: blur(16px);
}

[data-theme="light"] .frame-glow {
  opacity: 0.42;
}

@keyframes rotateGlow {
  to {
    transform: rotate(360deg);
  }
}

.image-container {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img svg {
  width: 70%;
  height: 70%;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.badge1 {
  top: 20px;
  right: -30px;
  animation: badgeFloat1 4s ease-in-out infinite;
}

.badge2 {
  bottom: 80px;
  right: -40px;
  animation: badgeFloat2 4s ease-in-out infinite;
}

.badge3 {
  bottom: 10px;
  left: -20px;
  animation: badgeFloat3 4s ease-in-out infinite;
}

@keyframes badgeFloat1 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

@keyframes badgeFloat2 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(8px)
  }
}

@keyframes badgeFloat3 {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.75rem;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-faint);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

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

@keyframes scrollWheel {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1
  }

  50% {
    transform: translateY(6px);
    opacity: 0
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(-5px)
  }
}

/* ---- SECTION COMMONS ---- */
.section {
  padding: 100px 5%;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- ABOUT SECTION ---- */
.about {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image-col {
  display: flex;
  justify-content: center;
}

.about-img-wrapper {
  position: relative;
  width: 340px;
  height: 420px;
}

.about-img-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-xl);
  top: 12px;
  left: 12px;
  opacity: 0.3;
  filter: blur(1px);
}

.about-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border);
}

.about-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-placeholder svg {
  width: 100%;
  height: 100%;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 2;
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--glow-strong);
}

.exp-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

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

.about-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.about-role {
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.about-bio {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--primary-light);
}

.info-item div {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.about-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- SKILLS SECTION ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--glow);
}

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

.stat-icon {
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

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

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.skill-category-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--glow);
}

.additional-skills-card {
  grid-column: 1 / -1;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.skill-cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-icon {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

.web-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}

.tools-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--secondary);
}

.skill-cat-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-bar-item {}

.skill-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.skill-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.skill-track {
  height: 6px;
  background: var(--surface2);
  border-radius: 10px;
  overflow: hidden;
}

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

.skill-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

/* ---- PROJECTS SECTION ---- */
.projects {
  background: var(--bg2);
}

.project-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: none;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

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

.project-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.project-img {
  position: relative;
  height: 160px;
  background: var(--surface2);
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.project-img-placeholder svg {
  width: 100%;
  height: 100%;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

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

.project-link-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  transform: translateY(10px);
}

.project-card:hover .project-link-btn {
  transform: translateY(0);
}

.project-link-btn:nth-child(2) {
  transition-delay: 0.05s;
}

.project-link-btn:hover {
  background: white;
  color: var(--primary);
  transform: scale(1.1) !important;
}

.project-info {
  padding: 20px;
}

.project-tags-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.project-tag-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.project-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- TESTIMONIALS SECTION ---- */
.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.testimonial-quote {
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

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

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

.author-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.author-name {
  font-weight: 700;
  color: var(--text);
}

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

.testimonial-stars {
  color: var(--secondary);
  font-size: 1rem;
  letter-spacing: 2px;
}

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

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

.testi-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

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

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--surface2);
  border: none;
  cursor: none;
  transition: all var(--transition);
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateX(8px);
}

.contact-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.contact-card p {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}

/* ---- CONTACT FORM ---- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  min-height: 18px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success.show {
  display: flex;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 50px 5%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.2)
  }
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

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

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition);
  cursor: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

/* ---- CERTIFICATIONS SECTION ---- */
.certifications {
  background: var(--bg2);
  overflow: hidden;
}

.cert-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.cert-marquee-container::before,
.cert-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.cert-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg2), transparent);
}

.cert-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg2), transparent);
}

/* Faster 15s loop Certificate */
@keyframes scrollCertificates {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* 50% because we duplicate content */
}

.cert-marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollCertificates 15s linear infinite;
}


.cert-card {
  width: 340px;
  height: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
  transform: translateY(-5px);
}

.cert-img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
}

.cert-img-placeholder svg {
  width: 100%;
  height: 100%;
}

.cert-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scrollCertificates {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-bg-orbs {
    opacity: 0.08;
  }

  .orb1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
  }

  .orb2 {
    width: 160px;
    height: 160px;
    bottom: -30px;
    left: -30px;
  }

  .orb3 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 30%;
  }

  #particleCanvas {
    opacity: 0.2;
  }
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .image-frame {
    width: 280px;
    height: 340px;
  }

  .badge1 {
    right: -10px;
  }

  .badge2 {
    right: -10px;
  }

  .badge3 {
    left: -10px;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-col {
    order: -1;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .additional-skills-card {
    grid-column: 1;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    padding: 30px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 70px 5%;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-frame {
    width: 240px;
    height: 300px;
  }

  .about-img-wrapper {
    width: 280px;
    height: 350px;
  }

  .contact-form {
    padding: 24px;
  }

  .testimonial-card {
    padding: 28px;
  }

  /* Extra small screens - further reduce orbs */
  .hero-bg-orbs {
    opacity: 0.06;
  }

  .orb1 {
    width: 150px;
    height: 150px;
  }

  .orb2 {
    width: 120px;
    height: 120px;
  }

  .orb3 {
    width: 80px;
    height: 80px;
  }

  /* Hide some float elements on very small screens */
  .fe4, .fe6, .fe8, .fe9 {
    display: none;
  }
}

/* ---- DISABLE CUSTOM CURSOR ON TOUCH DEVICES ---- */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  body, button, .theme-toggle, .hamburger, .btn, .contact-card, .faq-question, .faq-question::after, .footer-link, .back-to-top {
    cursor: auto !important;
  }
  
  a, button, .btn, .theme-toggle, .hamburger, .faq-question, .footer-link, .back-to-top {
    cursor: pointer !important;
  }
  
  .cursor, .cursor-follower {
    display: none !important;
  }
}

/* ======================================
   BOY TYPING SECTION
====================================== */
.boy-typing-section {
  background: linear-gradient(135deg, var(--bg) 0%, rgba(99, 102, 241, 0.03) 50%, var(--bg) 100%);
  overflow: hidden;
  padding: 80px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
}

/* Background decoration pattern */
.boy-typing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.boy-typing-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

/* ── Floating decorative elements ── */
.float-element {
  position: absolute;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatEle 4s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15), inset 0 0 20px rgba(99, 102, 241, 0.05);
}

/* Enhanced glow effect on hover simulation */
.float-element::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

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

/* Main float element styles - enlarged */
.fe1 {
  width: 56px;
  height: 56px;
  top: 5px;
  left: 15px;
  animation-delay: 0s;
  border-color: rgba(99, 102, 241, 0.3);
}

.fe2 {
  width: 50px;
  height: 50px;
  top: 25px;
  right: 25px;
  animation-delay: -1.5s;
  border-color: rgba(245, 158, 11, 0.3);
}

.fe3 {
  width: 46px;
  height: 46px;
  bottom: 35px;
  left: 10px;
  animation-delay: -3s;
  border-color: rgba(236, 72, 153, 0.3);
}

/* Additional enhanced float elements */
.fe4 {
  width: 42px;
  height: 42px;
  top: 60px;
  left: 60px;
  animation-delay: -0.5s;
  border-color: rgba(99, 102, 241, 0.4);
}

.fe5 {
  width: 38px;
  height: 38px;
  top: 80px;
  right: 15px;
  animation-delay: -2s;
  border-color: rgba(16, 185, 129, 0.3);
}

.fe6 {
  width: 34px;
  height: 34px;
  bottom: 80px;
  left: 50px;
  animation-delay: -1s;
  border-color: rgba(245, 158, 11, 0.4);
}

.fe7 {
  width: 48px;
  height: 48px;
  top: 15px;
  left: calc(50% - 24px);
  animation-delay: -2.5s;
  border-color: rgba(236, 72, 153, 0.35);
}

.fe8 {
  width: 36px;
  height: 36px;
  bottom: 20px;
  right: 60px;
  animation-delay: -3.5s;
  border-color: rgba(99, 102, 241, 0.35);
}

.fe9 {
  width: 32px;
  height: 32px;
  top: 120px;
  left: 20px;
  animation-delay: -0.8s;
  border-color: rgba(245, 158, 11, 0.35);
}

.fe10 {
  width: 44px;
  height: 44px;
  bottom: 100px;
  right: 25px;
  animation-delay: -1.8s;
  border-color: rgba(16, 185, 129, 0.4);
}

@keyframes floatEle {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-8px) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translateY(-15px) rotate(0deg) scale(1);
  }
  75% {
    transform: translateY(-8px) rotate(-5deg) scale(1.02);
  }
}

/* ── Boy & Desk Wrapper ── */
.boy-desk-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 380px;
  width: 100%;
}

/* ── Chair ── */
.chair {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.chair-back {
  width: 70px;
  height: 80px;
  background: linear-gradient(180deg, #3a3a5c, #2a2a48);
  border-radius: 8px 8px 0 0;
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-bottom: none;
}

.chair-seat {
  width: 90px;
  height: 16px;
  background: linear-gradient(180deg, #4a4a6c, #3a3a5c);
  border-radius: 6px;
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.chair-leg {
  position: absolute;
  width: 6px;
  height: 45px;
  background: linear-gradient(180deg, #2a2a48, #1a1a30);
  border-radius: 3px;
  bottom: 0;
}

.chair-leg-l { left: calc(50% - 35px); }
.chair-leg-r { right: calc(50% - 35px); }

/* ── Desk ── */
.desk {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
}

.desk-top {
  width: 320px;
  height: 16px;
  background: linear-gradient(180deg, #6a5a9c, #4a3a7c);
  border-radius: 8px;
  position: absolute;
  bottom: 90px;
  left: 0;
  border: 2px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.desk-leg {
  position: absolute;
  width: 8px;
  height: 90px;
  background: linear-gradient(180deg, #5a4a8c, #3a2a6c);
  border-radius: 4px;
  bottom: 0;
}

.desk-leg-l { left: 15px; }
.desk-leg-r { right: 15px; }

/* ── Laptop ── */
.laptop {
  position: absolute;
  bottom: 102px;
  left: 50%;
  transform: translateX(-50%);
}

.laptop-screen {
  width: 160px;
  height: 100px;
  background: #0a0a1a;
  border-radius: 8px 8px 0 0;
  border: 2px solid #2a2a4a;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.screen-content {
  padding: 8px 10px;
  position: relative;
  z-index: 1;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  height: 8px;
}

.code-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.cd1 { background: #ff5f57; }
.cd2 { background: #ffbd2e; }
.cd3 { background: #28ca41; }
.cd4, .cd5 { background: transparent; }

.code-text {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

.ct1 { width: 60px; background: rgba(129, 140, 248, 0.7); }
.ct2 { width: 80px; background: rgba(139, 92, 246, 0.6); }
.ct3 { width: 50px; background: rgba(16, 185, 129, 0.5); }
.ct4 { width: 70px; background: rgba(99, 102, 241, 0.6); }
.ct5 { width: 40px; background: rgba(236, 72, 153, 0.5); }

/* Animated typing effect on code text */
.ct1 { animation: typeLine1 2s ease-in-out infinite; }
.ct2 { animation: typeLine2 2s ease-in-out 0.3s infinite; }
.ct3 { animation: typeLine3 2s ease-in-out 0.6s infinite; }
.ct4 { animation: typeLine4 2s ease-in-out 0.9s infinite; }
.ct5 { animation: typeLine5 2s ease-in-out 1.2s infinite; }

@keyframes typeLine1 {
  0%, 20% { width: 0; opacity: 0; }
  10%, 100% { width: 60px; opacity: 1; }
  80% { width: 60px; opacity: 1; }
  90% { width: 0; opacity: 0; }
}

@keyframes typeLine2 {
  0%, 30% { width: 0; opacity: 0; }
  20%, 100% { width: 80px; opacity: 1; }
  90% { width: 0; opacity: 0; }
}

@keyframes typeLine3 {
  0%, 40% { width: 0; opacity: 0; }
  30%, 100% { width: 50px; opacity: 1; }
  90% { width: 0; opacity: 0; }
}

@keyframes typeLine4 {
  0%, 50% { width: 0; opacity: 0; }
  40%, 100% { width: 70px; opacity: 1; }
  90% { width: 0; opacity: 0; }
}

@keyframes typeLine5 {
  0%, 60% { width: 0; opacity: 0; }
  50%, 100% { width: 40px; opacity: 1; }
  90% { width: 0; opacity: 0; }
}

.cursor-blink-screen {
  position: absolute;
  bottom: 30px;
  left: 12px;
  width: 2px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: screenCursor 1s step-end infinite;
  opacity: 0;
}

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

.laptop-base {
  width: 180px;
  height: 8px;
  background: linear-gradient(180deg, #3a3a5c, #2a2a48);
  border-radius: 0 0 4px 4px;
  position: relative;
  left: -10px;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.laptop-base::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 2px;
}

/* ── Boy Torso ── */
.boy-torso {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.tshirt {
  width: 72px;
  height: 60px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 12px 12px 4px 4px;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tshirt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 8px 8px;
}

/* ── Boy Head ── */
.boy-head {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 60px;
  height: 60px;
  animation: headBob 3s ease-in-out infinite;
}

@keyframes headBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
}

.hair {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 32px;
  background: linear-gradient(180deg, #2a1a10, #3a2a1a);
  border-radius: 20px 20px 0 0;
  z-index: 1;
}

.hair::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 20px;
  background: linear-gradient(180deg, #3a2a1a, #2a1a10);
  border-radius: 30px 30px 0 0;
}

.face {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background: linear-gradient(180deg, #e8a87c, #d4956a);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  border: 2px solid rgba(212, 149, 106, 0.5);
}

.eyes {
  display: flex;
  gap: 14px;
  margin-bottom: 6px;
}

.eye {
  width: 8px;
  height: 8px;
  background: #1a1a2e;
  border-radius: 50%;
  position: relative;
  animation: eyeLook 4s ease-in-out infinite;
}

.eye::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
}

@keyframes eyeLook {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
}

.mouth-smile {
  width: 16px;
  height: 8px;
  border: 2px solid #c07850;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.ear {
  position: absolute;
  width: 10px;
  height: 14px;
  background: #d4956a;
  border-radius: 50%;
  top: 20px;
  z-index: 1;
}

.ear-l { left: -4px; }
.ear-r { right: -4px; }

/* ── Arms ── */
.arm {
  position: absolute;
  bottom: 70px;
  z-index: 3;
}

.arm-l {
  left: calc(50% - 50px);
  width: 36px;
  height: 40px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 8px 8px 6px 6px;
  transform-origin: top center;
  animation: armType 0.6s ease-in-out infinite alternate;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.arm-r {
  right: calc(50% - 50px);
  width: 36px;
  height: 40px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 8px 8px 6px 6px;
  transform-origin: top center;
  animation: armType 0.6s ease-in-out infinite alternate-reverse;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

@keyframes armType {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

.hand {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 16px;
  background: linear-gradient(180deg, #e8a87c, #d4956a);
  border-radius: 4px 4px 8px 8px;
  border: 2px solid rgba(212, 149, 106, 0.5);
}

/* ── Coffee Cup ── */
.coffee-cup {
  position: absolute;
  bottom: 100px;
  right: calc(50% - 160px);
  z-index: 4;
}

.cup-body {
  width: 24px;
  height: 28px;
  background: linear-gradient(180deg, #f0f0f0, #d0d0d0);
  border-radius: 4px 4px 8px 8px;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cup-body::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 6px;
  width: 10px;
  height: 12px;
  border: 2px solid #d0d0d0;
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.cup-body::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 6px;
  background: #6b4226;
  border-radius: 3px;
}

.cup-steam {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
}

.steam {
  width: 4px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  animation: steamRise 1.8s ease-in-out infinite;
}

.s1 { animation-delay: 0s; }
.s2 { animation-delay: 0.4s; height: 10px; }
.s3 { animation-delay: 0.8s; }

@keyframes steamRise {
  0% { transform: translateY(0) scaleX(1); opacity: 0.6; }
  50% { transform: translateY(-8px) scaleX(1.2); opacity: 0.3; }
  100% { transform: translateY(-16px) scaleX(0.8); opacity: 0; }
}

/* ── Plant ── */
.plant {
  position: absolute;
  bottom: 0;
  left: calc(50% - 155px);
  z-index: 4;
}

.pot {
  width: 36px;
  height: 30px;
  background: linear-gradient(180deg, #c05a2a, #a04820);
  border-radius: 4px 4px 10px 10px;
  position: relative;
  border: 2px solid rgba(160, 72, 32, 0.5);
}

.pot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  height: 8px;
  background: linear-gradient(180deg, #d06a3a, #c05a2a);
  border-radius: 4px;
}

.leaves {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

.leaf {
  position: absolute;
  width: 20px;
  height: 30px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.leaf1 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  animation: leafSway 3s ease-in-out infinite;
}

.leaf2 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(15deg);
  animation: leafSway 3s ease-in-out -1s infinite;
}

.leaf3 {
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  animation: leafSway 3s ease-in-out -2s infinite;
}

@keyframes leafSway {
  0%, 100% { transform: translateX(-50%) rotate(-15deg); }
  50% { transform: translateX(-50%) rotate(-10deg); }
}

.leaf2 {
  animation-name: leafSway2;
}

@keyframes leafSway2 {
  0%, 100% { transform: translateX(-50%) rotate(15deg); }
  50% { transform: translateX(-50%) rotate(20deg); }
}

/* ── Text Content ── */
.typing-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.typing-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.typing-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 380px;
}

.typing-stats {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.tstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tstat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tstat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .boy-typing-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .boy-desk-wrapper {
    height: 300px;
  }

  .typing-text-content {
    text-align: center;
    align-items: center;
  }

  .typing-desc {
    max-width: 100%;
  }

  .typing-stats {
    justify-content: center;
  }

  /* Mobile float elements - reduced sizes */
  .fe1 { width: 36px; height: 36px; }
  .fe2 { width: 30px; height: 30px; }
  .fe3 { width: 28px; height: 28px; }
  .fe4 { width: 26px; height: 26px; }
  .fe5 { width: 24px; height: 24px; }
  .fe6 { width: 22px; height: 22px; }
  .fe7 { width: 28px; height: 28px; }
  .fe8 { width: 20px; height: 20px; }
  .fe9 { width: 18px; height: 18px; }
  .fe10 { width: 24px; height: 24px; }
}

@media (max-width: 600px) {
  .boy-typing-section {
    padding: 60px 5%;
    min-height: auto;
  }

  .boy-desk-wrapper {
    height: 260px;
    transform: scale(0.85);
    transform-origin: center bottom;
  }

  .tstat-num {
    font-size: 1.5rem;
  }

  .typing-stats {
    gap: 1.5rem;
  }
}

/* ======================================
   BLACK HOLE ANIMATION SECTION
====================================== */
.blackhole-section {
  --bh-bg: #000;
  --bh-label-color: rgba(255, 255, 255, 0.4);
  --bh-sub-color: rgba(255, 255, 255, 0.3);
  --bh-glow-opacity: 0.7;

  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: var(--bh-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ── Light-mode overrides ── */
[data-theme="light"] .blackhole-section {
  --bh-bg: #f8faff;
  --bh-label-color: rgba(80, 60, 120, 0.55);
  --bh-sub-color: rgba(100, 80, 140, 0.45);
  --bh-glow-opacity: 0.5;
}

/* Gradient fades that blend the section into surrounding content */
.blackhole-section::before,
.blackhole-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 3;
  pointer-events: none;
}

.blackhole-section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}

.blackhole-section::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* Slightly taller fades in light mode for seamless blending */
[data-theme="light"] .blackhole-section::before,
[data-theme="light"] .blackhole-section::after {
  height: 160px;
}

/* The canvas fills the whole section */
#blackholeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Text overlay floating above the canvas */
.blackhole-text-overlay {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  text-align: center;
  animation: bhTextFloat 6s ease-in-out infinite;
}

.bh-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bh-label-color);
}

.bh-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, var(--bh-glow-opacity)));
}

/* Warmer golden gradient title in light mode */
[data-theme="light"] .bh-title {
  background: linear-gradient(135deg, #6366f1, #f59e0b, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.35));
}

.bh-sub {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--bh-sub-color);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

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

@media (max-width: 768px) {
  .blackhole-section {
    height: 400px;
  }
}