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

body {
  color: aliceblue;
  background: #030350;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 5%; 
  background-color: #2f2ff6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  position: relative;
  font-size: 25px;
  color: azure;
  text-decoration: none;
  font-weight: 700;
  cursor: default;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.navbar a {
  display: inline-block;
  font-size: 18px;
  color: azure;
  text-decoration: none;
  font-weight: 500;
  margin-left: 15px;
  transition: 0.5s;
  opacity: 0;
  animation: slideTop 0.5s ease forwards 0.2s;
  animation-delay: calc(0.2s * var(--i));
}

.navbar a:hover {
  color: rgb(31, 86, 126);
}

.navbar a.active {
  color: rgb(31, 86, 126);
}

/* Mobile menu styles */
.mobile-menu {
  display: none;
  font-size: 25px;
  color: azure;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu i {
  transition: all 0.3s ease;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 5% 0;
  min-height: calc(100vh - 60px);
}

.home-content {
  max-width: 100%;
  color: rgb(255, 255, 255);
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.4s;
  text-align: center;
}

.home-content h2 {
  font-size: 24px;
  font-weight: 700;
}

.home-content h1 {
  font-size: 40px;
  font-weight: 700;
  margin: -3px 0 10px;
  color: rgb(119, 119, 254);
}

.home-content h3 {
  font-size: 20px;
  font-weight: 500;
  color:  rgb(255, 255, 255);
}
.home-content h6 {
  font-size: 20px;
  font-weight: 500;
  color:  rgb(103, 103, 242);
}



.home-content p {
  font-size: 16px;
  color: rgb(255, 255, 255);
  margin: 10px 0;
}

.home-content h2:nth-of-type(2) {
  margin-bottom: 20px;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.7s;
}

.home-content h2 span {
  color: rgb(18, 119, 220);
}

.home-sci {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.home-sci a {
  display: inline-flex;
  width: 35px;
  height: 35px;
  background: transparent;
  border: 2px solid azure;
  border-radius: 50%;
  font-size: 18px;
  color: azure;
  text-decoration: none;
  margin: 0 10px;
  justify-content: center;
  align-items: center;
  transition: .5s ease forwards;
  opacity: 0;
  animation: slideLeft 1s ease forwards .6s;
  animation-delay: calc(0.2s * var(--i));
}

.home-sci a:hover {
  background-color: azure;
  color: #8282a1;
  box-shadow: 0 0 30px rgb(197, 237, 237);
}

.image-area {
  width: 30%;
  max-width: 250px;
  overflow: hidden;
  border-radius: 25px;
  opacity: 0;
  animation: slideBottom 1s ease forwards 0.8s;
  margin-left: 20px;
}

.image-area img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
  border: 5px solid aqua;
}

.btn-box {
  display: inline-flex;
  padding: 12px 18px;
  background: azure;
  border-radius: 40px;
  margin-top: 20px;
  font-size: 14px;
  color: #0d0d68;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  opacity: 1;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
  box-shadow: 0 0 5px azure, 0 0 25px azure;
}

.btn-box:hover {
  box-shadow: 0 0 5px azure, 0 0 25px azure;
}

/* Updated about section styles */
.about {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  padding: 100px 5% 4rem;
  margin-top: 10;
  min-height: 100vh;
}

.about-img {
  margin-top: 15px;
  margin-bottom: 20px;
  order: 2;
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 70%; 
  max-width: 300px;
  height: auto;
  border-radius: 50px;
  border: 5px solid aqua;
}

.about-text {
  order: 1; 
  text-align: center;
}

.about-text h2 {
  font-size: 40px;
}

.about-text h2 span {
  color: rgb(254, 254, 254);
}

.about-text h4 {
  font-size: 22px;
  font-weight: 600;
  color: aliceblue;
  line-height: 1.6;
  margin: 20px 0; 
}

.about-text p {
  color: rgb(245, 248, 248);
  font-size: 16px; 
  line-height: 1.5;
  margin-bottom: 25px; 
}

.projects {
  padding: 60px 5% 4rem;
  margin-top: 50px;
}

.projects h2 {
  font-size: 40px; 
  text-align: center;
  margin-bottom: 30px; 
}

.project-container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; 
}

.project-card {
  background: #0a0a33;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  font-size: 20px; 
  color: aliceblue;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px; 
  color: cadetblue;
  line-height: 1.4;
  margin-bottom: 12px;
}

.project-card a {
  display: inline-block;
  padding: 8px 15px; 
  background: azure;
  color: #0d0d68;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px; 
  transition: background-color 0.3s ease;
}

.project-card a:hover {
  background-color: #b0e0e6;
}

.connect {
  padding: 60px 5% 4rem;
  margin-top: 50px;
}

.connect h2 {
  margin-top: 30px;
  color: rgb(246, 250, 250);
  font-size: 40px; 
  text-align: center;
  margin-bottom: 30px;
}

.connect-info {
  max-width: 100%; 
  margin: 0 auto;
  text-align: center;
}

.connect-info p {
  font-size: 16px;
  color: azure;
  margin-bottom: 15px;
}

.connect-info ul {
  list-style: none;
  padding: 0;
}

.connect-info ul li {
  margin-bottom: 10px;
}

.connect-info ul li i {
  font-size: 20px; 
  color: azure;
  margin-right: 8px;
  vertical-align: middle;
}

.connect-info ul li a {
  color: azure;
  text-decoration: none;
  font-size: 16px; 
  vertical-align: middle;
  transition: color 0.3s ease;
}

.connect-info ul li a:hover {
  color: rgb(23, 155, 155);
}

/* Responsive styles */
@media (max-width: 768px) {
  .header {
    padding: 15px 5%;
  }

  .logo {
    opacity: 1;
    animation: none;
  }

  /* Modified navbar styles for dropdown menu */
  .navbar {
    display: none;
    position: absolute;
    top: 100%;
    right: 5px;
    width: 150px;
    background: #2f2ff6;
    padding: 8px;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    opacity: 1;
    animation: dropDown 0.3s ease forwards;
    z-index: 99;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    display: block;
    margin: 5px 0;
    font-size: 18px;
    opacity: 1;
    animation: none;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar a:last-child {
    border-bottom: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
    z-index: 100;
  }

  .container {
    flex-direction: column-reverse;
    padding-top: 120px;
    text-align: center;
  }

  .home-content {
    padding: 30px 0;
  }

  .image-area {
    width: 40%;
    margin: 0 auto 10px;
  }

  .about-img img {
    width: 60%;
  }

  .about-text h2 {
    font-size: 32px;
  }

  .projects h2 {
    font-size: 32px;
  }

  .connect h2 {
    font-size: 32px;
  }
}

/* Desktop styles for about section */
@media (min-width: 769px) {
  .about {
    flex-direction: row;
    text-align: left;
    gap: 30px;
  }
  
  .about-img {
    margin-top: 0;
    order: 1;
    flex: 1;
  }
  
  .about-text {
    order: 2;
    flex: 1;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .home-content h1 {
    font-size: 32px;
  }

  .home-content h2 {
    font-size: 20px;
  }

  .home-content p {
    font-size: 14px;
  }

  .image-area {
    width: 60%;
  }

  .navbar {
    width: 170px;
    right: 5%;
  }

  .navbar a {
    margin: 3px 0;
    font-size: 16px;
    padding: 6px 0;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .projects h2 {
    font-size: 28px;
  }

  .connect h2 {
    font-size: 28px;
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Add dropdown animation */
@keyframes dropDown {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}