/* ========================================================
   YASH SAKHALE - GEN Z SPIDER-MAN PORTFOLIO
   Colors: Navy Blue, Red, White
   GitHub Pages compatible (pure CSS animations)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary:    #0a0e27;
  --bg-secondary:  #0f1535;
  --bg-card:       rgba(15, 21, 53, 0.7);
  --bg-glass:      rgba(15, 21, 53, 0.5);
  --red:           #e23636;
  --red-bright:    #ff1744;
  --red-dark:      #b71c1c;
  --red-glow:      rgba(226, 54, 54, 0.35);
  --blue:          #1565c0;
  --blue-bright:   #2196f3;
  --blue-dark:     #0d47a1;
  --blue-deep:     #1a1a5e;
  --blue-glow:     rgba(33, 150, 243, 0.35);
  --white:         #ffffff;
  --white-off:     #e8eaf6;
  --white-muted:   #9fa8c7;
  --white-dim:     rgba(255, 255, 255, 0.06);
  --grad-hero:     linear-gradient(135deg, var(--red) 0%, var(--blue-dark) 50%, var(--blue-bright) 100%);
  --grad-card:     linear-gradient(135deg, rgba(226,54,54,0.08) 0%, rgba(33,150,243,0.08) 100%);
  --grad-btn:      linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  --grad-btn-blue: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-bright) 100%);
  --grad-text:     linear-gradient(135deg, var(--red-bright) 0%, var(--white) 50%, var(--blue-bright) 100%);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--white-off);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-top: 0;
}

a { color: var(--blue-bright); text-decoration: none; transition: color 0.3s var(--ease-out); }
a:hover { color: var(--red-bright); text-decoration: none; }
img { max-width: 100%; height: auto; }
::selection { background: var(--red); color: var(--white); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--red-bright); }

/* Animated Blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 20s ease-in-out infinite alternate;
}
.blob-1 { width: 600px; height: 600px; background: var(--red); top: -200px; left: -200px; }
.blob-2 { width: 500px; height: 500px; background: var(--blue-bright); bottom: -100px; right: -150px; animation-delay: -7s; }
.blob-3 { width: 400px; height: 400px; background: var(--red-bright); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(60px, -40px) scale(1.1); }
  66%  { transform: translate(-30px, 50px) scale(0.95); }
  100% { transform: translate(20px, -20px) scale(1.05); }
}

/* Noise & web pattern overlays */
.noise-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.web-pattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025;
  background-image:
    linear-gradient(45deg, var(--red) 1px, transparent 1px),
    linear-gradient(-45deg, var(--blue-bright) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Cursor glow (minimal) */
.cursor-glow {
  position: fixed; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none; z-index: 2; transform: translate(-50%, -50%);
  transition: opacity 0.4s; opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ---- Navigation ---- */
.navbar-genz {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.4s var(--ease-out); background: transparent;
}
.navbar-genz.scrolled {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 10px 32px;
  border-bottom: 1px solid rgba(226, 54, 54, 0.15);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -0.5px;
}
.nav-links {
  display: flex; gap: 8px; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--white-muted); font-weight: 500; font-size: 0.9rem;
  padding: 8px 18px; border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out); position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: var(--white-dim);
}
.nav-links a.nav-cta {
  background: var(--grad-btn); color: var(--white); font-weight: 600;
}
.nav-links a.nav-cta:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px var(--red-glow);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--white); border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; background: rgba(10, 14, 39, 0.97);
    backdrop-filter: blur(30px); padding: 100px 32px 32px; gap: 4px;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid rgba(226, 54, 54, 0.15);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; padding: 14px 18px; }
  .navbar-genz { padding: 14px 20px; top: 0; }
  .bugle-ticker-top .bugle-label { padding: 6px 10px; font-size: 0.6rem; }
  .bugle-ticker-top .bugle-scroll span { font-size: 0.65rem; }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; position: relative; z-index: 5;
}
.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFadeIn 1s var(--ease-out) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-avatar {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--red);
  box-shadow: 0 0 40px var(--red-glow), 0 0 80px var(--blue-glow);
  margin: 0 auto 16px; display: block;
  animation: avatarPulse 4s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 40px var(--red-glow), 0 0 80px var(--blue-glow); }
  50%      { box-shadow: 0 0 60px var(--red-glow), 0 0 100px var(--blue-glow); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white-dim); border: 1px solid rgba(226, 54, 54, 0.2);
  border-radius: var(--radius-full); padding: 6px 20px;
  font-size: 0.85rem; color: var(--white-muted); margin: 0 auto 24px;
  animation: heroFadeIn 1s var(--ease-out) 0.2s both;
}
.hero-badge .dot {
  width: 8px; height: 8px; background: var(--red-bright); border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900;
  letter-spacing: -2px; margin-bottom: 16px;
  animation: heroFadeIn 1s var(--ease-out) 0.3s both;
}
.hero h1 .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--white-muted);
  max-width: 600px; margin: 0 auto 40px;
  animation: heroFadeIn 1s var(--ease-out) 0.5s both;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: heroFadeIn 1s var(--ease-out) 0.7s both;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--white-muted); font-size: 0.75rem; letter-spacing: 2px;
  text-transform: uppercase; animation: heroFadeIn 1s var(--ease-out) 1s both;
}
.scroll-indicator .mouse {
  width: 24px; height: 38px; border: 2px solid var(--white-muted);
  border-radius: 12px; position: relative;
}
.scroll-indicator .mouse::after {
  content: ''; width: 4px; height: 8px; background: var(--red-bright);
  border-radius: 2px; position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%); animation: mouseScroll 2s ease-in-out infinite;
}
@keyframes mouseScroll {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* ---- Buttons ---- */
.btn-primary-genz {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--grad-btn); color: var(--white);
  font-weight: 600; font-size: 0.95rem; border: none;
  border-radius: var(--radius-full); cursor: pointer;
  transition: all 0.4s var(--ease-spring); position: relative; overflow: hidden;
}
.btn-primary-genz::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%); transition: transform 0.5s;
}
.btn-primary-genz:hover::before { transform: translateX(100%); }
.btn-primary-genz:hover {
  transform: translateY(-3px); box-shadow: 0 8px 30px var(--red-glow); color: var(--white);
}

.btn-secondary-genz {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: transparent; color: var(--white);
  font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full); cursor: pointer;
  transition: all 0.4s var(--ease-spring);
}
.btn-secondary-genz:hover {
  border-color: var(--blue-bright); background: rgba(33, 150, 243, 0.1);
  transform: translateY(-3px); color: var(--white); box-shadow: 0 8px 30px var(--blue-glow);
}
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* ---- Sections ---- */
.section-genz { padding: 100px 24px; position: relative; z-index: 5; }
.section-genz .container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red-bright); margin-bottom: 16px;
}
.section-label::before, .section-label::after {
  content: ''; width: 24px; height: 1px; background: var(--red);
}
.section-title-genz {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -1px;
}
.section-title-genz .highlight {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---- About ---- */
.about-grid {
  display: flex; flex-direction: column; gap: 48px;
}
.about-text p { color: var(--white-muted); font-size: 1.05rem; margin-bottom: 20px; }
.about-text strong { color: var(--white); font-weight: 600; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 54, 54, 0.12); border-radius: var(--radius-md);
  padding: 24px; text-align: center; transition: all 0.4s var(--ease-out);
}
.stat-card:hover {
  border-color: var(--red); transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--red-glow);
}
.stat-card:nth-child(even):hover {
  border-color: var(--blue-bright); box-shadow: 0 8px 30px var(--blue-glow);
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label {
  font-size: 0.8rem; color: var(--white-muted); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 1px;
}

.expertise-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 500;
  border: 1px solid rgba(226, 54, 54, 0.2);
  color: var(--white-off); background: var(--white-dim);
  transition: all 0.3s var(--ease-out);
}
.pill:hover { border-color: var(--red-bright); background: rgba(226, 54, 54, 0.1); transform: translateY(-2px); }
.pill.blue { border-color: rgba(33, 150, 243, 0.25); }
.pill.blue:hover { border-color: var(--blue-bright); background: rgba(33, 150, 243, 0.1); }

/* ---- Document Cards ---- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.doc-card {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center; transition: all 0.4s var(--ease-out);
  position: relative; overflow: hidden;
}
.doc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-btn); transform: scaleX(0); transition: transform 0.4s var(--ease-out);
}
.doc-card:hover::before { transform: scaleX(1); }
.doc-card:hover {
  border-color: rgba(226, 54, 54, 0.2); transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.doc-card:nth-child(even)::before { background: var(--grad-btn-blue); }
.doc-card:nth-child(even):hover { border-color: rgba(33, 150, 243, 0.2); }
.doc-icon { font-size: 2rem; margin-bottom: 16px; }
.doc-card h3 { font-size: 1.1rem; margin-bottom: 16px; }

/* ---- Projects Grid ---- */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px;
}
@media (max-width: 992px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card-genz {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg);
  padding: 32px 24px; transition: all 0.4s var(--ease-out);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 260px;
}
.project-card-genz::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--red), var(--blue-bright));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease-out); pointer-events: none;
}
.project-card-genz:hover::after { opacity: 1; }
.project-card-genz:hover {
  transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.project-card-genz .card-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.project-card-genz h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.project-card-genz .card-desc { color: var(--white-muted); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }
.project-card-genz .card-arrow {
  display: flex; align-items: center; gap: 6px;
  color: var(--red-bright); font-size: 0.85rem; font-weight: 600;
  transition: all 0.3s var(--ease-out);
}
.project-card-genz:hover .card-arrow { gap: 12px; }
.project-card-genz .card-link { position: absolute; inset: 0; z-index: 2; }

.project-card-genz.featured { grid-column: span 2; }
@media (max-width: 576px) { .project-card-genz.featured { grid-column: span 1; } }

/* More button */
.btn-container-genz { text-align: center; margin: 48px 0 24px; }
.more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 40px; background: var(--grad-btn-blue);
  color: var(--white); font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1rem; border: none;
  border-radius: var(--radius-full); cursor: pointer;
  transition: all 0.4s var(--ease-spring); position: relative; overflow: hidden;
}
.more-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.more-btn:hover::before { transform: translateX(100%); }
.more-btn:hover {
  transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 30px var(--blue-glow);
}
.more-btn i { transition: transform 0.3s var(--ease-out); }
.more-btn.expanded i { transform: rotate(180deg); }

.hidden-projects-genz {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.8s var(--ease-out), opacity 0.5s ease;
}
.hidden-projects-genz.revealed { max-height: 4000px; opacity: 1; }
.hidden-projects-genz .project-card-genz {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-spring);
}
.hidden-projects-genz.revealed .project-card-genz { opacity: 1; transform: translateY(0); }
.hidden-projects-genz.revealed .project-card-genz:nth-child(1) { transition-delay: 0.05s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(2) { transition-delay: 0.1s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(3) { transition-delay: 0.15s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(4) { transition-delay: 0.2s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(5) { transition-delay: 0.25s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(6) { transition-delay: 0.3s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(7) { transition-delay: 0.35s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(8) { transition-delay: 0.4s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(9) { transition-delay: 0.45s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(10) { transition-delay: 0.5s; }
.hidden-projects-genz.revealed .project-card-genz:nth-child(11) { transition-delay: 0.55s; }

/* ---- Footer ---- */
.footer-genz {
  padding: 80px 24px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 5;
}
.footer-genz .container { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .nav-logo { font-size: 1.8rem; }
.footer-brand p { color: var(--white-muted); margin-top: 12px; max-width: 320px; font-size: 0.95rem; }
.footer-section h4 {
  font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--white-muted); margin-bottom: 20px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--white-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); }

.social-links-genz { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white-muted); font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
}
.social-link:hover {
  border-color: var(--red); color: var(--red-bright);
  transform: translateY(-3px); box-shadow: 0 6px 20px var(--red-glow);
}
.social-link.github:hover { border-color: var(--white); color: var(--white); box-shadow: 0 6px 20px rgba(255,255,255,0.15); }
.social-link.linkedin:hover { border-color: var(--blue-bright); color: var(--blue-bright); box-shadow: 0 6px 20px var(--blue-glow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--white-muted); font-size: 0.85rem; margin: 0; }

/* ---- Project Detail Pages ---- */
.project-hero {
  padding: 140px 24px 60px; position: relative; z-index: 5;
}
.project-hero .container { max-width: 900px; margin: 0 auto; }
.project-hero .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white-muted); font-size: 0.9rem; margin-bottom: 32px;
  transition: all 0.3s var(--ease-out);
}
.project-hero .back-link:hover { color: var(--red-bright); gap: 12px; }
.project-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 16px;
}
.project-hero .project-tagline {
  font-size: 1.15rem; color: var(--white-muted); margin-bottom: 24px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

.project-content { padding: 0 24px 100px; position: relative; z-index: 5; }
.project-content .container { max-width: 900px; margin: 0 auto; }
.project-content-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start;
}
@media (max-width: 768px) { .project-content-grid { grid-template-columns: 1fr; } }

.project-main img {
  border-radius: var(--radius-md); margin: 24px 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.project-main h3 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 16px; color: var(--white); }
.project-main p, .project-main li { color: var(--white-muted); font-size: 1.02rem; line-height: 1.8; }
.project-main ul, .project-main ol { padding-left: 20px; margin-bottom: 20px; }
.project-main li { margin-bottom: 8px; }

.project-main blockquote {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px; margin: 28px 0;
  color: var(--white-off); font-size: 1rem;
}
.project-main blockquote li { color: var(--white-off); margin-bottom: 6px; }

.project-sidebar .widget-genz {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 20px;
}
.project-sidebar .widget-genz h4 { font-size: 1rem; margin-bottom: 16px; color: var(--red-bright); }
.project-sidebar .widget-genz ul { list-style: none; padding: 0; margin: 0; }
.project-sidebar .widget-genz li { margin-bottom: 10px; }
.project-sidebar .widget-genz a { color: var(--blue-bright); font-size: 0.95rem; }
.project-sidebar .widget-genz a:hover { color: var(--red-bright); }

.btn-demo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--grad-btn); color: var(--white);
  font-weight: 600; font-size: 0.95rem; border: none;
  border-radius: var(--radius-full); cursor: pointer;
  transition: all 0.4s var(--ease-spring); margin: 16px 0;
}
.btn-demo:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px var(--red-glow); color: var(--white);
}

/* ---- Blog ---- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px;
}
.blog-card {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg);
  padding: 32px; transition: all 0.4s var(--ease-out);
}
.blog-card:hover {
  border-color: rgba(226, 54, 54, 0.2); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.blog-card .blog-date {
  font-size: 0.8rem; color: var(--red-bright); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.blog-card p { color: var(--white-muted); font-size: 0.95rem; margin-bottom: 16px; }
.blog-card .read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-bright); font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
}
.blog-card:hover .read-more { gap: 12px; color: var(--red-bright); }

/* Divider */
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--blue-bright), transparent);
  margin: 0; border: none;
}

/* Utility */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-muted-genz { color: var(--white-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; } .mb-24 { margin-bottom: 24px; }
.mt-48 { margin-top: 48px; } .mb-48 { margin-bottom: 48px; }

/* Page loader */
.page-loader {
  position: fixed; inset: 0; background: var(--bg-primary);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s var(--ease-out);
}
.page-loader.loaded { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--red); border-right-color: var(--blue-bright);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 576px) {
  .hero h1 { letter-spacing: -1px; }
  .section-genz { padding: 64px 16px; }
  .hero { padding: 100px 16px 60px; }
  .hero-avatar { width: 120px; height: 120px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SPIDER-MAN THEMED ANIMATIONS
   ============================================ */

/* --- Web Strings (animated vertical web lines) --- */
.web-strings {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.web-string {
  position: absolute; top: -10%; width: 1px; height: 120%;
  background: linear-gradient(180deg, transparent, rgba(226,54,54,0.15), rgba(33,150,243,0.15), transparent);
  animation: webStringDrop 8s ease-in-out infinite;
}
.web-string:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
.web-string:nth-child(2) { left: 25%; animation-delay: -2s; animation-duration: 12s; }
.web-string:nth-child(3) { left: 45%; animation-delay: -4s; animation-duration: 9s; }
.web-string:nth-child(4) { left: 65%; animation-delay: -1s; animation-duration: 11s; }
.web-string:nth-child(5) { left: 85%; animation-delay: -3s; animation-duration: 10s; }

@keyframes webStringDrop {
  0%, 100% { opacity: 0; transform: translateY(-5%); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  50% { transform: translateY(5%); }
}

/* --- Spider-Sense Pulse (hero background ring) --- */
.spider-sense {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 300px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(226,54,54,0.08);
  animation: spiderSense 4s ease-out infinite;
}
.spider-sense:nth-child(2) { animation-delay: 1.3s; }
.spider-sense:nth-child(3) { animation-delay: 2.6s; }

@keyframes spiderSense {
  0% { width: 160px; height: 160px; opacity: 0.6; border-color: rgba(226,54,54,0.3); }
  100% { width: 600px; height: 600px; opacity: 0; border-color: rgba(33,150,243,0.05); }
}

/* --- Web Corner Decorations on cards --- */
.project-card-genz::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background:
    linear-gradient(225deg, rgba(226,54,54,0.2) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, transparent 29px, rgba(226,54,54,0.08) 30px, transparent 31px),
    radial-gradient(circle at 100% 0%, transparent 49px, rgba(33,150,243,0.06) 50px, transparent 51px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none; z-index: 1;
}
.project-card-genz:hover::before { opacity: 1; }

/* --- Staggered card entrance (web-sling in) --- */
.projects-grid .project-card-genz.visible {
  animation: webSling 0.6s var(--ease-spring) both;
}
.projects-grid .project-card-genz:nth-child(3n+1).visible { animation-delay: 0.05s; }
.projects-grid .project-card-genz:nth-child(3n+2).visible { animation-delay: 0.15s; }
.projects-grid .project-card-genz:nth-child(3n+3).visible { animation-delay: 0.25s; }

@keyframes webSling {
  0% { opacity: 0; transform: translateY(50px) rotate(-2deg) scale(0.95); }
  60% { transform: translateY(-8px) rotate(0.5deg) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

/* --- Stat card counter glow --- */
.stat-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--red), var(--blue-bright));
  opacity: 0; z-index: -1;
  transition: opacity 0.4s var(--ease-out);
}
.stat-card { position: relative; overflow: hidden; }
.stat-card:hover::before { opacity: 0.15; }

/* --- Pill hover web effect --- */
.pill::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 50% 50%, rgba(226,54,54,0.15), transparent 70%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.pill { position: relative; overflow: hidden; }
.pill:hover::before { opacity: 1; }

/* --- Spider-Man loader (mask eyes) --- */
.loader-spider {
  width: 80px; height: 40px; position: relative;
}
.spider-eye {
  position: absolute; top: 0; width: 30px; height: 40px;
  border: 3px solid var(--white); border-radius: 40% 60% 55% 45% / 60% 60% 40% 40%;
  animation: spiderBlink 3s ease-in-out infinite;
}
.spider-eye-left { left: 0; transform: scaleX(-1); }
.spider-eye-right { right: 0; }
.spider-eye::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--white); border-radius: inherit;
  animation: eyeGlow 2s ease-in-out infinite alternate;
}

@keyframes spiderBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
.spider-eye-left { animation: spiderBlink 3s ease-in-out infinite; transform: scaleX(-1); }

@keyframes eyeGlow {
  from { box-shadow: 0 0 10px rgba(226,54,54,0.5), 0 0 20px rgba(226,54,54,0.3); }
  to { box-shadow: 0 0 20px rgba(33,150,243,0.5), 0 0 40px rgba(33,150,243,0.3); }
}

/* --- Web-shoot line on section dividers --- */
.section-divider {
  position: relative; overflow: visible;
}
.section-divider::after {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-bright), var(--blue-bright), transparent);
  animation: webShoot 4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes webShoot {
  0% { clip-path: inset(0 100% 0 0); }
  40% { clip-path: inset(0 0 0 0); }
  60% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

/* --- Navbar web underline on hover --- */
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; right: 50%;
  height: 2px; background: var(--red-bright);
  transition: all 0.3s var(--ease-spring);
  border-radius: 1px;
}
.nav-links a:hover::after, .nav-links a.active::after {
  left: 18px; right: 18px;
}

/* --- Title text glitch flicker --- */
.hero h1 .gradient-text {
  animation: gradientShift 6s ease-in-out infinite, textFlicker 8s ease-in-out infinite;
}
@keyframes textFlicker {
  0%, 97%, 100% { opacity: 1; }
  97.5% { opacity: 0.8; transform: translateX(2px); }
  98% { opacity: 1; transform: translateX(-1px); }
  98.5% { opacity: 0.85; transform: translateX(0); }
}

/* --- Floating particles (spider tracers) --- */
.spider-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--red-bright); opacity: 0;
  animation: particleFloat 12s linear infinite;
}
.particle:nth-child(odd) { background: var(--blue-bright); }
.particle:nth-child(1) { left: 8%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; }
.particle:nth-child(3) { left: 35%; animation-delay: -4s; }
.particle:nth-child(4) { left: 50%; animation-delay: -6s; }
.particle:nth-child(5) { left: 65%; animation-delay: -8s; }
.particle:nth-child(6) { left: 78%; animation-delay: -10s; }
.particle:nth-child(7) { left: 90%; animation-delay: -1s; }
.particle:nth-child(8) { left: 42%; animation-delay: -5s; }

@keyframes particleFloat {
  0% { transform: translateY(110vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; transform: translateY(90vh) scale(1); }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

/* --- Social link web-swing on hover --- */
.social-link:hover {
  animation: socialSwing 0.5s var(--ease-spring);
}
@keyframes socialSwing {
  0% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-6px) rotate(-8deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
  75% { transform: translateY(-5px) rotate(-2deg); }
  100% { transform: translateY(-3px) rotate(0); }
}

/* --- Doc card spider web shimmer --- */
.doc-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(226,54,54,0.04) 40%,
    rgba(33,150,243,0.04) 60%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: cardShimmer 6s ease-in-out infinite;
  pointer-events: none; border-radius: var(--radius-lg);
}
@keyframes cardShimmer {
  0%, 100% { background-position: 200% 200%; }
  50% { background-position: 0% 0%; }
}

/* --- Web-shoot on click --- */
.web-shoot {
  position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
}
.web-shoot-line {
  position: absolute; top: 50%; left: 50%;
  width: 1px; height: 0;
  background: rgba(255,255,255,0.7);
  transform-origin: top center;
  animation: webLineShoot 0.5s var(--ease-out) forwards;
}
.web-shoot-line:nth-child(1) { transform: rotate(0deg); }
.web-shoot-line:nth-child(2) { transform: rotate(45deg); }
.web-shoot-line:nth-child(3) { transform: rotate(90deg); }
.web-shoot-line:nth-child(4) { transform: rotate(135deg); }
.web-shoot-line:nth-child(5) { transform: rotate(180deg); }
.web-shoot-line:nth-child(6) { transform: rotate(225deg); }
.web-shoot-line:nth-child(7) { transform: rotate(270deg); }
.web-shoot-line:nth-child(8) { transform: rotate(315deg); }
.web-shoot-node {
  position: absolute; top: 50%; left: 50%;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  background: white; border-radius: 50%;
  animation: webNodePop 0.4s var(--ease-spring) forwards;
}
@keyframes webLineShoot {
  0% { height: 0; opacity: 1; }
  60% { height: 40px; opacity: 0.8; }
  100% { height: 50px; opacity: 0; }
}
@keyframes webNodePop {
  0% { transform: scale(0); opacity: 1; }
  50% { transform: scale(2); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}
/* Web-shoot connecting arcs */
.web-shoot-arc {
  position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  clip-path: polygon(50% 50%, 100% 0%, 100% 50%);
  animation: webArcFade 0.5s var(--ease-out) forwards;
}
.web-shoot-arc:nth-child(10) { transform: rotate(0deg); }
.web-shoot-arc:nth-child(11) { transform: rotate(90deg); }
.web-shoot-arc:nth-child(12) { transform: rotate(180deg); }
.web-shoot-arc:nth-child(13) { transform: rotate(270deg); }
@keyframes webArcFade {
  0% { opacity: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  40% { opacity: 0.6; }
  100% { opacity: 0; width: 50px; height: 50px; margin: -25px 0 0 -25px; }
}

/* ============================================
   SPIDER-MAN ULTIMATE EDITION
   ============================================ */

/* --- Scroll Progress Web-Line (top of page) --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 10000;
  background: linear-gradient(90deg, var(--red), var(--red-bright), var(--white), var(--blue-bright), var(--blue));
  background-size: 300% 100%;
  animation: progressGradient 3s linear infinite;
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--red-glow), 0 0 20px var(--blue-glow);
}
@keyframes progressGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* --- Subtle cursor web trail (thin lines) --- */
.web-trail-line {
  position: fixed; pointer-events: none; z-index: 9997;
  width: 1px; height: 1px;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: opacity 0.8s ease;
}

/* --- Spider-Man Radial Web Background (hero) --- */
.web-radial {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.web-radial::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 200vmax; height: 200vmax;
  transform: translate(-50%, -50%);
  background:
    repeating-conic-gradient(
      transparent 0deg, transparent 14deg,
      rgba(226,54,54,0.03) 14.5deg, transparent 15deg
    );
  animation: webRadialSpin 120s linear infinite;
}
.web-radial::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 200vmax; height: 200vmax;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, transparent 80px, rgba(226,54,54,0.02) 81px, transparent 82px),
    radial-gradient(circle, transparent 160px, rgba(33,150,243,0.02) 161px, transparent 162px),
    radial-gradient(circle, transparent 240px, rgba(226,54,54,0.015) 241px, transparent 242px),
    radial-gradient(circle, transparent 320px, rgba(33,150,243,0.015) 321px, transparent 322px),
    radial-gradient(circle, transparent 400px, rgba(226,54,54,0.01) 401px, transparent 402px),
    radial-gradient(circle, transparent 500px, rgba(33,150,243,0.01) 501px, transparent 502px),
    radial-gradient(circle, transparent 620px, rgba(226,54,54,0.008) 621px, transparent 622px);
}
@keyframes webRadialSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Hero Avatar Web Ring --- */
.hero-avatar-wrap {
  position: relative; display: inline-block;
  margin-bottom: 16px;
}
.hero-avatar-wrap .web-ring {
  position: absolute; inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(226,54,54,0.25);
  animation: webRingSpin 20s linear infinite;
}
.hero-avatar-wrap .web-ring:nth-child(2) {
  inset: -35px;
  border-color: rgba(33,150,243,0.15);
  animation-direction: reverse;
  animation-duration: 30s;
  border-style: dotted;
}
.hero-avatar-wrap .web-ring:nth-child(3) {
  inset: -50px;
  border-color: rgba(226,54,54,0.08);
  animation-duration: 40s;
}
@keyframes webRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- White Web Drift Animation (disabled - caused star artifacts) --- */
.web-drift {
  display: none;
}
.web-strand {
  position: absolute; width: 200px; height: 200px;
  opacity: 0;
  animation: webDrift 18s ease-in-out infinite;
}
.web-strand::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.06) 49%, rgba(255,255,255,0.06) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.06) 49%, rgba(255,255,255,0.06) 51%, transparent 52%),
    linear-gradient(0deg, transparent 49%, rgba(255,255,255,0.04) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.04) 50%, transparent 51%);
}
.web-strand::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.web-strand:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; animation-duration: 20s; }
.web-strand:nth-child(2) { top: 15%; right: 10%; animation-delay: -4s; animation-duration: 22s; width: 150px; height: 150px; }
.web-strand:nth-child(3) { top: 40%; left: 15%; animation-delay: -8s; animation-duration: 18s; width: 180px; height: 180px; }
.web-strand:nth-child(4) { top: 60%; right: 5%; animation-delay: -12s; animation-duration: 24s; width: 160px; height: 160px; }
.web-strand:nth-child(5) { top: 80%; left: 40%; animation-delay: -6s; animation-duration: 19s; width: 140px; height: 140px; }
.web-strand:nth-child(6) { top: 25%; left: 60%; animation-delay: -15s; animation-duration: 21s; width: 120px; height: 120px; }

@keyframes webDrift {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.8); }
  15% { opacity: 0.8; }
  50% { transform: translate(30px, 20px) rotate(45deg) scale(1.1); }
  85% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(-20px, 40px) rotate(90deg) scale(0.9); }
}

/* --- Web Corner Flickers (random white flashes in corners) --- */
.web-flicker {
  position: fixed; pointer-events: none; z-index: 0;
}
.web-flicker::before {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%),
    linear-gradient(45deg, transparent 60%, rgba(255,255,255,0.04) 100%);
  animation: flickerGlow 6s ease-in-out infinite;
}
.web-flicker-tl { top: 0; left: 0; }
.web-flicker-tl::before { border-radius: 0 0 100% 0; }
.web-flicker-tr { top: 0; right: 0; }
.web-flicker-tr::before { border-radius: 0 0 0 100%; animation-delay: -2s; }
.web-flicker-bl { bottom: 0; left: 0; }
.web-flicker-bl::before { border-radius: 0 100% 0 0; animation-delay: -4s; }
.web-flicker-br { bottom: 0; right: 0; }
.web-flicker-br::before { border-radius: 100% 0 0 0; animation-delay: -3s; }

@keyframes flickerGlow {
  0%, 100% { opacity: 0; }
  30% { opacity: 1; }
  50% { opacity: 0.3; }
  70% { opacity: 0.9; }
}

/* --- Glitch Effect on Section Titles --- */
.section-title-genz .highlight {
  position: relative;
}
.section-title-genz .highlight::before,
.section-title-genz .highlight::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
}
.section-title-genz .highlight::before {
  animation: glitchTop 4s ease-in-out infinite;
  clip-path: inset(0 0 65% 0);
}
.section-title-genz .highlight::after {
  animation: glitchBottom 4s ease-in-out infinite;
  clip-path: inset(65% 0 0 0);
}
@keyframes glitchTop {
  0%, 92%, 100% { opacity: 0; transform: translate(0); }
  93% { opacity: 0.8; transform: translate(-3px, -2px); }
  94% { opacity: 0; }
  96% { opacity: 0.6; transform: translate(2px, 1px); }
  97% { opacity: 0; }
}
@keyframes glitchBottom {
  0%, 92%, 100% { opacity: 0; transform: translate(0); }
  93.5% { opacity: 0.7; transform: translate(3px, 2px); }
  94.5% { opacity: 0; }
  96.5% { opacity: 0.5; transform: translate(-2px, -1px); }
  97.5% { opacity: 0; }
}

/* --- Magnetic Button Hover Glow --- */
.btn-primary-genz, .btn-secondary-genz {
  position: relative;
}
.btn-magnetic-glow {
  position: absolute; inset: -4px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--red-glow), var(--blue-glow));
  filter: blur(15px); opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none; z-index: -1;
}
.btn-primary-genz:hover .btn-magnetic-glow,
.btn-secondary-genz:hover .btn-magnetic-glow { opacity: 0.6; }

/* --- Hero Text Typewriter Cursor --- */
.type-cursor {
  display: inline-block; width: 3px; height: 1em;
  background: var(--red-bright); margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.7s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Card Hover Web Corners (all 4 corners) --- */
.project-card-genz .web-corner {
  position: absolute; width: 30px; height: 30px;
  opacity: 0; transition: opacity 0.4s var(--ease-out);
  pointer-events: none; z-index: 3;
}
.project-card-genz:hover .web-corner { opacity: 1; }
.web-corner-tl { top: 8px; left: 8px; }
.web-corner-tr { top: 8px; right: 8px; transform: scaleX(-1); }
.web-corner-bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.web-corner-br { bottom: 8px; right: 8px; transform: scale(-1); }
.web-corner svg { width: 100%; height: 100%; }

/* --- Easter Egg: Konami Spider-Man Mode --- */
body.spidey-mode {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23e23636' stroke='%23000' stroke-width='1'/%3E%3Cpath d='M12 2 L12 22 M2 12 L22 12 M4 4 L20 20 M20 4 L4 20' stroke='%23000' stroke-width='0.5' opacity='0.5'/%3E%3C/svg%3E") 12 12, auto;
}
body.spidey-mode .blob-1 { opacity: 0.3; animation-duration: 8s; }
body.spidey-mode .blob-2 { opacity: 0.3; animation-duration: 6s; }
body.spidey-mode .blob-3 { opacity: 0.25; }
body.spidey-mode .web-pattern { opacity: 0.06; }
body.spidey-mode .web-strings .web-string { opacity: 1; width: 2px; }
body.spidey-mode .particle { width: 5px; height: 5px; }
body.spidey-mode .hero-avatar {
  border-width: 5px;
  animation: avatarPulse 1.5s ease-in-out infinite;
}
body.spidey-mode .gradient-text {
  animation: gradientShift 2s ease-in-out infinite, textFlicker 3s ease-in-out infinite !important;
}

.spidey-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: var(--grad-btn); color: var(--white);
  padding: 14px 28px; border-radius: var(--radius-full);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1rem; z-index: 99999;
  animation: toastIn 0.5s var(--ease-spring), toastOut 0.5s var(--ease-out) 2.5s forwards;
  box-shadow: 0 8px 30px var(--red-glow);
  white-space: nowrap;
}
@keyframes toastIn {
  from { transform: translateX(-50%) translateY(60px) scale(0.8); opacity: 0; }
  to { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(-50%) translateY(0); opacity: 1; }
  to { transform: translateX(-50%) translateY(60px); opacity: 0; }
}

/* --- Scroll-triggered section label animation --- */
.section-label {
  overflow: hidden;
}
.section-label.visible::before {
  animation: labelLineIn 0.6s var(--ease-out) 0.2s both;
}
.section-label.visible::after {
  animation: labelLineIn 0.6s var(--ease-out) 0.4s both;
}
@keyframes labelLineIn {
  from { width: 0; }
  to { width: 24px; }
}

/* --- Hero CTA button web-string attachment --- */
.hero-actions::before {
  content: '';
  position: absolute; top: -60px; left: 50%;
  width: 1px; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(226,54,54,0.2), rgba(255,255,255,0.1));
  pointer-events: none;
}
.hero-actions { position: relative; }

/* --- Project card tech stack dots --- */
.project-card-genz .card-tech-dots {
  display: flex; gap: 4px; margin-top: auto; padding-top: 12px;
}
.tech-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); opacity: 0.5;
  transition: all 0.3s var(--ease-out);
}
.tech-dot:nth-child(even) { background: var(--blue-bright); }
.tech-dot:nth-child(3n) { background: var(--white); }
.project-card-genz:hover .tech-dot {
  opacity: 1; transform: scale(1.3);
}
.project-card-genz:hover .tech-dot:nth-child(1) { transition-delay: 0.05s; }
.project-card-genz:hover .tech-dot:nth-child(2) { transition-delay: 0.1s; }
.project-card-genz:hover .tech-dot:nth-child(3) { transition-delay: 0.15s; }
.project-card-genz:hover .tech-dot:nth-child(4) { transition-delay: 0.2s; }
.project-card-genz:hover .tech-dot:nth-child(5) { transition-delay: 0.25s; }

/* --- Minimal cursor glow override --- */
.cursor-glow {
  background: radial-gradient(circle, rgba(255,255,255,0.025), transparent 60%);
  mix-blend-mode: normal;
  width: 120px; height: 120px;
}

/* --- Footer spider web decoration --- */
.footer-genz::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 100px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(226,54,54,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.footer-genz { position: relative; }

/* --- Navbar spider icon --- */
.nav-spider-icon {
  width: 18px; height: 18px; display: inline-block; vertical-align: middle;
  margin-left: 4px; opacity: 0.7;
  animation: navSpiderBob 3s ease-in-out infinite;
}
@keyframes navSpiderBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* --- Back to top web-swing button --- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  background: var(--grad-btn); color: var(--white);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; z-index: 9999;
  opacity: 0; transform: translateY(20px);
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 4px 20px var(--red-glow);
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px var(--red-glow);
}
.back-to-top::before {
  content: ''; position: absolute; top: -100vh; left: 50%;
  width: 1px; height: 100vh;
  background: linear-gradient(180deg, transparent, rgba(226,54,54,0.15));
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s;
}
.back-to-top:hover::before { opacity: 1; }

/* ============================================
   WEB-SWING PAGE TRANSITIONS
   ============================================ */
.page-transition-overlay {
  position: fixed; inset: 0; z-index: 99998;
  pointer-events: none; overflow: hidden;
}
.page-transition-overlay.swinging {
  pointer-events: all;
}
.page-transition-overlay.swinging::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--bg-primary);
  transform: translateX(-100%) skewX(-8deg);
  animation: webSwingIn 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.page-transition-overlay.swinging::after {
  content: '';
  position: absolute; top: 0; left: 50%;
  width: 2px; height: 0;
  background: linear-gradient(180deg, var(--red), rgba(255,255,255,0.6));
  animation: webLineDown 0.3s ease-out 0.15s forwards;
  transform: translateX(-50%);
}
@keyframes webSwingIn {
  0% { transform: translateX(-100%) skewX(-8deg); }
  100% { transform: translateX(0) skewX(0deg); }
}
@keyframes webLineDown {
  0% { height: 0; opacity: 1; }
  100% { height: 100vh; opacity: 0.4; }
}
/* Small spider silhouette during transition */
.swing-spider {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2.5rem; color: var(--red-bright);
  opacity: 0; z-index: 2;
}
.page-transition-overlay.swinging .swing-spider {
  animation: spiderAppear 0.4s var(--ease-spring) 0.25s forwards;
}
@keyframes spiderAppear {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-45deg); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.2) rotate(10deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

/* ============================================
   COMIC PANEL LAYOUT - THWIP & POW
   ============================================ */
.projects-grid {
  gap: 0 !important;
  border: 3px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.project-card-genz {
  border-radius: 0 !important;
  border: 1.5px solid rgba(255,255,255,0.08) !important;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: all 0.4s var(--ease-out), clip-path 0.5s var(--ease-out);
}
/* Alternating diagonal cuts for comic feel */
.project-card-genz:nth-child(3n+1) {
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
}
.project-card-genz:nth-child(3n+2) {
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
}
.project-card-genz:nth-child(3n+3) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 3% 100%);
}
.project-card-genz:hover {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
  z-index: 5;
}
/* Halftone dot overlay on cards */
.project-card-genz::before {
  content: '' !important;
  position: absolute !important; inset: 0 !important;
  background-image: radial-gradient(circle, rgba(226,54,54,0.05) 1px, transparent 1px) !important;
  background-size: 8px 8px !important;
  opacity: 0 !important;
  transition: opacity 0.4s !important;
  pointer-events: none !important; z-index: 1 !important;
  width: auto !important; height: auto !important;
  border: none !important;
  top: 0 !important; left: 0 !important;
  transform: none !important;
}
.project-card-genz:hover::before {
  opacity: 1 !important;
}
/* THWIP / POW / ZAP sound-effect text */
.comic-sfx {
  position: absolute; z-index: 4;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900; font-style: italic;
  font-size: 1rem; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transform: scale(0) rotate(-10deg);
  transition: all 0.35s var(--ease-spring);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
  filter: drop-shadow(0 0 6px currentColor);
}
.comic-sfx-thwip { color: var(--red-bright); }
.comic-sfx-pow { color: #ffeb3b; }
.comic-sfx-zap { color: var(--blue-bright); }
.project-card-genz:hover .comic-sfx {
  opacity: 0.85; transform: scale(1) rotate(var(--sfx-rot, -6deg));
}
.project-card-genz:hover .comic-sfx:nth-last-child(1) {
  transition-delay: 0.05s;
}
.project-card-genz:hover .comic-sfx:nth-last-child(2) {
  transition-delay: 0.18s;
}
/* Comic-style bold border flash on hover */
.project-card-genz:hover {
  border-color: rgba(226,54,54,0.4) !important;
  box-shadow: 0 0 20px rgba(226,54,54,0.15), 0 16px 48px rgba(0,0,0,0.3);
}

/* ============================================
   WEB-NET CONSTELLATION CURSOR
   ============================================ */
.web-net-canvas {
  position: fixed; inset: 0; z-index: 9996;
  pointer-events: none;
}

/* ============================================
   DAILY BUGLE NEWS TICKER
   ============================================ */
.bugle-ticker {
  position: relative;
  display: flex; align-items: stretch;
  background: linear-gradient(90deg, rgba(226,54,54,0.12), rgba(10,14,39,0.95) 15%);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  overflow: hidden;
  margin: 60px 0 0;
  font-family: 'Space Grotesk', sans-serif;
}
.bugle-label {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-weight: 900; font-size: 0.75rem; letter-spacing: 2px;
  padding: 10px 18px; white-space: nowrap; z-index: 2;
  text-transform: uppercase;
  box-shadow: 4px 0 12px rgba(0,0,0,0.4);
}
.bugle-label i { font-size: 0.85rem; }
.bugle-track {
  flex: 1; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.bugle-scroll {
  display: flex; gap: 60px; white-space: nowrap;
  animation: bugleScroll 40s linear infinite;
  padding: 10px 0;
}
.bugle-scroll span {
  color: var(--white-muted); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.5px; flex-shrink: 0;
}
.bugle-scroll span::before {
  content: '\25C6'; color: var(--red-bright); margin-right: 10px;
  font-size: 0.55rem; vertical-align: middle;
}
.bugle-ticker:hover .bugle-scroll {
  animation-play-state: paused;
}
@keyframes bugleScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   WEB ZIP SCROLL
   ============================================ */
.web-zip-canvas {
  position: fixed; inset: 0; z-index: 9997;
  pointer-events: none;
}
.web-zip-hint {
  position: fixed; bottom: 90px; right: 30px;
  background: rgba(10,14,39,0.85); backdrop-filter: blur(8px);
  color: var(--white-muted); font-size: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  padding: 8px 14px; border-radius: var(--radius-full);
  border: 1px solid rgba(226,54,54,0.2);
  opacity: 0; transform: translateY(10px);
  transition: all 0.4s var(--ease-out);
  pointer-events: none; z-index: 9999;
  white-space: nowrap;
}
.web-zip-hint.visible {
  opacity: 1; transform: translateY(0);
}
.web-zip-hint kbd {
  background: rgba(226,54,54,0.2); color: var(--red-bright);
  padding: 2px 6px; border-radius: 4px; font-size: 0.65rem;
  font-weight: 700; margin-right: 4px;
}

/* --- Responsive Spider-Man additions --- */
@media (max-width: 768px) {
  .web-radial::before { display: none; }
  .hero-avatar-wrap .web-ring:nth-child(3) { display: none; }
  .web-drift { display: none; }
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
  .project-card-genz { clip-path: none !important; }
  .projects-grid { border: none; gap: 12px !important; }
  .comic-sfx { display: none; }
  .web-net-canvas { display: none; }
  .web-zip-canvas { display: none; }
  .web-zip-hint { display: none; }
  .bugle-label { padding: 8px 12px; font-size: 0.65rem; }
  .bugle-scroll span { font-size: 0.7rem; }
  .spidey-photo-btn { display: none; }
}
@media (max-width: 576px) {
  .hero-avatar-wrap .web-ring { display: none; }
  .web-strings { display: none; }
}

/* ============================================
   SYMBIOTE MODE (VENOM THEME)
   ============================================ */
.symbiote-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.15);
  color: var(--white-muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: all 0.4s var(--ease-out);
  margin-left: 8px; flex-shrink: 0;
}
.symbiote-toggle:hover {
  color: var(--white); border-color: rgba(255,255,255,0.3);
  transform: scale(1.1);
}
body.symbiote-mode .symbiote-toggle {
  background: #7b1fa2; border-color: #7b1fa2; color: #fff;
  box-shadow: 0 0 15px rgba(123,31,162,0.5);
}

/* Symbiote overrides */
body.symbiote-mode {
  --bg-primary: #050508;
  --bg-card: rgba(15, 5, 25, 0.6);
  --red: #7b1fa2;
  --red-bright: #ab47bc;
  --red-glow: rgba(123, 31, 162, 0.3);
  --blue: #4a148c;
  --blue-bright: #9c27b0;
  --blue-glow: rgba(156, 39, 176, 0.2);
  --grad-text: linear-gradient(135deg, #ce93d8, #ab47bc, #7b1fa2, #e1bee7);
  --grad-btn: linear-gradient(135deg, #7b1fa2, #4a148c);
}
body.symbiote-mode .blob-1 { background: radial-gradient(circle, rgba(123,31,162,0.15), transparent 70%); }
body.symbiote-mode .blob-2 { background: radial-gradient(circle, rgba(74,20,140,0.12), transparent 70%); }
body.symbiote-mode .blob-3 { background: radial-gradient(circle, rgba(156,39,176,0.08), transparent 70%); }
body.symbiote-mode .web-pattern {
  background-image:
    linear-gradient(0deg, rgba(123,31,162,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,31,162,0.03) 1px, transparent 1px);
}
body.symbiote-mode .web-string {
  background: none;
  width: 4px !important;
  border-radius: 3px;
  overflow: visible;
  animation-name: tendrilSlither !important;
}
body.symbiote-mode .web-string::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; width: 6px; height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(123,31,162,0.25) 15%,
    rgba(74,20,140,0.4) 30%,
    rgba(156,39,176,0.3) 50%,
    rgba(123,31,162,0.4) 70%,
    rgba(74,20,140,0.25) 85%,
    transparent 100%
  );
  border-radius: 4px;
  filter: blur(1px);
}
body.symbiote-mode .web-string::after {
  content: '';
  position: absolute;
  top: 5%; left: 50%; width: 2px; height: 90%;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent,
    rgba(206,147,216,0.5) 20%,
    rgba(171,71,188,0.6) 50%,
    rgba(206,147,216,0.5) 80%,
    transparent
  );
  border-radius: 2px;
}
body.symbiote-mode .web-string:nth-child(odd) {
  animation-name: tendrilSlither !important;
}
body.symbiote-mode .web-string:nth-child(even) {
  animation-name: tendrilSlitherAlt !important;
}
@keyframes tendrilSlither {
  0%, 100% { opacity: 0.6; transform: translateY(-3%) translateX(0px) scaleX(1); }
  25% { opacity: 1; transform: translateY(0%) translateX(8px) scaleX(1.5); }
  50% { opacity: 0.8; transform: translateY(3%) translateX(-5px) scaleX(0.8); }
  75% { opacity: 1; transform: translateY(1%) translateX(10px) scaleX(1.3); }
}
@keyframes tendrilSlitherAlt {
  0%, 100% { opacity: 0.6; transform: translateY(-2%) translateX(0px) scaleX(1); }
  25% { opacity: 0.9; transform: translateY(1%) translateX(-10px) scaleX(1.4); }
  50% { opacity: 1; transform: translateY(4%) translateX(6px) scaleX(0.9); }
  75% { opacity: 0.8; transform: translateY(0%) translateX(-8px) scaleX(1.2); }
}
body.symbiote-mode .web-strand::before {
  background:
    linear-gradient(45deg, transparent 48%, rgba(123,31,162,0.06) 49%, rgba(123,31,162,0.06) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(123,31,162,0.06) 49%, rgba(123,31,162,0.06) 51%, transparent 52%),
    linear-gradient(0deg, transparent 49%, rgba(123,31,162,0.04) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(123,31,162,0.04) 50%, transparent 51%);
}
body.symbiote-mode .navbar-genz.scrolled {
  border-bottom-color: rgba(123,31,162,0.25);
}
body.symbiote-mode .scroll-progress {
  background: linear-gradient(90deg, #7b1fa2, #ab47bc, #e1bee7, #9c27b0, #4a148c);
}
body.symbiote-mode .bugle-ticker { border-color: #7b1fa2; }
body.symbiote-mode .bugle-label { background: #7b1fa2; }
body.symbiote-mode .bugle-scroll span::before { color: #ab47bc; }
body.symbiote-mode .particle { background: rgba(123,31,162,0.5); }
body.symbiote-mode .spider-sense { border-color: rgba(123,31,162,0.1); }
/* Symbiote tendril effect on hero */
body.symbiote-mode .hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(123,31,162,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(74,20,140,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(156,39,176,0.08) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
  animation: tendrilPulse 4s ease-in-out infinite;
}
@keyframes tendrilPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}
/* Symbiote toast */
.symbiote-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #7b1fa2, #4a148c); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1rem; z-index: 99999;
  animation: toastIn 0.5s var(--ease-spring), toastOut 0.5s var(--ease-out) 2.5s forwards;
  box-shadow: 0 8px 30px rgba(123,31,162,0.4);
  white-space: nowrap;
}

/* ============================================
   SPIDEY PHOTO MODE
   ============================================ */
.spidey-photo-btn {
  position: fixed; bottom: 90px; left: 30px;
  width: 46px; height: 46px;
  background: var(--bg-card); backdrop-filter: blur(12px);
  color: var(--white-muted); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; z-index: 9999;
  transition: all 0.4s var(--ease-out);
}
.spidey-photo-btn:hover {
  color: var(--white); border-color: var(--red);
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 4px 20px var(--red-glow);
}
.spidey-photo-btn.flash {
  animation: cameraFlash 0.5s ease-out;
}
@keyframes cameraFlash {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
  50% { box-shadow: 0 0 60px 30px rgba(255,255,255,0.3); }
  100% { box-shadow: 0 4px 20px var(--red-glow); }
}
/* Full-screen flash overlay */
.photo-flash-overlay {
  position: fixed; inset: 0; z-index: 99997;
  background: rgba(255,255,255,0.9);
  pointer-events: none;
  animation: flashFade 0.4s ease-out forwards;
}
@keyframes flashFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
/* Comic frame around screenshot */
.photo-frame-preview {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.3) rotate(-5deg);
  border: 6px solid var(--white);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 2px var(--red);
  z-index: 99998;
  max-width: 60vw; max-height: 60vh;
  animation: photoPopIn 0.6s var(--ease-spring) forwards;
  cursor: pointer;
}
@keyframes photoPopIn {
  0% { transform: translate(-50%, -50%) scale(0.3) rotate(-5deg); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); opacity: 1; }
}
.photo-frame-preview img {
  display: block; max-width: 100%; max-height: 60vh;
}
.photo-frame-label {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--white);
  padding: 4px 16px; border-radius: var(--radius-full);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  white-space: nowrap;
}

/* ============================================
   DAILY BUGLE TOP TICKER
   ============================================ */
.bugle-ticker-top {
  margin: 0; position: relative; z-index: 1;
  border-top: none;
}
.bugle-ticker-top .bugle-scroll {
  animation-direction: reverse;
}

/* ============================================
   COMIC SPEECH BUBBLE TOOLTIPS
   ============================================ */
.comic-tooltip {
  position: absolute; z-index: 100;
  background: #fff; color: #111;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.75rem;
  padding: 8px 14px; border-radius: 12px;
  border: 2px solid #111;
  box-shadow: 3px 3px 0 #111;
  pointer-events: none;
  opacity: 0; transform: scale(0.6) translateY(8px);
  transition: all 0.25s var(--ease-spring);
  white-space: nowrap;
  max-width: 220px;
}
.comic-tooltip::after {
  content: '';
  position: absolute; bottom: -10px; left: 20px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #111;
}
.comic-tooltip::before {
  content: '';
  position: absolute; bottom: -7px; left: 21px;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #fff;
  z-index: 1;
}
.comic-tooltip.visible {
  opacity: 1; transform: scale(1) translateY(0);
}
body.symbiote-mode .comic-tooltip {
  background: #1a0a2e; color: #e1bee7;
  border-color: #7b1fa2;
  box-shadow: 3px 3px 0 #7b1fa2;
}
body.symbiote-mode .comic-tooltip::after { border-top-color: #7b1fa2; }
body.symbiote-mode .comic-tooltip::before { border-top-color: #1a0a2e; }

/* ============================================
   NEWSPAPER FOLD TICKER
   ============================================ */
.bugle-ticker {
  transform-origin: top center;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}
.bugle-ticker.folded {
  transform: perspective(800px) rotateX(-90deg);
  opacity: 0;
}
.bugle-ticker.unfolding {
  animation: newspaperUnfold 0.8s var(--ease-spring) forwards;
}
@keyframes newspaperUnfold {
  0% { transform: perspective(800px) rotateX(-90deg); opacity: 0; }
  40% { transform: perspective(800px) rotateX(10deg); opacity: 0.8; }
  70% { transform: perspective(800px) rotateX(-5deg); opacity: 1; }
  100% { transform: perspective(800px) rotateX(0deg); opacity: 1; }
}


/* ============================================
   ACHIEVEMENT BADGES
   ============================================ */
.achievement-panel {
  position: fixed; bottom: 30px; right: 30px;
  z-index: 9998;
}
.achievement-badge {
  position: fixed; bottom: -80px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--bg-card), rgba(226,54,54,0.15));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226,54,54,0.3);
  border-radius: var(--radius-full);
  padding: 10px 20px 10px 14px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  z-index: 99999;
  transition: bottom 0.5s var(--ease-spring), opacity 0.3s ease;
  box-shadow: 0 8px 32px rgba(226,54,54,0.2);
  white-space: nowrap;
}
.achievement-badge.show {
  bottom: 30px;
}
.achievement-badge .badge-icon {
  width: 32px; height: 32px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--white);
  flex-shrink: 0;
}
.achievement-badge .badge-text {
  display: flex; flex-direction: column;
}
.achievement-badge .badge-title {
  font-weight: 800; font-size: 0.8rem;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--red-bright);
}
.achievement-badge .badge-desc {
  font-size: 0.72rem; color: var(--white-muted);
  margin-top: 1px;
}
body.symbiote-mode .achievement-badge {
  background: linear-gradient(135deg, var(--bg-card), rgba(123,31,162,0.15));
  border-color: rgba(123,31,162,0.3);
  box-shadow: 0 8px 32px rgba(123,31,162,0.2);
}
body.symbiote-mode .achievement-badge .badge-icon { background: #7b1fa2; }
body.symbiote-mode .achievement-badge .badge-title { color: #ab47bc; }

/* ============================================
   PAGE HEARTBEAT BORDER
   ============================================ */
.page-heartbeat {
  position: fixed; inset: 0; z-index: 99990;
  pointer-events: none;
  animation: heartbeat 2.5s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}
.page-heartbeat.intensified {
  animation: heartbeatIntense 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% {
    box-shadow: inset 0 0 15px rgba(226,54,54,0.03), inset 0 0 40px rgba(226,54,54,0);
  }
  30% {
    box-shadow: inset 0 0 25px rgba(226,54,54,0.08), inset 0 0 60px rgba(226,54,54,0.03);
  }
  45% {
    box-shadow: inset 0 0 15px rgba(226,54,54,0.02), inset 0 0 40px rgba(226,54,54,0);
  }
  60% {
    box-shadow: inset 0 0 20px rgba(226,54,54,0.06), inset 0 0 50px rgba(226,54,54,0.02);
  }
}
@keyframes heartbeatIntense {
  0%, 100% {
    box-shadow: inset 0 0 20px rgba(226,54,54,0.06), inset 0 0 50px rgba(226,54,54,0.02);
  }
  30% {
    box-shadow: inset 0 0 35px rgba(226,54,54,0.14), inset 0 0 80px rgba(226,54,54,0.06);
  }
  45% {
    box-shadow: inset 0 0 20px rgba(226,54,54,0.04), inset 0 0 50px rgba(226,54,54,0.01);
  }
  60% {
    box-shadow: inset 0 0 30px rgba(226,54,54,0.1), inset 0 0 70px rgba(226,54,54,0.04);
  }
}
body.symbiote-mode .page-heartbeat {
  animation-name: heartbeatSymbiote;
}
body.symbiote-mode .page-heartbeat.intensified {
  animation-name: heartbeatSymbioteIntense;
}
@keyframes heartbeatSymbiote {
  0%, 100% {
    box-shadow: inset 0 0 15px rgba(123,31,162,0.04), inset 0 0 40px rgba(123,31,162,0);
  }
  30% {
    box-shadow: inset 0 0 25px rgba(123,31,162,0.1), inset 0 0 60px rgba(123,31,162,0.04);
  }
  45% {
    box-shadow: inset 0 0 15px rgba(123,31,162,0.02), inset 0 0 40px rgba(123,31,162,0);
  }
  60% {
    box-shadow: inset 0 0 20px rgba(123,31,162,0.07), inset 0 0 50px rgba(123,31,162,0.03);
  }
}
@keyframes heartbeatSymbioteIntense {
  0%, 100% {
    box-shadow: inset 0 0 20px rgba(123,31,162,0.08), inset 0 0 50px rgba(123,31,162,0.03);
  }
  30% {
    box-shadow: inset 0 0 35px rgba(123,31,162,0.18), inset 0 0 80px rgba(123,31,162,0.08);
  }
  45% {
    box-shadow: inset 0 0 20px rgba(123,31,162,0.05), inset 0 0 50px rgba(123,31,162,0.02);
  }
  60% {
    box-shadow: inset 0 0 30px rgba(123,31,162,0.13), inset 0 0 70px rgba(123,31,162,0.05);
  }
}

/* ============================================
   SPIDEY QUOTE ROTATOR
   ============================================ */
.spidey-quote {
  font-style: italic; color: var(--white-muted);
  font-size: 0.85rem; margin-top: 8px;
  opacity: 0; transform: translateY(6px);
  animation: quoteReveal 0.6s var(--ease-out) 0.5s forwards;
}
.spidey-quote::before {
  content: '\201C'; color: var(--red-bright); font-size: 1.1rem;
  margin-right: 2px; font-style: normal;
}
.spidey-quote::after {
  content: '\201D'; color: var(--red-bright); font-size: 1.1rem;
  margin-left: 2px; font-style: normal;
}
@keyframes quoteReveal {
  to { opacity: 1; transform: translateY(0); }
}
body.symbiote-mode .spidey-quote::before,
body.symbiote-mode .spidey-quote::after { color: #ab47bc; }

/* ============================================
   SCROLL DEPTH WEB-SHOOTER MILESTONES
   ============================================ */
.web-milestone {
  position: fixed; top: 0; z-index: 10001;
  pointer-events: none;
}
.web-strand-shoot {
  position: absolute; top: 3px;
  width: 2px; height: 0;
  background: linear-gradient(180deg, var(--red-bright), rgba(226,54,54,0.3), transparent);
  border-radius: 0 0 2px 2px;
  animation: strandShoot 0.8s var(--ease-out) forwards;
  transform-origin: top center;
}
.web-strand-shoot::after {
  content: '';
  position: absolute; bottom: -4px; left: -3px;
  width: 8px; height: 8px;
  background: radial-gradient(circle, rgba(226,54,54,0.6), transparent 70%);
  border-radius: 50%;
  animation: strandGlow 0.8s ease-out forwards;
}
@keyframes strandShoot {
  0% { height: 0; opacity: 1; }
  50% { height: 50px; opacity: 0.8; }
  100% { height: 60px; opacity: 0; }
}
@keyframes strandGlow {
  0% { transform: scale(0); opacity: 0; }
  30% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
.web-milestone-badge {
  position: absolute; top: 12px;
  transform: translateX(-50%);
  background: var(--red); color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 0.6rem;
  padding: 3px 8px; border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0; animation: milestonePop 0.6s var(--ease-spring) 0.15s forwards;
  box-shadow: 0 4px 12px rgba(226,54,54,0.3);
}
@keyframes milestonePop {
  0% { opacity: 0; transform: translateX(-50%) scale(0) translateY(-5px); }
  60% { opacity: 1; transform: translateX(-50%) scale(1.15) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.9) translateY(2px); }
}
body.symbiote-mode .web-strand-shoot {
  background: linear-gradient(180deg, #ab47bc, rgba(123,31,162,0.3), transparent);
}
body.symbiote-mode .web-strand-shoot::after {
  background: radial-gradient(circle, rgba(123,31,162,0.6), transparent 70%);
}
body.symbiote-mode .web-milestone-badge {
  background: #7b1fa2;
  box-shadow: 0 4px 12px rgba(123,31,162,0.3);
}