/* ==================== CSS Variables ==================== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131a;
  --bg-tertiary: #1a1a24;

  --text-primary: #f8f9fa;
  --text-secondary: #a8a8b3;
  --text-tertiary: #6b6b78;

  --accent-primary: #ffffff;
  --accent-secondary: #e2e8f0;
  --accent-tertiary: #cbd5e1;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Light Mode */
body.light-mode {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f5;

  --text-primary: #1a1a24;
  --text-secondary: #4a4a5e;
  --text-tertiary: #6b6b78;

  --accent-primary: #1a1a24;
  --accent-secondary: #4a4a5e;
  --accent-tertiary: #6b6b78;

  --glass-bg: rgba(0, 0, 0, 0.02);
  --glass-border: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ==================== Base Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background: var(--accent-primary);
  color: white;
}

/* ==================== Skip Link ==================== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--accent-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}

/* ==================== Animated Background ==================== */
/* Gradient Background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.gradient-mesh {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
}

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

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

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



.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  display: none;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c6ef0 0%, #a78bfa 50%, transparent 70%);
  top: -10%;
  right: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f0a060 0%, #fbbf24 50%, transparent 70%);
  bottom: 0%;
  left: -5%;
  animation-delay: 5s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #f08080 0%, #fb7185 50%, transparent 70%);
  top: 40%;
  right: 20%;
  animation-delay: 10s;
}

/* Light mode: slightly lower opacity so it's subtle but visible */
body.light-mode .gradient-orb {
  opacity: 0.5;
  filter: blur(120px);
}

@keyframes float {

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

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

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

/* ==================== Header ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

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

.logo-link {
  text-decoration: none;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.theme-btn:hover {
  background: var(--glass-border);
  transform: rotate(180deg);
}

.mobile-controls {
  display: none;
  align-items: center;
  gap: 12px;
}

.hamburger {
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 40px;
}

.mobile-menu-link {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 0;
  font-weight: 500;
}

/* ==================== Main Content ==================== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==================== Hero Section ==================== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  padding: 120px 0 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  width: fit-content;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Animated gradient text for hero badge */
.animated-gradient-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background-size: 300% 100%;
  animation: gradient 8s linear infinite;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  /* Let the existing hero-badge background show through */
  mix-blend-mode: normal;
}

.gradient-overlay::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background-color: transparent;
  z-index: -1;
}

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

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

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

.text-content {
  position: relative;
  z-index: 1;
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient 8s linear infinite;
}

.hero-greeting {
  display: block;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: -8px;
  white-space: normal;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ffffff, #f1f3f5);
  color: var(--bg-primary);
}

body.light-mode .btn-primary {
  background: linear-gradient(135deg, #1a1a24, #4a4a5e);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.light-mode .btn-primary:hover {
  background: linear-gradient(135deg, #2a2a34, #5a5a6e);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 2px solid var(--accent-primary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  right: 10%;
  top: 60%;
  width: 340px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card {
  position: absolute;
  padding: 0;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border: 3px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  width: 120px;
  aspect-ratio: 1;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.floating-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
}

body.light-mode .floating-card {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(220, 220, 220, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .floating-card:hover {
  border-color: rgba(26, 26, 36, 0.8);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Add padding back for non-TypeScript and non-HTML cards */
.floating-card:not([data-language="typescript"]):not([data-language="html"]) {
  padding: 20px;
}

.floating-card .lang-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.floating-card:hover .lang-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

/* TypeScript card - slightly smaller icon */
.floating-card[data-language="typescript"] .lang-icon {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}

.floating-card[data-language="typescript"]:hover .lang-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(41, 98, 218, 0.3));
}

/* HTML card - slightly smaller icon */
.floating-card[data-language="html"] .lang-icon {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}

.floating-card[data-language="html"]:hover .lang-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(227, 79, 38, 0.3));
}

/* Remove individual language card border colors - all use black from parent */

/* Card positioning - centered with transforms handled by GSAP, lowered slightly */
/* Cards positioned entirely by GSAP - no CSS positioning needed */

/* GitHub Stats Card - positioned above language cards on the right */
.github-stats-card {
  position: absolute;
  top: 25%;
  right: 10%;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  border: 3px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  width: 340px;
  z-index: 10;
  animation: fadeInDown 1s ease-out forwards;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.github-stats-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

body.light-mode .github-stats-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .github-stats-card:hover {
  border-color: rgba(26, 26, 36, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.stat-big-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.counter {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.counter-digit {
  position: relative;
  width: 0.7em;
  height: 1.3em;
  overflow: hidden;
}

.counter-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.counter-digit span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.3em;
}

.stats-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stats-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 16px;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  flex: 1;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: var(--glass-border);
  transform: scale(1.05);
}

.stat-big-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.stat-big-number .loading-spinner {
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.stat-big-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Languages Title */
.languages-title {
  position: absolute;
  top: 52%;
  right: 10%;
  width: 340px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  z-index: 5;
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes floatCard {

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

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

@keyframes elasticBounce {

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

  25% {
    transform: translateY(-15px) rotate(-3deg);
  }

  50% {
    transform: translateY(-25px) rotate(0deg);
  }

  75% {
    transform: translateY(-15px) rotate(3deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    left: -300px;
  }

  to {
    opacity: 1;
    left: 40px;
  }
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==================== Section Styles ==================== */
.section-container {
  padding: 80px 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

#experience {
  padding-bottom: 100px;
}

#contact {
  padding-top: 100px;
}

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

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: var(--text-primary);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
}

/* ==================== About Section ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-large {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== GitHub Contribution Chart ==================== */
.github-chart-card {
  margin-top: 40px;
  padding: 32px;
  overflow: hidden;
}

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

.github-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.github-chart-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-chart-title i {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.github-chart-title h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.github-chart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.github-chart-link:hover {
  color: var(--accent-primary);
}

.github-chart-link i {
  width: 14px;
  height: 14px;
}

.github-chart-img-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  padding: 8px 0;
}

.github-chart-img {
  width: 100%;
  min-width: 600px;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Dark mode: show dark chart, hide light chart */
.github-chart-dark {
  display: block;
  /*
    invert(1)      → white SVG bg becomes black, grey empty squares become dark
    brightness(2)  → lifts dark empty squares to visible mid-grey (~#32)
    contrast(0.85) → reduces harshness; gaps (~#13) stay darker than empty squares (~#32)
    The gap-between-squares is the black SVG background — visibly darker than the
    mid-grey empty squares, creating the thin-border effect the user wants.
  */
  filter: invert(1) brightness(2) contrast(0.85);
}

.github-chart-light {
  display: none;
}

/* Light mode: show light chart, hide dark chart */
body.light-mode .github-chart-dark {
  display: none;
}

body.light-mode .github-chart-light {
  display: block;
}

@media (max-width: 768px) {
  .github-chart-card {
    padding: 20px;
    margin-top: 24px;
  }

  .github-chart-title h3 {
    font-size: 17px;
  }

  .github-chart-img-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Skills */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skills-header {
  margin-bottom: 8px;
}

.skills-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.skills-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: default;
}

.skill-pill:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.skill-pill i {
  width: 16px;
  height: 16px;
}

/* ==================== Projects Section ==================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 60px;
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }

  /* Center the last card when it's alone in a row (e.g. 3 projects in 2-col grid) */
  .projects-grid>.project-card-container:last-child:nth-child(2n+1) {
    grid-column: 1 / -1;
    width: calc(50% - 30px);
    justify-self: center;
  }
}



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

/* ==================== New Project Card Design ==================== */
.project-card-container {
  position: relative;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card:hover {
  /* Hover handled by tilted-card-inner now */
}

.project-card .tilted-card-figure {
  height: auto;
  width: 100%;
  margin-bottom: 0;
}

.project-card .tilted-card-inner {
  width: 100%;
  height: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.project-card .tilted-card-inner:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-card .tilted-card-img {
  position: relative;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
}

body.light-mode .project-card-footer {
  background: #ffffff;
}

body.light-mode .project-card .tilted-card-inner {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .project-card .tilted-card-inner:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-card-info {
  flex: 1;
}

.project-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-mini-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-mini-tags span {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
}

/* Expand Button */
.expand-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-left: 16px;
}

.expand-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.expand-btn i {
  width: 20px;
  height: 20px;
}

/* Project Award Badge */
.project-award-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  color: #1a1a24;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.project-award-badge i {
  width: 18px;
  height: 18px;
}

/* ==================== Project Modal ==================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 24px;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.project-modal-content {
  position: relative;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  background: var(--bg-secondary);
}

body.light-mode .project-modal-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body.light-mode .project-modal {
  background: rgba(0, 0, 0, 0.5);
}

body.light-mode .highlight-chip {
  background: #f1f3f5;
  border-color: #e2e8f0;
  color: #1a1a24;
}

body.light-mode .highlight-chip i {
  color: #4a4a5e;
}

body.light-mode .highlight-chip:hover {
  background: #1a1a24;
  color: #ffffff;
  border-color: #1a1a24;
}

body.light-mode .highlight-chip:hover i {
  color: #ffffff;
}

.project-modal.active .project-modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.modal-close-btn i {
  width: 20px;
  height: 20px;
}

.project-modal-header {
  margin-bottom: 24px;
}

.project-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 16px;
  line-height: 1.3;
}

.project-modal-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Highlight Chips - New Feature Style */
.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.highlight-chip:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.highlight-chip i {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.highlight-chip:hover i {
  color: var(--bg-primary);
}

.highlight-chip.highlight-gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.highlight-chip.highlight-gold i {
  color: #fbbf24;
}

.highlight-chip.highlight-gold:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a24;
  border-color: #fbbf24;
}

.highlight-chip.highlight-gold:hover i {
  color: #1a1a24;
}

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

/* Responsive for project cards */
@media (max-width: 768px) {
  .project-card .tilted-card-figure {
    height: 200px;
  }

  .project-card-footer {
    padding: 16px 20px;
  }

  .project-card-title {
    font-size: 16px;
  }

  .expand-btn {
    width: 40px;
    height: 40px;
  }

  .project-modal-content {
    padding: 24px;
  }

  .project-highlights {
    gap: 8px;
  }

  .highlight-chip {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .project-card .tilted-card-figure {
    height: 160px;
  }

  .project-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .expand-btn {
    align-self: flex-end;
    margin-left: 0;
    margin-top: -48px;
  }
}

.project-card.featured {
  grid-column: span 2;
}

/* ==================== Tilted Card Component ==================== */
.tilted-card-figure {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.tilted-card-mobile-alert {
  position: absolute;
  top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: none;
}

@media (max-width: 640px) {
  .tilted-card-mobile-alert {
    display: block;
  }

  .tilted-card-caption {
    display: none;
  }
}

.tilted-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.tilted-card-img {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border-radius: 15px;
  will-change: transform;
  transform: translateZ(0);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.tilted-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  will-change: transform;
  transform: translateZ(30px);
}

.tilted-card-caption {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 4px;
  background-color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  color: #2d2d2d;
  opacity: 0;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

/* Tilted Card Overlay for GitHub badge */
.tilted-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: 15px;
  z-index: 5;
}

.tilted-card-figure:hover .tilted-card-overlay {
  opacity: 1;
}

.tilted-card-overlay.persisto-overlay {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(6, 182, 212, 0.85));
}

/* Project badge for awards */
.project-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.project-badge i {
  width: 20px;
  height: 20px;
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.download-icon {
  width: 48px;
  height: 48px;
  color: white;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

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

.project-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
}

.project-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-stats {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
  font-size: 14px;
  color: var(--text-tertiary);
}

.project-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-stats i {
  width: 16px;
  height: 16px;
}

/* ==================== Experience Section ==================== */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Glare hover wrapper — applied to cards */
.glare-hover-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glare-hover-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.glare-hover-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg,
      hsla(0, 0%, 0%, 0) 60%,
      rgba(255, 255, 255, 0.22) 70%,
      hsla(0, 0%, 0%, 0) 80%,
      hsla(0, 0%, 0%, 0) 100%);
  background-size: 250% 250%;
  background-repeat: no-repeat;
  background-position: -100% -100%, 0 0;
  transition: background-position 650ms ease;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.glare-hover-card:hover::before {
  background-position: 100% 100%, 0 0;
}

/* Light mode: use a dark glare sweep since white-on-white is invisible */
body.light-mode .glare-hover-card::before {
  background: linear-gradient(-45deg,
      hsla(0, 0%, 0%, 0) 60%,
      rgba(0, 0, 0, 0.08) 70%,
      hsla(0, 0%, 0%, 0) 80%,
      hsla(0, 0%, 0%, 0) 100%);
  background-size: 250% 250%;
  background-repeat: no-repeat;
  background-position: -100% -100%, 0 0;
}

body.light-mode .glare-hover-card:hover::before {
  background-position: 100% 100%, 0 0;
}

.experience-card {
  display: flex;
  gap: 24px;
}

.experience-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
}

.experience-icon i {
  width: 28px;
  height: 28px;
}

.experience-content {
  flex: 1;
}

.experience-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.experience-company {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.experience-date {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.experience-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-tags span {
  font-size: 12px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text-secondary);
}

/* Horizontal Timeline */
.horizontal-timeline {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-header i {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.timeline-scroll-container {
  overflow-x: auto;
  padding-bottom: 24px;
  padding-top: 20px;
  /* Space for hovering cards */
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.timeline-scroll-container::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.timeline-graphic {
  position: relative;
  height: 220px;
  /* Taller for more elegant stalks */
  width: 100%;
  min-width: 750px;
  /* Ensures it doesn't squish */
  margin-top: 10px;
}

/* Axis Track */
.axis-track {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  z-index: 1;
}

body.light-mode .axis-track {
  background: rgba(0, 0, 0, 0.1);
}

.axis-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  background-size: 200% auto;
  border-radius: 2px;
  animation: gradientFlow 3s linear infinite;
}

.axis-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 12px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  filter: blur(8px);
  opacity: 0.3;
  border-radius: 6px;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }

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

/* Ticks */
.axis-ticks {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
}

.tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tick-mark {
  width: 2px;
  height: 10px;
  background: var(--text-tertiary);
  margin-top: -2px;
  /* Overlap with track */
  z-index: 2;
}

.tick-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  margin-top: -3px;
  z-index: 3;
}

.pulse-dot {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  border-color: #10b981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

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

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

.tick-label {
  margin-top: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Event Nodes */
.event-node {
  position: absolute;
  bottom: 50px;
  /* Start precisely at axis */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
}

/* The vertical stalk */
.event-stalk {
  width: 2px;
  height: 90px;
  background: linear-gradient(to top, var(--accent-primary), rgba(255, 255, 255, 0.2));
  transition: height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom;
  position: relative;
  z-index: 1;
}

body.light-mode .event-stalk {
  background: linear-gradient(to top, var(--accent-primary), rgba(0, 0, 0, 0.1));
}

.event-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--accent-primary);
  backdrop-filter: blur(4px);
  margin-bottom: -4px;
  /* overlap stalk */
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-circle-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  transition: transform 0.3s ease;
}

.event-node:hover .event-circle {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  background: var(--bg-primary);
}

.event-node:hover .event-circle-inner {
  transform: scale(0.5);
}

.event-node:hover .event-stalk {
  height: 100px;
  background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
}

/* Event Content Card */
.event-content {
  position: absolute;
  left: 24px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: left center;
  cursor: pointer;
}

.event-node:hover .event-content {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 255, 255, 0.05);
  background: var(--bg-secondary);
}

body.light-mode .event-node:hover .event-content {
  background: #ffffff;
}

.event-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  background: var(--bg-primary);
  padding: 4px;
  border-radius: 6px;
}

.event-text {
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.event-company {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.event-node:hover .event-company {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .horizontal-timeline {
    padding: 24px;
  }
}

/* Interests */
.interests-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.interests-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.interests-title i {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

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

.interest-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.interest-item:hover {
  transform: translateX(8px);
  background: var(--bg-tertiary);
}

.interest-item>i {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--accent-primary);
  margin-top: 2px;
}

.interest-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.interest-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==================== Contact Section ==================== */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
}

.contact-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  color: var(--text-tertiary);
  font-size: 14px;
}

.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.contact-social {
  display: flex;
  gap: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==================== Game Modal ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  max-width: 500px;
  width: 90%;
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.controls-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.control-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

kbd {
  font-family: 'Space Grotesk', monospace;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.kbd-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kbd-group .or-text {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: lowercase;
  font-style: italic;
}

/* Game Overlay */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
}

.game-scores-container {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.game-high-score {
  color: #fbbf24;
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.game-high-score.new-high-score {
  color: #34d399;
  opacity: 1;
  animation: highScorePulse 0.5s ease;
}

@keyframes highScorePulse {

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

  50% {
    transform: scale(1.2);
  }
}

.game-score {
  color: white;
  font-family: 'Space Grotesk', monospace;
  font-size: 20px;
  font-weight: 700;
}

.game-message {
  position: absolute;
  color: white;
  text-align: center;
}

.game-message h2 {
  font-size: 48px;
  margin-bottom: 16px;
}

.game-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.game-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#game-canvas {
  background: #000;
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* ==================== Footer ==================== */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-tertiary);
  border-top: 1px solid var(--glass-border);
}

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

.view-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-tertiary);
  opacity: 0.8;
}

.view-counter svg {
  width: 16px;
  height: 16px;
}

#view-count {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==================== Utilities ==================== */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

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

/* ==================== Responsive ==================== */
@media (max-width: 1400px) {
  .github-stats-card {
    width: 300px;
    right: 5%;
    padding: 24px 20px;
  }

  .languages-title {
    width: 300px;
    right: 5%;
    font-size: 12px;
  }

  .hero-visual {
    width: 300px;
    right: 5%;
  }

  .floating-card {
    width: 80px;
  }

  .stats-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .stat-big-number {
    font-size: 28px;
  }

  .stat-big-label {
    font-size: 10px;
  }

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

@media (max-width: 1200px) {
  .github-stats-card {
    width: 260px;
    right: 2%;
    padding: 20px 16px;
  }

  .languages-title {
    width: 260px;
    right: 2%;
    font-size: 11px;
  }

  .hero-visual {
    width: 260px;
    right: 2%;
  }

  .floating-card {
    width: 65px;
  }

  .stat-big-number {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  /* Show language cards as a horizontal flex strip on mobile */
  .hero-visual {
    display: flex;
    position: static;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 24px 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hero-visual::-webkit-scrollbar {
    display: none;
  }

  .floating-card {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px;
    flex-shrink: 0;
  }

  .github-stats-card {
    display: none;
  }

  .languages-title {
    display: none;
  }

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

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

  .project-card.featured {
    grid-column: span 1;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-controls {
    display: flex;
  }

  .main-content {
    padding: 0 24px;
  }

  .section-container {
    padding: 80px 0;
  }

  .hero-section {
    padding: 100px 0 40px;
  }

  .nav-container {
    padding: 0 24px;
  }

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

  /* Projects responsive */
  .projects-grid {
    gap: 32px;
  }

  .project-features {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .tilted-card-figure {
    height: 240px !important;
  }

  .tilted-card-inner {
    height: 200px !important;
    max-width: 100% !important;
  }

  .project-hero-title {
    font-size: 24px;
  }

  .project-hero-description {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 0 16px;
  }

  .section-container {
    padding: 60px 0;
  }

  .hero-section {
    padding: 80px 0 30px;
  }

  /* Projects on small mobile */
  .tilted-card-figure {
    height: 200px !important;
  }

  .tilted-card-inner {
    height: 160px !important;
  }

  .project-features {
    row-gap: 16px;
  }

  .feature-item {
    padding: 16px;
  }

  .feature-item strong {
    font-size: 14px;
  }

  .feature-item p {
    font-size: 13px;
  }

  .project-tags {
    gap: 6px;
  }

  .project-tag {
    font-size: 11px;
    padding: 3px 10px;
  }

  .glass-card {
    padding: 20px;
  }
}

.projects-showcase {
  max-width: 1200px;
  margin: 0 auto;
}

.project-hero {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.project-hero-image {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 2/1;
  overflow: hidden;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-hero:hover .project-hero-image img {
  transform: scale(1.05);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(139, 92, 246, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-lg);
}

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

/* GitHub badge in project overlay */
.github-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.github-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.github-badge i {
  width: 20px;
  height: 20px;
}

.download-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.download-badge i {
  width: 24px;
  height: 24px;
}

.project-hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-hero-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.project-hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  row-gap: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.feature-item>i {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--accent-primary);
  margin-top: 2px;
}

.feature-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.project-stats .stat {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.project-stats .stat i {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .project-hero-image {
    aspect-ratio: 16/9;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .project-stats {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==================== Pill Navigation Styles ==================== */
.pill-nav-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: max-content;
}

@media (max-width: 768px) {
  .pill-nav-container {
    width: calc(100% - 2rem);
    left: 1rem;
    transform: none;
  }
}

.pill-nav {
  --nav-h: 48px;
  --pill-pad-x: 20px;
  --pill-gap: 4px;
  --base: var(--bg-primary);
  --pill-bg: var(--card-light);
  --hover-text: var(--bg-primary);
  --pill-text: var(--text-primary);

  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .pill-nav {
    width: 100%;
    justify-content: space-between;
  }
}

.pill-logo {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transition: all var(--transition-fast);
}

.pill-logo:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.theme-toggle-btn {
  position: fixed;
  top: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1001;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.theme-toggle-btn .theme-icon {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

body.light-mode .theme-toggle-btn .theme-icon[data-lucide="moon"] {
  display: none;
}

body.light-mode .theme-toggle-btn .theme-icon[data-lucide="sun"] {
  display: block;
}

.theme-toggle-btn .theme-icon[data-lucide="sun"] {
  display: none;
}

/* Theme Transition Overlay */
.theme-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  display: none;
}

.theme-transition.transitioning {
  display: block;
}

.theme-transition::before {
  content: '';
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--ripple-color, #0a0a0f);
  width: 0;
  height: 0;
  will-change: width, height;
  animation: rippleExpand 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rippleExpand {
  0% {
    width: 0;
    height: 0;
  }

  100% {
    width: 300vmax;
    height: 300vmax;
  }
}

/* Smooth color transitions for theme change */
body * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, fill 0.3s ease;
}

.logo-emoji {
  font-size: 24px;
  display: block;
}

.logo-image {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.pill-nav-items {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pill-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: var(--pill-gap);
  margin: 0;
  padding: 4px;
  height: 100%;
}

.pill-list>li {
  display: flex;
  height: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--pill-pad-x);
  background: var(--pill-bg);
  color: var(--pill-text);
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-fast);
}

.pill .hover-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  z-index: 1;
  display: block;
  pointer-events: none;
  will-change: transform;
}

.pill .label-stack {
  position: relative;
  display: inline-block;
  line-height: 1;
  z-index: 2;
}

.pill .pill-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1;
  will-change: transform;
}

.pill .pill-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bg-primary);
  z-index: 3;
  display: inline-block;
  will-change: transform, opacity;
}

.pill.is-active {
  background: var(--accent-secondary);
  color: var(--bg-primary);
}

.pill.is-active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  z-index: 4;
  animation: pulse 2s infinite;
}

.mobile-menu-button {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.01s ease;
  transform-origin: center;
}

.mobile-menu-popover {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-link {
  display: block;
  padding: 14px 20px;
  color: var(--text-primary);
  background: var(--card-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 18px;
  transition: all var(--transition-fast);
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.theme-toggle-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.theme-toggle-floating:hover {
  transform: translateY(-4px) rotate(180deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

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

  /* Move theme toggle to the right so it doesn't overlap the hamburger on the left */
  .theme-toggle-btn {
    left: unset;
    right: 1rem;
  }

  .theme-toggle-floating {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }
}

/* Update hero section padding for new nav */
.hero-section {
  padding-top: 140px;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
  }
}

.mobile-game-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2rem;
}

.control-group {
  display: flex;
  gap: 1rem;
  pointer-events: all;
}

.control-group-left {
  flex-direction: row;
}

.control-group-right {
  flex-direction: column-reverse;
  gap: 1.5rem;
}

.game-control {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.game-control:active,
.game-control.active {
  background: rgba(99, 102, 241, 0.6);
  border-color: rgba(99, 102, 241, 0.8);
  transform: scale(0.9);
}

/* ==================== Target Cursor ==================== */
.target-cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.target-cursor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.target-cursor-corner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  will-change: transform;
}

.corner-tl {
  transform: translate(-150%, -150%);
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  transform: translate(50%, -150%);
  border-left: none;
  border-bottom: none;
}

.corner-br {
  transform: translate(50%, 50%);
  border-left: none;
  border-top: none;
}

.corner-bl {
  transform: translate(-150%, 50%);
  border-right: none;
  border-top: none;
}

.game-control i {
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.control-shoot {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

.control-shoot:active,
.control-shoot.active {
  background: rgba(239, 68, 68, 0.6);
  border-color: rgba(239, 68, 68, 0.8);
}

.control-thrust {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
}

.control-thrust:active,
.control-thrust.active {
  background: rgba(34, 197, 94, 0.6);
  border-color: rgba(34, 197, 94, 0.8);
}

@media (min-width: 768px) {
  .mobile-game-controls {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .game-control {
    width: 60px;
    height: 60px;
  }

  .game-control i {
    width: 24px;
    height: 24px;
  }

  .mobile-game-controls {
    padding: 1rem;
  }
}

/* ==================== Experience Modals ==================== */
.exp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.exp-modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.exp-modal-overlay.active .exp-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.exp-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.exp-modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  transform: rotate(90deg);
}

.exp-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
}

.exp-modal-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.exp-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.exp-modal-company {
  font-size: 15px;
  color: var(--accent-primary);
  font-weight: 600;
}

.exp-modal-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.exp-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-modal-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}