/* ============================================================
   egodevnull.com — Global Stylesheet
   Dark-first, glassmorphism, Inter font
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg: #0d0d14;
  --bg2: #12121e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 106, 247, 0.4);

  --accent: #7c6af7;
  --accent-light: #a597ff;
  --accent2: #4fc3f7;
  --accent-glow: rgba(124, 106, 247, 0.25);

  --text: #e8e8f0;
  --text-muted: #9e9eb1;
  --text-faint: #888899;

  --nav-height: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg: #f4f4f8;
  --bg2: #eaeaf0;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-hover: rgba(255, 255, 255, 0.98);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(124, 106, 247, 0.4);
  --accent-glow: rgba(124, 106, 247, 0.15);
  --text: #1a1a2e;
  --text-muted: #555568;
  --text-faint: #aaaabc;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

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

code,
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 0 30px rgba(124, 106, 247, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(13, 13, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .nav {
  background: rgba(244, 244, 248, 0.75);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.nav-logo img {
  height: 40px;
  width: auto;
  border-radius: 50%;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: scale(1.05);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 680px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 14px;
  }
}

/* ── Page wrapper ───────────────────────────────────────────── */
.page {
  padding-top: var(--nav-height);
}

/* ── Hero (Home) ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -100px;
  left: -100px;
  animation-duration: 14s;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: var(--accent2);
  bottom: -80px;
  right: -60px;
  animation-duration: 10s;
  animation-delay: -4s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: #f472b6;
  top: 50%;
  left: 55%;
  animation-duration: 16s;
  animation-delay: -8s;
  opacity: 0.1;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(40px, 30px) scale(1.08);
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-tag span {
  color: var(--accent-light);
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 700px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#greeting-text {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#greeting-text.greeting-out {
  opacity: 0;
  transform: translateY(-8px);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Section ────────────────────────────────────────────────── */
.section {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 52px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section h2 {
  margin-bottom: 12px;
}

.section-desc {
  max-width: 520px;
}

/* ── Project Grid (Home) ────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 0 30px var(--accent-glow);
  background: var(--surface-hover);
}

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

.project-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.project-card .arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.1rem;
  color: var(--text-faint);
  transition: color var(--transition), transform var(--transition);
}

.project-card:hover .arrow {
  color: var(--accent-light);
  transform: translate(3px, -3px);
}

/* ── Tags / Badges ──────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color var(--transition);
}

.tag-accent {
  background: rgba(124, 106, 247, 0.12);
  border-color: rgba(124, 106, 247, 0.3);
  color: var(--accent-light);
}

.tag-cyan {
  background: rgba(79, 195, 247, 0.1);
  border-color: rgba(79, 195, 247, 0.3);
  color: var(--accent2);
}

.tag-wip {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

/* ── Project Page ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color var(--transition), transform var(--transition);
}

.back-link:hover {
  color: var(--accent-light);
  transform: translateX(-4px);
}

.project-hero {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

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

.project-hero .orb {
  width: 350px;
  height: 350px;
  top: -100px;
  right: -80px;
  opacity: 0.1;
  animation: none;
}

.project-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

@media (max-width: 700px) {
  .project-hero-inner {
    grid-template-columns: 1fr;
  }
}

.project-hero-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.project-hero h1 {
  margin-bottom: 16px;
}

.project-hero .desc {
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--text-muted);
}

.project-meta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 200px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-meta-box .meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-box .meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 600;
}

.project-meta-box .meta-value {
  font-size: 0.9rem;
  color: var(--text);
}

.project-body {
  padding: 60px 0;
}

.project-body h2 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color var(--transition), background var(--transition);
}

.feature-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-text h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sub-project section (monarch extensions) */
.sub-project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.sub-project h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.sub-project .sub-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ── Resume Page ────────────────────────────────────────────── */
.resume-header {
  position: relative;
  padding: 72px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.resume-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.resume-header-bg .orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  opacity: 0.12;
  animation: drift 14s ease-in-out infinite alternate;
}

.resume-header-bg .orb-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -60px;
  opacity: 0.08;
  animation: drift 10s ease-in-out infinite alternate;
  animation-delay: -5s;
}

.resume-header-content {
  position: relative;
  z-index: 1;
}

.resume-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.resume-header h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.resume-header h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.resume-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.resume-summary strong {
  color: var(--text);
  font-weight: 600;
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.resume-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

a.resume-contact-item:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface-hover);
}

.resume-contact-icon {
  font-size: 0.9rem;
}

/* ── Timeline ──────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 50%, var(--border) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

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

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px var(--accent-glow);
  z-index: 1;
}

[data-theme="light"] .timeline-dot {
  border-color: var(--bg);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 0 24px var(--accent-glow);
  background: var(--surface-hover);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

.timeline-location {
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 2px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-dates {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
}

.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.achievement-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.achievement-list li:last-child {
  margin-bottom: 0;
}

.achievement-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-light);
  font-weight: 700;
}

.achievement-list li strong {
  color: var(--text);
  font-weight: 600;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Education Grid ────────────────────────────────────────── */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.education-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.education-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 0 24px var(--accent-glow);
  background: var(--surface-hover);
}

.education-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.education-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text);
}

.education-school {
  font-size: 0.9rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.education-focus {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ── Skills Grid ───────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), 0 0 24px var(--accent-glow);
  background: var(--surface-hover);
}

.skill-category h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Resume CTA ────────────────────────────────────────────── */
.resume-cta {
  padding: 60px 0;
}

.resume-cta-inner {
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.resume-cta-inner h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.resume-cta-inner p {
  margin-bottom: 24px;
}

/* ── Resume Responsive ─────────────────────────────────────── */
@media (max-width: 680px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -24px;
    width: 10px;
    height: 10px;
  }

  .timeline-card {
    padding: 20px;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .resume-contact {
    gap: 8px;
  }
}

/* ── Placeholder Pages ──────────────────────────────────────── */
.placeholder-section {
  min-height: calc(100vh - var(--nav-height) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.placeholder-inner {
  max-width: 500px;
}

.placeholder-inner .icon {
  font-size: 4rem;
  margin-bottom: 24px;
  opacity: 0.6;
}

.placeholder-inner h1 {
  margin-bottom: 16px;
}

.placeholder-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-brand span {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Splash Screen ──────────────────────────────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.8s ease, visibility 0.8s ease;
  cursor: pointer;
  overflow: hidden;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-bg {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 180deg at 50% 50%, var(--accent), var(--bg), var(--accent2), var(--bg), var(--accent));
  animation: spin 10s linear infinite;
  opacity: 0.15;
}

[data-theme="light"] .splash-bg {
  opacity: 0.1;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.splash-logo {
  width: 220px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 50px var(--accent-glow);
  animation: pulse 3s ease-in-out infinite;
  transition: transform 0.5s ease;
}

.splash-hint {
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fade-pulse 2s ease-in-out infinite;
}

@keyframes fade-pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 50px var(--accent-glow);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 80px var(--accent);
  }
}

/* ── View Transitions ───────────────────────────────────────── */

/* Elements that participate in a view transition must not have competing
   CSS transitions (scroll-reveal, hover, etc.) or the snapshot will fail
   with "Transition was skipped".  Kill all CSS transitions on these elements
   so the browser always captures a stable snapshot. */
[style*="view-transition-name"],
[style*="view-transition-name"]::before,
[style*="view-transition-name"]::after {
  transition: none !important;
}

/* Scroll-reveal elements with a view-transition-name must also be forced
   fully visible so the snapshot never captures opacity:0 / offset state. */
[style*="view-transition-name"].reveal,
[style*="view-transition-name"].reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

@view-transition {
  navigation: auto;
}

::view-transition-group(*) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.6s;
}