* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #60a5fa;
  --secondary: #a78bfa;
  --bg: #020617;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --text-subtle: #cbd5e1;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.content {
  position: relative;
  z-index: 2;
  padding: 4rem 6vw;
  max-width: 1600px;
  margin: 0 auto;
}

section {
  margin-top: 5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 30px;
  font-size: 0.85rem;
  margin: 0.3rem;
  transition: all 0.3s ease;
}

.stat-badge:hover {
  background: rgba(96, 165, 250, 0.2);
  transform: translateY(-2px);
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 6vw;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.profile {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 100px rgba(96, 165, 250, 0.5), 0 0 200px rgba(167, 139, 250, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 100px rgba(96, 165, 250, 0.5), 0 0 200px rgba(167, 139, 250, 0.3);
  }

  50% {
    box-shadow: 0 0 150px rgba(96, 165, 250, 0.7), 0 0 250px rgba(167, 139, 250, 0.5);
  }
}

.profile::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), #ec4899);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-text .tagline {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin-bottom: 1rem;
}

.subtitle {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  max-width: 700px;
  color: var(--text-subtle);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.socials {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
}

.socials a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.socials a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.socials a:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 20px 60px rgba(96, 165, 250, 0.5);
  border-color: transparent;
}

.socials a:hover::before {
  opacity: 1;
}

.socials a i {
  position: relative;
  z-index: 1;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.05), rgba(167, 139, 250, 0.05));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 24px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(167, 139, 250, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 90px rgba(96, 165, 250, 0.3), 0 0 0 1px rgba(96, 165, 250, 0.5);
  border-color: rgba(96, 165, 250, 0.5);
}

.card:hover::before {
  opacity: 1;
}

.card.punk {
  animation: punk 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes punk {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.08) rotate(1deg);
  }

  60% {
    transform: scale(0.95) rotate(-1deg);
  }

  100% {
    transform: scale(1);
  }
}

.card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
  color: var(--text);
}

.card p {
  position: relative;
  z-index: 1;
  color: var(--text-subtle);
  font-size: 0.95rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(167, 139, 250, 0.2));
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.3);
  flex-shrink: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 20px;
  color: #93c5fd;
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-category {
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: rgba(96, 165, 250, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(96, 165, 250, 0.2);
}

.skill-category h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.skill-category ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-category li {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--text-subtle);
}

/* MODAL / DETAIL STYLES (Used in multi-page as sections) */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* PROJECT IMAGES */
.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.project-image:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(96, 165, 250, 0.3);
  border-color: rgba(96, 165, 250, 0.5);
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.9), rgba(167, 139, 250, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image:hover .project-image-overlay {
  opacity: 1;
}

.project-image-overlay span {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

footer {
  margin: 5rem 0 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(96, 165, 250, 0.1);
}

/* Easter Egg - Secret Modes */
.secret-mode {
  position: fixed;
  top: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

.secret-button {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

.secret-button.visible {
  opacity: 1;
  transform: scale(1);
}

.secret-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.6);
}

/* SFX Classes */
.star {
  position: fixed;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 6px 2px currentColor;
}

.star::before {
  content: '';
  position: absolute;
  top: 0;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, currentColor, transparent);
  border-radius: 50%;
  transform-origin: left center;
}

.snowflake {
  position: fixed;
  top: -10px;
  color: white;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 1;
  animation: fall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.bubble {
  position: fixed;
  bottom: -100px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(96, 165, 250, 0.3));
  border-radius: 50%;
  pointer-events: all;
  cursor: pointer;
  z-index: 1;
  animation: rise linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3), 0 0 20px rgba(96, 165, 250, 0.2);
}

@keyframes shoot {
  0% {
    transform: translate(0, 0) rotate(-45deg);
    opacity: 1;
  }

  100% {
    transform: translate(-300px, 300px) rotate(-45deg);
    opacity: 0;
  }
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

@keyframes rise {
  to {
    transform: translateY(-100vh) translateX(var(--drift));
    opacity: 0;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 5px;
}

@media (max-width: 968px) {
  .content {
    padding: 3rem 5vw;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 2rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text .tagline {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .profile {
    width: 150px;
    height: 150px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  /* Simplified for now */
}