/* Zoom effect for project image */
.thumb img.zoomed {
  transform: scale(1.3);
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
  z-index: 2;
  box-shadow: 0 0 24px 0 #0008;
}
/* =======================================================
   🎨 Portfolio Styles — Jeancarlo Ricardo
   Built with ❤️ using HTML & CSS
   ======================================================= */

/* ---------- 1️⃣ VARIABLES & GLOBAL RESET ---------- */
:root {
  --bg: #0b0b0c;
  --surface: #121214;
  --text: #eaeaf0;
  --muted: #b5b5c2;
  --brand: #ff6a00;
  --brand-2: #00d4ff;
  --card: #17171a;
  --border: #24242a;
  --radius: 14px;
  --maxw: 1100px;
  --thumb-h: 220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% -10%, rgba(0, 212, 255, 0.12), transparent 40%),
              radial-gradient(900px 500px at -10% 10%, rgba(255, 106, 0, 0.10), transparent 40%),
              var(--bg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- 2️⃣ CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 3️⃣ NAVBAR ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: linear-gradient(180deg, rgba(11,11,12,0.75), rgba(11,11,12,0.35));
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  letter-spacing: .3px;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 24px rgba(0, 212, 255, .4);
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

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

.links {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* ---------- 4️⃣ HERO SECTION ---------- */
.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: 1.2fr 1fr;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  color: var(--muted);
  font-size: 13px;
}

.badge .spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 16px rgba(255,106,0,.6);
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 10px 0 12px;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 60ch;
}

.cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), #ff8c3a);
  color: #0b0b0c;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(255, 106, 0, .22);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 106, 0, .28);
}

.btn.ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.06);
}

/* ---------- HERO CODE CARD ---------- */
.hero-card {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--code-shadow) inset;
  transition: all 0.3s ease;
}

.hero-card pre {
  margin: 0;
  color: var(--code-text);
  overflow: auto;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* Code syntax highlighting for light theme */
[data-theme="light"] .hero-card pre {
  color: #1a1a1a;
  font-weight: 500;
}

[data-theme="light"] .hero-card {
  background: #f8f9fa;
  border: 1px solid #e0e4e8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) inset;
}

/* ---------- 5️⃣ SECTION HEADINGS ---------- */
.section {
  padding: 70px 0;
}

.section h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  margin-bottom: 10px;
}

.section .sub {
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- 6️⃣ ABOUT SECTION ---------- */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: 16px;
  line-height: 1.6;
}

.about-text .lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.highlight-item {
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.25);
  transform: translateY(-2px);
}

.highlight-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.highlight-item p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.about-cta {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 32px;
  text-align: center;
}

.about-cta p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- 7️⃣ PROJECTS GRID ---------- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  grid-column: span 12;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  min-height: 260px;
  transition: transform .12s ease, box-shadow .12s ease;
}

/* Smooth reflow when cards stack on small screens */
.card {
  transition: transform 0.32s ease, opacity 0.32s ease, margin 0.32s ease;
  will-change: transform, opacity;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
}

.thumb {
  height: var(--thumb-h);
  min-height: var(--thumb-h);
  max-height: var(--thumb-h);
  border-radius: 10px;
  background: #0e0e12;
  border: 1px dashed #2a2a33;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.card > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- 📱 RESPONSIVE: TABLET & MOBILE ---------- */

/* Tablet styles */
@media (max-width: 900px) {
  :root {
    --thumb-h: 180px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .grid {
    gap: 14px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-card {
    padding: 18px;
  }
  
  .nav .links {
    gap: 20px;
  }
  
  .nav .links a {
    font-size: 15px;
  }
}

/* Mobile styles */
@media (max-width: 640px) {
  :root {
    --thumb-h: 160px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Navigation for mobile */
  .nav {
    height: 56px;
    padding: 0 16px;
  }
  
  .nav .links {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .nav .links a {
    font-size: 14px;
    padding: 6px 8px;
  }
  
  .brand {
    font-size: 16px;
  }
  
  /* Hero section mobile */
  .hero {
    padding: 40px 0 60px;
  }
  
  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero .lead {
    font-size: 16px;
    margin-bottom: 24px;
  }
  
  .badge {
    font-size: 13px;
    padding: 6px 12px;
    margin-bottom: 20px;
  }
  
  .cta {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
    padding: 12px 20px;
  }
  
  .hero-card {
    padding: 12px 16px;
    margin-top: 16px;
    max-width: 100%;
    overflow-x: auto;
  }
  
  .hero-card pre {
    font-size: 12px;
    line-height: 1.3;
    white-space: pre;
    overflow-x: auto;
  }
  
  /* About section mobile */
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
  }
  
  .highlight-item {
    padding: 16px;
  }
  
  .about-text .lead {
    font-size: 17px;
  }

  /* Cards mobile */
  .card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .card > div:nth-child(2) {
    padding-top: 16px;
    justify-content: flex-start;
  }
  .thumb {
    max-width: 100%;
  }

  /* Initial stacked state (hidden/shifted), then show with .stacked--visible */
  .grid.stacked .card {
    opacity: 0;
    transform: translateY(12px);
  }
  .grid.stacked--visible .card {
    opacity: 1;
    transform: translateY(0);
  }
  .grid.stacked--visible .card:nth-child(1) { transition-delay: 0ms; }
  .grid.stacked--visible .card:nth-child(2) { transition-delay: 40ms; }
  .grid.stacked--visible .card:nth-child(3) { transition-delay: 80ms; }
  .grid.stacked--visible .card:nth-child(4) { transition-delay: 120ms; }
  .grid.stacked--visible .card:nth-child(5) { transition-delay: 160ms; }
  .grid.stacked--visible .card:nth-child(6) { transition-delay: 200ms; }
  .grid.stacked--visible .card:nth-child(7) { transition-delay: 240ms; }
  .grid.stacked--visible .card:nth-child(8) { transition-delay: 280ms; }
}

.thumb img:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}
.card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 8px;
  border-radius: 999px;
}

.actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

/* Enhanced mobile styles */
@media (max-width: 480px) {
  /* Extra small mobile */
  .container {
    padding: 0 12px;
  }
  
  .nav {
    height: 52px;
    padding: 0 12px;
  }
  
  .nav .links a {
    font-size: 13px;
    padding: 4px 6px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero-card {
    padding: 8px 12px;
    margin-top: 12px;
    border-radius: 6px;
  }
  
  .hero-card pre {
    font-size: 11px;
    line-height: 1.2;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .card {
    padding: 12px;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Section spacing for mobile */
@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }
  
  .section h2 {
    font-size: 32px;
    margin-bottom: 12px;
  }
  
  .sub {
    font-size: 16px;
    margin-bottom: 32px;
  }
  
  /* About section mobile */
  .about {
    gap: 24px;
  }
  
  .avatar img {
    width: 120px;
    height: 120px;
  }
  
  /* Tech stack mobile */
  .tech-badges {
    gap: 8px;
    justify-content: center;
  }
  
  .tech-badges img {
    height: 22px;
  }
  
  /* Contact section mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .contact-card {
    padding: 20px 16px;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .social-link {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Responsive adjustments */
@media (min-width: 720px) {
  .card { grid-column: span 6; }
}

@media (min-width: 1024px) {
  .card { grid-column: span 4; grid-template-columns: 1fr; }
}

/* ---------- 7️⃣ ABOUT SECTION ---------- */
.about {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25) inset;
}

@media (min-width: 860px) {
  .about { grid-template-columns: 1.2fr 1fr; }
}

/* About section mobile improvements */
@media (max-width: 640px) {
  .about {
    padding: 16px;
    gap: 20px;
  }
  
  .about ul {
    padding-left: 20px;
  }
  
  .about li {
    margin-bottom: 8px;
    font-size: 15px;
  }
}

.about .avatar {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1/1;
  border-radius: 26px;
  background: #0e0e12;
  border: 1px dashed #2a2a33;
  display: grid;
  place-items: center;
  color: var(--muted);
}

#profilePic {
  width: 100%;
  height: 100%;
  border-radius: 26px;
}
/* ---------- 8️⃣ CONTACT SECTION ---------- */
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 9️⃣ FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 26px 0;
  text-align: center;
}

/* ---------- 🔟 ACCESSIBILITY ---------- */
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- 📸 IMAGE MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--brand-2);
}

.zoomable-image:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal navigation */
.modal-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1002;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal-nav:disabled:hover {
  transform: translateY(-50%) scale(1);
  background: rgba(0, 0, 0, 0.7);
}

.modal-counter {
  text-align: center;
  color: white;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive modal */
@media (max-width: 768px) {
  .close {
    top: 10px;
    right: 25px;
    font-size: 30px;
  }
  
  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .modal-nav {
    font-size: 18px;
    padding: 10px 15px;
  }
  
  .modal-prev {
    left: 10px;
  }
  
  .modal-next {
    right: 10px;
  }
}

/* ---------- 🧰 TECH STACK ---------- */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.tech-badges img {
  height: 28px;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: brightness(0.95);
}

.tech-badges img:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* Responsive tech stack */
@media (max-width: 640px) {
  .tech-badges {
    gap: 8px;
    margin-top: 1.5rem;
  }
  
  .tech-badges img {
    height: 24px;
  }
}

/* ---------- 🌙 THEME TOGGLE ---------- */
.theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg);
}

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

/* Light theme variables */
[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --text: #2c3e50;
  --muted: #343a40;
  --card: #f8f9fa;
  --border: #dee2e6;
  --brand: #e65100;
  --brand-2: #0277bd;
  --code-bg: #f1f3f4;
  --code-text: #1a1a1a;
  --code-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Dark theme variables (default) */
[data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #121214;
  --text: #eaeaf0;
  --muted: #b5b5c2;
  --brand: #ff6a00;
  --brand-2: #00d4ff;
  --card: #17171a;
  --border: #24242a;
  --code-bg: #17171a;
  --code-text: #d1f6ff;
  --code-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

[data-theme="light"] .theme-icon::after {
  content: '🌙';
}

/* Enhanced navbar contrast in light mode */
[data-theme="light"] .nav a {
  color: #343a40;
}

[data-theme="light"] .nav a.active,
[data-theme="light"] .nav a:hover {
  color: #212529;
}

[data-theme="light"] .brand {
  color: #2c3e50;
}

[data-theme="dark"] .theme-icon::after {
  content: '☀️';
}

/* ---------- 📞 ENHANCED CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.contact-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 20px;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Primary contact card */
.primary-contact {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: white;
}

.primary-contact h3,
.primary-contact p {
  color: white;
}

/* Social links grid */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  font-size: 14px;
}

.social-link:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
}

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

/* Quick info styling */
.response-info {
  text-align: left;
}

.response-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.response-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.response-item strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.response-item p {
  margin: 4px 0 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Responsive contact */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
  }
  
  .theme-toggle {
    margin-left: 10px;
  }
  
  .contact-card {
    padding: 20px;
  }
}

/* Extra small mobile devices (iPhone SE, small phones) */
@media (max-width: 375px) {
  .container {
    padding: 0 10px;
  }
  
  .hero {
    padding: 30px 0 40px;
  }
  
  .hero h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .hero .lead {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .hero-card {
    padding: 6px 10px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 10px;
  }
  
  .hero-card pre {
    font-size: 10px;
    line-height: 1.1;
  }
  
  .badge {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Touch-friendly improvements for mobile devices */
@media (hover: none) and (pointer: coarse) {
  /* Improve touch targets - minimum 44px for accessibility */
  .nav .links a,
  .theme-toggle,
  .button,
  .card button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  
  /* Add visual feedback for touch interactions */
  .card .thumbnails img {
    transition: transform 0.2s ease;
    touch-action: manipulation;
  }
  
  .card .thumbnails img:active {
    transform: scale(0.95);
  }
  
  .button:active {
    transform: scale(0.98);
  }
  
  /* Disable hover effects on touch devices */
  .card:hover {
    transform: none;
  }
  
  .card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  /* Better spacing for touch */
  .nav .links {
    gap: 16px;
  }
  
  /* Prevent text selection on interactive elements */
  .button,
  .theme-toggle,
  .card button {
    -webkit-user-select: none;
    user-select: none;
  }
}
