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

:root {
  --bg: #000000;
  --text: #ededed;
  --text-muted: #a3a3a3;
  --text-dim: #737373;
  --border: #262626;
  --card-bg: rgba(15, 15, 15, 0.8);
  --glow: rgba(255, 255, 255, 0.15);
  --glow-bright: rgba(255, 255, 255, 0.3);
}

/* Light Mode - Complete Inversion */
body.light-mode {
  --bg: #ffffff;
  --text: #121212;
  --text-muted: #5c5c5c;
  --text-dim: #8c8c8c;
  --border: #d9d9d9;
  --card-bg: rgba(240, 240, 240, 0.8);
  --glow: rgba(0, 0, 0, 0.15);
  --glow-bright: rgba(0, 0, 0, 0.3);
}

body.light-mode .verified-badge {
  background: linear-gradient(135deg, #e5e5e5, #cccccc);
  color: #000;
}

/* Light Mode Navbar */
body.light-mode .nav-wrapper {
  background: rgba(240, 240, 240, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-icon::before {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-icon-active {
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Light Mode Status Badges */
body.light-mode .status-badge {
  background: rgba(240, 240, 240, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .status-badge:hover {
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body.light-mode .badge-close {
  color: var(--text-muted);
}

body.light-mode .badge-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

/* Light Mode Footer Buttons */
body.light-mode .footer-btn {
  background: rgba(240, 240, 240, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

body.light-mode .footer-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

body.light-mode .visitor-badge {
  background: rgba(240, 240, 240, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
}

body.light-mode .visitor-count {
  color: var(--text);
}

body.light-mode .visitor-text {
  color: var(--text-dim);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* ===========================
   STARFIELD BACKGROUND
   =========================== */
.stars,
.stars2,
.stars3 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-size: 400px 400px;
  opacity: 0.6;
  mix-blend-mode: screen;
  z-index: 0;
}

.stars {
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8) 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 10%, rgba(255, 255, 255, 0.7) 50%, transparent 60%),
    radial-gradient(2px 2px at 40% 80%, rgba(255, 255, 255, 0.9) 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255, 255, 255, 0.75) 50%, transparent 60%),
    radial-gradient(2px 2px at 10% 70%, rgba(255, 255, 255, 0.7) 50%, transparent 60%);
  animation: starDrift 120s linear infinite;
}

.stars2 {
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(255, 255, 255, 0.6) 50%, transparent 60%),
    radial-gradient(1.2px 1.2px at 50% 50%, rgba(255, 255, 255, 0.5) 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 25%, rgba(255, 255, 255, 0.55) 50%, transparent 60%),
    radial-gradient(1.2px 1.2px at 30% 60%, rgba(255, 255, 255, 0.6) 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 65% 85%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  animation: starDrift 160s linear infinite;
}

.stars3 {
  background-image:
    radial-gradient(1px 1px at 25% 15%, rgba(255, 255, 255, 0.4) 50%, transparent 60%),
    radial-gradient(1px 1px at 60% 30%, rgba(255, 255, 255, 0.35) 50%, transparent 60%),
    radial-gradient(1px 1px at 75% 70%, rgba(255, 255, 255, 0.4) 50%, transparent 60%),
    radial-gradient(1px 1px at 35% 85%, rgba(255, 255, 255, 0.35) 50%, transparent 60%),
    radial-gradient(1px 1px at 90% 50%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  animation: starDrift 200s linear infinite;
}

@keyframes starDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-200px, -200px, 0);
  }
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translateX(-50%) translateY(-150%);
  opacity: 0;
  pointer-events: none;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 12px 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.nav-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-icon:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.nav-icon:hover::before {
  opacity: 1;
}

.nav-icon-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.nav-icon svg {
  position: relative;
  z-index: 1;
}

#themeToggle {
  transition: transform 0.3s ease;
}

#themeToggle:hover {
  transform: scale(1.1);
}

.theme-icon {
  transition: opacity 0.3s ease;
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

body.light-mode .sun-icon {
  display: none;
}

body.light-mode .moon-icon {
  display: block;
}

/* Old header styles - keep for compatibility */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.brand {
  font-size: 20px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 0 40px;
  position: relative;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 900px;
}

/* NPX Command */
.npx-command {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  animation: slideDown 0.8s ease-out;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.npx-label {
  font-size: 13px;
  color: var(--text-dim);
}

.npx-code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 4px;
}

.npx-copy {
  padding: 4px 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.npx-copy:hover {
  transform: scale(1.1);
}

/* Hero Card */
.hero-card {
  width: 100%;
  max-width: 900px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 80px var(--glow);
  animation: fadeInUp 1s ease-out;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0;
  animation: pulse 3s ease-in-out infinite;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
  transition: all 0.25s ease;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.card-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-dim);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px var(--glow);
}

/* Click Indicator */
.click-indicator {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  animation: bounce 2s ease-in-out infinite;
  pointer-events: none;
}

.click-arrow {
  font-size: 16px;
}

/* Profile Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  border: none;
  margin-bottom: 6px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 40px var(--glow);
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 60px var(--glow-bright);
}

.profile-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  color: #000;
  border-radius: 50%;
  font-size: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.profile-title {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.profile-email {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.profile-email:hover {
  color: var(--text);
  text-decoration: underline;
}

.profile-bio {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 0 20px;
}

/* Status Badges */
.status-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.badge-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  outline: none;
}

.badge-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.status-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--glow);
}

.badge-icon {
  font-size: 20px;
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.badge-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.spotify-badge .badge-icon {
  color: #1DB954;
}

.spotify-badge:hover {
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.3);
}

/* ===========================
   GITHUB SECTION
   =========================== */
.github-section {
  padding: 40px 0;
}

/* ===========================
   GITHUB ACTIVITY SECTION
   =========================== */
.github-section {
  padding: 40px 0;
}

.github-graph {
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.light-mode .github-graph {
  background: rgba(240, 240, 240, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.graph-header {
  margin-bottom: 16px;
}

.graph-months {
  display: flex;
  justify-content: space-between;
  padding-left: 40px;
  font-size: 11px;
  color: var(--text-dim);
}

.graph-body {
  display: flex;
  gap: 8px;
}

.graph-days {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 4px;
}

.graph-grid {
  display: grid;
  grid-template-rows: repeat(7, 10px);
  grid-auto-flow: column;
  gap: 2px;
  flex: 1;
}

.graph-cell {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.graph-cell:hover {
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}

.graph-cell.level-0 {
  background: rgba(255, 255, 255, 0.05);
}

.graph-cell.level-1 {
  background: rgba(255, 255, 255, 0.2);
}

.graph-cell.level-2 {
  background: rgba(255, 255, 255, 0.4);
}

.graph-cell.level-3 {
  background: rgba(255, 255, 255, 0.6);
}

.graph-cell.level-4 {
  background: rgba(255, 255, 255, 0.9);
}

.graph-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
}

.contribution-count {
  color: var(--text-muted);
}

.graph-legend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-colors {
  display: flex;
  gap: 3px;
  margin: 0 8px;
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-box.level-0 {
  background: rgba(255, 255, 255, 0.05);
}

.legend-box.level-1 {
  background: rgba(255, 255, 255, 0.2);
}

.legend-box.level-2 {
  background: rgba(255, 255, 255, 0.4);
}

.legend-box.level-3 {
  background: rgba(255, 255, 255, 0.6);
}

.legend-box.level-4 {
  background: rgba(255, 255, 255, 0.9);
}

/* Light mode GitHub graph */
body.light-mode .graph-cell {
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .graph-cell:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .graph-cell.level-0 {
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .graph-cell.level-1 {
  background: rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .graph-cell.level-2 {
  background: rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .graph-cell.level-3 {
  background: rgba(0, 0, 0, 0.5) !important;
}

body.light-mode .graph-cell.level-4 {
  background: rgba(0, 0, 0, 0.8) !important;
}

body.light-mode .legend-box.level-0 {
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .legend-box.level-1 {
  background: rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .legend-box.level-2 {
  background: rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .legend-box.level-3 {
  background: rgba(0, 0, 0, 0.5) !important;
}

body.light-mode .legend-box.level-4 {
  background: rgba(0, 0, 0, 0.8) !important;
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.projects-section {
  padding: 40px 0;
}

.projects-scroll-wrapper {
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

.projects-scroll {
  display: flex;
  gap: 20px;
  padding: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
}

/* Navigation Buttons */
.projects-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.projects-nav-prev {
  left: 0;
}

.projects-nav-next {
  right: 0;
}

.projects-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.projects-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.project-card {
  min-width: 420px;
  max-width: 420px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.card-preview {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 32px 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.card-preview--image {
  padding: 0;
  height: 220px;
  background: #0a0a0a;
}

.card-preview--image::before {
  display: none;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.project-card:hover .preview-img {
  transform: scale(1.03);
}

.preview-content {
  position: relative;
  z-index: 1;
}

.preview-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.preview-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.search-demo {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-demo input {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  width: 100%;
  outline: none;
}

.search-demo input::placeholder {
  color: var(--text-dim);
}

.search-shortcut {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  flex-shrink: 0;
}

.search-icon {
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-tech {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

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

.tech-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Card Link Buttons */
.card-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.card-link-primary {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.card-link-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.card-link-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-link-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.card-link-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* Light mode project cards */
body.light-mode .project-card {
  background: rgba(240, 240, 240, 0.6);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .project-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body.light-mode .card-preview {
  background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .card-preview::before {
  background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.03), transparent 70%);
}

body.light-mode .card-preview--image {
  background: #f0f0f0;
}

body.light-mode .search-demo {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .search-demo input {
  color: var(--text-muted);
}

body.light-mode .search-demo input::placeholder {
  color: var(--text-muted);
}

body.light-mode .search-shortcut {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

body.light-mode .tech-icon {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .tech-icon:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .projects-nav-btn {
  background: rgba(240, 240, 240, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

body.light-mode .projects-nav-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.light-mode .card-link-primary {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

body.light-mode .card-link-primary:hover {
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.light-mode .card-link-secondary {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .card-link-secondary:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.04);
}

.projects-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 16px;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: #fff;
}

.invoice-preview {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  padding: 56px 32px;
}

.invoice-buttons {
  display: flex;
  gap: 12px;
}

.btn-preview {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preview:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-preview-secondary {
  background: transparent;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preview-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-tech {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.tech-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.projects-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: #fff;
}

.project-item {
  min-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}

.project-item:hover {
  border-color: var(--text-dim);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.project-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.project-btn {
  font-size: 13px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  transition: all 0.2s;
}

.project-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.project-exit {
  font-size: 13px;
  color: var(--text-dim);
}

.project-exit:hover {
  text-decoration: underline;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.tech-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

.tag {
  font-size: 12px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.projects-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}

.projects-note a {
  color: var(--text-muted);
  text-decoration: underline;
}

.projects-note a:hover {
  color: var(--text);
}

/* ===========================
   STACK SECTION
   =========================== */
.stack-section {
  padding: 30px 0;
}

.stack-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.stack-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 8px;
}

.stack-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stack-icon text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stack-icon:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-section {
  padding: 40px 0;
}

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

.contact-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===========================
  ANIMATIONS
  =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

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

@keyframes float {

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

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

@keyframes pulse {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes bounce {

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

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

/* ===========================
   CONTACT SECTION REDESIGN
   =========================== */
.contact-section {
  padding: 40px 0;
  text-align: center;
}

.section-title-center {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.contact-wrapper {
  max-width: 700px;
  margin: 0 auto 40px;
}

.contact-text-block {
  margin-bottom: 24px;
}

.contact-para {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.quote-italic {
  font-size: 16px;
  font-style: italic;
  color: var(--text-dim);
  margin: 0;
  padding: 0;
}

/* ===========================
   CALENDAR BOOKING MODAL
   =========================== */
.calendar-booking {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.calendar-booking.active {
  display: flex;
}

.calendar-container {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 0;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.booking-sidebar {
  padding: 32px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.5);
}

.booking-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.booking-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.booking-name {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.booking-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

.booking-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.calendar-main {
  padding: 32px;
}

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

.calendar-month {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.calendar-month span {
  color: var(--text-dim);
  font-weight: 400;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.calendar-grid {
  margin-bottom: 20px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.calendar-day.selected {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.calendar-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.timeslots-panel {
  padding: 32px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.5);
  overflow-y: auto;
}

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

.selected-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.time-format-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 2px;
}

.format-btn {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.format-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.timeslots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeslot {
  padding: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeslot:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.calendar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* ===========================
   FOOTER REDESIGN
   =========================== */
.site-footer {
  padding: 40px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  transform: translateY(-2px);
}

.visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 14px;
}

.visitor-count {
  font-weight: 600;
  color: var(--text);
}

.visitor-text {
  color: var(--text-dim);
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

/* ===========================
   RESPONSIVE - MOBILE OPTIMIZATIONS
   =========================== */

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  .calendar-container {
    grid-template-columns: 1fr;
    max-height: 80vh;
    overflow-y: auto;
  }

  .booking-sidebar,
  .timeslots-panel {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .github-graph {
    overflow-x: auto;
  }

  .graph-grid {
    min-width: 600px;
  }
}

/* Tablets & Large Phones */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .section-title-center {
    font-size: 28px;
  }

  /* Navbar */
  .navbar {
    top: 10px;
    width: calc(100% - 24px);
    max-width: 500px;
  }

  .nav-wrapper {
    padding: 8px 12px;
    gap: 2px;
  }

  .nav-icon {
    width: 40px;
    height: 40px;
  }

  /* Hero Section */
  .hero {
    padding: 90px 0 30px;
  }

  .npx-command {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 14px;
    gap: 8px;
  }

  .npx-label,
  .npx-code {
    font-size: 12px;
  }

  .hero-card {
    padding: 24px 20px;
  }

  .card-header {
    margin-bottom: 16px;
  }

  .click-indicator {
    margin-bottom: 16px;
  }

  .click-text {
    font-size: 12px;
  }

  .profile-avatar {
    width: 90px;
    height: 90px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-title {
    font-size: 13px;
  }

  .profile-email {
    font-size: 13px;
    padding: 8px 14px;
  }

  .profile-bio {
    font-size: 14px;
  }

  .status-badges {
    flex-direction: column;
    gap: 10px;
  }

  .status-badge {
    width: 100%;
  }

  /* GitHub Section */
  .github-section {
    padding: 40px 0;
  }

  .graph-header {
    margin-bottom: 12px;
  }

  .graph-months span {
    font-size: 10px;
  }

  .graph-days span {
    font-size: 10px;
  }

  .contribution-count {
    font-size: 11px;
  }

  /* Projects Section */
  .projects-scroll-wrapper {
    margin: 0 -20px;
    padding: 0 20px;
  }

  .project-card {
    min-width: 320px;
  }

  .card-preview {
    height: 180px;
  }

  .preview-title {
    font-size: 18px;
  }

  .preview-subtitle {
    font-size: 12px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-description {
    font-size: 13px;
  }

  .tech-label {
    font-size: 10px;
  }

  .tech-icon {
    font-size: 16px;
  }

  .projects-note {
    font-size: 13px;
  }

  /* Stack Section */
  .stack-wrapper {
    gap: 16px;
  }

  .stack-icon {
    width: 48px;
    height: 48px;
  }

  /* Contact Section */
  .contact-para {
    font-size: 15px;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

  .quote-italic {
    font-size: 14px;
  }

  /* Calendar Modal */
  .calendar-booking {
    padding: 10px;
  }

  .calendar-main {
    padding: 20px;
  }

  .calendar-header {
    margin-bottom: 16px;
  }

  .calendar-month {
    font-size: 18px;
  }

  .calendar-day {
    font-size: 13px;
  }

  .timeslots-panel {
    padding: 20px;
  }

  .booking-sidebar {
    padding: 20px;
  }

  .booking-title {
    font-size: 20px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-btn,
  .visitor-badge {
    font-size: 13px;
    padding: 10px 20px;
  }

  .footer-social {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .social-link {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .section-title-center {
    font-size: 24px;
  }

  /* Navbar */
  .navbar {
    top: 8px;
    width: calc(100% - 16px);
  }

  .nav-wrapper {
    padding: 6px 8px;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-icon {
    width: 36px;
    height: 36px;
  }

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

  /* Hero Section */
  .hero {
    padding: 75px 0 25px;
  }

  .npx-command {
    padding: 8px 12px;
    font-size: 11px;
  }

  .npx-code {
    font-size: 11px;
    padding: 3px 8px;
  }

  .npx-copy {
    font-size: 14px;
  }

  .hero-card {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .card-header {
    margin-bottom: 12px;
  }

  .card-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .click-indicator {
    margin-bottom: 12px;
  }

  .click-arrow {
    font-size: 20px;
  }

  .click-text {
    font-size: 11px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 20px;
  }

  .verified-badge {
    font-size: 12px;
    width: 18px;
    height: 18px;
  }

  .profile-title {
    font-size: 12px;
  }

  .profile-email {
    font-size: 12px;
    padding: 7px 12px;
  }

  .profile-bio {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .status-badges {
    gap: 8px;
  }

  .status-badge {
    padding: 10px 12px;
  }

  .badge-icon {
    font-size: 18px;
  }

  .badge-label {
    font-size: 10px;
  }

  .badge-value {
    font-size: 13px;
  }

  .badge-close {
    width: 20px;
    height: 20px;
  }

  .badge-close svg {
    width: 12px;
    height: 12px;
  }

  /* GitHub Section */
  .github-section {
    padding: 30px 0;
  }

  .graph-header {
    margin-bottom: 10px;
  }

  .graph-months {
    gap: 8px;
  }

  .graph-months span {
    font-size: 9px;
  }

  .graph-days span {
    font-size: 9px;
  }

  .graph-cell {
    width: 8px;
    height: 8px;
  }

  .contribution-count {
    font-size: 10px;
  }

  .graph-legend {
    gap: 6px;
    font-size: 10px;
  }

  .legend-box {
    width: 8px;
    height: 8px;
  }

  /* Projects Section */
  .projects-section {
    padding: 30px 0;
  }

  .projects-scroll-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .project-card {
    min-width: 280px;
  }

  .card-preview {
    height: 160px;
    border-radius: 8px;
  }

  .preview-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .preview-subtitle {
    font-size: 11px;
  }

  .search-demo input {
    font-size: 11px;
    padding: 8px 12px;
  }

  .search-icon,
  .search-shortcut {
    font-size: 11px;
  }

  .card-content {
    padding: 14px;
  }

  .card-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .card-description {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .tech-label {
    font-size: 9px;
    margin-bottom: 8px;
  }

  .tech-icons {
    gap: 8px;
  }

  .tech-icon {
    font-size: 14px;
  }

  .projects-note {
    font-size: 12px;
    margin-top: 16px;
  }

  /* Stack Section */
  .stack-section {
    padding: 30px 0;
  }

  .stack-wrapper {
    gap: 12px;
  }

  .stack-icon {
    width: 40px;
    height: 40px;
  }

  .stack-icon svg {
    width: 28px;
    height: 28px;
  }

  /* Contact Section */
  .contact-section {
    padding: 30px 0;
  }

  .contact-wrapper {
    margin-bottom: 30px;
  }

  .contact-para {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .contact-buttons {
    margin-bottom: 24px;
  }

  .contact-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .contact-btn svg {
    width: 16px;
    height: 16px;
  }

  .quote-italic {
    font-size: 13px;
  }

  /* Calendar Modal */
  .calendar-booking {
    padding: 8px;
  }

  .calendar-container {
    border-radius: 12px;
    max-height: 85vh;
  }

  .calendar-main {
    padding: 16px;
  }

  .calendar-header {
    margin-bottom: 12px;
  }

  .calendar-month {
    font-size: 16px;
  }

  .calendar-nav-btn {
    width: 28px;
    height: 28px;
  }

  .calendar-nav-btn svg {
    width: 14px;
    height: 14px;
  }

  .weekday {
    font-size: 10px;
    padding: 6px 0;
  }

  .calendar-days {
    gap: 6px;
  }

  .calendar-day {
    font-size: 12px;
    border-radius: 6px;
  }

  .timeslots-panel {
    padding: 16px;
  }

  .timeslots-header {
    margin-bottom: 16px;
  }

  .selected-date {
    font-size: 14px;
  }

  .format-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .timeslot {
    padding: 10px;
    font-size: 13px;
  }

  .booking-sidebar {
    padding: 16px;
  }

  .booking-avatar {
    width: 36px;
    height: 36px;
  }

  .booking-name {
    font-size: 13px;
  }

  .booking-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .booking-details {
    gap: 12px;
  }

  .booking-detail {
    font-size: 13px;
  }

  .booking-detail svg {
    width: 14px;
    height: 14px;
  }

  .calendar-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .calendar-close svg {
    width: 20px;
    height: 20px;
  }

  /* Footer */
  .site-footer {
    padding: 30px 0 20px;
  }

  .footer-top {
    margin-bottom: 30px;
    gap: 16px;
  }

  .footer-btn,
  .visitor-badge {
    font-size: 12px;
    padding: 8px 16px;
  }

  .footer-btn svg,
  .visitor-badge svg {
    width: 16px;
    height: 16px;
  }

  .footer-social {
    gap: 8px;
  }

  .social-link {
    font-size: 12px;
    padding: 7px 12px;
  }

  .social-link svg {
    width: 16px;
    height: 16px;
  }

  .footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
  }

  .footer-copyright {
    font-size: 11px;
  }
}

/* Extra Small Phones */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .navbar {
    width: calc(100% - 12px);
  }

  .nav-icon {
    width: 32px;
    height: 32px;
  }

  .nav-icon svg {
    width: 16px;
    height: 16px;
  }

  .hero-card {
    padding: 16px 12px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
  }

  .profile-name {
    font-size: 18px;
  }

  .project-card {
    min-width: 260px;
  }

  .stack-icon {
    width: 36px;
    height: 36px;
  }

  .stack-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* Landscape Mode for Phones */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    padding: 80px 0 20px;
  }

  .section {
    padding: 30px 0;
  }

  .calendar-container {
    max-height: 90vh;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .status-badges {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

  /* Increase tap targets for better touch accessibility */
  .nav-icon {
    min-width: 44px;
    min-height: 44px;
  }

  .contact-btn {
    min-height: 44px;
  }

  .calendar-day {
    min-height: 36px;
  }

  .timeslot {
    min-height: 44px;
  }

  /* Remove hover effects that don't work on touch */
  .nav-icon:hover,
  .card-preview:hover,
  .stack-icon:hover,
  .contact-btn:hover {
    transform: none;
  }

  /* Add active states for touch feedback */
  .nav-icon:active {
    transform: scale(0.95);
  }

  .contact-btn:active {
    transform: scale(0.98);
  }
}