/* ============================================================
   SPIDER-VERSE PORTFOLIO - style.css
   Mohamed Fazil Rahman
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --spidey-red:    #E23636;
  --spidey-blue:   #003087;
  --spidey-dark:   #0d0d0d;
  --spidey-darker: #050505;
  --spidey-white:  #F5F5F5;
  --neon-red:      #ff0033;
  --accent-gold:   #FFD700;
  --cyber-panel:   rgba(13, 13, 13, 0.68);
  --cyber-border:  rgba(226, 54, 54, 0.24);
  --cyber-muted:   rgba(245, 245, 245, 0.68);
  --panel-border:  2px solid var(--spidey-red);
  --blue-border:   2px solid var(--spidey-blue);
  --font-hero:     'Bangers', cursive;
  --font-body:     'Oswald', sans-serif;
  --font-comic:    'Comic Neue', cursive;
  --font-code:     'Source Code Pro', monospace;
  --transition:    0.3s ease;
  --glow-red:      0 0 18px rgba(226, 54, 54, 0.32), 0 0 42px rgba(226, 54, 54, 0.16);
  --glow-blue:     0 0 18px rgba(0, 48, 135, 0.28), 0 0 36px rgba(0, 48, 135, 0.12);
  --glow-gold:     0 0 18px rgba(255, 215, 0, 0.28), 0 0 38px rgba(255, 215, 0, 0.12);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--spidey-dark);
  background-image:
    linear-gradient(rgba(5,8,22,0.45), rgba(5,8,22,0.45)),
    url("images/MILES FALLING.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--spidey-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: default;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--spidey-darker); }
::-webkit-scrollbar-thumb {
  background: var(--spidey-red);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-red); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 54, 54, 0.2);
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.98);
  border-bottom-color: var(--spidey-red);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-hero);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--spidey-white);
  transition: color var(--transition);
}

.nav-logo:hover { color: var(--spidey-red); }
.spider-icon { font-size: 1.4rem; }

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: none;
}

.footer-brand-logo {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--spidey-white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--spidey-red);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--spidey-red);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--spidey-white);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--spidey-darker);
  padding: 78px 0 42px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(1.04) contrast(1.08) brightness(0.94);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.46), rgba(13,13,13,0.24) 46%, rgba(5,5,5,0.5)),
    linear-gradient(180deg, rgba(5,5,5,0.52), rgba(13,13,13,0.24) 45%, rgba(5,5,5,0.62));
  pointer-events: none;
}

/* Halftone dot overlay */
.halftone-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: radial-gradient(circle, rgba(226,54,54,0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Action lines */
.action-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(0,48,135,0.018) 0deg 5deg,
    transparent 5deg 10deg
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 1rem;
  max-width: 960px;
  width: 100%;
}

/* Available badge */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 17, 31, 0.54);
  border: 1px solid var(--spidey-red);
  color: var(--spidey-red);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 0 24px rgba(53, 200, 255, 0.1);
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #7CFFCB;
  border-radius: 50%;
  animation: pulse-green 1.5s ease infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

/* Hero Name */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 6px;
  color: #E23636;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-name {
  font-family: var(--font-hero);
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: 4px;
  color: var(--spidey-white);
  text-shadow:
    3px 3px 0px rgba(53, 200, 255, 0.68),
    -1px -1px 0px rgba(109, 93, 247, 0.75),
    0 0 30px rgba(53, 200, 255, 0.13);
  margin-bottom: 0.4rem;
}

.hero-role {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 4px;
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

/* Glitch effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-family: var(--font-hero);
  font-size: inherit;
  letter-spacing: inherit;
}

.glitch::before {
  color: var(--spidey-red);
  animation: glitch-before 4s steps(1) infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: var(--spidey-blue);
  animation: glitch-after 4s steps(1) infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-before {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  91%  { transform: translate(-4px, -2px); opacity: 0.8; }
  93%  { transform: translate(4px, 2px);  opacity: 0.8; }
  95%  { transform: translate(-3px, 1px); opacity: 0.8; }
  97%  { transform: translate(3px, -1px); opacity: 0.8; }
  99%  { transform: translate(0); opacity: 0; }
}

@keyframes glitch-after {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92%  { transform: translate(4px, 2px);  opacity: 0.8; }
  94%  { transform: translate(-4px, -2px); opacity: 0.8; }
  96%  { transform: translate(3px, -1px); opacity: 0.8; }
  98%  { transform: translate(-2px, 2px); opacity: 0.8; }
  99%  { transform: translate(0); opacity: 0; }
}

/* Hero Quote */
.hero-quote-wrap {
  position: relative;
  margin: 0 auto 1.6rem;
  max-width: 680px;
  padding: 1.1rem 1.8rem;
  background: rgba(7, 17, 31, 0.45);
  border-left: 3px solid var(--spidey-red);
  border-right: 3px solid var(--spidey-red);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.24);
}

.quote-mark {
  font-family: var(--font-hero);
  font-size: 4rem;
  color: var(--spidey-red);
  line-height: 0;
  position: absolute;
  top: 20px; left: 10px;
  opacity: 0.4;
}

.quote-mark.close { left: auto; right: 10px; top: auto; bottom: 10px; }

.hero-quote {
  font-family: var(--font-comic);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245,245,245,0.9);
  font-style: italic;
  min-height: 2em;
}

/* Typewriter cursor */
.hero-quote::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  color: var(--spidey-red);
  font-style: normal;
}

.hero-quote.done::after { display: none; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 142px;
}

.stat-value {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 3rem;
}

.stat-number {
  font-family: var(--font-hero);
  font-size: 3rem;
  color: var(--spidey-red);
  text-shadow: 0 0 18px rgba(53, 200, 255, 0.2);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-hero);
  font-size: 1.7rem;
  color: var(--spidey-red);
  line-height: 1;
  vertical-align: top;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,245,245,0.6);
  max-width: 150px;
  line-height: 1.25;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--spidey-red), transparent);
  margin: 0 0.5rem;
}

/* Buttons */
.hero-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--spidey-red);
  color: #050505;
  box-shadow: 0 10px 28px rgba(53, 200, 255, 0.18);
}

.btn-primary:hover {
  background: var(--neon-red);
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(7, 17, 31, 0.32);
  color: var(--spidey-white);
  border: 1px solid rgba(245,245,245,0.72);
  clip-path: none;
  padding: 12px 30px;
}

.btn-secondary:hover {
  border-color: var(--spidey-red);
  color: var(--spidey-red);
  box-shadow: var(--glow-red);
  transform: translateY(-2px);
}

.btn.full-width { width: 100%; justify-content: center; }

/* Web corners */
.hero-web-corners { pointer-events: none; }

.web-corner {
  position: absolute;
  z-index: 4;
  opacity: 0.18;
}

.web-corner.top-left { top: 0; left: 0; width: 200px; height: 200px; }

/* ---------- Sections ---------- */
.section {
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 68px;
}

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--spidey-red), transparent);
  opacity: 0.3;
}

.section::after {
  content: '';
  position: absolute;
  top: 2rem;
  right: max(1rem, calc((100vw - 1200px) / 2));
  width: 92px;
  height: 2px;
  background: linear-gradient(to right, var(--spidey-red), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* Chapter headers */
.chapter-header {
  text-align: center;
  margin-bottom: 4rem;
}

.chapter-num {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--spidey-red);
  background: rgba(226, 54, 54, 0.1);
  border: 1px solid var(--spidey-red);
  padding: 4px 14px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-hero);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--spidey-white);
  text-shadow: 3px 3px 0 var(--spidey-red);
  line-height: 1;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--spidey-red), var(--spidey-blue));
  margin: 1rem auto 0;
  position: relative;
}

.title-underline::before,
.title-underline::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--spidey-red);
  border-radius: 50%;
}

.title-underline::before { left: -12px; }
.title-underline::after  { right: -12px; }

/* ---------- Comic Panel ---------- */
.comic-panel {
  position: relative;
  border: 2px solid var(--spidey-red);
  background: rgba(13,13,13,0.9);
  padding: 2rem;
}

.comic-panel::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(226,54,54,0.2);
  pointer-events: none;
}

.panel-corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--spidey-red);
  border-style: solid;
}

.panel-corner.tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.panel-corner.tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.panel-corner.bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.panel-corner.br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About Section ---------- */
.about-section {
  background:
    radial-gradient(circle at 16% 28%, rgba(226,54,54,0.09), transparent 34%),
    radial-gradient(circle at 84% 70%, rgba(0,48,135,0.12), transparent 38%),
    var(--spidey-darker);
}

.about-grid {
  display: block;
}

.about-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(245,245,245,0.08), rgba(245,245,245,0.025)),
    rgba(13,13,13,0.72);
  border: 1px solid var(--cyber-border);
  border-radius: 8px;
  padding: 2.3rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.34), inset 0 0 42px rgba(226,54,54,0.035);
  backdrop-filter: blur(16px);
}

.about-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: stretch;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
  border-right: 1px solid rgba(245,245,245,0.1);
}

.about-photo-wrap {
  width: clamp(150px, 18vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 4px;
  margin-bottom: 1.6rem;
  background: linear-gradient(135deg, var(--spidey-red), var(--spidey-blue));
  box-shadow: 0 0 24px rgba(226, 54, 54, 0.3), 0 16px 44px rgba(0,0,0,0.34);
}

.about-photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(5,5,5,0.88);
}

.about-greeting {
  font-family: var(--font-comic);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--spidey-white);
  letter-spacing: 0.5px;
}

.wave { display: inline-block; animation: wave-hand 1.5s ease infinite; }
@keyframes wave-hand { 0%,100% { transform: rotate(0); } 50% { transform: rotate(20deg); } }

.accent-name {
  color: var(--spidey-red);
  font-family: var(--font-hero);
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.about-desc {
  font-family: var(--font-comic);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--cyber-muted);
  margin-bottom: 1rem;
}

.about-cards {
  display: contents;
}

.about-focus-list {
  display: grid;
  gap: 1rem;
}

.ability-card {
  background: rgba(5,5,5,0.42);
  border: 1px solid rgba(245,245,245,0.1);
  border-radius: 6px;
  padding: 1.2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.ability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--spidey-red), var(--spidey-blue));
}

.ability-card:hover {
  border-color: var(--cyber-border);
  box-shadow: 0 16px 36px rgba(0,0,0,0.28), var(--glow-red);
  transform: translateX(4px);
}

.ability-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226,54,54,0.28);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--spidey-red);
  margin-bottom: 0.75rem;
  background: rgba(226,54,54,0.08);
}

.ability-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--spidey-white);
  margin-bottom: 0.4rem;
}

.ability-card p {
  font-family: var(--font-comic);
  font-size: 0.85rem;
  color: rgba(245,245,245,0.62);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.ability-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(226,54,54,0.12);
  border: 1px solid rgba(226,54,54,0.35);
  color: var(--spidey-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-code);
}

/* ---------- Skills Section ---------- */
.skills-section {
  background:
    linear-gradient(135deg, rgba(226,54,54,0.06), transparent 32%),
    linear-gradient(225deg, rgba(0,48,135,0.1), transparent 36%),
    var(--spidey-dark);
}

.skills-section::before { display: none; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.5rem;
}

.skill-group {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    rgba(5,5,5,0.86);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid rgba(226,54,54,0.78);
  padding: 1.55rem;
  min-height: 238px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.skill-group::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(226,54,54,0.12) 45%, transparent 46%),
    radial-gradient(circle at 90% 12%, rgba(226,54,54,0.16), transparent 26%);
  opacity: 0.55;
  pointer-events: none;
}

.skill-group::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.05rem;
  height: 1px;
  background: linear-gradient(to right, rgba(226,54,54,0.65), transparent);
  opacity: 0.65;
  pointer-events: none;
}

.skill-group:hover {
  border-color: rgba(226,54,54,0.8);
  box-shadow: inset 0 0 38px rgba(226,54,54,0.07), 0 18px 42px rgba(0,0,0,0.38), var(--glow-red);
  transform: translateY(-4px);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.skill-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(226,54,54,0.12);
  border: 1px solid var(--spidey-red);
  color: var(--spidey-red);
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 16px rgba(226,54,54,0.12);
}

.skill-icon.red  { background: rgba(226,54,54,0.15);  border-color: var(--spidey-red);  color: var(--spidey-red); }
.skill-icon.blue { background: rgba(0,48,135,0.25);    border-color: var(--spidey-blue); color: #4488ff; }
.skill-icon.gold { background: rgba(255,215,0,0.12);   border-color: var(--accent-gold); color: var(--accent-gold); }

.skill-group h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--spidey-white);
  line-height: 1.2;
}

.skill-group-header p {
  margin-top: 0.25rem;
  font-family: var(--font-code);
  font-size: 0.64rem;
  line-height: 1.45;
  letter-spacing: 1px;
  color: rgba(245,245,245,0.48);
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.web-tag {
  font-family: var(--font-code);
  font-size: 0.7rem;
  padding: 4px 12px;
  background: rgba(245,245,245,0.055);
  border: 1px solid rgba(245,245,245,0.12);
  color: rgba(245,245,245,0.76);
  letter-spacing: 1px;
  transition: all var(--transition);
  cursor: default;
  position: relative;
}

.web-tag::before {
  content: '>';
  margin-right: 4px;
  font-size: 0.6rem;
  color: var(--spidey-red);
}

.web-tag:hover {
  background: rgba(226,54,54,0.12);
  border-color: var(--spidey-red);
  color: var(--spidey-red);
}

.web-tag.red-tag  { border-color: rgba(226,54,54,0.4); color: rgba(226,54,54,0.8); }
.web-tag.blue-tag { border-color: rgba(0,48,135,0.6);  color: #4488ff; }
.web-tag.gold-tag { border-color: rgba(255,215,0,0.4); color: var(--accent-gold); }

.web-tag.red-tag:hover  { background: rgba(226,54,54,0.2);  color: var(--spidey-red); }
.web-tag.blue-tag:hover { background: rgba(0,48,135,0.3);   color: #88aaff; }
.web-tag.gold-tag:hover { background: rgba(255,215,0,0.2);  color: var(--accent-gold); }

/* ---------- Experience Section ---------- */
.experience-section {
  background: var(--spidey-darker);
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 79px,
    rgba(226,54,54,0.04) 80px
  );
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--spidey-red), var(--spidey-blue), var(--spidey-red));
}

.timeline-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-left: 0;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  width: 42px; height: 42px;
  min-width: 42px;
  background: var(--spidey-dark);
  border: 2px solid var(--spidey-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  animation: web-pulse 2s ease infinite;
}

.timeline-dot.red-dot { border-color: var(--spidey-red); box-shadow: 0 0 0 0 rgba(226,54,54,0.5); }

@keyframes web-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,54,54,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(226,54,54,0); }
}

.timeline-card {
  flex: 1;
  position: relative;
}

.timeline-badge {
  display: inline-block;
  background: var(--spidey-red);
  color: white;
  font-family: var(--font-code);
  font-size: 0.65rem;
  padding: 3px 12px;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%);
}

.timeline-badge.red-badge { background: var(--neon-red); }

.exp-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--spidey-white);
  margin-bottom: 0.4rem;
}

.vapt-tag {
  font-family: var(--font-code);
  font-size: 0.65rem;
  padding: 2px 8px;
  background: var(--spidey-red);
  color: white;
  vertical-align: middle;
  margin-left: 8px;
  border-radius: 2px;
}

.exp-company {
  font-family: var(--font-comic);
  font-size: 0.85rem;
  color: var(--spidey-red);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-desc {
  font-family: var(--font-comic);
  font-size: 0.9rem;
  color: rgba(245,245,245,0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.exp-tech { display: flex; flex-wrap: wrap; gap: 8px; }

.tech-pill {
  font-family: var(--font-code);
  font-size: 0.68rem;
  padding: 3px 12px;
  background: rgba(245,245,245,0.05);
  border: 1px solid rgba(245,245,245,0.2);
  color: rgba(245,245,245,0.65);
  letter-spacing: 1px;
  transition: all var(--transition);
}

.tech-pill:hover {
  background: rgba(226,54,54,0.15);
  border-color: var(--spidey-red);
  color: var(--spidey-red);
}

.tech-pill.red-pill {
  border-color: rgba(226,54,54,0.3);
  color: rgba(226,54,54,0.8);
}

.tech-pill.red-pill:hover {
  background: rgba(226,54,54,0.2);
  color: var(--spidey-red);
}

.red-panel { border-color: var(--spidey-red); }

/* ---------- Projects Section ---------- */
.projects-section {
  background:
    radial-gradient(circle at 12% 36%, rgba(226,54,54,0.08) 0%, transparent 34%),
    radial-gradient(circle at 90% 48%, rgba(0,48,135,0.12) 0%, transparent 36%),
    radial-gradient(circle, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--spidey-dark);
  background-size: 100% 100%, 100% 100%, 32px 32px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.8rem;
}

.project-card {
  background:
    linear-gradient(145deg, rgba(245,245,245,0.09), rgba(245,245,245,0.025)),
    rgba(13,13,13,0.62);
  border: 1px solid rgba(245,245,245,0.12);
  border-radius: 8px;
  padding: 2.1rem 1.6rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--spidey-blue), var(--spidey-red), transparent);
}

.project-card:hover {
  border-color: rgba(226,54,54,0.34);
  box-shadow: 0 24px 64px rgba(0,0,0,0.38), var(--glow-red), inset 0 0 40px rgba(226,54,54,0.035);
  transform: translateY(-5px);
}

/* Red scanning line */
.project-scan-line {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(226,54,54,0.8), transparent);
  animation: scan 4s linear infinite;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-scan-line { opacity: 1; }

@keyframes scan {
  0%   { left: -60%; top: 0%; }
  50%  { left: 100%; top: 50%; }
  100% { left: -60%; top: 100%; }
}

.project-number {
  font-family: var(--font-hero);
  font-size: 5rem;
  color: rgba(226,54,54,0.08);
  position: absolute;
  top: 0.5rem; right: 1.5rem;
  line-height: 1;
  transition: color var(--transition);
}

.project-card:hover .project-number { color: rgba(0,48,135,0.18); }

.project-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226,54,54,0.25);
  border-radius: 8px;
  background: rgba(226,54,54,0.08);
  font-size: 1.2rem;
  color: var(--spidey-red);
  margin-bottom: 1rem;
}

.project-icon.gold-icon {
  color: var(--accent-gold);
  border-color: rgba(255,215,0,0.28);
  background: rgba(0,48,135,0.1);
}

.project-title {
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--spidey-white);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.project-subtitle {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: #E23636;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.project-desc {
  font-family: var(--font-comic);
  font-size: 0.9rem;
  color: rgba(245,245,245,0.68);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }

.tech-bubble {
  font-family: var(--font-code);
  font-size: 0.68rem;
  padding: 4px 12px;
  background: rgba(226,54,54,0.08);
  border: 1px solid rgba(226,54,54,0.24);
  color: rgba(199,241,255,0.92);
  letter-spacing: 1px;
  border-radius: 2px;
  transition: all var(--transition);
}

.tech-bubble.gold-bubble {
  background: rgba(0,48,135,0.1);
  border-color: rgba(255,215,0,0.28);
  color: var(--accent-gold);
}

.tech-bubble:hover { transform: translateY(-1px); box-shadow: 0 0 12px rgba(226,54,54,0.16); }
.tech-bubble.gold-bubble:hover { box-shadow: 0 0 12px rgba(255,215,0,0.16); }

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-action-word {
  display: none;
}

.project-card:hover .project-action-word { opacity: 1; }

.project-link {
  width: 40px; height: 40px;
  background: rgba(226,54,54,0.08);
  border: 1px solid var(--spidey-red);
  display: flex; align-items: center; justify-content: center;
  color: var(--spidey-red);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.project-link:hover {
  background: var(--spidey-red);
  color: white;
  box-shadow: var(--glow-red);
}

.project-link.gold-link {
  background: rgba(0,48,135,0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.project-link.gold-link:hover {
  background: var(--accent-gold);
  color: var(--spidey-darker);
}

/* ---------- Education Section ---------- */
.education-section {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05)),
    radial-gradient(circle at 12% 15%, rgba(226,54,54,0.08), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(0,48,135,0.12), transparent 32%),
    var(--spidey-darker);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: stretch;
}

.edu-card {
  background:
    linear-gradient(160deg, rgba(245,245,245,0.07), rgba(245,245,245,0.018)),
    rgba(13,13,13,0.72);
  border: 1px solid rgba(245,245,245,0.12);
  border-left: 3px solid var(--spidey-red);
  border-radius: 8px;
  padding: 1.6rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  min-height: 252px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--spidey-red), var(--spidey-blue), transparent);
}

.edu-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(226,54,54,0.08), transparent 38%);
  opacity: 0.8;
  pointer-events: none;
}

.edu-card:hover {
  border-color: rgba(226,54,54,0.34);
  box-shadow: 0 22px 58px rgba(0,0,0,0.38), var(--glow-red);
  transform: translateY(-4px);
}

.edu-year-badge {
  display: inline-flex;
  align-self: flex-start;
  background: var(--spidey-red);
  color: #050505;
  font-family: var(--font-code);
  font-size: 0.7rem;
  padding: 4px 16px;
  letter-spacing: 2px;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.edu-year-badge.blue-badge { background: var(--spidey-blue); color: var(--spidey-white); }

.edu-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226,54,54,0.3);
  background: rgba(226,54,54,0.08);
  font-size: 1.25rem;
  color: var(--spidey-red);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.edu-icon.blue-icon { color: #4488ff; border-color: rgba(255,215,0,0.26); background: rgba(0,48,135,0.1); }

.edu-degree {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--spidey-white);
  margin-bottom: 0.7rem;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.edu-spec {
  font-family: var(--font-comic);
  font-size: 0.85rem;
  color: rgba(245,245,245,0.64);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.edu-note {
  margin-top: 0.8rem;
  font-family: var(--font-code);
  font-size: 0.68rem;
  letter-spacing: 1px;
  line-height: 1.5;
  color: var(--accent-gold);
  position: relative;
  z-index: 1;
}

.edu-decoration {
  position: absolute;
  bottom: 0.85rem;
  right: 1.1rem;
  font-family: var(--font-hero);
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(226,54,54,0.11);
  opacity: 1;
  transition: opacity var(--transition);
  z-index: 0;
}

.edu-card:hover .edu-decoration { opacity: 0.28; }

/* Activities */
.activities-wrap {
  background:
    linear-gradient(145deg, rgba(245,245,245,0.05), rgba(245,245,245,0.015)),
    rgba(13,13,13,0.68);
  border: 1px solid var(--cyber-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 18px 46px rgba(0,0,0,0.24);
  backdrop-filter: blur(12px);
}

.activities-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--spidey-red);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spider-bullet { font-size: 1rem; }

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(5,5,5,0.34);
  border: 1px solid rgba(245,245,245,0.1);
  border-radius: 6px;
  transition: all var(--transition);
}

.activity-item:hover {
  border-color: rgba(226,54,54,0.28);
  background: rgba(226,54,54,0.07);
  transform: translateY(-2px);
}

.activity-item i {
  font-size: 1.3rem;
  color: var(--spidey-red);
  min-width: 20px;
}

.activity-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--spidey-white);
  margin-bottom: 4px;
}

.role-tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.65rem;
  padding: 2px 8px;
  background: rgba(226,54,54,0.08);
  border: 1px solid var(--spidey-red);
  color: var(--spidey-red);
  letter-spacing: 1px;
}

.role-tag.blue-role {
  background: rgba(0,48,135,0.12);
  border-color: var(--spidey-blue);
  color: #4488ff;
}

.role-tag.gold-role {
  background: rgba(255,215,0,0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* DevOps Banner */
.devops-banner {
  background:
    linear-gradient(135deg, rgba(226,54,54,0.08), rgba(0,48,135,0.12)),
    rgba(13,13,13,0.64);
  border: 1px solid var(--cyber-border);
  border-top: 1px solid rgba(226,54,54,0.42);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 16px 42px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
}

.devops-banner h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--spidey-white);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.devops-banner h3 i { color: var(--spidey-red); }

.devops-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.devops-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 8px 18px;
  background: rgba(5,5,5,0.34);
  border: 1px solid rgba(245,245,245,0.12);
  color: rgba(245,245,245,0.82);
  border-radius: 999px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition);
}

.devops-tag:hover {
  background: rgba(226,54,54,0.15);
  border-color: var(--spidey-red);
  color: var(--spidey-red);
}

/* ---------- Premium Chapter Redesign: Skills, Experience, Projects, Education ---------- */
#skills,
#experience,
#projects,
#education {
  --chapter-cyan: #E23636;
  --chapter-blue: #8B0000;
  --chapter-purple: #FF0033;
  --chapter-panel: rgba(7, 14, 26, 0.72);
  --chapter-panel-strong: rgba(9, 18, 34, 0.86);
  --chapter-line: rgba(53, 200, 255, 0.24);
  --chapter-text: rgba(245, 245, 245, 0.76);
  padding: clamp(3.2rem, 5vw, 4.4rem) 1rem;
  background:
    radial-gradient(circle at 14% 18%, rgba(226,54,54,0.12), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(255,0,51,0.13), transparent 34%),
    linear-gradient(180deg, rgba(5,5,5,0.94), rgba(6,10,19,0.98));
}

#skills .chapter-header,
#experience .chapter-header,
#projects .chapter-header,
#education .chapter-header {
  margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
}

#skills .chapter-num,
#experience .chapter-num,
#projects .chapter-num,
#education .chapter-num {
  color: var(--chapter-cyan);
  background: rgba(226,54,54,0.08);
  border-color: rgba(226,54,54,0.34);
}

#skills .section-title,
#experience .section-title,
#projects .section-title,
#education .section-title {
  text-shadow: 2px 2px 0 rgba(226,54,54,0.8), 0 0 28px rgba(255,0,51,0.18);
}

#skills .title-underline,
#experience .title-underline,
#projects .title-underline,
#education .title-underline {
  height: 3px;
  background: linear-gradient(to right, var(--chapter-cyan), var(--chapter-purple), var(--chapter-blue));
}

#skills .title-underline::before,
#skills .title-underline::after,
#experience .title-underline::before,
#experience .title-underline::after,
#projects .title-underline::before,
#projects .title-underline::after,
#education .title-underline::before,
#education .title-underline::after {
  background: var(--chapter-cyan);
}

#skills::after,
#experience::after,
#projects::after,
#education::after {
  background: linear-gradient(to right, var(--chapter-cyan), transparent);
}

.skills-section::before {
  opacity: 0.34;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group {
  min-height: 0;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)),
    var(--chapter-panel);
  border: 1px solid rgba(226,54,54,0.16);
  border-top: 1px solid rgba(226,54,54,0.46);
  border-radius: 10px;
  clip-path: none;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28), inset 0 0 24px rgba(226,54,54,0.025);
  backdrop-filter: blur(12px);
}

.skill-group::before {
  background:
    linear-gradient(135deg, rgba(226,54,54,0.08), transparent 36%),
    linear-gradient(225deg, rgba(255,0,51,0.08), transparent 44%);
  opacity: 1;
}

.skill-group::after {
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  background: linear-gradient(to right, rgba(226,54,54,0.6), transparent);
}

.skill-group:hover {
  border-color: rgba(226,54,54,0.44);
  box-shadow: 0 18px 42px rgba(0,0,0,0.36), 0 0 26px rgba(226,54,54,0.12), inset 0 0 28px rgba(255,0,51,0.035);
  transform: translateY(-3px);
}

.skill-group-header {
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.skill-icon {
  width: 36px;
  height: 36px;
  border-color: rgba(226,54,54,0.34);
  color: var(--chapter-cyan);
  background: rgba(226,54,54,0.08);
  border-radius: 8px;
}

.skill-icon.red,
.skill-icon.blue,
.skill-icon.gold {
  border-color: rgba(255,0,51,0.34);
  color: var(--chapter-cyan);
  background: rgba(255,0,51,0.1);
}

.skill-group h3 {
  font-size: 0.92rem;
  letter-spacing: 2px;
}

.skill-group-header p {
  font-size: 0.56rem;
  line-height: 1.35;
  color: rgba(245,245,245,0.5);
}

.skill-tags {
  gap: 0.45rem;
}

.web-tag,
.web-tag.red-tag,
.web-tag.blue-tag,
.web-tag.gold-tag {
  padding: 3px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.8px;
  color: rgba(245,245,245,0.78);
  background: rgba(5,5,5,0.28);
  border-color: rgba(226,54,54,0.18);
  border-radius: 4px;
}

.web-tag::before {
  color: var(--chapter-cyan);
}

.experience-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(226,54,54,0.09), transparent 30%),
    radial-gradient(circle at 90% 35%, rgba(255,0,51,0.12), transparent 34%),
    linear-gradient(180deg, #050505, #070d18);
}

.timeline {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline::before {
  display: none;
}

.timeline-item {
  display: block;
  padding-left: 0;
}

.timeline-dot {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  color: var(--chapter-cyan);
  border-color: rgba(226,54,54,0.28);
  background: rgba(226,54,54,0.08);
  animation: none;
}

.timeline-card {
  min-height: 100%;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)),
    var(--chapter-panel);
  border: 1px solid rgba(226,54,54,0.16);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}

.timeline-card.comic-panel::before,
.timeline-card .panel-corner {
  display: none;
}

.timeline-badge {
  max-width: calc(100% - 46px);
  margin-bottom: 0.65rem;
  padding: 3px 9px;
  color: #050505;
  background: linear-gradient(90deg, var(--chapter-cyan), rgba(255,0,51,0.92));
  font-size: 0.55rem;
  letter-spacing: 1px;
  clip-path: none;
  border-radius: 999px;
}

.timeline-badge.red-badge {
  background: linear-gradient(90deg, var(--chapter-cyan), var(--chapter-purple));
}

.exp-title {
  padding-right: 2.3rem;
  font-size: 1rem;
  letter-spacing: 1.4px;
  line-height: 1.25;
}

.exp-company {
  font-size: 0.78rem;
  color: var(--chapter-cyan);
  margin-bottom: 0.55rem;
}

.exp-desc {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--chapter-text);
  margin-bottom: 0.75rem;
}

.exp-tech {
  gap: 0.42rem;
}

.tech-pill,
.tech-pill.red-pill {
  padding: 3px 8px;
  font-size: 0.56rem;
  letter-spacing: 0.8px;
  color: rgba(245,245,245,0.76);
  background: rgba(5,5,5,0.26);
  border-color: rgba(226,54,54,0.18);
  border-radius: 4px;
}

.projects-section {
  background:
    radial-gradient(circle at 12% 36%, rgba(226,54,54,0.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 48%, rgba(255,0,51,0.12) 0%, transparent 34%),
    linear-gradient(180deg, #050505, #070d18);
}

.projects-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  min-height: 0;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)),
    var(--chapter-panel);
  border: 1px solid rgba(226,54,54,0.16);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}

.project-card::before {
  background: linear-gradient(to right, var(--chapter-cyan), var(--chapter-purple), transparent);
}

.project-card:hover {
  border-color: rgba(226,54,54,0.42);
  box-shadow: 0 18px 42px rgba(0,0,0,0.36), 0 0 24px rgba(226,54,54,0.12);
  transform: translateY(-3px);
}

.project-number {
  top: 0.45rem;
  right: 0.8rem;
  font-size: 3.3rem;
  color: rgba(226,54,54,0.08);
}

.project-card:hover .project-number {
  color: rgba(255,0,51,0.17);
}

.project-icon,
.project-icon.gold-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.7rem;
  color: var(--chapter-cyan);
  border-color: rgba(226,54,54,0.26);
  background: rgba(226,54,54,0.08);
  border-radius: 8px;
  font-size: 1rem;
}

.project-title {
  font-size: 1rem;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.project-subtitle {
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--chapter-cyan);
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--chapter-text);
  margin-bottom: 0.8rem;
}

.project-tech {
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tech-bubble,
.tech-bubble.gold-bubble {
  padding: 3px 8px;
  font-size: 0.56rem;
  letter-spacing: 0.8px;
  color: rgba(245,245,245,0.78);
  background: rgba(5,5,5,0.28);
  border-color: rgba(226,54,54,0.18);
  border-radius: 4px;
}

.project-link,
.project-link.gold-link {
  width: 32px;
  height: 32px;
  color: var(--chapter-cyan);
  background: rgba(226,54,54,0.08);
  border-color: rgba(226,54,54,0.3);
}

.education-section {
  background:
    radial-gradient(circle at 12% 15%, rgba(226,54,54,0.1), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(255,0,51,0.12), transparent 32%),
    linear-gradient(180deg, #050505, #070d18);
}

.edu-grid {
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.edu-card {
  min-height: 185px;
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)),
    var(--chapter-panel);
  border: 1px solid rgba(226,54,54,0.16);
  border-left: 2px solid var(--chapter-cyan);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  clip-path: none;
}

.edu-card::before {
  background: linear-gradient(to right, var(--chapter-cyan), var(--chapter-purple), transparent);
}

.edu-card::after {
  background: linear-gradient(135deg, rgba(226,54,54,0.07), transparent 40%);
}

.edu-card:hover {
  border-color: rgba(226,54,54,0.42);
  box-shadow: 0 18px 42px rgba(0,0,0,0.36), 0 0 24px rgba(226,54,54,0.12);
  transform: translateY(-3px);
}

.edu-year-badge,
.edu-year-badge.blue-badge {
  margin-bottom: 0.75rem;
  padding: 3px 10px;
  color: #050505;
  background: linear-gradient(90deg, var(--chapter-cyan), rgba(255,0,51,0.92));
  border-radius: 999px;
  font-size: 0.55rem;
}

.edu-icon,
.edu-icon.blue-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0.75rem;
  color: var(--chapter-cyan);
  background: rgba(226,54,54,0.08);
  border-color: rgba(226,54,54,0.26);
  border-radius: 8px;
  font-size: 0.9rem;
}

.edu-degree {
  font-size: 1rem;
  letter-spacing: 1.3px;
}

.edu-spec {
  font-size: 0.78rem;
  line-height: 1.45;
}

.edu-note {
  font-size: 0.58rem;
  color: rgba(245,245,245,0.72);
}

.edu-decoration {
  font-size: 3.4rem;
  color: rgba(226,54,54,0.1);
}

.activities-wrap,
.devops-banner {
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016)),
    var(--chapter-panel);
  border: 1px solid rgba(226,54,54,0.16);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}

.activities-title,
.devops-banner h3 {
  margin-bottom: 0.9rem;
  color: var(--chapter-cyan);
  font-size: 0.78rem;
}

.activities-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.activity-item {
  padding: 0.75rem;
  gap: 0.65rem;
  background: rgba(5,5,5,0.28);
  border-color: rgba(226,54,54,0.14);
  border-radius: 8px;
}

.activity-item:hover {
  border-color: rgba(226,54,54,0.34);
  background: rgba(226,54,54,0.07);
}

.activity-item i {
  color: var(--chapter-cyan);
  font-size: 1rem;
}

.activity-item strong {
  font-size: 0.72rem;
  line-height: 1.25;
}

.role-tag,
.role-tag.blue-role,
.role-tag.gold-role {
  font-size: 0.52rem;
  color: rgba(245,245,245,0.78);
  background: rgba(5,5,5,0.28);
  border-color: rgba(226,54,54,0.22);
}

.devops-banner {
  margin-top: 1rem;
}

.devops-tags {
  gap: 0.65rem;
}

.devops-tag {
  padding: 6px 12px;
  color: rgba(245,245,245,0.82);
  background: rgba(5,5,5,0.3);
  border-color: rgba(226,54,54,0.16);
  font-size: 0.62rem;
}

#skills::before,
#experience::before,
#projects::before,
#education::before,
#contact::before {
  content: none !important;
  display: none !important;
}

#about > .container,
#skills > .container,
#experience > .container,
#projects > .container,
#education > .container,
#contact > .container {
  position: relative;
  z-index: 1;
}

#about,
#skills,
#experience,
#projects,
#education,
#contact {
  background: transparent !important;
}

#about .about-panel,
#skills .skill-group,
#experience .timeline-card,
#projects .project-card,
#education .edu-card,
#education .activities-wrap,
#education .devops-banner,
#contact .contact-intro,
#contact .contact-item {
  background: rgba(16,24,43,0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: var(--spidey-dark);
  background-image:
    radial-gradient(circle at 50% 100%, rgba(226,54,54,0.08) 0%, transparent 60%),
    radial-gradient(circle, rgba(226,54,54,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro {
  margin-bottom: 2rem;
  font-family: var(--font-comic);
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(245,245,245,0.85);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(5,5,5,0.8);
  border: 1px solid rgba(226,54,54,0.2);
  transition: all var(--transition);
  color: inherit;
}

.contact-item:hover {
  border-color: var(--spidey-red);
  background: rgba(226,54,54,0.08);
  transform: translateX(6px);
}

.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(226,54,54,0.15);
  border: 1px solid var(--spidey-red);
  display: flex; align-items: center; justify-content: center;
  color: var(--spidey-red);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-family: var(--font-code);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--spidey-red);
}

.contact-value {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--spidey-white);
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 44px; height: 44px;
  background: rgba(226,54,54,0.1);
  border: 1px solid rgba(226,54,54,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--spidey-white);
  font-size: 1rem;
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--spidey-red);
  border-color: var(--spidey-red);
  box-shadow: var(--glow-red);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-code);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--spidey-red);
}

.form-group input,
.form-group textarea {
  background: rgba(5,5,5,0.9);
  border: 1px solid rgba(226,54,54,0.25);
  color: var(--spidey-white);
  padding: 12px 16px;
  font-family: var(--font-comic);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--spidey-red);
  box-shadow: 0 0 10px rgba(226,54,54,0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245,245,245,0.25);
  font-style: italic;
}

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.4);
  color: #00ff88;
  font-family: var(--font-code);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.form-success.show { display: flex; }

/* ---------- Footer ---------- */
.footer {
  background: var(--spidey-darker);
  position: relative;
  overflow: hidden;
}

.footer-web {
  position: relative;
  height: 60px;
  background: var(--spidey-dark);
}

.footer-web svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
}

.footer-content {
  padding: 3rem 2rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-hero);
  font-size: 1.6rem;
  letter-spacing: 6px;
  color: var(--spidey-white);
  margin-bottom: 1rem;
}

.spider-icon.large { font-size: 2rem; }

.footer-quote {
  font-family: var(--font-comic);
  font-size: 1rem;
  color: rgba(245,245,245,0.5);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.footer-quote em { color: var(--spidey-red); font-style: normal; }

.footer-copy {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: rgba(245,245,245,0.25);
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-code);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,245,245,0.4);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--spidey-red); }

/* ---------- Tilt Card ---------- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-profile { grid-template-columns: 1fr; }
  .about-copy {
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid rgba(245,245,245,0.1);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-item { flex-direction: column; gap: 0.8rem; }
  .timeline-dot { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 68px; right: -100%;
    width: min(320px, 100vw);
    height: calc(100vh - 68px);
    background: rgba(5,5,5,0.98);
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    padding-top: 2rem;
    border-left: 1px solid rgba(226,54,54,0.3);
    transition: right var(--transition);
    backdrop-filter: blur(20px);
  }

  .nav-links.open { right: 0; }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(226,54,54,0.1);
  }

  .nav-link::after { display: none; }

  .hamburger { display: flex; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0.5rem; }
  .stat-item { min-width: 120px; }
  .stat-divider { height: 30px; }
  .section { padding: 4rem 1rem; }
  .hero-section { padding: 76px 0 36px; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1rem; }
  .hero-section { padding: 72px 0 22px; }
  .available-badge { margin-bottom: 0.75rem; padding: 5px 14px; font-size: 0.68rem; }
  .hero-name { font-size: 2.05rem; letter-spacing: 2px; }
  .hero-eyebrow,
  .hero-role { letter-spacing: 2px; }
  .hero-role { margin-bottom: 1rem; }
  .hero-quote-wrap { padding: 0.85rem 1rem; margin-bottom: 1rem; }
  .hero-quote { font-size: 0.94rem; line-height: 1.65; }
  .hero-stats { flex-direction: column; gap: 0.55rem; margin-bottom: 1rem; }
  .stat-value { min-height: 2.4rem; }
  .stat-number { font-size: 2.45rem; }
  .stat-plus { font-size: 1.35rem; }
  .stat-divider { display: none; }
  .hero-btns { flex-direction: column; align-items: center; gap: 0.7rem; }
  .btn { width: 100%; justify-content: center; padding: 12px 24px; }
  .activities-grid { grid-template-columns: 1fr; }
  .chapter-header { margin-bottom: 2.5rem; }
  .comic-panel,
  .activities-wrap,
  .devops-banner { padding: 1.3rem; }
  .about-panel { padding: 1.35rem; }
  .contact-item { align-items: flex-start; }
}

@media (max-width: 1180px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .skills-grid,
  .timeline,
  .edu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-dot {
    display: none;
  }

  .exp-title {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .skills-grid,
  .timeline,
  .projects-grid,
  .edu-grid,
  .activities-grid {
    grid-template-columns: 1fr;
  }

  #skills,
  #experience,
  #projects,
  #education {
    padding: 3.2rem 1rem;
  }

  .skill-group,
  .timeline-card,
  .project-card,
  .edu-card,
  .activities-wrap,
  .devops-banner {
    border-radius: 8px;
  }
}
