:root{
  color-scheme: dark;
  --bg: #05060b;
  --text: #f5f7ff;
  --muted: #97a0c1;
  --accent: #5ac8fa;
  --accent-strong: #8e5cff;
  --card: rgba(20, 23, 35, 0.85);
  --surface: rgba(11, 13, 20, 0.65);
}

*{
  box-sizing: border-box;
}

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at 25% 20%, rgba(90, 200, 250, 0.12), transparent 50%), radial-gradient(circle at 80% 0%, rgba(142, 92, 255, 0.15), transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container{
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: 1rem;
}

.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0 5rem;
  text-align: center;
  background: radial-gradient(circle at left, rgba(138, 59, 255, 0.5), transparent 60%), radial-gradient(circle at right, rgba(90, 200, 250, 0.35), transparent 55%), linear-gradient(135deg, #090c14, #05060b 60%, #0c0d16);
  overflow: hidden;
}

.hero__content{
  position: relative;
  z-index: 2;
}

.hero__eyebrow{
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

.name{
  margin: 0.3em 0 0.15em;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #e5e8f3;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tagline{
  margin: 0 auto 1.5rem;
  max-width: 650px;
  color: var(--muted);
  font-size: 1.1rem;
}

.personal-info{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.personal-info p{
  margin: 0;
  color: var(--text);
}

.personal-info a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.personal-info a:hover{
  text-decoration: underline;
}

.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

main{
  position: relative;
  padding: 4rem 0 6rem;
  flex: 1 0 auto;
}

.section-heading{
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label{
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

#projects h2{
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.project-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

.project-card{
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem;
  border-radius: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover{
  border-color: rgba(90, 200, 250, 0.6);
  transform: translateY(-4px);
}

.project-pill{
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(90, 200, 250, 0.15);
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.project-card h3{
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
}

.project-card p{
  color: var(--muted);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.btn--primary{
  background: linear-gradient(135deg, #5ac8fa, #8e5cff);
  color: #05060b;
  box-shadow: 0 10px 30px rgba(90, 200, 250, 0.35);
}

.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(90, 200, 250, 0.45);
}

.btn--primary.is-animating{
  animation: cta-press 0.6s ease;
}

.btn--secondary{
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.btn--secondary:hover{
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

footer{
  position: relative;
  background: linear-gradient(135deg, #05060b, #070a15);
  color: var(--muted);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  overflow: hidden;
}

.footer__content{
  position: relative;
  z-index: 2;
}

footer a{
  color: var(--accent);
  text-decoration: none;
}

footer a:hover{
  text-decoration: underline;
}

@keyframes cta-press{
  0%{
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(90, 200, 250, 0.35);
  }
  40%{
    transform: scale(0.94);
    box-shadow: 0 6px 20px rgba(90, 200, 250, 0.25);
  }
  100%{
    transform: scale(1);
    box-shadow: 0 16px 30px rgba(90, 200, 250, 0.45);
  }
}

@media (max-width: 600px){
  .personal-info{
    flex-direction: column;
    align-items: center;
  }

  .hero__cta{
    flex-direction: column;
  }

  .project-grid{
    grid-template-columns: 1fr;
  }
}