@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&display=swap");

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.header-section {
  position: relative;
  background-color: rgba(255, 255, 255, 0.95);
  color: rgb(58, 57, 64);
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 550px;
  text-align: center;
  z-index: 10;
  margin: 40px auto;
}

.pfp {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: left;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pfp {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.text-block {
  display: flex;
  flex-direction: column;
}

.name {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0;
}

.subtitle {
  margin-top: 2px;
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.hero-right {
  display: flex;
  gap: 18px;
  border-left: 1px solid rgba(0,0,0,0.08);
  padding-left: 16px;
}

.hero-right a {
  color: #3a3940;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-right a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.hero-right a:hover .fa-linkedin-in {
  color: #128aca;
}

.hero-right a:hover .fa-github {
  color: #4b4b4b;
}

.section {
  position: relative;
  background-color: rgba(255, 255, 255, 0.95);
  color: rgb(58, 57, 64);
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 1200px;
  text-align: center;
  z-index: 10;
  margin: 40px auto;
}

.section-nav {
  display: flex;
  justify-content: center;
}

.nav-inner {
  position: relative;
  display: flex;
  gap: 32px;
}

.nav-item {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  color: rgba(58, 57, 64, 0.5);
  padding: 10px 2px;
  cursor: pointer;

  transition: 
    color 0.45s ease,
    opacity 0.35s ease;
}

.nav-item.active {
  color: rgb(58, 57, 64);
  opacity: 1;
}

.nav-underline {
  position: absolute;
  bottom: 10px;
  height: 2px;
  background-color: rgb(58, 57, 64);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), width 0.35s cubic-bezier(.4,0,.2,1);
}

.section-nav-back {
  display: flex;
  justify-content: left;
}

.back-button {
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  font-size: 1.1rem;
  color: rgb(58, 57, 64);
  padding: 10px 2px;
  cursor: pointer;
}

.tab-content {
  margin-top: 30px;
  text-align: left;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

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

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 20px;
}

.about-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 370px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.about-image figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
  text-align: center;
  font-style: italic;
}

.about-text {
  flex: 1;
  text-align: justify;
}

.achievements-list {
  list-style: none;
  padding-left: 0;
}

.achievements-list li {
  margin-bottom: 10px;
}

.achievement-date {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
}

.projects-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.project-image {
  width: 100%;
  height: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-subtitle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

canvas#main-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.last-updated {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.3);
  z-index: 10;
}