/* ================================================================
   SOFTWARE DEVELOPER 3D PORTFOLIO CSS — Md Abdullah Ali
   Matrix Rain + Code Editor + Terminal + Circuit Board Theme
================================================================ */

:root {
  --bg-primary: #050510;
  --bg-secondary: #080820;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(10, 10, 40, 0.6);
  --bg-glass-hover: rgba(20, 20, 60, 0.75);
  --text-primary: #e8e8ff;
  --text-secondary: #8888bb;
  --text-muted: #44445a;
  --accent-1: #7c5cfc;
  --accent-2: #00f5d4;
  --accent-3: #ff6bcb;
  --accent-4: #ffd700;
  --code-green: #00f5d4;
  --code-blue: #61dafb;
  --code-purple: #c792ea;
  --code-yellow: #ffd43b;
  --accent-gradient: linear-gradient(135deg, #7c5cfc 0%, #00f5d4 50%, #ff6bcb 100%);
  --neon-purple: 0 0 20px rgba(124, 92, 252, 0.7), 0 0 60px rgba(124, 92, 252, 0.3);
  --neon-teal: 0 0 20px rgba(0, 245, 212, 0.7), 0 0 60px rgba(0, 245, 212, 0.3);
  --neon-pink: 0 0 20px rgba(255, 107, 203, 0.7), 0 0 60px rgba(255, 107, 203, 0.3);
  --border-color: rgba(124, 92, 252, 0.15);
  --border-glow: rgba(124, 92, 252, 0.5);
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --section-padding: 120px 0;
  --container-max: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --perspective: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) var(--bg-secondary);
}

html::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-1), var(--accent-2));
  border-radius: 3px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* ==================== MATRIX CANVAS ==================== */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ==================== CURSOR GLOW ==================== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ==================== GRADIENT TEXT ==================== */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== GLASS CARD ==================== */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--transition-smooth);
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  box-shadow: var(--neon-purple);
  transform: translateY(-6px);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
  transform-style: preserve-3d;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #7c5cfc, #a29bfe);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
}

.btn-primary:hover {
  transform: translateY(-4px) translateZ(10px);
  box-shadow: var(--neon-purple);
}

.btn-outline {
  background: transparent;
  color: var(--code-green);
  border: 1.5px solid var(--code-green);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

.btn-outline:hover {
  background: rgba(0, 245, 212, 0.08);
  transform: translateY(-4px);
  box-shadow: var(--neon-teal);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 16px;
  background: rgba(0, 245, 212, 0.07);
  border-radius: 20px;
  border: 1px solid rgba(0, 245, 212, 0.2);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.12);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

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

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(5, 5, 16, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(124, 92, 252, 0.1);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.nav-logo:hover {
  text-shadow: var(--neon-purple);
}

.logo-bracket {
  color: var(--accent-1);
}

.nav-menu {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-2);
  background: rgba(0, 245, 212, 0.07);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-2);
  border-radius: 2px;
  box-shadow: var(--neon-teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  perspective: var(--perspective);
}

/* Circuit board overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(0, 245, 212, 0.06);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 28px;
  animation: pulse-badge 3s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.08);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent-2);
}

@keyframes dot-pulse {

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

  50% {
    opacity: 0.5;
    transform: scale(1.5)
  }
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.25)
  }

  50% {
    box-shadow: 0 0 0 10px rgba(0, 245, 212, 0)
  }
}

.hero-greeting {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--code-green);
  font-weight: 400;
  margin-bottom: 6px;
}

.hero-title {
  margin-bottom: 18px;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #c8b5ff 40%, #7c5cfc 70%, #00f5d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite alternate;
  background-size: 200% 200%;
  filter: drop-shadow(0 0 20px rgba(124, 92, 252, 0.5));
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%
  }

  100% {
    background-position: 100% 50%
  }
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
}

.hero-role-prefix {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.hero-role {
  color: var(--accent-2);
  font-family: var(--font-mono);
}

.typing-cursor {
  color: var(--accent-1);
  animation: blink 0.7s step-end infinite;
  text-shadow: var(--neon-purple);
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--accent-4);
  font-weight: 500;
  margin-bottom: 18px;
  opacity: 0.9;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
  font-family: var(--font-mono);
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline;
}

.stat-plus {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-1);
  text-shadow: var(--neon-purple);
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
  font-family: var(--font-mono);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* ==================== CODE WINDOW (HERO RIGHT) ==================== */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* === IDE / Code Window === */
.code-window {
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 252, 0.3);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--neon-purple);
  transform: perspective(800px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: ide-float 6s ease-in-out infinite;
}

.code-window:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

@keyframes ide-float {

  0%,
  100% {
    transform: perspective(800px) rotateY(-8deg) rotateX(3deg) translateY(0)
  }

  50% {
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg) translateY(-10px)
  }
}

.code-window-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.win-dot.red {
  background: #ff5f57;
}

.win-dot.yellow {
  background: #febc2e;
}

.win-dot.green {
  background: #28c840;
}

.win-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #8888bb;
  margin-left: 8px;
}

.win-title span {
  color: var(--accent-2);
}

.code-window-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  min-height: 200px;
  overflow: hidden;
  position: relative;
}

.code-line-numbers {
  position: absolute;
  left: 0;
  top: 18px;
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #3d3d6b;
  line-height: 1.8;
  user-select: none;
}

#code-window-content {
  padding-left: 36px;
  white-space: pre-wrap;
}

/* === Terminal === */
.terminal-window {
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.25);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), var(--neon-teal);
  transform: perspective(800px) rotateY(-6deg) rotateX(-2deg) translateY(10px);
  animation: term-float 7s ease-in-out infinite 1s;
}

@keyframes term-float {

  0%,
  100% {
    transform: perspective(800px) rotateY(-6deg) rotateX(-2deg) translateY(10px)
  }

  50% {
    transform: perspective(800px) rotateY(-3deg) rotateX(-1deg) translateY(0)
  }
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(0, 245, 212, 0.1);
}

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

.term-dot.red {
  background: #ff5f57;
}

.term-dot.yellow {
  background: #febc2e;
}

.term-dot.green {
  background: #28c840;
}

.term-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  margin-left: 6px;
}

.terminal-body {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  max-height: 170px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-2) transparent;
}

.terminal-line {
  margin-bottom: 2px;
}

.blink-line::after {
  content: '█';
  animation: blink 0.8s step-end infinite;
  opacity: 0.8;
  color: var(--accent-2);
}

/* Floating tech cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 10, 40, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: float3d 6s ease-in-out infinite;
  z-index: 4;
  transform-style: preserve-3d;
}

.floating-card i {
  font-size: 1.1rem;
}

.card-1 {
  top: 5%;
  right: -8%;
  animation-delay: 0s;
  box-shadow: var(--neon-purple);
  border-color: rgba(124, 92, 252, 0.4);
}

.card-1 i {
  color: #61dafb;
  text-shadow: 0 0 12px #61dafb;
}

.card-2 {
  bottom: 25%;
  left: -8%;
  animation-delay: -2s;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.3);
}

.card-2 i {
  color: #ffd43b;
  text-shadow: 0 0 12px #ffd43b;
}

.card-3 {
  bottom: 5%;
  right: 3%;
  animation-delay: -4s;
  box-shadow: var(--neon-teal);
  border-color: rgba(0, 245, 212, 0.3);
}

.card-3 i {
  color: #00f5d4;
  text-shadow: 0 0 12px #00f5d4;
}

@keyframes float3d {

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

  33% {
    transform: translateY(-10px) rotateX(8deg) rotateY(5deg)
  }

  66% {
    transform: translateY(-5px) rotateX(-4deg) rotateY(-8deg)
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  width: 22px;
  height: 38px;
  border: 2px solid rgba(0, 245, 212, 0.3);
  border-radius: 11px;
  position: relative;
  box-shadow: var(--neon-teal);
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 9px;
  background: var(--accent-2);
  border-radius: 4px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

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

  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.3
  }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
  background: var(--bg-secondary);
  position: relative;
  perspective: var(--perspective);
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
  opacity: 0.4;
}

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

.about-image-col {
  perspective: 600px;
}

.about-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-image-card:hover {
  transform: rotateY(-15deg) rotateX(5deg) translateZ(30px);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5), var(--neon-purple);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
  transition: transform var(--transition-smooth);
}

.about-image-card:hover .about-photo {
  transform: scale(1.04);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 16, 0.95) 0%, transparent 50%);
}

.about-info-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.info-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.info-value.highlight {
  color: var(--accent-2);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.5);
}

.about-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 28px;
}

.about-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.detail-item {
  padding: 12px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all var(--transition-smooth);
  transform-style: preserve-3d;
}

.detail-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px) translateZ(8px);
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.2);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  margin-bottom: 5px;
  display: block;
}

.detail-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.projects-count {
  text-align: center;
}

.count-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-1);
  text-shadow: var(--neon-purple);
}

.count-plus {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-1);
}

.count-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==================== TECH STACK (Orbit) ==================== */
.tech-orbit-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

#orbit-canvas {
  border-radius: 50%;
}

/* ==================== SKILLS ==================== */
.skills-container {
  margin-top: 28px;
}

.skills-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--accent-2);
}

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

.skill-item {
  position: relative;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
}

.skill-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(124, 92, 252, 0.5);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: var(--neon-teal);
}

/* ==================== RESUME ==================== */
.resume-section {
  background: var(--bg-primary);
  perspective: var(--perspective);
}

.resume-block {
  margin-bottom: 56px;
}

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

.resume-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: var(--neon-purple);
  transition: transform var(--transition-spring);
}

.resume-icon:hover {
  transform: rotateY(180deg);
}

.resume-block-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 12px rgba(124, 92, 252, 0.4);
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-1);
  border: 3px solid var(--bg-primary);
  box-shadow: var(--neon-purple);
  transition: transform var(--transition-spring);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
  background: var(--accent-2);
  box-shadow: var(--neon-teal);
}

.timeline-content {
  padding: 24px 28px;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s;
}

.timeline-content:hover {
  transform: translateX(8px) translateZ(18px) rotateY(-2deg);
  box-shadow: -4px 8px 36px rgba(124, 92, 252, 0.25), var(--neon-purple);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  display: block;
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.4);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.timeline-company i {
  color: var(--accent-1);
}

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

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.timeline-list li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.timeline-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  text-shadow: var(--neon-purple);
}

.resume-download {
  text-align: center;
  margin-top: 36px;
}

/* ==================== GITHUB CONTRIBUTION GRAPH ==================== */
.github-graph-wrapper {
  margin-top: 50px;
  padding: 28px 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--neon-purple);
}

.github-graph-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-graph-title::before {
  content: '●';
  color: var(--code-green);
}

#github-graph {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gh-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gh-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.gh-cell:hover {
  transform: scale(1.3);
}

.gh-cell[data-level="1"] {
  background: rgba(0, 245, 212, 0.2);
  border-color: rgba(0, 245, 212, 0.25);
}

.gh-cell[data-level="2"] {
  background: rgba(0, 245, 212, 0.4);
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 4px rgba(0, 245, 212, 0.3);
}

.gh-cell[data-level="3"] {
  background: rgba(124, 92, 252, 0.5);
  border-color: rgba(124, 92, 252, 0.55);
  box-shadow: 0 0 6px rgba(124, 92, 252, 0.4);
}

.gh-cell[data-level="4"] {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 8px rgba(0, 245, 212, 0.7);
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  position: relative;
}

.project-card:hover {
  transform: translateY(-14px) rotateX(7deg) rotateY(-4deg) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), var(--neon-purple);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
  filter: brightness(0.85) saturate(1.1);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.9), rgba(0, 245, 212, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

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

.project-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: all var(--transition-spring);
  backdrop-filter: blur(10px);
}

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

.project-tech-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 13px;
  border-radius: 20px;
  background: rgba(124, 92, 252, 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: var(--neon-purple);
}

.project-info {
  padding: 22px;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-info h3 a {
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.project-info h3 a:hover {
  color: var(--accent-2);
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.4);
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.7;
}

.github-cta {
  margin-top: 46px;
}

.github-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.1), rgba(0, 245, 212, 0.05));
  border-color: rgba(124, 92, 252, 0.3);
  transition: all var(--transition-smooth);
  transform-style: preserve-3d;
}

.github-cta-content:hover {
  transform: translateY(-6px) translateZ(14px);
  box-shadow: var(--neon-purple);
}

.github-cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.github-cta-text p {
  color: var(--text-secondary);
  margin-top: 5px;
  font-size: 0.95rem;
}

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

.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.04), rgba(0, 245, 212, 0.04));
  pointer-events: none;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.counter-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.counter-item:hover {
  transform: translateY(-12px) translateZ(18px) rotateX(8deg);
  border-color: var(--border-glow);
  box-shadow: var(--neon-purple);
  background: var(--bg-glass-hover);
}

.counter-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.2), rgba(0, 245, 212, 0.2));
  border: 1px solid rgba(124, 92, 252, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-1);
  text-shadow: var(--neon-purple);
  transition: transform var(--transition-spring);
}

.counter-item:hover .counter-icon {
  transform: rotateY(360deg);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
}

.counter-number {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 7px;
  text-shadow: var(--neon-purple);
}

.counter-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.contact-card {
  padding: 32px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.contact-card:hover {
  transform: translateY(-10px) rotateX(10deg) rotateY(5deg) translateZ(18px);
  box-shadow: var(--neon-purple);
  border-color: var(--border-glow);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--neon-purple);
  transition: transform var(--transition-spring);
}

.contact-card:hover .contact-card-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: var(--neon-teal);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-card p a {
  color: var(--accent-2);
  transition: color var(--transition-fast);
}

.contact-card p a:hover {
  color: var(--accent-3);
  text-shadow: var(--neon-pink);
}

.contact-question {
  margin-bottom: 36px;
}

.question-card {
  padding: 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.07), rgba(0, 245, 212, 0.04));
  border-color: rgba(124, 92, 252, 0.3);
  transition: all var(--transition-smooth);
  transform-style: preserve-3d;
}

.question-card:hover {
  transform: translateY(-6px) translateZ(14px);
  box-shadow: var(--neon-purple);
}

.question-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.social-links {
  text-align: center;
}

.social-label {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.social-icon:hover {
  background: var(--accent-1);
  color: #fff;
  border-color: var(--accent-1);
  transform: translateY(-7px) rotateZ(8deg) scale(1.15);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-primary);
  padding: 36px 0;
  border-top: 1px solid var(--border-color);
}

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

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.footer-logo:hover {
  text-shadow: var(--neon-purple);
}

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

.footer-text a {
  color: var(--accent-1);
  transition: color var(--transition-fast);
}

.footer-text a:hover {
  color: var(--accent-2);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
  box-shadow: var(--neon-purple);
}

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

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--neon-teal);
}

/* ==================== ANIMATIONS ==================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-right"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate].animated {
  opacity: 1 !important;
  transform: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width:968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

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

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

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

  .floating-card {
    display: none;
  }

  .github-cta-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .code-window {
    transform: none;
    animation: none;
  }

  .terminal-window {
    transform: none;
    animation: none;
  }
}

@media (max-width:640px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(5, 5, 16, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
  }

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

  .nav-toggle {
    display: flex;
  }

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

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

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

  .hero-stats {
    gap: 16px;
  }
}