@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;500;700&display=swap');

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

body, html {
  width: 100%;
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden;
  /* darker purple base */
  background: linear-gradient(180deg,#04000a,#12001a 70%);
}

/* textured, pixelated static overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* layered radial gradients create a pixel/static look */
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.03) 3px, transparent 3px),
    linear-gradient(180deg, rgba(30,5,30,0.03), rgba(6,0,10,0.9));
  background-size: 4px 4px, 12px 12px, 100% 100%;
  background-repeat: repeat, repeat, no-repeat;
  opacity: 0.95;
  z-index: -1;
  mix-blend-mode: screen;
  filter: contrast(1.12) saturate(1.1);
}

canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  z-index: 2;
}

.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: #fff;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: #58a6ff;
}

.hero {
  position: relative;
  margin-top: 80px; /* account for fixed header */
  text-align: center;
  z-index: 2;
}

/* make the hero fill the viewport so skills sit in the next screen */
.hero { min-height: calc(100vh - 80px); display:flex; flex-direction:column; align-items:center; justify-content:center }

/* CTA button */
.btn-primary {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  background: linear-gradient(90deg,#2a9df4,#6cc6ff);
  color: #001019;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(44,162,255,0.12);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 10px 24px rgba(44,162,255,0.18); }

html { scroll-behavior: smooth; }

.hero h1 {
  font-size: 2.5rem;
  font-weight: 500;
}

.hero h1 span {
  color: #58a6ff;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 10px;
  color: #ccc;
  height: auto;
  white-space: normal;
  overflow: visible;
  border-right: none; /* removed blue cursor line */
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-links a {
  color: #fff;
  font-size: 1.8rem;
  margin: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: color 0.3s ease, transform 0.15s ease;
}

.social-links a svg {
  width: 24px;
  height: 24px;
  display: block;
  color: inherit;
}

.social-links a:hover {
  color: #58a6ff;
  transform: translateY(-3px);
  filter: drop-shadow(0 0 10px rgba(88,166,255,0.6));
}

.nav-skill{ margin-left: 14px }

/* Skills section styles */
.skills{ padding: 40px 20px; background: transparent; scroll-margin-top: 90px }
.skills-inner{ min-height: calc(100vh - 80px); display:flex; flex-direction:column; align-items:center; justify-content:center }
.skills-desc{ max-width:720px; color:#bfcbd6; margin:12px auto 18px; font-size:1rem }
.skills-inner{ max-width: 960px; margin: 0 auto; text-align: center }
.skills h3{ font-size: 1.8rem; margin-bottom: 6px}
.skills-sub{ color: #9aa6b2; margin-bottom: 22px }
.skill-cards{ display:flex; gap:28px; justify-content:center; flex-wrap:wrap }
.skill-card{ display:flex; align-items:center; gap:18px; text-decoration:none; color:inherit; background: rgba(255,255,255,0.02); padding:22px 26px; border-radius:16px; min-width:320px; transition: transform .12s ease, box-shadow .12s ease; border: 1px solid rgba(255,255,255,0.03); }
.skill-card:hover{ transform: translateY(-6px); box-shadow: 0 10px 36px rgba(0,0,0,0.6) }
.skill-logo{ width:80px; height:80px; display:flex; align-items:center; justify-content:center; border-radius:12px; background: rgba(255,255,255,0.03); font-weight:800; font-size:1.1rem }
.skill-logo.cpp{ background: linear-gradient(135deg,#ffd700,#ff7f50); color:#001; font-family:monospace }
.skill-logo.git{ background: linear-gradient(135deg,#666,#000); color:#eee; font-family:monospace }
.skill-content strong{ display:block }
.skill-content span{ display:block; color:#9aa6b2; font-size:.95rem }

/* stabilize typewriter height to avoid layout jumps */
#typewriter{ display:block; height:2rem; line-height:2rem; min-width:8ch }

/* Contact page layout adjustments */
.contact-page {
  min-height: 100vh;
  /* keep header/logo at the top-left; content flows from top */
  padding-top: 100px; /* space for header */
}

.contact {
  max-width: 720px;
  padding: 20px 20px 80px 20px;
  margin: 0 auto;
  text-align: left;
}

/* Projects section styles */
.projects {
  padding: 80px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.25));
  z-index: 1;
}

.projects-inner{ max-width: 900px; margin: 0 auto; text-align: center; }
.projects h3{ font-size: 1.6rem; margin-bottom: 6px; }
.projects-sub{ color: #9aa6b2; margin-bottom: 22px }
.project-cards{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap }
.project-card{
  display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit;
  background: rgba(255,255,255,0.02); padding:14px 18px; border-radius:12px; min-width:220px;
  transition: transform .12s ease, box-shadow .12s ease; border: 1px solid rgba(255,255,255,0.03);
}
.project-card:hover{ transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.6) }
.project-logo{ width:48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:8px; background: rgba(255,255,255,0.03); font-weight:700 }
.project-logo.cpp{ background: linear-gradient(135deg,#0a5  , #00aaff); color:#001; font-family:monospace }
.project-content strong{ display:block }
.project-content span{ display:block; color:#9aa6b2; font-size:.9rem }
