/*
==================================================
ENHANCED PORTFOLIO STYLESHEET
Author: Jeet Makhija
Description: Modern, performant portfolio design
==================================================
*/

/* ==================== CUSTOM CURSOR ==================== */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--electric);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.3s ease;
  box-shadow: 0 0 10px var(--glow-electric);
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(88, 166, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
  will-change: transform;
}

/* Expand ring on hoverable elements */
a:hover ~ .cursor-ring,
button:hover ~ .cursor-ring {
  width: 50px;
  height: 50px;
}

.cursor-dot.cursor-hover {
  width: 12px;
  height: 12px;
  background: var(--light);
  box-shadow: 0 0 16px var(--glow-electric);
}

.cursor-ring.cursor-hover {
  width: 48px;
  height: 48px;
  border-color: rgba(88, 166, 255, 0.8);
}

.cursor-dot.cursor-clicking {
  width: 6px;
  height: 6px;
  background: #93c5fd;
}

/* Hide on mobile — cursor doesn't exist on touch */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* Hide default cursor only on desktop */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--electric);
  color: var(--dark);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  z-index: 99999;
  transition: top 0.3s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 20px;
}

/* ==================== RESET & BASE ==================== */

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

:root {
  --electric: #7ab8ff;
  --cyber: #4d98e9;
  --accent-soft: #b7d9ff;
  --dark: #0b1219;
  --darker: #070e15;
  --light: #eaf2ff;
  --gray: #9aa8bb;
  --border: #1e2a36;
  --glass-bg: rgba(11, 18, 25, 0.76);
  --glass-border: rgba(226, 239, 255, 0.11);
  --glow-electric: rgba(122, 184, 255, 0.28);
  --glow-cyber: rgba(77, 152, 233, 0.26);
  --radius-md: 10px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0b1219;
  background-image: 
    radial-gradient(at 22% 28%, rgba(122, 184, 255, 0.06) 0px, transparent 52%),
    radial-gradient(at 80% 72%, rgba(77, 152, 233, 0.06) 0px, transparent 52%),
    radial-gradient(at 48% 54%, rgba(147, 205, 255, 0.03) 0px, transparent 56%);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.5s ease, background-image 0.5s ease, color 0.5s ease;
}

/* Targeted transitions only — wildcard removed to prevent animation jank */

::selection {
  background: var(--electric);
  color: var(--dark);
}

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

/* ==================== NAVIGATION ==================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  padding-left: max(40px, env(safe-area-inset-left));
  padding-right: max(40px, env(safe-area-inset-right));
  z-index: 1000;
  background: rgba(11, 18, 25, 0.78);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(122, 184, 255, 0.12);
  box-shadow: 0 1px 0 rgba(122, 184, 255, 0.08), 0 4px 24px rgba(0, 0, 0, 0.42);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
  position: relative;
  text-shadow: 0 0 20px var(--glow-electric);
  transition: text-shadow 0.3s ease;
  text-decoration: none;
  color: var(--light);
}

.logo:hover {
  text-shadow: 0 0 30px var(--glow-electric), 0 0 40px var(--glow-electric);
}

.logo::before {
  content: '>';
  color: var(--electric);
  margin-right: 8px;
  animation: blink 1.5s infinite;
}

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

.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric);
  box-shadow: 0 0 10px var(--glow-electric);
  transition: width 0.3s;
}

.nav-menu a:hover {
  color: var(--light);
  text-shadow: 0 0 20px var(--glow-electric);
}

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

/* Active nav link */
.nav-menu a.nav-active {
  color: var(--light);
}
.nav-menu a.nav-active::after {
  width: 100%;
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--light);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ==================== HERO SECTION ==================== */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 96px 56px 64px 56px;
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  gap: 72px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  position: relative;
  z-index: 2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(88, 166, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  will-change: transform;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  flex: 1 1 0;
  max-width: 860px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 10px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 22px;
  color: var(--electric);
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease;
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  border-radius: 4px;
}

.hero-badge:hover {
  box-shadow: 0 0 30px var(--glow-electric), 0 0 40px rgba(88, 166, 255, 0.1);
  transform: translateY(-2px);
}

.hero-title {
  font-size: clamp(72px, 12vw, 164px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -4px;
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  animation: slideUp 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-title .line:nth-child(1) span {
  animation-delay: 0.1s;
  background: linear-gradient(135deg, #f0f6ff 0%, #58a6ff 40%, #93c5fd 70%, #f0f6ff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both, gradientShift 4s ease infinite 1.2s;
}

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

.hero-title .line:nth-child(2) span {
  animation-delay: 0.2s;
  color: transparent;
  -webkit-text-stroke: 2px rgba(240, 246, 255, 0.6);
}

@keyframes slideUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: clamp(20px, 2.7vw, 30px);
  color: var(--gray);
  max-width: 760px;
  margin-bottom: 38px;
  font-weight: 400;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-role-text {
  display: inline-block;
  color: var(--electric);
  font-weight: 600;
  font-size: clamp(21px, 2.8vw, 34px);
  line-height: 1.2;
  position: relative;
  min-width: 200px;
  transition: opacity 0.5s ease, color 0.5s ease;
  cursor: pointer;
  user-select: none;
}

.hero-role-text:hover {
  text-shadow: 0 0 12px rgba(88,166,255,0.4);
}

.hero-role-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--electric), transparent);
  animation: slideUnderline 3s ease-in-out infinite;
}

@keyframes slideUnderline {
  0%, 100% { width: 0; left: 0; opacity: 0.3; }
  50% { width: 100%; left: 0; opacity: 0.8; }
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  animation: fadeInUp 1s ease 0.6s both;
  margin-bottom: 0;
}

.hero-cta .btn {
  padding: 20px 44px;
  font-size: 16px;
}

/* ==================== GITHUB CARD ==================== */

.github-card {
  min-width: 420px;
  width: min(100%, 560px);
  max-width: 560px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  animation: fadeInUp 1s ease 0.8s both;
  margin-left: auto;
}

.github-card:hover {
  transform: translateY(-4px);
}

.github-card-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  margin-bottom: 0;
  align-items: flex-end;
}

.github-avatar {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 3px solid rgba(240, 246, 255, 0.6);
  object-fit: cover;
  flex-shrink: 0;
}

.github-info {
  flex: none;
  min-width: 0;
  text-align: right;
}

.github-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--light);
  margin: 0 0 4px 0;
}

.github-handle {
  font-size: 16px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--electric);
  margin: 0;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.github-handle:hover {
  color: #93c5fd;
  text-shadow: 0 0 14px rgba(88, 166, 255, 0.3);
}

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

/* ==================== BUTTONS ==================== */

.btn {
  padding: 18px 40px;
  touch-action: manipulation;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--light);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--light);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
  border-radius: 4px;
  display: inline-block;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--light);
  transition: left 0.3s;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--dark);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--electric);
  border-color: var(--electric);
  color: var(--dark);
  box-shadow: 0 0 20px var(--glow-electric);
}

.btn-primary::before {
  background: var(--light);
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--glow-electric), 0 0 60px rgba(88, 166, 255, 0.2);
}

/* ==================== MARQUEE ==================== */

.marquee-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--darker);
}

.marquee {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-content {
  display: flex;
  gap: 60px;
  align-items: center;
  white-space: nowrap;
  padding-right: 60px;
}

.marquee-item {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 20px;
}

.marquee-item span {
  color: var(--electric);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==================== SECTION STYLES ==================== */

.section {
  padding: clamp(80px, 10vw, 120px) clamp(20px, 3.5vw, 40px);
  position: relative;
}

.section-header {
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.section-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(16px, 3vw, 24px);
  color: var(--electric);
  font-weight: 700;
}

.section-desc {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.75;
  margin-left: calc(clamp(16px, 3vw, 24px) + 30px);
}

.section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 184, 255, 0.2), transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* ==================== ABOUT SECTION ==================== */

.about-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: start;
}

.about-text {
  font-size: 20px;
  line-height: 1.9;
  color: var(--gray);
  max-width: 70ch;
}

.about-text p {
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--light);
  font-weight: 600;
}

.highlight {
  color: var(--electric);
  font-weight: 600;
}

.code-block {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  border-radius: 8px;
}

.code-block:hover {
  border-color: rgba(88, 166, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(88, 166, 255, 0.1);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--glass-border);
}

.code-lang {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray);
  opacity: 0.5;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-block pre {
  padding: 24px 30px;
  margin: 0;
  overflow-x: auto;
}

.code-block code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--electric);
  box-shadow: 0 0 10px var(--glow-electric);
}

.code-keyword { color: #ff79c6; }
.code-string { color: #50fa7b; }
.code-function { color: #8be9fd; }
.code-comment { color: #6272a4; }

/* ==================== SKILLS SECTION ==================== */

.skills-container {
  max-width: 1400px;
  margin: 0 auto;
}

.skills-category {
  margin-bottom: 60px;
}

.category-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 30px;
  font-weight: 700;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skill-item {
  border: 1px solid var(--glass-border);
  padding: 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.skill-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--electric), transparent);
  transition: height 0.4s ease;
  border-radius: 6px 0 0 6px;
}

.skill-item:hover::after {
  height: 100%;
}

.skill-item:hover {
  border-color: rgba(88, 166, 255, 0.4);
  transform: translateX(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.2), 0 0 30px var(--glow-electric);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.skill-name {
  font-size: 18px;
  font-weight: 700;
}

.skill-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.skill-icons i {
  font-size: 28px;
  color: var(--gray);
  transition: color 0.3s ease;
}

.skill-icons svg {
  width: 28px;
  height: 28px;
}

.skill-item:hover .skill-icons i,
.skill-item:hover .skill-icons svg {
  color: var(--electric);
  stroke: var(--electric);
}

.skill-level {
  font-size: 13px;
  color: var(--gray);
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 15px;
}

/* Skill Progress Bars */
.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--electric), #1f6feb);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1) !important;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==================== LEARNING SECTION ==================== */

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

.learning-card {
  border: 1px solid var(--glass-border);
  padding: 35px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.learning-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--electric), transparent);
  box-shadow: 0 0 10px var(--glow-electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.learning-card:hover::before {
  transform: scaleX(1);
}

.learning-card:hover {
  border-color: rgba(88, 166, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.2), 0 0 40px var(--glow-electric);
}

.learning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.learning-icon {
  font-size: 36px;
}

.learning-status {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--electric);
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid var(--electric);
  font-family: 'IBM Plex Mono', monospace;
  border-radius: 4px;
}

.learning-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--light);
}

.learning-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 25px;
}

.learning-progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.learning-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.learning-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--electric), #1f6feb);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
}

.learning-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.learning-percentage {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--electric);
  min-width: 45px;
}

/* ==================== PROJECTS SECTION ==================== */

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  border: 1px solid var(--glass-border);
  margin-bottom: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.project-card:hover {
  border-color: rgba(88, 166, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.2), 0 0 40px var(--glow-electric);
  transform: translateY(-5px);
}

.project-header {
  padding: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.project-info h3 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 800;
}

.project-type {
  font-size: 13px;
  color: var(--electric);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-number {
  font-size: 60px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.project-body {
  padding: var(--space-7);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
}

.project-description {
  font-size: 18px;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 64ch;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  padding: 8px 16px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gray);
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  border-radius: 4px;
}

.tech-tag:hover {
  border-color: var(--electric);
  color: var(--electric);
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--light);
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}

.project-link span:first-child::after {
  content: ' ↗';
  font-size: 12px;
  opacity: 0.8;
}

.project-link:hover {
  background: var(--electric);
  color: var(--dark);
  border-color: var(--electric);
  transform: translateX(5px);
}


/* ==================== ENHANCED PROJECT CARD HOVER ==================== */

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--electric), #1f6feb, #93c5fd);
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 1;
  border-radius: 8px 8px 0 0;
}

.project-card:hover::before {
  width: 100%;
}

.project-card .project-number {
  transition: color 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-number {
  color: rgba(88, 166, 255, 0.15);
  transform: scale(1.05);
}

.project-card .project-info h3 {
  transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
  color: var(--electric);
}

.project-card .project-type {
  transition: letter-spacing 0.3s ease;
}

.project-card:hover .project-type {
  letter-spacing: 3px;
}

/* ==================== CONTACT SECTION ==================== */

.contact-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 40px;
  letter-spacing: -3px;
}

.contact-subtitle {
  font-size: 24px;
  color: var(--gray);
  margin-bottom: 60px;
  line-height: 1.6;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.contact-item {
  border: 1px solid var(--glass-border);
  padding: 40px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.contact-item:hover {
  border-color: rgba(88, 166, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.2), 0 0 40px var(--glow-electric);
}

.contact-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.contact-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.contact-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--light);
}

/* ==================== COPY EMAIL TOAST ==================== */

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--light);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 99997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(88,166,255,0.15);
  white-space: nowrap;
}

.toast.toast-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  display: inline-block;
  margin-right: 8px;
  color: var(--electric);
}

/* Email contact card — show copy hint */
.contact-item.email-card {
  position: relative;
}

.contact-item.email-card .copy-hint {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gray);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-item.email-card:hover .copy-hint {
  opacity: 0.7;
}

/* ==================== FOOTER ==================== */

.footer-link {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--electric);
}

footer {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
  background: var(--darker);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.footer-left {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--gray);
}

.footer-right {
  font-size: 14px;
  color: var(--gray);
  justify-self: end;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(183, 217, 255, 0.95);
  outline-offset: 2px;
}

/* ==================== CUSTOM SCROLLBAR ==================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #58a6ff, #1f6feb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #93c5fd, #58a6ff);
}

/* ==================== SECTION DIVIDERS ==================== */


/* ==================== SECTION GRADIENT BACKGROUNDS ==================== */

#about {
  background: radial-gradient(ellipse at 80% 20%, rgba(88, 166, 255, 0.04) 0%, transparent 60%);
}

#skills {
  background: radial-gradient(ellipse at 10% 50%, rgba(31, 111, 235, 0.05) 0%, transparent 60%);
}

#learning {
  background: radial-gradient(ellipse at 90% 80%, rgba(88, 166, 255, 0.04) 0%, transparent 60%);
}

#journey {
  background: radial-gradient(ellipse at 20% 30%, rgba(31, 111, 235, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 70%, rgba(88, 166, 255, 0.03) 0%, transparent 50%);
}

#projects {
  background: radial-gradient(ellipse at 70% 10%, rgba(88, 166, 255, 0.04) 0%, transparent 60%);
}

#profiles {
  background: radial-gradient(ellipse at 30% 90%, rgba(31, 111, 235, 0.05) 0%, transparent 60%);
}

#contact {
  background: radial-gradient(ellipse at 50% 50%, rgba(88, 166, 255, 0.06) 0%, transparent 70%);
}

/* Enhanced section divider with glow pulse */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.3), rgba(88, 166, 255, 0.1), transparent);
  position: relative;
  overflow: visible;
  margin: 0;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 12px var(--glow-electric), 0 0 24px var(--glow-electric);
  animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { 
    box-shadow: 0 0 12px var(--glow-electric), 0 0 24px var(--glow-electric);
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    box-shadow: 0 0 20px var(--glow-electric), 0 0 40px var(--glow-electric), 0 0 60px rgba(88,166,255,0.1);
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* Divider scan line effect */
.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.6), transparent);
  animation: scanLine 4s ease-in-out infinite;
}

@keyframes scanLine {
  0% { left: -40%; }
  100% { left: 140%; }
}




/* ==================== STAGGERED TIMELINE ==================== */

.timeline-item.reveal {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.65, 0, 0.35, 1), transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: opacity, transform;
}

.timeline-item:nth-child(even).reveal {
  transform: translateX(30px);
}

.timeline-item.reveal.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0ms !important; }
.reveal-delay-2 { transition-delay: 100ms !important; }
.reveal-delay-3 { transition-delay: 200ms !important; }
.reveal-delay-4 { transition-delay: 300ms !important; }
.reveal-delay-5 { transition-delay: 400ms !important; }
.reveal-delay-6 { transition-delay: 500ms !important; }
.reveal-delay-7 { transition-delay: 600ms !important; }
.reveal-delay-8 { transition-delay: 700ms !important; }
.reveal-delay-9 { transition-delay: 800ms !important; }

/* ==================== FLOATING PARTICLES ==================== */

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ==================== SCROLL ANIMATIONS ==================== */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ==================== SCROLL PROGRESS ==================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 10001;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #58a6ff, #1f6feb);
  width: 0%;
  transition: width 0.1s ease;
}

/* ==================== BACK TO TOP BUTTON ==================== */

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: var(--light);
  cursor: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 0;
}

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

.back-to-top:hover {
  color: var(--electric);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-electric);
  background: rgba(13, 17, 23, 0.9);
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.progress-ring-fill {
  transition: stroke-dashoffset 0.15s ease;
  filter: drop-shadow(0 0 4px rgba(88,166,255,0.6));
}

.back-to-top-arrow {
  position: relative;
  z-index: 1;
}

/* ==================== TIMELINE SECTION ==================== */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #58a6ff, #1f6feb, transparent);
  opacity: 0.4;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 50px);
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 50px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.15), 0 0 20px var(--glow-electric);
  z-index: 2;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.timeline-item:nth-child(3n) .timeline-dot {
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), 0 0 20px rgba(96, 165, 250, 0.4);
}

.timeline-item:nth-child(3n+2) .timeline-dot {
  background: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.15), 0 0 20px rgba(147, 197, 253, 0.4);
}

.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 28px 32px;
  max-width: 360px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.timeline-card:hover {
  border-color: rgba(88, 166, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(88, 166, 255, 0.15), 0 0 30px var(--glow-electric);
}

.timeline-item:nth-child(3n) .timeline-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(96, 165, 250, 0.3);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--electric), transparent);
}

.timeline-item:nth-child(even) .timeline-card::before {
  background: linear-gradient(90deg, transparent, var(--electric));
}

.timeline-item:nth-child(3n) .timeline-card::before {
  background: linear-gradient(90deg, #60a5fa, transparent);
}

.timeline-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--electric);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.timeline-item:nth-child(3n) .timeline-year {
  color: #60a5fa;
}

.timeline-item:nth-child(3n+2) .timeline-year {
  color: #93c5fd;
}

.timeline-type {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 10px;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid var(--glass-border);
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gray);
  letter-spacing: 1px;
  border-radius: 4px;
}

.timeline-tag i, .timeline-tag svg {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .project-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 15px 0;
  }

  .hero {
    padding: 74px 20px;
  }

  .section {
    padding: 80px 20px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-desc {
    margin-left: 0;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  .footer-right,
  .footer-nav {
    justify-self: start;
    justify-content: flex-start;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 55px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-card {
    max-width: 100%;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}


/* Minimum tap targets for mobile */
@media (max-width: 1024px) {
  .hero {
    padding: 92px 28px 56px 28px;
  }
  .hero-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 30px;
  }
  .hero-role-text {
    font-size: clamp(20px, 3.2vw, 28px);
  }
  .hero-cta .btn {
    padding: 16px 32px;
    font-size: 15px;
  }
  .github-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
  }
  .github-card-header {
    align-items: flex-start;
  }
  .github-info {
    text-align: left;
  }
  .github-avatar {
    width: 260px;
    height: 260px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    letter-spacing: -3px;
  }
  .section {
    padding: 60px 16px;
  }
  .project-header,
  .project-body {
    padding: 24px 16px;
  }
  .contact-item {
    padding: 28px 20px;
  }
  .hero {
    padding: 68px 16px;
    align-items: center;
  }
  .hero-wrapper {
    flex-direction: column;
    gap: 28px;
    align-items: center;
    max-width: 100%;
  }
  .hero-content {
    width: 100%;
    text-align: center;
    max-width: 100%;
  }
  .hero-subtitle {
    margin-bottom: 24px;
  }
  .hero-role-text {
    font-size: clamp(18px, 6vw, 24px);
  }
  .hero-cta {
    justify-content: center;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
  .github-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
  .github-card-header {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }
  .github-info {
    text-align: center;
  }
  .github-avatar {
    width: 210px;
    height: 210px;
  }
}

@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 14px 28px;
  }
  .project-link {
    min-height: 44px;
  }
  .back-to-top {
    min-width: 44px;
    min-height: 44px;
  }
  .nav-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU acceleration for animations */
.hero-grid,
.particle,
.marquee,
.scroll-progress-bar {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
