html {
  scroll-behavior: smooth;
}
body {
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #333;
  overflow-x: hidden;
  background-image: url("portbg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-links a {
  color: #000000;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  color: #0d6efd;
  transform: scale(1.15);
}

#home {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgb(0, 0, 0);
}

#home > * {
  position: relative;
  z-index: 1;
}

#about, #projects {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 60px;
  margin-top: 100px;
  margin-bottom: 100px;
  z-index: 10;
  position: relative;
}

.card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn:hover {
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
  transition: box-shadow 0.3s ease;
}

#work i {
  transition: transform 0.3s ease, filter 0.3s ease;
}
#work i:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(13, 110, 253, 0.4));
}

footer {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  #home {
    background-attachment: scroll;
  }
}
