/* Digital Portfolio Stylesheet - Modern Dark/Light Theme */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dark theme colors (default) */
  --bg-primary: #0a0e14;
  --bg-secondary: #111822;
  --bg-card: rgba(18, 26, 38, 0.7);
  --bg-card-hover: rgba(26, 38, 56, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-coral: #ff5a4f;
  --accent-coral-glow: rgba(255, 90, 79, 0.25);
  --accent-blue: #38bdf8;
  --accent-purple: #c084fc;
  --accent-green: #34d399;
  --accent-cyan: #22d3ee;
  --accent-amber: #fbbf24;

  --gradient-brand: linear-gradient(135deg, #ff5a4f 0%, #ff8a65 50%, #38bdf8 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(255, 90, 79, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --nav-height: 72px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color: #e2e8f0;
  --border-highlight: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-coral: #ea4335;
  --accent-coral-glow: rgba(234, 67, 53, 0.15);
  --accent-blue: #0284c7;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(234, 67, 53, 0.08);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not hidden: hidden turns body into its own scroll box, which breaks scroll-linked animations */
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-coral);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 2.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.85);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent-coral);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 15px var(--accent-coral-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.resume-badge-link {
  font-family: var(--font-mono);
  color: var(--accent-coral);
  background: var(--accent-coral-glow);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-coral);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-highlight);
}

[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 5rem;
  background: radial-gradient(circle at 50% 20%, rgba(255, 90, 79, 0.08) 0%, transparent 60%);
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 90, 79, 0.1);
  border: 1px solid rgba(255, 90, 79, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-coral);
  margin-bottom: 1.5rem;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-coral);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-coral);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-coral);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-coral-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 90, 79, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
}

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

/* Hero Stats */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-coral);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-darker {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.about-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.highlight-quote {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-coral);
  background: rgba(255, 90, 79, 0.05);
  font-style: italic;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.values-list li {
  display: flex;
  gap: 1rem;
}

.val-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.values-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.values-list p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.filter-btn.active {
  background: var(--accent-coral);
  color: #fff;
  border-color: var(--accent-coral);
  box-shadow: 0 2px 10px var(--accent-coral-glow);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.badge-coral {
  background: rgba(255, 90, 79, 0.12);
  color: var(--accent-coral);
  border: 1px solid rgba(255, 90, 79, 0.25);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-purple {
  background: rgba(192, 132, 252, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.badge-green {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.badge-cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.badge-amber {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

[data-theme="light"] .feature-item {
  background: #f1f5f9;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-coral);
  transition: var(--transition);
}

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

.live-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.live-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

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

.skill-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

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

.skill-group-icon {
  font-size: 1.5rem;
}

.skill-group-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
}

.skill-group-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: auto;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: var(--border-color);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-coral);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-coral);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline-tags span {
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Education & Languages */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.edu-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 0.75rem;
}

.badge-completed {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
  border-color: rgba(52, 211, 153, 0.3);
}

.edu-years {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.edu-degree {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.edu-school {
  font-size: 0.9rem;
  color: var(--accent-coral);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.edu-details {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.languages-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.languages-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.lang-item {
  display: flex;
  flex-direction: column;
}

.lang-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.lang-level {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.lang-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.lang-bar span {
  display: block;
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

/* Resume CTA */
.resume-cta-box {
  background: linear-gradient(135deg, rgba(255, 90, 79, 0.08) 0%, rgba(56, 189, 248, 0.06) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.resume-cta-content {
  max-width: 650px;
  margin: 0 auto;
}

.badge-accent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-coral);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.resume-cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.resume-cta-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.resume-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 1rem;
}

.copy-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.copy-btn:hover {
  color: var(--accent-coral);
}

.roles-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background: var(--bg-primary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-coral);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
  }
}

/* Project Details & README Modal Styles */
.card-btn-detail {
  background: transparent;
  border: 1px solid var(--accent-coral);
  color: var(--accent-coral);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-btn-detail:hover {
  background: var(--accent-coral);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--accent-coral-glow);
}

/* The project window is a native modal <dialog> filling the screen; the card sits centred in it. */
.modal-overlay {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  overscroll-behavior: contain;
}
.modal-overlay[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay::backdrop {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  max-height: 88dvh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}
@media (prefers-reduced-motion: no-preference) {
  .modal-overlay[open] .modal-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
    @starting-style { transform: scale(0.95) translateY(10px); opacity: 0; }
  }
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-coral);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.modal-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.modal-stack-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 90, 79, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 90, 79, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-coral);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-spec-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: auto;
}

[data-theme="light"] .modal-spec-box {
  background: #f1f5f9;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-features-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.modal-features-list li::before {
  content: "▹";
  color: var(--accent-coral);
  font-size: 0.9rem;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.repo-privacy-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.4;
}

.modal-footer-actions {
  display: flex;
  gap: 0.75rem;
}

/* Scorpia logo (brand/scorpia-mark.png, brand/scorpia-logo.png) */
.brand-logo {
  background: none;
  box-shadow: none;
  border-radius: 0;
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: 132px;
  height: auto;
  margin-bottom: 0.5rem;
}

/* ---- Featured: the Quantum processor on film ---- */
.showcase { position: relative; overflow: clip; }
.showcase::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 35%, var(--accent-coral-glow), transparent 70%); opacity: .7; }
.showcase .container { position: relative; }
.showcase-lede { max-width: 46rem; margin: 0 0 1.75rem; color: var(--text-secondary); font-size: 1.08rem; line-height: 1.6; }
.showcase-film { margin: 0 0 3rem; position: relative; overflow: visible; border-radius: var(--radius-lg);
  background: #03060f; border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,.02), 0 30px 80px -30px var(--accent-coral-glow); }
.showcase-film img,
.showcase-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #03060f; border-radius: inherit; }
.showcase-film figcaption { position: absolute; right: 12px; bottom: -40px; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: var(--radius-full); font: 600 0.72rem/1 var(--font-mono); letter-spacing: .04em;
  color: #e2e8f0; background: rgba(3,6,15,.72); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.showcase-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4a3d; box-shadow: 0 0 8px #ff4a3d; animation: showcase-rec 1.6s ease-in-out infinite; }
@keyframes showcase-rec { 50% { opacity: .35; } }
.showcase-strip { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.showcase-strip li { margin: 0; }
.showcase-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md);
  border: 1px solid var(--border-color); background: #03060f; transition: var(--transition); }
.showcase-strip li:hover img { border-color: var(--border-highlight); transform: translateY(-2px); }
.showcase-strip span { display: block; margin-top: 0.45rem; font: 600 0.75rem var(--font-mono); color: var(--text-muted); letter-spacing: .03em; }
.showcase-more { display: inline-block; margin-top: 1.25rem; font-weight: 700; color: var(--accent-coral); text-decoration: none; border-bottom: 1px solid currentColor; }
.showcase-more:hover { opacity: .85; }
@media (max-width: 760px) {
  .showcase-strip { grid-template-columns: repeat(2, 1fr); }
  .showcase-film { border-radius: var(--radius-md); }
}
@media (prefers-reduced-motion: reduce) { .showcase-dot { animation: none; } .showcase-strip li:hover img { transform: none; } }
