/* ==============================================
   Kevin Cassidy | Portfolio / CV
   Built with vanilla CSS. No frameworks needed.
   ============================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0f1c;
  --bg-alt: #0f1629;
  --surface: #151d35;
  --surface-hover: #1c2747;
  --text: #e2e8f0;
  --text-muted: #8892b0;
  --accent: #64c8ff;
  --accent-hover: #42b4f5;
  --accent-glow: rgba(100, 200, 255, 0.15);
  --gradient: linear-gradient(135deg, #64c8ff 0%, #845ec2 100%);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

strong { color: var(--accent); font-weight: 600; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Custom Cursor ---- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.2s, height 0.2s;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(100, 200, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.cursor-hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent);
  transform-origin: center;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---- Particle Canvas ---- */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 15, 28, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent) !important;
  letter-spacing: -1px;
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
  background: var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Container ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 30px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(100, 200, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(132, 94, 194, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 750px;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #c8dff0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent {
  -webkit-text-fill-color: var(--accent);
}

.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 2rem;
}

.typewriter-cursor {
  animation: blink 0.8s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(100, 200, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(100, 200, 255, 0.4);
  color: #fff !important;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent) !important;
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  position: relative;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 3px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 50px;
  letter-spacing: -1px;
}

.section-number {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: -30px;
  margin-bottom: 50px;
  max-width: 500px;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}

.easter-egg-dublin {
  cursor: none;
  border-bottom: 2px dashed var(--accent);
}

.easter-egg-dublin:hover {
  background: var(--accent-glow);
  border-radius: 4px;
}

.about-card {
  position: sticky;
  top: 100px;
}

.card-inner {
  background: var(--surface);
  border: 1px solid rgba(100, 200, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(100, 200, 255, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  z-index: 1;
}

.timeline-item:first-child .timeline-marker {
  background: var(--accent);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.5);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid rgba(100, 200, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: all var(--transition);
}

.timeline-content:hover {
  border-color: rgba(100, 200, 255, 0.2);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 16px;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid rgba(100, 200, 255, 0.08);
  border-radius: var(--radius);
  padding: 30px;
  transition: all var(--transition);
}

.skill-category:hover {
  border-color: rgba(100, 200, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.skill-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.skill-category h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.78rem;
  padding: 5px 12px;
  background: rgba(100, 200, 255, 0.08);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
}

.tag:hover {
  background: rgba(100, 200, 255, 0.18);
  transform: translateY(-1px);
}

/* ---- Projects ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid rgba(100, 200, 255, 0.08);
  border-radius: var(--radius);
  padding: 30px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  color: var(--text) !important;
  text-decoration: none !important;
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(100, 200, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(100, 200, 255, 0.05);
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.project-card:hover .project-link {
  gap: 12px;
}

/* ---- Education ---- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid rgba(100, 200, 255, 0.08);
  border-radius: var(--radius);
  padding: 30px;
  transition: all var(--transition);
  text-align: center;
}

.edu-card:hover {
  border-color: rgba(100, 200, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.edu-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.edu-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.edu-card h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 8px;
}

.edu-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
}

.edu-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Contact ---- */
.contact-container {
  text-align: center;
  max-width: 600px;
}

.contact-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 10px;
  color: var(--text) !important;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: none;
}

.contact-btn i {
  font-size: 1.1rem;
  color: var(--accent);
}

.contact-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(100, 200, 255, 0.15);
  color: var(--text) !important;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 40px 30px;
  border-top: 1px solid rgba(100, 200, 255, 0.06);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-easter-egg {
  margin-top: 12px;
}

.footer-hint {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(136, 146, 176, 0.3);
  letter-spacing: 2px;
  transition: color var(--transition);
  cursor: none;
}

.footer-hint:hover {
  color: var(--accent);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(100, 200, 255, 0.15);
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 900;
  cursor: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---- Scroll Animations ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Konami Overlay ---- */
.konami-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.konami-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.konami-content {
  text-align: center;
  max-width: 450px;
  padding: 40px;
}

.konami-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.konami-content p {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.konami-content button {
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--gradient);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: none;
  transition: all var(--transition);
}

.konami-content button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(100, 200, 255, 0.3);
}

/* ---- Phone Modal ---- */
.phone-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.phone-modal.active {
  opacity: 1;
  pointer-events: all;
}

.phone-modal-content {
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(100, 200, 255, 0.15);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 380px;
  width: 90%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-modal.active .phone-modal-content {
  transform: scale(1) translateY(0);
}

.phone-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: none;
  transition: color var(--transition);
  line-height: 1;
}

.phone-modal-close:hover {
  color: var(--accent);
}

.phone-modal-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.phone-modal-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.phone-number {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.phone-call-btn {
  display: inline-flex;
  margin: 0 auto;
}

/* ---- Confetti ---- */
.confetti {
  position: fixed;
  top: -10px;
  border-radius: 2px;
  z-index: 10001;
  animation: confetti-fall linear forwards;
  pointer-events: none;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ---- Rain Easter Egg ---- */
.rain-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.rain-container.active {
  opacity: 1;
}

.raindrop {
  position: absolute;
  top: -20px;
  width: 2px;
  height: 20px;
  background: linear-gradient(transparent, rgba(100, 200, 255, 0.6));
  border-radius: 0 0 2px 2px;
  animation: rain-fall linear infinite;
}

@keyframes rain-fall {
  0% { transform: translateY(-20px); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0.3; }
}

/* ---- Mobile Responsive ---- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-card {
    position: static;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -26px;
    width: 12px;
    height: 12px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-btn {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ---- Matrix Rain Canvas ---- */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#matrixCanvas.active {
  opacity: 1;
}

/* ---- Light Theme Flash ---- */
body.theme-flash {
  animation: flash-light 0.8s ease forwards;
}

@keyframes flash-light {
  0% { filter: invert(0) brightness(1); }
  15% { filter: invert(1) brightness(1.2); }
  30% { filter: invert(1) brightness(1); }
  50% { filter: invert(0.5) brightness(1.1); }
  100% { filter: invert(0) brightness(1); }
}

/* ---- Skill Tag Explode Animation ---- */
.tag.exploding {
  animation: tag-explode 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.tag.reassemble {
  animation: tag-reassemble 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tag-explode {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.5); opacity: 0; }
}

@keyframes tag-reassemble {
  0% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.5); opacity: 0; }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
}

/* ---- Gravity Easter Egg ---- */
.gravity-fall {
  transition: none !important;
  animation: gravity-drop 1.5s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes gravity-drop {
  0% { transform: translateY(0) rotate(0deg); }
  60% { transform: translateY(calc(100vh - 100%)) rotate(5deg); }
  70% { transform: translateY(calc(100vh - 120%)) rotate(-3deg); }
  80% { transform: translateY(calc(100vh - 100%)) rotate(2deg); }
  90% { transform: translateY(calc(100vh - 105%)) rotate(-1deg); }
  100% { transform: translateY(calc(100vh - 100%)) rotate(0deg); }
}

/* ---- Magnetic Nav ---- */
.nav-link {
  transition: all var(--transition), transform 0.2s ease-out;
}

/* ---- Page scribble cursor when secrets are active ---- */
body.secret-active * {
  cursor: none !important;
}