/* ============================================
   SUBHA MISHRA — NETFLIX-STYLE PORTFOLIO
   ============================================ */

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

:root {
  --bg-primary: #141414;
  --bg-card: #1c1c1c;
  --bg-card-hover: #252525;
  --accent: #e50914;
  --accent-hover: #f6121d;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;
  --blue: #2196F3;
  --pink: #F8BBD0;
  --linkedin: #0077B5;
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 68px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* Selection */
::selection { background: rgba(229, 9, 20, 0.35); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashFadeOut 0.8s ease-in 4s forwards;
}

.splash-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.3);
  animation: splashZoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
             splashZoomAway 1.5s cubic-bezier(0.7, 0, 0.84, 0) 3s forwards;
}

@keyframes splashZoomIn {
  0% { opacity: 0; transform: scale(0.3); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes splashZoomAway {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(3); }
}
@keyframes splashFadeOut {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* Splash Gate (click to enter) */
.splash-gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.splash-gate-content {
  text-align: center;
}

.splash-gate-logo {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.splash-gate-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  animation: gatePulse 2s ease-in-out infinite;
}

@keyframes gatePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================
   PROFILE SELECTOR
   ============================================ */
.profiles-page {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  animation: profilesFadeIn 0.5s ease 3.2s forwards;
}

@keyframes profilesFadeIn {
  to { opacity: 1; }
}

.profiles-page h2 {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--text-primary);
}

.profiles-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform var(--transition);
}
.profile-card:hover { transform: scale(1.08); }

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color var(--transition);
}
.profile-card:hover .profile-avatar { border-color: var(--text-primary); }

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.profile-card:hover span { color: var(--text-primary); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 4%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  transition: background 0.4s ease;
}
.navbar.scrolled {
  background: rgba(20, 20, 20, 0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  margin-left: 2rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); font-weight: 500; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.98);
  padding: 2rem 4%;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
  backdrop-filter: blur(16px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem;
  color: var(--text-secondary);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text-primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 0 4% 5%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.5) 40%, transparent 70%),
    linear-gradient(to top, rgba(20,20,20,1) 0%, rgba(20,20,20,0.4) 30%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-content h1 {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: clamp(0.8rem, 1vw, 0.88rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background var(--transition);
}
.btn-play:hover { background: rgba(255,255,255,0.8); }
.btn-play svg { width: 20px; height: 20px; }

.btn-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  background: rgba(109,109,110,0.7);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background var(--transition);
}
.btn-info:hover { background: rgba(109,109,110,0.5); }
.btn-info svg { width: 20px; height: 20px; }

/* ============================================
   CONTENT ROW (CAROUSELS)
   ============================================ */
.content-section {
  padding: 0 4%;
  margin-top: 2rem;
  position: relative;
  z-index: 3;
}

.content-row {
  margin-bottom: 2.5rem;
}

.content-row h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-card {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, z-index 0s;
}
.carousel-card:hover {
  transform: scale(1.15);
  z-index: 10;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.carousel-card:hover .card-overlay { opacity: 1; }

.card-overlay span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

/* ============================================
   PAGE CONTAINER (shared)
   ============================================ */
.page-container {
  padding: calc(var(--nav-height) + 2rem) 4% 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* ============================================
   SKILLS PAGE
   ============================================ */
.skills-category {
  margin-bottom: 2.5rem;
}

.skills-category-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.25rem;
  transition: transform var(--transition), background var(--transition);
  cursor: default;
}
.skill-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.skill-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  word-break: break-word;
}

.skill-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Skill letter animation */
.skill-name {
  display: inline-flex;
  overflow: hidden;
}
.skill-name span {
  display: inline-block;
  animation: letterReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(8px);
}
@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-thumb-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.project-body {
  padding: 1.25rem;
}

.project-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

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

.project-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(229, 9, 20, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.project-link:hover { color: var(--accent); }

.project-live-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--transition);
}
.project-live-link:hover { opacity: 0.8; }

/* ============================================
   WORK EXPERIENCE TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.1);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 0.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-node {
  right: -20px;
}
.timeline-item:nth-child(even) .timeline-node {
  left: -20px;
}

.timeline-node.work {
  background: var(--blue);
  color: #fff;
}
.timeline-node.education {
  background: var(--pink);
  color: #333;
}

.timeline-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.25rem;
  transition: transform var(--transition);
}
.timeline-card:hover { transform: scale(1.02); }

.timeline-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-card .timeline-company {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-card .timeline-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-card .timeline-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-card .timeline-desc li {
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 0.8rem;
  text-align: left;
}
.timeline-card .timeline-desc li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Stranger Things vibe */
.st-experience {
  position: relative;
}
.st-experience .page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(229,9,20,0.5), 0 0 60px rgba(229,9,20,0.2);
  animation: stFlicker 4s ease-in-out infinite;
}
@keyframes stFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(229,9,20,0.5), 0 0 60px rgba(229,9,20,0.2); }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.3; }
  97% { opacity: 1; }
}
.st-experience .page-subtitle {
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* Glowing timeline spine */
.st-experience .timeline::before {
  background: linear-gradient(to bottom, transparent, var(--accent), var(--accent), transparent);
  box-shadow: 0 0 12px rgba(229,9,20,0.4), 0 0 30px rgba(229,9,20,0.15);
  width: 2px;
}

/* Glowing nodes */
.st-experience .timeline-node {
  box-shadow: 0 0 15px rgba(229,9,20,0.5), 0 0 30px rgba(229,9,20,0.2);
}
.st-experience .timeline-node.work {
  background: var(--accent);
  color: #fff;
}
.st-experience .timeline-node.education {
  background: #1a1a2e;
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* Cards with glow on hover */
.st-experience .timeline-card {
  border: 1px solid rgba(229,9,20,0.15);
  transition: transform var(--transition), box-shadow 0.4s ease, border-color 0.4s ease;
}
.st-experience .timeline-card:hover {
  transform: scale(1.03);
  border-color: rgba(229,9,20,0.5);
  box-shadow: 0 0 25px rgba(229,9,20,0.15), 0 4px 20px rgba(0,0,0,0.4);
}

/* Floating particles (CSS only) */
.st-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.st-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: stParticleFloat linear infinite;
}
@keyframes stParticleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: 0.7; transform: scale(1); }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-400px) scale(0.5); }
}

/* Mobile timeline */
@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding-left: 55px;
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-node,
  .timeline-item:nth-child(even) .timeline-node {
    left: 0;
    right: auto;
  }
  .st-experience .page-title { font-size: 1.8rem; }
}

/* ============================================
   CERTIFICATIONS / AWARDS
   ============================================ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.award-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  transition: transform var(--transition);
}
.award-card:hover { transform: translateY(-3px); }

.award-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

.award-card .award-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.award-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--transition);
}
.award-link:hover { opacity: 0.8; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.contact-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b20710);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.contact-profile h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-profile p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.6;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform var(--transition), opacity var(--transition);
}
.contact-btn:hover { transform: scale(1.05); opacity: 0.9; }

.contact-btn.email { background: var(--accent); color: #fff; }
.contact-btn.phone { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.contact-btn.linkedin { background: var(--linkedin); color: #fff; }
.contact-btn.github { background: #333; color: #fff; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3rem 4% 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 3rem;
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   STALKER PAGE
   ============================================ */
.stalker-page {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem 1rem 4rem;
}

.stalker-container {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
  animation: stalkerShake 0.5s ease;
}

.stalker-icon {
  font-size: 4rem;
  animation: stalkerPulse 1s ease infinite;
}

@keyframes stalkerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.stalker-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin: 1rem 0;
  position: relative;
}

/* Glitch effect */
.glitch {
  animation: glitch 2.5s infinite;
}
@keyframes glitch {
  0%, 90%, 100% { text-shadow: none; }
  91% { text-shadow: -3px 0 #0ff, 3px 0 #f0f; }
  93% { text-shadow: 3px 0 #0ff, -3px 0 #f0f; }
  95% { text-shadow: -2px 0 #f0f, 2px 0 #0ff; }
  97% { text-shadow: 2px 0 #0ff, -2px 0 #f0f; }
}

/* Matrix rain canvas */
.matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

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

/* 3D Rotating Cube */
.stalker-3d-scene {
  perspective: 400px;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
}
.stalker-3d-cube {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotate 4s linear infinite;
}
.cube-face {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.4);
  border-radius: 8px;
  backface-visibility: visible;
}
.cube-face.front  { transform: translateZ(50px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(50px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(50px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(50px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(50px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes cubeRotate {
  0%   { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Typewriter */
.stalker-typewriter {
  min-height: 1.8em;
  margin: 0.5rem 0;
}
.stalker-typewriter .stalker-msg {
  font-family: 'Courier New', monospace;
  border-right: 2px solid var(--accent);
  padding-right: 4px;
  animation: blink-caret 0.6s step-end infinite;
  display: inline;
}
@keyframes blink-caret {
  50% { border-color: transparent; }
}

/* Verdict box */
.stalker-verdict-box {
  background: rgba(229,9,20,0.08);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 420px;
  text-align: center;
}
.stalker-sentence-big {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  animation: sentencePulse 1.5s ease infinite;
}
@keyframes sentencePulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 10px rgba(229,9,20,0.3); }
  50% { transform: scale(1.05); text-shadow: 0 0 30px rgba(229,9,20,0.7); }
}
.stalker-sentence {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* 3D hover on report card */
.stalker-card-3d {
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}
.stalker-card-3d:hover {
  transform: perspective(600px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}
.td-green { color: #0f0 !important; }

/* 3D button */
.stalker-btn-3d {
  box-shadow: 0 6px 0 #8b0000, 0 8px 20px rgba(0,0,0,0.4);
  transition: all 0.15s ease;
}
.stalker-btn-3d:hover {
  transform: translateY(2px) scale(1.02);
  box-shadow: 0 4px 0 #8b0000, 0 6px 15px rgba(0,0,0,0.4);
}
.stalker-btn-3d:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #8b0000, 0 2px 5px rgba(0,0,0,0.4);
}

.stalker-gif {
  max-width: 280px;
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
}
.stalker-gif img { width: 100%; height: auto; display: block; }

.stalker-gif-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.stalker-gif-row img {
  width: 180px;
  height: auto;
  border-radius: 10px;
}

.stalker-msg {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  animation: stalkerBlink 1s step-end infinite;
}
@keyframes stalkerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.stalker-ip-fake {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  color: #0f0;
  margin-bottom: 1rem;
  min-height: 1.6em;
}

.stalker-loading { margin: 1rem auto; max-width: 300px; }
.stalker-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.stalker-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  animation: stalkerLoad 3s ease forwards;
}
@keyframes stalkerLoad {
  0% { width: 0%; }
  60% { width: 85%; }
  80% { width: 92%; }
  100% { width: 100%; }
}
.stalker-loading-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.stalker-dots { animation: stalkerBlink 1s step-end infinite; }

.stalker-report-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem auto;
  max-width: 400px;
  text-align: left;
}
.stalker-report-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
}
.stalker-report-card table { width: 100%; }
.stalker-report-card td {
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  vertical-align: middle;
}
.stalker-report-card td:first-child { font-weight: 600; color: var(--text-primary); white-space: nowrap; padding-right: 1rem; }
.stalker-report-card td:last-child { font-family: 'Courier New', monospace; font-size: 0.75rem; color: #0f0; }

.stalker-verdict {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1rem;
}
.stalker-sentence {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.stalker-fine-print {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.stalker-btn {
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: transform var(--transition), background var(--transition);
  cursor: pointer;
}
.stalker-btn:hover {
  transform: scale(1.05);
  background: var(--accent-hover);
}

@keyframes stalkerShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ============================================
   MUSIC PAGE — Spotify-style playlist
   ============================================ */
.playlist {
  display: flex;
  flex-direction: column;
}

.playlist-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: background var(--transition);
}
.playlist-row:hover {
  background: rgba(255,255,255,0.06);
}

.playlist-num {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 24px;
  text-align: center;
  font-weight: 500;
}

.playlist-art {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.playlist-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-info {
  flex: 1;
  min-width: 0;
}
.playlist-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.playlist-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.playlist-album {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: none;
}
@media (min-width: 600px) {
  .playlist-album { display: block; }
}

/* ============================================
   READING / BOOKS PAGE
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.book-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform var(--transition);
}
.book-card:hover { transform: translateY(-5px); }

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.book-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ============================================
   CONTACT PHOTO
   ============================================ */
.contact-section {
  max-width: 600px;
  text-align: left;
  margin-bottom: 2rem;
}
.contact-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.contact-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  max-width: 100%;
}
.contact-cta {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.5rem;
}
.hire-section {
  background: rgba(229,9,20,0.05);
  border: 1px solid rgba(229,9,20,0.15);
  border-radius: 12px;
  padding: 1.5rem;
}

.contact-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(229,9,20,0.25);
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   BLOG PAGE
   ============================================ */
.newsletter-box {
  background: linear-gradient(135deg, rgba(229,9,20,0.08), rgba(229,9,20,0.02));
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}
.newsletter-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.newsletter-box h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.newsletter-box > p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 1rem; }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto 0.75rem;
}
.nl-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}
.nl-input:focus { border-color: var(--accent); }
.nl-btn {
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.nl-btn:hover { background: var(--accent-hover); }
.nl-note { font-size: 0.72rem; color: var(--text-muted); }
.nl-success { font-size: 0.95rem; color: #4CAF50; font-weight: 600; }

.blog-posts { display: flex; flex-direction: column; gap: 1.5rem; }

.blog-post {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  transition: transform var(--transition);
}
.blog-post:hover { transform: translateX(4px); }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.blog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.blog-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.blog-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(229,9,20,0.12);
  color: var(--accent);
  font-weight: 500;
}
.blog-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.blog-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.blog-resources-cta {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.blog-resources-cta h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.blog-resources-cta p { font-size: 0.88rem; color: var(--text-secondary); }

/* ============================================
   AI RESOURCES PAGE
   ============================================ */
.ai-resource-section { margin-bottom: 2.5rem; }
.ai-resource-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.ai-resource-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.ai-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.ai-resource-card {
  display: block;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), border-color var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.ai-resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.ai-resource-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.ai-resource-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.ai-resource-link {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 85vh;
    padding: 0 5% 2rem;
    padding-top: calc(var(--nav-height) + 1rem);
    align-items: flex-end;
  }
  .hero-content { padding-bottom: 1.5rem; }
  .hero-content h1 { font-size: 1.35rem; }
  .hero-content p { font-size: 0.82rem; margin-bottom: 1.2rem; }
  .hero-buttons { gap: 0.5rem; }
  .btn-play, .btn-info { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
  .content-section { margin-top: 1rem; }
  .carousel-card { width: 160px; }
  .profile-avatar { width: 90px; height: 90px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .albums-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .contact-links { flex-direction: column; align-items: center; }
  .stalker-ascii pre { font-size: 0.6rem; }
}
