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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #0a0e1a;
  color: #e0e0e0;
  min-height: 100vh;
}

/* Tabs */
.tabs {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  background: #0d1b3e;
  border-bottom: 2px solid #1a3060;
  padding: 0;
}

.tab {
  flex: 1;
  padding: 16px 32px;
  border: none;
  background: transparent;
  color: #7b9acc;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab:hover {
  color: #e0e8ff;
  background: rgba(80, 140, 255, 0.1);
}

.tab.active {
  color: #5ea6ff;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* About Me */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero h1 {
  font-size: 3rem;
  color: #ccd6f6;
  margin-bottom: 12px;
}

.highlight {
  color: #5ea6ff;
}

.tagline {
  font-size: 1.2rem;
  color: #8892b0;
}

.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  font-size: 1.6rem;
  color: #ccd6f6;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1a3a6e;
}

.about-section p {
  line-height: 1.7;
  color: #a8b2d1;
  font-size: 1.05rem;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: #0d1f44;
  color: #5ea6ff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #1a3a6e;
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.project-card {
  background: #0d1f44;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #1a3a6e;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #5ea6ff;
}

.project-card h3 {
  color: #ccd6f6;
  margin-bottom: 8px;
}

.project-card p {
  color: #8892b0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Cats Tab */
.cats-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 20px;
}

.cat-card {
  border-radius: 10px;
  overflow: hidden;
  background: #0d1f44;
  border: 1px solid #1a3a6e;
  transition: transform 0.2s ease;
}

.cat-card:hover {
  transform: scale(1.03);
}

.cat-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.scroll-sentinel {
  height: 10px;
  width: 100%;
}

#cats.tab-content.active {
  min-height: 100vh;
}

.loading {
  text-align: center;
  padding: 30px;
  color: #5ea6ff;
  font-size: 1.1rem;
  display: none;
}

.loading.visible {
  display: block;
}

/* Silly Game */
.game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
}

.game-title {
  font-size: 2rem;
  color: #5ea6ff;
  margin-bottom: 8px;
}

.game-subtitle {
  color: #7b9acc;
  margin-bottom: 16px;
  font-size: 1rem;
}

.game-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #93c5fd;
}

#game-canvas {
  border: 3px solid #3b82f6;
  border-radius: 8px;
  background: #0d1b3e;
  display: block;
  max-width: 100%;
  cursor: pointer;
}

.game-controls-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
}

.game-btn-row {
  display: flex;
  gap: 4px;
}

.game-btn {
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  background: #0d1f44;
  color: #5ea6ff;
  cursor: pointer;
  transition: background 0.15s;
}

.game-btn:active {
  background: #1a3a6e;
}

.game-hint {
  margin-top: 12px;
  color: #556a8a;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .cats-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .cat-card img {
    height: 160px;
  }

  .tab {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .game-controls-mobile {
    display: flex;
  }

  #game-canvas {
    max-width: 90vw;
    max-height: 60vh;
  }
}
