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

body {
  background: #0a0b0f;
  color: #e8e8ee;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* subtle particle grid */
body::before {
  content: '';
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* --- Top bar --- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(12, 13, 18, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #ffffff;
}

/* --- Tabs --- */
.tabs a {
  margin-left: 1.4rem;
  padding: 0.4rem 0.2rem;
  color: #9a9cab;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition: color 0.25s ease;
}

.tabs a:hover {
  color: #ffffff;
}

.tabs a.active {
  color: #ffffff;
}

.tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6d7cff, #8fd3f4);
  box-shadow: 0 0 14px rgba(109,124,255,0.5);
  border-radius: 2px;
}

/* --- Main panel --- */
.panel {
  max-width: 900px;
  margin: 16vh auto 0;
  padding: 3rem;
  background: rgba(20, 21, 30, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow:
    0 10px 40px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* --- Tab content --- */
.tab-content {
  display: none;
  animation: fade 0.25s ease;
}

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

/* glow effect on active panel */
.panel:has(.tab-content.active) {
  box-shadow:
    0 0 0 1px rgba(109,124,255,0.15),
    0 15px 50px rgba(0,0,0,0.7),
    0 0 40px rgba(109,124,255,0.15);
}

/* --- Home tab --- */
.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pfp {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(109,124,255,0.5);
  box-shadow: 0 0 20px rgba(109,124,255,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.pfp:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(109,124,255,0.5);
}

.home-content h1 {
  font-size: 2.8rem;
  color: #ffffff;
}

.home-content .bio {
  max-width: 600px;
  text-align: center;
  color: #c0c2d0;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.project-card {
  background: rgba(25, 26, 36, 0.75);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(109,124,255,0.3);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #b2b4c2;
}

/* --- Animations --- */
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .panel {
    margin: 12vh 1rem 0;
    padding: 2rem;
  }
  .panel h1 {
    font-size: 2rem;
  }
  .pfp {
    width: 100px;
    height: 100px;
  }
}
