/* ============================================================
   Super Mario Galaxy Design System
   A cosmic, space-themed personal website inspired by SMG
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Typography */
  --font: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Colors — neutral white theme */
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #111111;
  --color-text-muted: #333333;
  --color-accent: #000000;
  --color-accent-hover: #000000;
  --color-accent-soft: rgba(0, 0, 0, 0.04);

  /* Neutralized */
  --color-red: #1a1a1a;
  --color-green: #1a1a1a;
  --color-blue: #1a1a1a;
  --color-navy: #1a1a1a;

  /* Glass — neutral white */
  --glass-bg: #ffffff;
  --glass-bg-strong: #ffffff;
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.2);
  --glass-blur: 0px;
  --glass-shadow: none;
  --glass-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.06);
  --glass-inner: none;

  /* Layout */
  --max-width: 820px;
  --nav-height: 64px;

  /* Radius — slightly larger for bubbly Galaxy feel */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 2rem);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* === ANIMATED BACKGROUND (disabled) === */
.bg-mesh,
.bg-orb,
.shooting-star,
#tsparticles {
  display: none !important;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #ffffff;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.bg-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99, 60, 200, 0.2) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  animation: orb-drift-1 25s ease-in-out infinite;
}

.bg-orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(9, 29, 100, 0.25) 0%, transparent 70%);
  bottom: -150px;
  left: -200px;
  animation: orb-drift-2 30s ease-in-out infinite;
}

.bg-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(247, 58, 58, 0.06) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation: orb-drift-3 22s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 60px) scale(1.05); }
  66% { transform: translate(30px, -40px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.08); }
  66% { transform: translate(-30px, 50px) scale(0.92); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(calc(-50% + 40px), calc(-50% - 50px)) scale(1.1); }
  66% { transform: translate(calc(-50% - 35px), calc(-50% + 30px)) scale(0.9); }
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

/* === NAVIGATION === */
.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav-glass.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s var(--ease);
}

.nav-name:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

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

.nav-links a.active::after {
  transform: scaleX(1);
}

/* === HERO === */
.hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-xl);
}

.hero-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-photo {
  width: 220px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  display: block;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.photo-placeholder {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.5;
  letter-spacing: 0.05em;
}

.hero-info {
  flex: 1;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.hero-bio {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 540px;
}

/* Research interest tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  transition: all 0.3s var(--ease);
}

.tag:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Social links */
.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* === GLASS BUTTONS === */
.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 0;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.glass-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.glass-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  color: #ffffff;
}

.glass-btn:hover::before {
  opacity: 1;
}

.glass-btn:active {
  transform: translateY(0);
  box-shadow: var(--glass-shadow);
}

.glass-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* === SECTION HEADINGS === */
.section-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* === GLASS PANELS (flat, line-separated) === */
.glass-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  position: relative;
}

.glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* === NEWS SECTION === */
.news-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  position: relative;
  z-index: 2;
}

.news-item:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.news-date {
  flex-shrink: 0;
  width: 90px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.news-text {
  font-size: 0.95rem;
  color: var(--color-text);
}

.news-text a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.news-text a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* === CARD LIST === */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* === PUBLICATION / PROJECT CARD (flat, line-separated) === */
.card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-md) 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.cards-list .card:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.card::before,
.card::after {
  content: none;
}

.card:hover {
  transform: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

/* Card thumbnail */
.card-thumb {
  flex-shrink: 0;
  width: 180px;
  max-height: 240px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.card:hover .card-thumb {
  transform: scale(1.02);
}

/* Card content */
.card-body {
  flex: 1;
  min-width: 0;
}

/* Type badge */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  margin-bottom: var(--space-sm);
  border: 1px solid transparent;
}

.badge-paper,
.badge-poster,
.badge-systems,
.badge-project {
  background: rgba(0, 0, 0, 0.05);
  color: #4a4a4a;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Card title */
.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.card-title a {
  color: inherit;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--color-accent);
}

/* Card meta */
.card-authors {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.card-venue {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

/* Card action links */
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 0;
  transition: all 0.2s var(--ease);
  border: 1px solid;
}

.card-link-paper,
.card-link-code,
.card-link-demo,
.card-link-poster {
  color: #1a1a1a;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
}

.card-link-paper:hover,
.card-link-code:hover,
.card-link-demo:hover,
.card-link-poster:hover {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  transform: translateY(-1px);
}

/* === ABOUT CONTENT (for about.html) === */
.about-content {
  padding: var(--space-xl);
}

.about-content p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* === IMAGE LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: var(--space-xl);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1a1a1a;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
  z-index: 2001;
}

.lightbox-close:hover {
  background: #f5f5f5;
  color: #000;
  transform: scale(1.1);
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  animation: lb-zoom 0.4s var(--ease-out);
}

@keyframes lb-zoom {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-caption {
  color: #4a4a4a;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: var(--space-lg);
  text-align: center;
  max-width: 70%;
  padding: var(--space-sm) var(--space-md);
  background: #f5f5f5;
  border-radius: var(--radius-sm);
}

/* === FOOTER === */
.footer-glass {
  text-align: center;
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-glass p {
  margin: 0;
}

/* === SCROLL ANIMATIONS === */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card animations */
.cards-list [data-animate]:nth-child(1) { transition-delay: 0s; }
.cards-list [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.cards-list [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.cards-list [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.cards-list [data-animate]:nth-child(5) { transition-delay: 0.4s; }
.cards-list [data-animate]:nth-child(6) { transition-delay: 0.5s; }

/* === PAGE HEADING (for sub-pages) === */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-lg);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .two-col-layout {
    grid-template-columns: 2fr 3fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.25rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
    padding-top: var(--space-lg);
  }

  .col-sidebar {
    padding-right: 0;
    text-align: center;
  }

  .col-sidebar .hero-tags,
  .col-sidebar .hero-social {
    justify-content: center;
  }

  .nav-container {
    padding: 0 var(--space-md);
  }

  .nav-links {
    gap: var(--space-md);
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .hero-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-photo {
    width: 180px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-bio {
    max-width: 100%;
  }

  .hero-tags,
  .hero-social {
    justify-content: center;
  }

  .card {
    flex-direction: column;
  }

  .card-thumb {
    width: 100%;
    max-width: 100%;
    max-height: 250px;
    align-self: center;
  }

  .card:hover {
    transform: none;
  }

  .card:hover .card-thumb {
    transform: none;
  }

  .news-item {
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
  }

  .news-date {
    width: auto;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .nav-name {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: var(--space-sm);
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .hero-name {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .glass-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .card {
    padding: var(--space-md);
  }

  .card-links {
    gap: 0.35rem;
  }

  .card-link {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
  }
}

/* === TWO-COLUMN LAYOUT === */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 3%;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.nav-container-wide {
  max-width: 1300px;
}

.col-sidebar {
  padding-right: var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.col-sidebar .hero-tags,
.col-sidebar .hero-social {
  justify-content: center;
}

.col-sidebar .hero-name {
  font-size: 2rem;
  margin-top: var(--space-md);
}

.col-sidebar .hero-title {
  margin-bottom: var(--space-md);
}

.col-sidebar .hero-bio {
  font-size: 0.9rem;
  max-width: 100%;
}

.col-sidebar .hero-tags {
  margin-bottom: var(--space-md);
}

.col-sidebar .hero-social {
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.sidebar-section {
  margin-top: var(--space-lg);
}

.sidebar-section .section-heading {
  margin-bottom: var(--space-sm);
}

/* Compact cards for sidebar */
.card-compact {
  flex-direction: column;
  padding: var(--space-md);
  text-align: center;
  align-items: center;
}

.card-compact .card-links {
  justify-content: center;
}

.card-compact .card-thumb {
  width: 100%;
  max-width: 100%;
  max-height: 180px;
  align-self: center;
}

.card-compact .card-title {
  font-size: 0.95rem;
}

.card-compact .card-authors,
.card-compact .card-venue {
  font-size: 0.8rem;
}

.col-main {
  min-width: 0;
}

.col-main .section-heading {
  margin-bottom: var(--space-lg);
}

.heading-note {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: none;
  letter-spacing: normal;
}

/* === PROJECT GRID === */
.container-wide {
  max-width: 1100px;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  width: 100%;
}

.project-tile {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ease);
  width: 100%;
  min-height: 140px;
  padding: var(--space-md) 0;
}

.project-tile:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.project-tile:hover {
  background: rgba(0, 0, 0, 0.025);
}

.tile-media {
  flex-shrink: 0;
  width: 200px;
  height: auto;
  object-fit: cover;
  align-self: stretch;
  background: #ffffff;
}

.tile-overlay {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-lg);
  background: transparent;
  min-width: 0;
}

.tile-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: var(--space-sm);
}

.tile-desc {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.tile-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: #000000;
  padding: 0;
  border: none;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s var(--ease);
}

.project-tile:hover .tile-cta {
  opacity: 0.6;
}

@media (max-width: 600px) {
  .project-tile {
    flex-direction: column;
  }

  .tile-media {
    width: 100%;
    height: 180px;
  }
}

/* === PROFILE (HOME) PAGE === */
.profile-page {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  max-width: 760px;
}

.profile-hero {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-2xl);
}

.profile-intro {
  flex: 1;
  min-width: 0;
}

.profile-section {
  margin-bottom: var(--space-2xl);
}

@media (max-width: 640px) {
  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-intro .hero-social {
    justify-content: center;
  }
}

/* === PROJECTS PAGE === */
.projects-page {
  max-width: 920px;
  padding-top: var(--space-md);
  padding-bottom: var(--space-2xl);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.filter-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  color: #000000;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: #000000;
}

.filter-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* === ICON LINKS (social) === */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #000000;
  background: transparent;
  border: none;
  transition: opacity 0.2s var(--ease);
  text-decoration: none;
}

.icon-link:hover {
  opacity: 0.6;
}

.icon-link svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* === SUPER MARIO GALAXY EFFECTS === */

/* Shooting stars */
.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 233, 63, 0.8), transparent);
  border-radius: 2px;
  opacity: 0;
  transform: rotate(-35deg);
}

.shooting-star-1 {
  top: 15%;
  left: 70%;
  animation: shoot 6s ease-in-out 2s infinite;
}

.shooting-star-2 {
  top: 40%;
  left: 85%;
  animation: shoot 8s ease-in-out 5s infinite;
}

.shooting-star-3 {
  top: 60%;
  left: 50%;
  animation: shoot 10s ease-in-out 8s infinite;
}

@keyframes shoot {
  0%   { opacity: 0; transform: rotate(-35deg) translateX(0); }
  5%   { opacity: 1; }
  15%  { opacity: 0; transform: rotate(-35deg) translateX(-300px); }
  100% { opacity: 0; }
}

/* Hero photo */
.hero-photo {
  border: none !important;
  box-shadow: none !important;
}

/* tsParticles container */
#tsparticles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
