:root {
  --primary: #6366f1;
  --secondary: #22d3ee;
  --bg: #020617;
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --blob-1: #1e1b4b;
  --blob-2: #0f766e;
}

/* LIGHT MODE */
html[data-theme="light"] {
  --primary: #4f46e5;
  --secondary: #0891b2;
  --bg: #f8fafc;
  --glass: rgba(99,102,241,0.04);
  --border: rgba(15,23,42,0.1);
  --text: #1e293b;
  --muted: #64748b;
  --blob-1: rgba(79, 70, 229, 0.35);
  --blob-2: rgba(8, 145, 178, 0.35);
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #f1f5f9, #e0e7ff);
  border-right-color: var(--border);
}

html[data-theme="light"] .btn:not(.secondary) {
  color: #ffffff;
}

html[data-theme="light"] .glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99,102,241,0.1);
}

html[data-theme="light"] .project-card:hover {
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,23,42,0.1);
}

html[data-theme="light"] .sidebar-links a:hover,
html[data-theme="light"] .sidebar-links a.active,
html[data-theme="light"] .sidebar-links a.active i {
  color: #ffffff;
}

html[data-theme="light"] .hero > div {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 40px rgba(30, 27, 75, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}

html[data-theme="light"] .social-links a {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

html[data-theme="light"] .social-links a:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-color: var(--primary);
}

html[data-theme="light"] .filter-btn {
  color: var(--text);
  background: rgba(255,255,255,0.6);
}

html[data-theme="light"] .filter-btn.active {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

html { 
  scroll-behavior: smooth;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ============ CUSTOM SCROLLBAR ============ */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: transparent; margin-block: 6px; }
::-webkit-scrollbar-thumb {
  background-color: var(--muted);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--primary); }

/* ============ SCROLL TO TOP BUTTON ============ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50%;
  color: #020617;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99,102,241,0.3);
}

/* ============ DARK MODE TOGGLE ============ */
.dark-mode-toggle,
.reduce-motion-toggle {
  position: absolute;
  top: 11px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50%;
  color: #020617;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
}

.reduce-motion-toggle {
  right: 80px;
}

.dark-mode-toggle:hover,
.reduce-motion-toggle:hover {
  background: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99,102,241,0.6);
}

.dark-mode-toggle i,
.reduce-motion-toggle i {
  transition: transform 0.3s ease;
}

.dark-mode-toggle:hover i,
.reduce-motion-toggle:hover i {
  transform: rotate(15deg);
}

html[data-theme="light"] .dark-mode-toggle,
html[data-theme="light"] .reduce-motion-toggle,
html[data-theme="light"] .mobile-menu-toggle,
html[data-theme="light"] .scroll-to-top {
  color: #ffffff;
}

/* ============ TOOLTIPS ============ */
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255,255,255,0.1);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  top: 125%;
}

.dark-mode-toggle[data-tooltip]::after {
  left: auto;
  right: 0;
  transform: none;
}

/* ============ MOBILE MENU TOGGLE ============ */
.mobile-menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50%;
  color: #020617;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9991;
}

.mobile-menu-toggle:hover {
  background: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99,102,241,0.6);
}

/* ============ SIDEBAR MOBILE OPEN STATE ============ */
.sidebar.open {
  left: 0;
}

/* SIDEBAR NAVIGATION */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 100vh;
  background: linear-gradient(180deg,#050505, rgba(10,12,30,0.6));
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  z-index: 1000;
  transition: all 0.25s ease;
  overflow: auto;
}

/* Brand / Logo */
.sidebar-brand {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #020617;
}

/* Links */
.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.sidebar-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  padding: 8px 4px;
  margin: 0.2rem auto;
  border-radius: 10px;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  transition: all 0.25s ease;
  min-height: 55px;
  gap: 6px;
  word-break: break-word;
}

.sidebar-links i {
  font-size: 1.25rem;
  transition: all 0.25s ease;
}

.sidebar-links span {
  display: block;
  font-size: 0.65rem;
  line-height: 1.1;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #020617;
  box-shadow: 0 8px 20px rgba(99,102,241,0.12);
}

.sidebar-links a.active i {
  color: #020617;
}

.sidebar-links a:hover {
  transform: scale(1.08);
}

.sidebar-links a:hover i {
  transform: scale(1.2) rotate(10deg);
}

.sidebar-links a:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

.sidebar-links a:active i {
  transform: scale(1.2) rotate(-10deg);
  transition: transform 0.1s;
}

/* Footer */
body {
  padding-left: 90px;
}

/* Hide sidebar on small screens */
@media (max-width: 900px) {
  .sidebar {
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    overflow: hidden;
  }

  body {
    padding-left: 0;
    padding-top: 72px;
  }

  .sidebar-links {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
  }

  .sidebar-links a {
    width: auto;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    flex-direction: row;
    gap: 8px;
  }

  .sidebar-links i {
    font-size: 1rem;
  }

  .sidebar-brand {
    margin-right: 8px;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 15% 15%, var(--blob-1), transparent 40%),
              radial-gradient(circle at 85% 15%, var(--blob-2), transparent 40%),
              var(--bg);
  background-size: 150% 150%;
  background-attachment: fixed;
  animation: bgAnimate 15s ease infinite alternate;
  color: var(--text);
  line-height: 1.6;

  min-width: 340px;}

@keyframes bgAnimate {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ============ REDUCE MOTION UTILITY ============ */
body.no-animations *,
body.no-animations *::before,
body.no-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

  /* Keep overflow available without overriding themed sidebar above */
  .sidebar { overflow: auto; }

section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;}

h1, h2, h3 { font-weight: 800;}
h2 { font-size: 2.4rem; margin-bottom: 30px;}
p { color: var(--muted);}

a { text-decoration: none; color: inherit;}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;}

.hero > div {
  padding: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 90%;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;}

.hero p { font-size: 1.1rem; margin-top: 12px;}

.hero-buttons { margin-top: 40px;}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #020617;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(99,102,241,0.35);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(99,102,241,0.5);
}

#contact .btn {
  padding: 15px 40px;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;
  margin: 12px auto 0;
  box-shadow: 0 12px 35px rgba(99,102,241,0.4);
  letter-spacing: 0.5px;
}

#contact .btn:hover {
  box-shadow: 0 20px 50px rgba(99,102,241,0.55);
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 20px;}

/* ABOUT */
#about p { max-width: 720px; font-size: 1.05rem;}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;}

.badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  font-size: 0.9rem;}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;}
.project-card {
  overflow: hidden;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.4s;
  opacity: 0;
  transform: translateY(30px);
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}
.project-card.show {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);}
.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;}
.project-content { padding: 24px;}
.project-content h3 { margin-bottom: 10px;}
.project-links a {
  margin-right: 14px;
  font-size: 0.9rem;
  color: var(--secondary);}

/* PROJECT FILTERS */
.project-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.filter-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #020617;
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99,102,241,0.2);
}

  /* RESUME SECTION */
#resume {
  text-align: center;
}

.resume-card {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 32px;
}

.resume-card p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.resume-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;}
.skill-box { padding: 28px;}

/* CONTACT */
.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(99,102,241,0.15);
  border: 1px solid var(--border);
  color: var(--secondary);
  font-weight: 600;
  transition: all 0.3s;
}

.social-links a:hover {
  background: rgba(99,102,241,0.25);
  transform: translateY(-2px);
}

#contact form {
  max-width: 520px;
  padding: 28px;
  display: grid;
  gap: 18px;
  margin: auto;
}

input, textarea {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  resize: vertical;
 max-height: 260px;
 min-height: 60px;}

.form-message {
  text-align: center;
  font-weight: 600;
  min-height: 24px;
  margin-top: 8px;
}


/* FOOTER */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  border-top: 1px solid var(--border);}

/* ============ FADE-IN ANIMATION ============ */

/* ============ PROJECT MODAL ============ */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 30px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Custom Animated Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
  width: 12px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 15px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--muted);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2001;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.modal-close:hover { 
  background: #ef4444; 
  color: white; 
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  border-color: #ef4444;
}

.modal-body h3 { margin-bottom: 15px; color: var(--primary); }
.modal-body ul { margin-left: 20px; margin-bottom: 15px; list-style-type: disc; }
.modal-body li { margin-bottom: 8px; color: var(--muted); }
.modal-body p { margin-bottom: 15px; }
.modal-body strong { color: var(--text); font-weight: 700; }

h2, .hero p, .hero-buttons, .skill-box, .badge, form {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* MAIN HEADER */
.main-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 90px;
  width: calc(100% - 90px);
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 900;
}

.main-header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .main-header {
    left: 0;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
    top: 14px;
    left: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar {
    width: 260px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 20px;
    border-right: 1px solid var(--border);
    border-bottom: none;
    left: -100%;
    position: fixed;
    top: 0;
  }

  .dark-mode-toggle {
    position: absolute;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  
  .reduce-motion-toggle {
    right: 70px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  body {
    padding-left: 0;
  }

  body {
    padding-top: 72px;
  }

  .sidebar-brand {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-right: 16px;
  }

  .sidebar-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }

  .sidebar-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    flex-direction: row;
    gap: 12px;
    min-height: 50px;
    justify-content: flex-start;
  }

  .sidebar-links span {
    display: block;
  }

  .sidebar-links i {
    font-size: 1rem;
  }
  section {
    padding: 60px 16px;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  /* HERO MOBILE */
  .hero {
    min-height: 80vh;
    padding: 20px;
  }

  .hero > div {
    padding: 24px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* ABOUT MOBILE */
  #about p {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .tech-stack {
    gap: 10px;
  }

  .badge {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  /* PROJECTS MOBILE */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card img {
    height: 160px;
  }

  .project-card:hover {
    transform: translateY(-4px);
  }

  .project-content {
    padding: 16px;
  }

  .project-links a {
    margin-right: 12px;
    font-size: 0.85rem;
  }

  /* PROJECTS MOBILE */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card img {
    height: 160px;
  }

  .project-card:hover {
    transform: translateY(-4px);
  }

  .project-content {
    padding: 16px;
  }

  .project-filters {
    justify-content: center;
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .scroll-to-top {
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  /* SKILLS MOBILE */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .skill-box {
    padding: 20px;
  }

  .skill-box h3 {
    font-size: 1.1rem;
  }

  /* CONTACT MOBILE */
  #contact form {
    max-width: 100%;
    padding: 20px;
    gap: 14px;
  }

  input, textarea {
    padding: 12px;
    font-size: 16px;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .social-links a {
    padding: 10px;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px) {
  section {
    padding: 50px 12px;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .project-content {
    padding: 12px;
  }

  .project-content h3 {
    font-size: 1rem;
  }

  .project-content p {
    font-size: 0.85rem;
  }

  footer {
    padding: 30px 12px;
    font-size: 0.85rem;
  }
}