*{
    margin:0;
    padding:0;
}
html {
  scroll-behavior: smooth;
}

body{
    background-image: url("pix-bg5.jpg");
    background-size: cover;
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  /* background: #0f2027; /* optional: set bg color */
  z-index: -1;  
} 

.container {
  background-color: rgba(32, 31, 31, 0.9);
  height: 400px;
  max-width: 900px;
  margin: 60px auto;
  border: 3px solid rgb(6, 6, 6);
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  transition: border 0.4s ease, box-shadow 0.4s ease;
}
.container:hover {
  border: 3px solid #d41515; 
  box-shadow: 0 0 15px #c10f0f;
}

.navbar {
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* background: rgba(103, 94, 94, 0.4); */
  border-radius: 10px; 
  margin-bottom: 20px;
  position: sticky;
  background-color: #111;
  
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.navbar a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.text {
  /* flex: 1; */
  min-width: 250px;
  max-width: 500px;
  margin-bottom:60px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content {
  font-size: 32px;
  text-shadow:0 0 5px #ced2cf;
  color: #00f7f7;
  margin-bottom: 10px;
  animation: fadeIn 1s ease-in-out;
}
/* typing */
h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  color: #ecebdf;
  
}

#typing-text {
  color: #e41b1b;
}

.cursor {
  color: #587ba0;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.bio {
  font-size: 18px;
  color: white;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pic {
  height: 250px;
  width: 250px;
  background-image: url("Adi-img.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 3px solid black;
  margin-top: 20px;
  animation: slideIn 1.5s ease-in-out;
}
.pic:hover{
  background-color: #00f7f7;
  box-shadow: 0 0 15px #04e2ea
}

/* footer styling */
.footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  margin-top: 50px;
  border-top: 1px solid #333;
}

.footer-content p {
  margin: 5px 0;
  transition: color 0.3s ease;
}

.footer-content p:hover {
  color: #00f7ff;
}

/* for mobile  */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  @media (max-width: 768px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .profile .text {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .profile .pic {
    width: 150px;
    height: 150px;
  }
}


  .main-flex-container {
    flex-direction: column;
    align-items: center;
  }

  .left-skill-container,
  .contact-section {
    width: 90%;
    padding: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}
