
html {
  scroll-behavior: smooth;
}
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
  height: 100%;
  background: #0f2027;
  color: #f0f0f0;
  overflow-x: hidden;
}
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}
.header {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 1em;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-links {
  margin-top: 0.5em;
}
.nav-links a {
  margin: 0 1em;
  color: #90caf9;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.nav-links a:hover {
  color: #ffffff;
  transform: scale(1.1);
}
footer {
  margin-top: auto;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 1em;
  text-align: center;
}
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.animated-bg span {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s linear infinite;
  bottom: -150px;
  border-radius: 50%;
}
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; }
}
.bio-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4em 2em;
  gap: 2em;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeinUp 1s ease forwards;
}
.bio-block.reverse {
  flex-direction: row-reverse;
}
.bio-block:nth-of-type(2) { animation-delay: 0.3s; }
.bio-block:nth-of-type(3) { animation-delay: 0.6s; }
.bio-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
}
.bio-text {
  flex: 1;
  padding: 1em;
  text-align: justify;
}
@keyframes fadeinUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  padding: 2em;
}
.card {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5em;
  border-radius: 10px;
  width: 280px;
  backdrop-filter: blur(4px);
  transition: transform 0.3s;
  text-decoration: none;
  color: white;
}
.card:hover {
  transform: scale(1.05);
}
.page-content {
  padding: 2em;
}
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2196f3;
  color: white;
  border: none;
  padding: 0.7em 1em;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2em;
  display: none;
  z-index: 1000;
}
#backToTop:hover {
  background: #0d8ae8;
}
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}
