/* Global Styles */
html{
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  line-height: 1.8;
  animation: fadeInBody 2s ease-in;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.profile-image img {
  width: auto;
  height: 300px;
  border-radius: 50%;
  border: 3px solid #00ffff;
  object-fit: cover;
  box-shadow: 0 0 20px #00ffff;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin: 0.3rem 0;
  color: #00ffff;
}

.hero-text h2 {
  font-size: 1.3rem;
  color: #cccccc;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: #bbbbbb;
}

/* Buttons */
.buttons {
  margin: 1.5rem 0;
}

.btn {
  text-decoration: none;
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #00ffff;
  color: #0d0d0d;
}

/* Social Icons */
.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: #00ffff;
  font-size: 2.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ffffff;
}

/* Navbar */
nav {
  background-color: #1a1a1a;
  padding: 1rem;
  margin-top: 2rem;
  text-align: center;
  border-top: 2px solid #00ffff;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  margin: 0 1.2rem;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00ffff;
}
#back_to_top{
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center; 
    border-radius: 50%;    
    text-decoration: none;    
    transition: background-color 0.3s, transform 0.3s;
}

#back_to_top:hover{
    transform: scale(1.1)
    
}


.nav-links i {
  margin-right: 8px;
}
/* Responsive for phones */
@media (max-width: 600px) {
  /* Reduce padding on hero section */
  .hero {
    padding: 2rem 1rem 1rem;
  }

  /* Make profile image smaller */
  .profile-image img {
    height: 180px;
    box-shadow: 0 0 10px #00ffff;
  }

  /* Smaller headings */
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .hero-text p {
    font-size: 1rem;
  }

  /* Buttons smaller and stacked vertically */
  .buttons {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .btn {
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 200px;
  }

  /* Social icons smaller and centered */
  .social-icons {
    margin-top: 1rem;
    text-align: center;
  }
  .social-icons a {
    font-size: 2rem;
    margin: 0 0.3rem;
  }

  /* Navbar links smaller and stacked */
  nav {
    padding: 0.8rem;
    margin-top: 1rem;
  }
  .nav-links a {
    display: block;
    margin: 0.5rem 0;
    font-size: 1rem;
  }
}
