@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --mainColor:#4CAF50;
    --fontColor: #fff;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    width: 100%;
}
body{
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif, Helvetica;
    background-color: black;
    color: var(--fontColor);
    position: relative;
    width: 100%;
}
a{
    text-decoration: none;
    color: var(--fontColor);
}
a:visited{
    color: var(--fontColor);
}
/* Header Section */
header{
    width: 100%;
    height: 4rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 10;
    background-color: inherit;
}
.header-name h1{
    font-size: 2rem;
}
.header-name span{
    color: var(--mainColor);
}
.header-section{
    display: flex;
    gap: .5rem;
}
.header-section a{
    font-size: 1.1rem;
    padding: .5rem;
}
.header-section a:hover{
    border-bottom: 2px solid var(--mainColor);
    transform: scale(1.1);
}
.hamburger{
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: aqua;
}
/* Main */
main{
    margin: 5rem 10rem;
}

/* Hero section */
.hero-section{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5rem 1rem;
    gap: 5rem;
}
.hero-img{
    width: 30%;
    height: auto;
    perspective: 1000px;
}
.hero-img img{
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: 0 0 40px var(--mainColor);
}
.hero-info{
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 1rem;
}
.hero-info p{
    width: 60%;
}
.hero-info h3{
    font-size: 2rem;
}
.hero-info h2{
    font-size: 2.5rem;
}
.hero-info span{
    color: var(--mainColor);
}
.hero-icons{
    display: flex;
    gap: 2rem;
}
.hero-icons i{
    font-size: 1.5rem;
    color: var(--mainColor);
    padding: .5rem;
    box-shadow: 0 0 10px var(--mainColor);
    border-radius: 50%;
}
.hero-icons i:hover{
    transform: scale(1.1);
}
.hero-info button{
    width: 40%;
    padding: .5rem;
    border: none;
    color: var(--fontColor);
    background-color: var(--mainColor);
    outline: none;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}
.hero-info button:hover{
    transform: scale(.9);
}
/* Animation */
#changing-text {
    border-right: 2px solid #4CAF50; /* blinking cursor */
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
    font-weight: bold;
    color: #4CAF50;
    vertical-align: middle;
  line-height: 1;
  font-size: inherit;
  }
  
  @keyframes blink-caret {
    0%, 100% {
      border-color: transparent;
    }
    50% {
      border-color: #4CAF50;
    }
  }
  
  /* About section */
  .about-section{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 5rem 0;
    padding: 2rem 0;
    gap: 1rem;
  }
  .about-section h2{
    font-size: 2.5rem;
    text-align: center;
  }
  .about-section span{
    color: var(--mainColor);
  }
  .about-section h3{
    font-size: 1.2rem;
    text-align: center;
    color: aqua;
  }
  /* Skills section */
.skills{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5rem 0;
    gap: 3rem;
}
.skills h2{
    font-size: 2.5rem;
}
.skills span{
    color: var(--mainColor);
}

.skills-icon{
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.skills-icon div{
    width: 20%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    font-size: 1.5rem;
    box-shadow: 0 0 10px var(--mainColor);
    border-radius: 1rem;
}
.skills-icon i{
    font-size: 2.5rem;
    color: var(--mainColor);
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
}
.skills-icon div:hover{
    transform: scale(1.1);
}

/* Projects */
.projects{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem;
}
.projects h2{
    font-size: 2.5rem;
}
.projects span{
    color: var(--mainColor);
}
.project-box{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;

}
.project-box div{
    width: 30%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem; 
    padding: 1rem; 
    
}
.project-box div:hover{
    box-shadow: 0 0 15px var(--mainColor);
    border-radius: 2rem;
    transform: scale(1.1);
}
.project-box >div >img{
    width: 90%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}
/* Services */
.services{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 3rem;
}
.services h2{
    font-size: 2.5rem;
}
.services span{
    color: var(--mainColor);
}
.services-box{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.service-img{
    width: 50%;
    height: auto;
    perspective: 1000px;
}
.service-img img{
    width: 100%;
    height: auto;
    border-radius: 2rem;
    object-fit: cover;
    transform: rotateY(20deg);
    box-shadow: 0 0 20px aqua;
}
.special{
    transform: rotateY(-20deg) !important;
}
.service-info{
    width: 40%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.service-info h2{
    color: aqua;
}
.service-info button{
    width: 40%;
    height: auto;
    padding: .5rem;
    border: none;
    outline: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fontColor);
    background-color: var(--mainColor);
    cursor: pointer;
}
.service-info button:hover{
    transform: scale(1.1);
}
/* contact */
.contact{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10rem 0;
}
.contact-info{
    width: 35%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-direction: column;
    gap: 2rem;

}
.contact-info h2{
    color: var(--mainColor);
    text-align: center;
    width: 100%;
}
.contact-info h3{
    color: aqua;
}
.send-icon i{
    color: aqua;
    margin-right: 1rem;
}
/* Form */
form{
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
form input{
    width: 100%;
    padding: .7rem 1rem;
    background-color: #333;
    border-radius: .5rem ;
    border: 1px solid var(--fontColor);
    outline: none;
    font-size: 1.1rem;
    color: var(--fontColor);
}
form textarea{
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background-color: #333;
    color: var(--fontColor);
}
form button{
    padding: 1rem;
    width: 50%;
    height: auto;
    border: none;
    outline: none;
    background-color: var(--mainColor);
    color: var(--fontColor);
    font-size: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
}
form button:hover{
    transform: scale(.9);
}

.hero-img img:hover,
.project-box > div > img:hover {
  transform: scale(1.05) !important;
  transition: 0.3s ease-in-out ;
}


/* Responsive */
@media (max-width: 1024px) {
    main {
      padding: 2rem 2rem;
    }
    footer{
        padding: 2rem;
    }
    .hero-section {
      flex-direction: column;
      gap: 5rem;
      margin: 5rem 1rem;
    }
     .hero-info {
      width: 80%;
      text-align: center;
      align-items: center;
    }
    .hero-img{
        width: 40%;
        height: auto;
    }
    .hero-img img{
        border-radius: 2rem;
    }
    .hero-info p {
      width: 100%;
    }
    .about-section{
        padding: 3rem 0;
    }
    .skills-icon{
        width: 100%;
        
    }
    .skills-icon div{
        width: 25%;
        justify-content: space-between;
        font-size: 1rem;
    }
    .skills-icon i{
        font-size: 2rem;
        padding: 1rem;
    }
    .service-img, .service-info {
      width: 80%;
      text-align: center;
      align-items: center;
    }
    .contact {
      flex-direction: column;
      gap: 3rem;
      padding: 5rem 0;
    }
    .contact-info, form {
      width: 80%;
      align-items: center;
      text-align: center;
    }
  }
  
@media (max-width: 768px){
    .header-section{
        display: none;
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100%;
        background-color: var(--mainColor);
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        transition: all 0.3s ease-in-out;
    }
    
    .hamburger {
        display: block;
    }

    .header-section.show {
        display: flex;
    }
    main{
        margin: 0;
    }
    .hero-section{
        justify-content: space-between;
        gap: 3rem;
        padding: 2rem;
    }
    .hero-img{
        width: 30%;
        height: auto;
    }
    .hero-img img{
        border-radius: 2rem;
    }
    .hero-info {
        width: 70%;
    }
    .hero-info h2{
        font-size: 2rem;
    }
    .hero-info p{
        width: 80%;
    }
}


@media (max-width: 520px) {

    .header-name h1 {
      font-size: 1.5rem;
    }
    .hero-img{
        width: 60%;
    }
    .hero-info h2 {
      font-size: 1.5rem;
    }
    .hero-info h3 {
      font-size: 1.2rem;
    }

    .hero-icons {
      gap: 1rem;
    }
    .hero-info button, .service-info button, form button {
      width: 100%;
      font-size: 1.1rem;
    }
    .skills-icon div {
      width: 50%;
    }
    .project-box div {
      width: 90%;
    }
    .services-box {
      flex-direction: column;
    }
    .service-img, .service-info {
      width: 100%;
    }
    form {
      width: 100%;
    }
  }
  