@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    text-decoration: none;
    border:none;
    outline:none;
    scroll-behavior: smooth;
    font-family: "poppins",sans-serif;
}
:root{
    --bg-color:#080808;
    --second-bg-color:#131313;
    --text-color:white;
    --main-color:#ed0c0c;
}

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: 1.5rem 9%;
    background: rgba(0,0,0,0.3);
    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;
}
.logo:hover{
    transform:scale(1.1);
}
.logo span{
    text-shadow: 0 0 25px var(--main-color);
}
.navbar a{
    font-size: 1.8rem;
    color:var(--text-color);
    margin-left: 6rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom:3px solid transparent;
}
.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon{
    font-size:3.6rem;
    color:var(--main-color);
    display: none;
}

/* About me css */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12% 8%;
    gap:10em;
    background: #131313;
}
/* .about h1{
    font-size: 8rem;
    text-align: center;

} */
.about-img img{
    position: relative;
    width: 550px;
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    border-radius: 20px ;
    animation: floatImage 4s infinite;

}

@keyframes floatImage {
    0%{
        transform:  translateY(0);
    }
    50%{
        transform: translateY(-4.4rem);
    }
    100%{
        transform: translateY(0);
    }
}
.about-content h4{
    text-align: left;
    color: var(--text-color);
    font-size: 50px;
}
.about-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}
.about h2 span{
    text-align: center;
    font-size: 30px;
    color: var(--main-color);
}
.skills{
    display: flex;  
    text-align: left;
    gap:10em;
}
.skills ul{
    line-height: 1.8;
    max-width: 1000px;
    font-size: 1.5rem;
    padding-top: 20px;
    padding-left: 20px;
    font-weight: 500;   
    display: flex;
    flex-direction: column;
    opacity: 0.8;
    align-items: baseline;
}
.skills ul li span{
    display: flex;
    gap:0.5rem;
    font-size: 1.8rem;
    transition: 0.3s ease-in-out;
}
.skills ul li:hover{
    transform: translateX(10px);
}


/* footer css */


.footer{
    position: relative;
    bottom:0;
    width:100%;
    padding:40px 0;
    background-color: var(--second-bg-color);
    margin: -15px;
}
.footer .social{
    text-align:center;
    padding-bottom:25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color:var(--main-color);
    border:2px solid var(--main-color);
    width:42px;
    height:42px;
    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:rgb(237, 233, 233);
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding:0;
    font-size: 18px;
    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;
}
.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;
}


/* Mobile responsive */
/*BREAK POINT*/

@media (max-width:1200px){
    html{
        font-size: 55%;
    }
    .navbar a {
        margin-left: 4rem;
    }

    .about {
        flex-direction: column;
        padding: 8% 4%;
        gap: 5em;
    }

    .about-img img {
        width: 100%;
    }

    .about-content h4 {
        font-size: 40px;
    }

    .about-content p {
        font-size: 1.4rem;
    }

    .skills {
        flex-direction: column;
        gap: 5em;
    }
}

@media (max-width:991px){
    .header{
        padding: 2rem 3%;
    }

    section{
        padding: 10rem 3%;
    }



    .footer{
        padding: 2rem 3%;
    }
 
    .form button {
        padding: 10px 28px; /* Adjust button padding */
    }
    .header {
        padding: 1rem 6%;
    }

    .logo {
        font-size: 2.5rem;
    }

    .navbar a {
        font-size: 1.6rem;
        margin-left: 3rem;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -150%;
        width: 100%;
        background: var(--bg-color);
        transition: 0.3s;
    }

    .navbar.active {
        left: 0;
    }

    .about-content h4 {
        font-size: 35px;
    }

    .about-content p {
        font-size: 1.3rem;
    }
    
}

@media(max-width: 768px){
    #menu-icon{
        display: block;
    }
    
    .navbar{
        position:absolute;
        top:100%;
        right:0;
        width:50%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        backdrop-filter: blur(10px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display:none;
    }
    .navbar.active{
        display: block;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .header {
        padding: 1rem 6%;
    }

    .logo {
        font-size: 2.5rem;
    }

    .navbar a {
        font-size: 1.6rem;
        margin-left: 3rem;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -150%;
        width: 100%;
        background: var(--bg-color);
        transition: 0.3s;
    }

    .navbar.active {
        left: 0;
    }

    .about-content h4 {
        font-size: 35px;
    }

    .about-content p {
        font-size: 1.3rem;
    }
}

.footer .social a {
    margin: 0 5px;
    font-size: 20px;
    width: 36px;
    height: 36px;
    line-height: 36px;
}

.footer ul li {
    padding: 0 10px;
}

.footer ul {
    font-size: 16px;
}

.form button {
    padding: 10px 26px;
}

@media(max-width:617px){
    .footer .social a {
        margin: 0 5px;
        font-size: 18px;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }

    .footer ul li {
        padding: 0 5px;
    }

    .footer ul {
        font-size: 14px;
    }

    .footer .copyright {
        font-size: 14px;
    }


}

@media (max-width: 576px) {
    .header {
        padding: 1rem 2%;
    }

    .logo {
        font-size: 1.8rem;
    }

    .navbar a {
        font-size: 1.2rem;
        margin-left: 1rem;
    }

    .about {
        padding: 12% 1%;
    }

    .about-img img {
        width: 100%;
    }

    .about-content h4 {
        font-size: 25px;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .skills ul {
        font-size: 1.2rem;
    }
}


@media (max-width: 480px) {
    .header {
        padding: 1rem 2%;
    }

    .logo {
        font-size: 1.6rem;
    }

    .navbar a {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .header {
        padding: 1rem 2%;
    }

    .logo {
        font-size: 1.6rem;
    }

    .navbar a {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
   
}
}