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

.container {
    width: 100%;
    background-color: rgb(1, 40, 40);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

@media only screen and (max-width:480px) {
    .nav ul li a {
        background-color: red;
    }

    .container {
        flex-direction: column-reverse;
    }
}

nav img {
    height: 100px;
    width: 300px;
    margin: 5px;

}

nav ul {
    list-style: none;
    display: flex;
    text-decoration: underline;
}

nav ul li {
    padding: 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 25px;
    position: relative;
    text-decoration: underline;
}

nav ul li a::after {
    content: "";
    height: 3px;
    background-color: crimson;
    width: 0%;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: .5s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

.icons {
    height: 70px;
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 30px;
}

.icons a:nth-child(1) {
    color: blue;
}

.icons a:nth-child(2) {
    color: crimson;
}

.icons a:nth-child(3) {
    color: rgb(40, 40, 152);
}

.icons a:nth-child(4) {
    color: green;
}

/* hero section */

.typing {
    font-size: 28px;
    margin: 10 auto;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid white;
    width: 0;
    margin: 10px;
    animation: typing 8s steps(26) infinite;
}

.typing span::before {
    color: red;
    content: "i am frontend developer";
    animation: changetext 8s infinite;
}

@keyframes typing {
    0% {
        width: 0;
    }

    20% {
        width: 22ch;
    }

    40% {
        width: 22ch;
    }

    50% {
        width: 0;
    }

    60% {
        width: 0;
    }

    80% {
        width: 22ch;
    }

    100% {
        width: 22ch;
    }
}

@keyframes changetext {

    0%,
    50% {
        content: "  I'm a frontend developer";
    }

    51%,
    100% {
        content: " I'm a backend developer";
    }
}

.hero-container {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.profile-outer {
    height: 500px;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: white;
}

.profile img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 2px 2px wheat;

}

.info-outer {
    height: 500px;
    width: 60%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-outer h1 {
    color: white;
    font-size: 3rem;

}

.info-outer p {
    font-weight: bold;
    letter-spacing: 1px;
    word-spacing: 1px;
    font-size: 1.2rem;
}

/* about */
#about h1 {
    color: crimson;
    text-align: center;
    font-size: 3rem;
}

#about hr {
    height: 5px;
    width: 80%;
    background-color: crimson;
    margin: 0 auto;
    border-radius: 10px;
    border: none;
}

.about-text p {
    margin: 30px auto;
    width: 80%;
    color: #fff;
    text-align: justify;
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
}

.about-text span {
    color: red;
}

.about-text ul {
    color: red;
    font-weight: bold;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin: 10px auto;
    font-size: 1.4rem;
}

/* skills */

#skills h1 {
    color: crimson;
    text-align: center;
    font-size: 3rem;
}

#skills hr {
    height: 5px;
    width: 80%;
    background-color: crimson;
    margin: 0 auto;
    border-radius: 10px;
    border: none;
}

.skills-outer {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.skills-box {
    height: 200px;
    background: linear-gradient(45deg, rgb(196, 245, 245), rgb(58, 58, 128));
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-box a {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-box img {
    height: 80%;
    border-radius: 50%;
}

.skills-box:hover {
    transform: translate(-7px);
}

#info h1 {
    color: crimson;
    text-align: center;
    font-size: 3rem;
}

#info hr {
    height: 5px;
    width: 80%;
    background-color: crimson;
    margin: 0 auto;
    border-radius: 10px;
    border: none;
}


.about-inner {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.about-box {
    height: 300px;
    background: linear-gradient(45deg, crimson, rgb(58, 58, 128));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

}

.about-box h3,
p {
    color: white;
    text-align: justify;
    margin: 10px;

}


#personal h1 {
    color: crimson;
    text-align: center;
    font-size: 3rem;
}

#personal hr {
    height: 5px;
    width: 80%;
    background-color: crimson;
    margin: 0 auto;
    border-radius: 10px;
    border: none;
}

.details {
    width: 80%;
    border: 1 px solid wheat;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 auto;
    margin-top: 20px;


}

.inner-details-one {
    height: 500px;
    border-radius: 10px;


}

.inner-details-one h1 {
    margin-top: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;

}

.inner-details-one p {
    color: white;
    margin: 5px;
    margin-top: 10px;
    font-size: 20px;
}

.inner-details-one ul li {
    margin-top: 10px;
    color: wheat;


}

.inner-details-one ul {
    list-style: none;
    margin-top: 20px;
}

.inner-details-one ul li a {
    color: wheat;

}

.inner-details-two {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.inner-details-two label {
    color: white;
    font-size: 25px;

}

.inner-details-two input {
    border: 1px solid;
    background-color: white;
    height: 40px;
    width: 300px;
    border-radius: 15px;
    font-size: 15px;
    padding: 5px;
}

.inner-details-two textarea {
    width: 300px;
    height: 100px;
    background: white;
    border-radius: 10px;
    font-size: 15px;
    padding: 5px;
}

.inner-details-two button {
    background-color: crimson;
    border-radius: 10px;
    height: 50px;
    width: 200px;
    font-weight: bold;
    font-size: 20px;
}

#footer {
    margin-top: 60px;
    height: 60px;
    background-color: rgb(41, 41, 41);
    display: flex;
    justify-content: center;
}

.footer-inner {
    height: 100%;
    width: 80%;
    background-color: rgb(41, 41, 41);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-inner h3 {
    color: white;
    font-size: 18px;

}

@media only screen and (max-width: 480px) {
    nav ul{
        display: none;
    }
    nav { 
        height: 60px;
    }
    nav img{
        height: auto;
        width: 40%;
        margin-left: 0px;
    }

    nav .icons{
        gap: 25px;
    }
    nav a:nth-child(3),nav a:nth-child(4){
        display: none;
    }

    .hero-container {
        flex-direction: column;
    }

    .profile-outer {
        margin-top: 50px;
        height: 300px;
        width: 300px;
        
    }
    
    .info-outer {
        font-size: 26px;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        margin-top: 50px;
    }

    .info-outer h1{
        font-size: 2rem;
        font-weight: bold;
    }

    .typing span::after {
        font-size: 1px;
    }
    .info-outer p{
        font-size: 18px;
        
    }
    .about-text ul{
        width: 70%;
        flex-direction: column;
        font-size: 29px;
    }
    .skills-outer{
    grid-template-columns: repeat(1,1fr);
    }
    .about-inner{
         grid-template-columns: repeat(1,1fr);
         width: 90%;
    }
    .details{
        width: 90%;
         grid-template-columns: repeat(1,1fr);
         gap: 50px;
    }
    .inner-details-one{
        height: auto;
    }
    .footer-inner{
        width: 100%;
        padding: 10px;
        background-color: #111;
    }
    .footer-inner h3{
        font-size: 1rem;
      }

}