* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "poppins", sans-serif;
}

:root {
  --bg-color: rgb(15, 15, 15);
  --second-bg-color: #161616;
  --text-color: white;
  --main-color: #14ff6a;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: green;
  font-weight: bold;
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
}

.logo svg {
  width: 60px;
  height: 60px; 
  transition: transform 0.3s ease;
  border: 2px solid var(--main-color); 
  border-radius: 50%; 
  padding: 5px; 
  background: rgba(0, 0, 0, 0.2); 
}

.logo:hover svg {
  transform: rotate(15deg);
  box-shadow: 0 0 15px var(--main-color); 
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

.header
{
   position:fixed;
   top: 0;

   left: 0;
   width: 100%;
   padding: 2rem 9%;
   background: rgba(0, 0, 0, 0.7);
   backdrop-filter: blur(10px);
   display: flex;
   justify-content: space-between;
   align-items: center;
   z-index: 100;
}

.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.logo:hover {
  transform: scale(1.1);
}

.navbar a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

#main-icon {
  font-size: 3rem;
  color: var(--main-color);
  display: none;
}

section {
  min-height: 100vh;
  margin-top: 30px;
  padding: 10rem;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
}

span {
  color: var(--main-color);

}

.logo span {

  color: var(--main-color);
}

.home-content h1 {
  font-size: 8rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-img {
  border-radius: 50%;
}

.home-img img {
  position: relative;
  border-radius: 50%;

  width: 25vw;
  box-shadow: 0 0 35px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow: 0 0 500px var(--main-color),
    0 0 100px var(--main-color);
}

.home-content p {
  word-spacing: 3px;
  letter-spacing: 1px;
  margin-top: 5%;
  font-size: 1.8rem;
  font-weight: 500;

}

.social-icons a {

  margin-top: 8%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  font-size: 2rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3 rem 0;
  transition: 0.3s ease-in-out;

}

.social-icons a:hover {
  color: white;
  transform: scale(1.3)translateY(-5px);
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
}

.btn {
  font-size: medium;
  margin-top: 10%;
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--bg-color);
  border-radius: 4rem;
  font: 3.6rem;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  background: var(--main-color);
  color: var(--text-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
}

.text-animation {
  font-size: 42px;
  font-weight: 600;
  min-width: 280px;
  margin: 10px 0;
}

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "Web Developer";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;

}

.github-projects {
  display: flex;
  flex-direction: column;
}

.github-projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  /* Centers the content */
}

.github-projects-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid green;
  border-radius: 5px;
  padding: 10px;
  gap: 15px;
  width: 250px;
  /* Set width for project boxes */
  transition: background-color 0.9s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.github-projects-box:hover {
  background-color: #335e22;
  transform: translateY(-10px);
  box-shadow: 0 2px 15px rgb(250, 109, 109);
}

.github-icon-heading {
  font-size: 30px;
  color: #333;
}

.github-project-heading {
  font-size: 18px;
  font-style: italic;
  font-weight: bold;
}

.github-project-link {
  font-size: 16px;
  color: #14ff6a;
  font-style: oblique;
  text-decoration: none;
}

.github-project-link:hover {
  text-decoration: underline;
}

.github-projects-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border: 1px solid green;
  border-radius: 5px;
  padding: 10px;
  gap: 15px;
  width: 250px;
  transition: background-color 0.9s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.github-projects-box:hover {
  background-color: #335e22;
  transform: translateY(-10px);
  box-shadow: 0 2px 15px rgb(250, 109, 109);
}

.nested-repo {
  margin-top: 15px;
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words {

  0%,
  20% {
    content: "Web Developer";
  }

  21%,
  40% {
    content: "Web Designer";
  }

  41%,
  60% {
    content: "photographer";
  }

  61%,
  80% {
    content: 'Blogger';
  }

  81%,
  100% {
    content: "Content Creator";
  }
}

@keyframes typing {

  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }

  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100%+8px);
  }
}

.heading {
  text-align: center;
  font-size: 8rem;
}

.services {
  background-color: var(--second-bg-color);
}

.services h2 {
  margin-bottom: 8rem;
}

.service-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.service-container .services-box {
  flex: 1 1 40rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-color);
  padding: 3rem 2rem 4 rem;
  height: 550px;
  border-radius: 2rem;
  border: 3px solid var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.service-container .services-box:hover {
  transform: scale(1.02);
  background-color: white;
  color: black;
}

.services-box i {
  font-size: 7rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.services-box h3 {
  font-size: 2.6rem;
}

.services-box p {
  font-size: 1.6rem;
  margin: 1rem 0 3rem;
  font-weight: 500;
}

.services-box .btn {
  background-color: transparent;
}

.services-box .btn:hover {
  color: var(--main-color);
  background: black;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}

.projects {
  background: var(--bg-color);
}

.projects h2 {
  margin-bottom: 8rem;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.projects-container .projects-box {
  position: relative;
  height: 550px;
  overflow: hidden;
  display: flex;
  border-radius: 2rem;
  border: 3px solid transparent;
  transition: 0.5s ease-in-out;
}

.projects-box:hover {
  border: 3px solid var(--main-color);
}

.projects-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease-in-out;
}

.projects-box:hover img {
  transform: scale(1.05);
}

.projects-box .projects-info {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 1rem;
  padding: 0 4rem;
  cursor: pointer;
  transition: 0.5s ease-in-out;
  backdrop-filter: grayscale(100%);
}

.projects-box .projects-info:hover {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: grayscale(0%);
}

.projects-container.projects-info h4 {
  font-size: 4rem;
  color: var(--main-color);
  font-weight: 800;
}

.projects-info p {
  font-size: 1.6rem;
  margin: 0.3rem 0 1rem;
  color: var(--main-color);
}


.timeline-section {
  background: var(--second-bg-color);
  padding: 100px 15px;
}

.timeline-section h2 {
  margin-bottom: 5rem;
}

.timeline-items {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.timeline-items:before {
  content: '';
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--main-color);
  left: calc(50% - 1px);
}

.timeline-item {
  margin-bottom: 10px;
  width: 100%;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);

}

.timeline-dot {
  height: 20px;
  width: 20px;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  position: absolute;
  left: calc(50% - 9px);
  border-radius: 50%;
  top: 10px;
}

.timeline-date {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin: 6px 0 15px;
}

.timeline-content {
  background-color: var(--second-bg-color);
  backdrop-filter: blur(20px);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
  padding: 30px;
  border-radius: 1em;
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
  font-size: 20px;
  color: var(--main-color);
  margin: 0 0 10px;
  text-transform: capitalize;
  font-weight: 800;
}

.timeline-content p {
  color: white;
  opacity: 0.8;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.contact {
  background-color: var(--bg-color);
}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 0.8rem;
  border: 2px solid var(--main-color);
  margin: 1rem 0;
  resize: none;

}

.contact form btn {
  margin-top: 2rem;
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: var(--second-bg-color);
}

.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: white;
}

.footer .social a {
  font-size: 25px;
  color: var(--main-color);
  width: 42px;
  height: 42px;
  border: 2px solid var(--main-color);
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}

.footer .social a:hover {
  transform: scale(1.2)translateY(-10px);
  background-color: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 0 25px var(--main-color);
}

.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
  font-size: 12px;
}

.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}

.footer ul li {
  display: inline-block;
  padding: 0 15px;
}

.footer .copyright {
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: white;
}

@media(max-width:1200px) {
  html {
    font-size: 55%;
  }

  .projects-container {
    padding: 7rem;
    grid-template-columns: repeat(1, 1fr);
    margin: 0 5rem;
  }
}

@media(max-width:1000px) {
  header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 2rem;
  }

  .services {
    padding-bottom: 7rem;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media(max-width:995px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    border-left: 3px solid var(--main-color);
    border-bottom: 3px solid var(--main-color);
    border-bottom-left-radius: 2em;
    padding: 1rem 3%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
  }

  .navbar.active {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home {
    flex-direction: column;
    margin: 5rem 4rem;
  }

  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }

  .services-box {
    margin: 0 5rem;
  }

  .services h2 {
    margin-bottom: 3rem;
  }

  .projects h2 {
    margin-bottom: 3rem;
  }

  .timeline-items::before {
    left: 7px;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: center;

  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 37px;
  }

  .timeline-dot {
    left: 0;
  }
}

.contact-popup {
  position: fixed;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  width: 50vh;
  height: auto;
  padding: 20px;
  gap: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.contact-popup .popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.contact-popup .contact-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-popup .contact-img img:hover {
  transform: translateY(-10px);
  box-shadow: 0 2px 15px rgba(129, 221, 24, 0.7);
  transition: background-color 0.9s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-popup .contact-img img {
  margin-top: 20px;
  width: 50%;
  border-radius: 100px;
}

.contact-popup h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.contact-popup p {
  font-size: 18px;
  margin: 5px 0;
  color: #555;
}

.contact-popup a {
  text-decoration: none;
  color: #555;
  font-size: 18px;
}

.contact-popup a:hover {
  color: #007bff;
  text-decoration: underline;
}

.smile i {
  color: green;
  font-size: 40px;
  margin-bottom: 5px;

}

.smile h3 {
  color: red;
}
