html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Fira Mono', monospace;
  color: #fff;
  background: #111;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #222 #111;
}
body::-webkit-scrollbar { width: 4px; background: #111; }
body::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
body::-webkit-scrollbar-track { background: #111; }
body::-webkit-scrollbar-thumb:hover { background: #444; }

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

main, .section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff 70%, #c0a3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.text-shadow { text-shadow: 0 2px 18px #c0a3ff44, 0 1px 5px #0008; }

.icon-shadow, .skills-icons img, .socials a i, .down-arrow i, .arrow-up i, .arrow-down i {
  filter: drop-shadow(0 2px 10px #c0a3ff88) drop-shadow(0 1px 8px #0008);
}

/* Socials, Nav, Buttons */
.socials {
  margin-bottom: 32px;
  font-size: 2rem;
  display: flex;
  gap: 24px;
}
.socials a { color: #fff; transition: color 0.2s; }
.socials a:hover { color: #c0a3ff; }

nav {
  margin-bottom: 40px;
  text-align: center;
  font-size: 1.1rem;
  display: flex;
  gap: 18px;
  justify-content: center;
}
nav .home-link, .home-link {
  color: #fff;
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  border-radius: 0;
  padding: 0;
  font-size: 1.18rem;
  cursor: pointer;
  margin: 0 8px;
  box-shadow: none;
  transition: color 0.18s, text-decoration 0.18s, transform 0.16s;
  letter-spacing: 1px;
  text-decoration: none;
}
nav .home-link:focus, .home-link:focus { outline: none; }
nav .home-link:hover, .home-link:hover {
  color: #c0a3ff;
  text-decoration: underline;
  transform: scale(1.07);
}

.down-arrow, .arrow-down, .arrow-up {
  font-size: 2rem;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-top: 30px;
  transition: color 0.2s, transform 0.2s;
  background: none;
  border: none;
}
.down-arrow { animation: bounce 2s infinite; }
.arrow-down { animation: bounce 2s infinite; }
.arrow-up { margin-bottom: 12px; animation: bounceUp 2s infinite; }
.arrow-down:hover, .arrow-up:hover, .down-arrow:hover {
  color: #c0a3ff;
  transform: scale(1.2);
}
@keyframes bounce { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(14px);} }
@keyframes bounceUp { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }

/* About Me text block width */
.about-block {
  max-width: 500px;
  margin: 20px 0;
  padding: 0 18px;
  font-size: 1.09rem;
  text-align: center;
  background: none;        /* Removed background */
  border-radius: 0;         /* Removed border radius */
  box-shadow: none;         /* Removed shadow */
  border: none;             /* Removed border */
}

.skills-category { margin-bottom: 16px; text-align: center; }
.skills-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
  font-family: 'Fira Mono', monospace;
}
.skills-icons {
  display: flex;
  gap: 18px;
  margin-bottom: 5px;
  justify-content: center;
  align-items: center;
}
.skills-icons img {
  margin: 0 3px;
  vertical-align: middle;
}

@media (max-width: 700px) {
  h1 { font-size: 2rem;}
  #skills h2, #about h2 { font-size: 1.5rem;}
  .skills-icons img { height: 32px;}
  .skills-label { font-size: 1rem;}
  .home-link { font-size: 1.09rem;}
  .about-block { max-width: 98vw; }
}

body::-webkit-scrollbar {
  width: 6px;
  background: transparent;
  transition: opacity 0.3s ease;
  opacity: 0;
}

body::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

body.show-scrollbar::-webkit-scrollbar {
  opacity: 1;
}
