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

body {
  color: #ededed;
  background-color: #081b29;
}

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

.logo {
  position: relative;
  font-size: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.navbar a {
  display: inline-block;
  font-size: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  transition: .3s;
}

.navbar a:hover {
  color: #0ef;
}

.home {
  position: relative;
  width: 100%;
  justify-content: space-between;
  height: 100vh;
  background-image: url("image.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 70px 10% 0;
}

.home-content {
  max-width: 600px;
}

.home-content h3 {
  font-size: 32px;
  font-weight: 700;
}

.home-content h3 span {
  color: #0ef;
}

.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin: -3px 0;
}

.home-content p {
  font-size: 20px;
}
.home-content sup{
  font-size: 12px;

}

.home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #0ef;
  border-radius: 50%;
  font-size: 20px;
  color: #0ef;
  text-decoration: none;
  margin: 30px 15px 30px 0;
}

.home-sci a:hover {
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 20px #0ef;
}

.btn-box {
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn-box:hover {
  box-shadow: 0 0 5px cyan,
    0 0 25px cyan, 0 0 50px cyan,
    0 0 100px cyan, 0 0 200px cyan;

}

.about-img img {
  height: auto;
  width: 100%;
  max-height: 630px;

}

.About {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-text {
  height: auto;
  width: 100%;
  max-height: 630px;
}

.about-text h2 {
  font-size: 60px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.about-text span {
  color: #0ef;
}

.about-text p {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 4rem;
}

.sub-title {
  font-size: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-title span {
  color: #0ef;
}

.sub-title h2 {
  margin-top: 40px;
  margin-bottom: 90px;
  text-align: center;
  width: 100%;
  line-height: 1.2;
}

.divide {
  height: 150px;
}

#Skills {
  margin-top: 100px;
  margin-bottom: 100px;
  scroll-margin-top: 120px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px; /* Increased gap for better spacing */
  max-width: 1200px; /* Increased max width */
  margin: 0 auto 60px auto; /* Adjusted bottom margin */
  justify-content: center;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  border-radius: 12px;
  overflow: visible;
  width: 100px; /* Increased width */
  min-height: 100px; /* Increased height */
  position: relative;
  border: 2px solid #0ef; /* Added border for better visibility */
  padding: 10px; /* Added padding */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skill-item span {
  font-size: 14px; /* Increased font size */
  font-weight: 600; /* Made text bolder */
  margin-top: 6px;
}

.skill-item:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #0ef;
}

.skill-item:hover .skill-icon {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.Contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 3rem;
  padding-left: 30px;
  margin-top: 80px;
}

.content-text h2 {
  font-size: 90px;
}

.content-text h4 {
  margin: 15px 0;
  font-size: 26px;
  font-weight: 600;
}

.content-text p {
  font-size: 16px;
  margin-top: 40px;
  line-height: 1.5;
  font-weight: 300;
}

.content-text span {
  color: #0ef;
}

.contact-list {
  font-size: 16px;
  font-weight: 300;
  margin-top: 40px;
  margin-bottom: 20px;
}

.contact-form form {
  position: relative;
}

.contact-form form input,
form textarea {
  border: none;
  outline: none;
  width: 90%;
  padding: 18px;
  background: #555557;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
}

.contact-form textarea {
  resize: none;
  height: 220px;
}

.contact-form form .send {
  display: inline-block;
  padding: 14px 60px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
}

.contact-form form .send:hover {
  box-shadow: 0 0 5px cyan,
    0 0 25px cyan, 0 0 50px cyan,
    0 0 100px cyan, 0 0 200px cyan;

}

.footer {
  background: #000;
  text-align: center;
  height: 25px;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0ef;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive styles */
/* Portfolio Section Styles */
.Portfolio {
  margin-top: 80px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.portfolio-item {
  background: #0a223a;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  overflow: hidden;
  width: 320px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #0ef;
}

.portfolio-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-bottom: 18px;
}

.portfolio-item h3 {
  font-size: 22px;
  color: #0ef;
  margin-bottom: 8px;
}

.portfolio-item p {
  font-size: 15px;
  color: #ededed;
  margin-bottom: 18px;
  text-align: center;
}

.portfolio-item .btn-box {
  margin-top: auto;
}

@media (max-width: 992px) {
  .portfolio-grid {
    gap: 20px;
    max-width: 95%;
  }
  .portfolio-item {
    width: 260px;
    min-height: 320px;
    padding: 16px 8px;
  }
  .portfolio-img {
    height: 120px;
  }
}

@media (max-width: 768px) {
  .Portfolio {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .portfolio-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .portfolio-item {
    width: min(94vw, 420px);
    min-height: 220px;
    padding: 14px 10px;
  }
  .portfolio-img {
    height: auto;
    min-height: 160px;
  }
}
@media (max-width: 992px) {
  .header {
    padding: 15px 5%;
  }

  .navbar a {
    font-size: 18px;
    margin-left: 20px;
  }

  .home-content h1 {
    font-size: 42px;
  }

  .home-content h3 {
    font-size: 26px;
  }

  .about-text h2,
  .sub-title,
  .sub-title h1 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 5%;
  }

  .logo {
    font-size: 20px;
  }

  .navbar a {
    font-size: 16px;
    margin-left: 12px;
  }

  .home {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 90px 5% 30px;
    height: auto;
    min-height: 100vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
  }

  .home-content {
    max-width: 100%;
  }

  .home-content h1 {
    font-size: 32px;
  }

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

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

  .About {
    flex-direction: column;
    padding: 90px 5% 40px;
    height: auto;
  }

  .about-img img {
    max-height: 360px;
  }

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

  .about-text p {
    font-size: 16px;
  }

  .divide {
    height: 80px;
  }

  #Skills {
    margin-top: 40px;
    margin-bottom: 60px;
    padding-top: 20px;
    scroll-margin-top: 95px;
  }

  .skills-wrapper {
    max-width: 95%;
  }

  .skill-container {
    width: 100%;
  }

  .tools-wrapper {
    gap: 24px;
    margin-top: 30px;
  }

  .Contact {
    grid-template-columns: 1fr;
    padding: 90px 5% 40px;
    height: auto;
  }

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

  .content-text h4 {
    font-size: 20px;
  }

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

  .contact-form form input,
  .contact-form form textarea {
    width: 100%;
  }

  .skills-grid {
    gap: 16px; /* Adjusted gap for smaller screens */
  }

  .skill-item {
    width: 80px; /* Reduced size for smaller screens */
    min-height: 80px;
  }

  .skill-item span {
    font-size: 12px; /* Adjusted font size */
  }
}

@media (max-width: 480px) {
  .navbar a {
    font-size: 14px;
    margin-left: 8px;
  }

  .home-content h1 {
    font-size: 28px;
  }

  .home-content h3 {
    font-size: 18px;
  }

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

  .sub-title h1 {
    font-size: 32px;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0 10px;
  }

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

