* {
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --fg: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 2px;
  margin: 0px 10px 0px;
  text-align: center;
}

.hero-box {
  width: min(760px, 100%);
  margin: 0 auto;
}

.hero-pfp img{
  border: 0.5px solid var(--fg);
  max-width: 20%;
  border-radius: 60%;
}

.hero-title {
  color: var(--fg);
  font-size: clamp(1.4rem, 3.0rem, 4rem);
  text-align: center;
  line-height: 1.08;
  font-weight: 700;

}

.hero-sub {
  margin: 0 5 28px;
  opacity: 0.8;
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
}

.hero-links,
.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 30px;
  padding-top: 20px;
}

.hero-links a,
.contact-links a {
  color: var(--fg);
  text-decoration: none;
  opacity: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.hero-links a:hover,
.contact-links a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.cta-btn {
  display: inline-block;
  margin: 0 auto;
  padding: 1px 10px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.cta-btn i {
  display: inline-block;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.cta-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

/* shared section layout */
.section {
  padding: 32px 20px 56px;
}

.section-inner {
  width: min(980px, calc(100% - 8px));
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(3px);
}

.section-label,
.section-title {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  color: var(--fg);
}

.about-grid {
  display: flex;
  padding: 0 0 20px;
  grid-template-columns: 1fr 1fr;
}

.about-text {
  flex: 1;
  max-width: 500;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--muted);
  text-overflow: clip;
}

.about-grid a {
  color: rgb(3, 235, 3);;
  text-decoration: underline;
}

.about-text strong {
  color: var(--fg);
  font-weight: 700;
}

/* projects */
.projects-group + .projects-group {
  margin-top: 32px;
}

.group-label {
  margin: 0 0 16px;
  color: var(--muted);
  opacity: 0.5;
  font-size: 1rem;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.card-title {
  padding: 10px 0 0;
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--fg);
}

.card-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.card-lang {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--fg);
}

/* art */
.art-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 5px 0 10px;
}

.art-row::-webkit-scrollbar {
  display: none;
}

.art-card {
  min-width: 260px;
  max-width: 260px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  scroll-snap-align: start;
  transition: 0.25s ease;
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.3);
}

.art-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  filter: saturate(0);
}

.art-card img:hover {
  filter: saturate(1);
}

.art-card p {
  font-family: serif;
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/*contact */
.contact-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
  padding: 0 0 3rem;
}

/* footer */
.site-footer {
  padding: 8px 20px 30px;
  text-align: center;
}

.site-footer p {
  color: #9e9e9e;
}

@media (max-width: 800px) {
  .about-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .section-inner {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 82vh;
    padding-top: 36px;
  }

  .hero-sub {
    font-size: 0.97rem;
    line-height: 1.75;
  }

  .hero-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .section {
    padding: 24px 16px 40px;
  }

  .section-inner {
    padding: 18px;
    border-radius: 14px;
  }
}