/* CSS Variables for theming */
:root {
  --background: 255 255 255;
  --foreground: 15 23 42;
  --muted: 248 250 252;
  --muted-foreground: 71 85 105;
  --card: 255 255 255;
  --border: 226 232 240;
  --primary: 99 102 241;
  --primary-foreground: 255 255 255;
}

.dark {
  --background: 2 6 23;
  --foreground: 226 232 240;
  --muted: 15 23 42;
  --muted-foreground: 148 163 184;
  --card: 2 6 23;
  --border: 30 41 59;
  --primary: 129 140 248;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(to bottom, rgb(var(--background)), rgb(var(--muted) / 0.4));
  color: rgb(var(--foreground));
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1001; /* highest z-index to stay on top */
  border-bottom: 1px solid rgb(var(--border) / 0.6);
  background: rgb(var(--background) / 0.7);
  backdrop-filter: blur(10px);
}

.nav-container {
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: rgb(var(--foreground));
  padding: 0.375rem 0.625rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease;
}

.nav-logo:hover {
  background: rgb(var(--muted));
}

.nav-logo i {
  font-size: 1rem;
}

.home-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.nav-logo h2 {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
}

.nav-menu {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.nav-link {
  color: rgb(var(--foreground));
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link, .theme-toggle {
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: rgb(var(--foreground));
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.25rem;
}

.social-link:hover, .theme-toggle:hover {
  background: rgb(var(--muted));
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: rgb(var(--foreground));
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 3.5rem 0 3rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(var(--primary) / 0.1) 0%, transparent 50%, rgb(147 51 234 / 0.1) 100%);
  z-index: -1;
}

.hero-container {
  width: 100%;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column-reverse;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  border: 1px solid rgb(var(--border));
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
  background: rgb(var(--background) / 0.7);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  font-size: 0.78em;
}

.highlight {
  color: rgb(var(--primary));
}

.hero-description {
  font-size: 1rem;
  color: rgb(var(--muted-foreground));
  max-width: 65ch;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgb(var(--border));
}

.btn-primary {
  background: rgb(var(--primary) / 0.1);
  color: rgb(var(--foreground));
}

.btn-primary:hover {
  background: rgb(var(--primary) / 0.2);
}

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

.btn-secondary:hover {
  background: rgb(var(--muted));
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  background: rgb(var(--background) / 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--border));
}

/* Hero Card */
.hero-card {
  flex: 1;
  width: 100%;
}

.profile-card {
  background: rgb(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: box-shadow 0.2s ease;
  position: relative;
}

.profile-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgb(0 0 0 / 0.05));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.profile-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-info p {
  color: rgb(var(--muted-foreground));
  margin-bottom: 0.5rem;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.profile-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgb(var(--primary) / 0.3), rgb(147 51 234 / 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat-item {
  border: 1px solid rgb(var(--border));
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
}

/* Sections */
.section {
  padding: 3rem 0;
  scroll-margin-top: 6rem;
}

.section-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-intro {
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
  max-width: 50ch;
  line-height: 1.4;
  flex-shrink: 1;
}

/* Improve contrast for section one-liners in dark mode */
.dark .section-intro {
  color: rgb(var(--foreground));
  opacity: 0.9;
}

/* Slightly brighten hero description in dark mode */
.dark .hero-description {
  color: rgb(var(--foreground));
  opacity: 0.85;
}

/* About */
.about-content p {
  margin-bottom: 1rem;
  color: rgb(var(--foreground));
}

/* Timeline */
.timeline {
  position: relative;
  border-left: 1px solid rgb(var(--border));
}

.timeline-item {
  position: relative;
  margin-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: -0.75rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: rgb(var(--background));
  border: 2px solid rgb(var(--border));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgb(var(--muted-foreground));
  z-index: 2; /* ensure marker sits above the card */
}

.timeline-content {
  background: rgb(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.timeline-content:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.timeline-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgb(0 0 0 / 0.05));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.experience-header h3 {
  font-weight: 600;
}

.experience-header p {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.period {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.experience-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.experience-bullets li {
  margin-bottom: 0.25rem;
}

/* In-card role progression (promotions within same company) */
.role-timeline {
  position: relative;
  border-left: 2px dashed rgb(var(--border));
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.role-step {
  position: relative;
  margin-bottom: 1rem;
}

.role-step:last-child { margin-bottom: 0; }

.role-marker {
  display: none;
}

.role-marker--plain {
  background: rgb(var(--primary));
  border-color: rgb(var(--primary));
  color: transparent;
}

.role-title {
  font-weight: 600;
}

.role-period {
  font-size: 0.8rem;
  color: rgb(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.promotion-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgb(var(--foreground));
  background: rgb(var(--primary) / 0.1);
  border: 1px solid rgb(var(--primary) / 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.previous-roles { margin-top: 0.5rem; }

/* Custom summary toggle (+/-) and hide native marker */
summary.previous-summary { list-style: none; cursor: pointer; }
summary.previous-summary::-webkit-details-marker { display: none; }
summary.previous-summary::marker { content: ''; }

.previous-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgb(var(--foreground));
  background: rgb(var(--primary) / 0.1);
  border: 1px solid rgb(var(--primary) / 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.previous-summary .toggle::before { content: '+'; font-weight: 700; width: 0.75rem; display: inline-block; text-align: center; }
details[open] .previous-summary .toggle::before { content: '\2212'; }

/* Projects */
.projects-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-row {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.filter-label {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 18rem;
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(var(--muted-foreground));
  font-size: 1rem;
}

.search-box input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  font-size: 0.875rem;
  outline: none;
}

/* Dark mode typing color for project search */
.dark .search-box input {
  color: #ffffff;
  caret-color: #ffffff;
}
.dark .search-box input::placeholder {
  color: rgb(var(--muted-foreground));
}

.search-box input:focus {
  box-shadow: 0 0 0 4px rgb(var(--primary) / 0.3);
}

#tagFilter {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  font-size: 0.875rem;
  outline: none;
  min-width: 11rem;
  font-weight: 500;
}

/* Improve contrast in dark mode for filter label and select */
.dark .filter-label { color: rgb(var(--foreground)); }
/* Tech filter (custom dropdown with grid) */
.tech-filter { position: relative; }
.tech-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border: 1px solid rgb(var(--border));
  border-radius: 1rem; background: rgb(var(--background)); color: rgb(var(--foreground));
}
.dark .tech-toggle { background: rgb(var(--card) / 0.2); box-shadow: 0 0 0 1px rgb(var(--border) / 0.6) inset; }
.tech-menu {
  position: absolute; left: 0; top: calc(100% + 0.5rem);
  background: rgb(var(--background)); color: rgb(var(--foreground));
  border: 1px solid rgb(var(--border)); border-radius: 0.75rem; padding: 0.75rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.15); width: min(calc(100vw - 2rem), 240px);
  max-height: 360px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  z-index: 20;
}
.dark .tech-menu { background: rgb(var(--card)); }
.tech-filter * { pointer-events: auto; }
.tech-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.tech-item {
  padding: 0.5rem 0.75rem; border: 1px solid rgb(var(--border)); border-radius: 0.75rem;
  background: rgb(var(--background)); color: rgb(var(--foreground)); cursor: pointer; font-size: 0.875rem;
  width: 100%; text-align: left; word-wrap: break-word; white-space: normal;
}
.tech-item:hover { background: rgb(var(--muted)); }

/* Focus styles for accessibility */
#tagFilter:focus, .search-box input:focus {
  box-shadow: 0 0 0 4px rgb(var(--primary) / 0.25);
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  background: transparent;
  color: rgb(var(--foreground));
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-reset:hover {
  background: rgb(var(--muted));
}

/* Hide reset by default; JS will show it when filters are active */
.btn-reset { display: none; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgb(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: box-shadow 0.2s ease;
  position: relative;
}

.project-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgb(0 0 0 / 0.05));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.project-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-title {
  font-weight: 600;
  font-size: 1rem;
}

.project-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgb(var(--primary) / 0.2), rgb(147 51 234 / 0.2));
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-icon i {
  color: rgb(var(--foreground));
  font-size: 1.25rem;
  opacity: 0.9;
}

.project-summary {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  background: rgb(var(--background) / 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--border));
}

.project-links {
  display: none;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: rgb(var(--foreground));
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

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

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: rgb(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: box-shadow 0.2s ease;
  position: relative;
}

.skill-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgb(0 0 0 / 0.05));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.skill-header i {
  color: rgb(var(--muted-foreground));
  font-size: 1.25rem;
}

.skill-header h3 {
  font-weight: 600;
}

.skill-list {
  list-style: none;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.bullet {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: rgb(var(--primary) / 0.7);
  display: inline-block;
}

/* Certifications */
.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  background: rgb(var(--background) / 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--border));
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: rgb(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: box-shadow 0.2s ease;
  position: relative;
}

.contact-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgb(0 0 0 / 0.05));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.contact-label {
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: rgb(var(--foreground));
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgb(var(--border) / 0.6);
  padding: 2.5rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgb(var(--muted-foreground));
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(var(--muted-foreground));
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.back-to-top:hover {
  text-decoration: underline;
}

/* Small-screen fixes */
@media (max-width: 767px) {
  /* Make the hamburger menu actually render so the JS slide-in works */
  .nav-menu {
    display: flex; /* base CSS hides it; keep it rendered off-canvas for slide animation */
    z-index: 999; /* below navbar (z-index: 1001) */
  }

  /* Keep the filters usable on mobile */
  .projects-filters {
    position: relative;
    z-index: 60;
  }

  #tagFilter {
    width: 100%;
    max-width: 18rem;
    position: relative;
    z-index: 60;
  }

  /* When menu is active, slide it in */
  .nav-menu.active {
    left: 0;
  }

  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Mobile-specific tech filter dropdown improvements */
  .tech-menu {
    left: 0;
    width: min(calc(100vw - 2rem), 200px);
    max-width: calc(100vw - 2rem);
  }
  
  .tech-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  
  .hamburger {
    display: none;
  }
  
  .hero-container { flex-direction: row; gap: 2.5rem; }
  
  .hero-title {
    font-size: 3rem;
  }
  /* Keep second line on a single line on desktop */
  .hero-title .highlight {
    white-space: nowrap;
  }
  
  .hero-description { font-size: 1.125rem; }
  
  .section-header { 
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; 
    gap: 1.5rem;
  }
  
  .section-intro {
    font-size: 0.8rem;
    max-width: 60ch;
  }
  
  .projects-filters {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .filter-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-content {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.125rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Utility classes */
.hidden {
  display: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
