*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family:-apple-system, sans-serif;
}

:root{
    --bg-color: #fff;
    --snd-bg-color: #e4f0ff;
    --text-color: #000;
    --main-color: #2177df;
}

html{
    font-size: 62.5%;
}

body{
    background: var(--bg-color);
    color: var(--primary-color);
}

section{
    min-height: 100vh;
    padding: 8rem 9% 2rem;
}

/* Header */

.header{
    background-color: #0077ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25'%3E%3Cdefs%3E%3ClinearGradient id='a' gradientUnits='userSpaceOnUse' x1='0' x2='0' y1='0' y2='100%25' gradientTransform='rotate(240)'%3E%3Cstop offset='0' stop-color='%23067CFF'/%3E%3Cstop offset='1' stop-color='%2333FFF8'/%3E%3C/linearGradient%3E%3Cpattern patternUnits='userSpaceOnUse' id='b' width='540' height='450' x='0' y='0' viewBox='0 0 1080 900'%3E%3Cg fill-opacity='0.1'%3E%3Cpolygon fill='%23444' points='90 150 0 300 180 300'/%3E%3Cpolygon points='90 150 180 0 0 0'/%3E%3Cpolygon fill='%23AAA' points='270 150 360 0 180 0'/%3E%3Cpolygon fill='%23DDD' points='450 150 360 300 540 300'/%3E%3Cpolygon fill='%23999' points='450 150 540 0 360 0'/%3E%3Cpolygon points='630 150 540 300 720 300'/%3E%3Cpolygon fill='%23DDD' points='630 150 720 0 540 0'/%3E%3Cpolygon fill='%23444' points='810 150 720 300 900 300'/%3E%3Cpolygon fill='%23FFF' points='810 150 900 0 720 0'/%3E%3Cpolygon fill='%23DDD' points='990 150 900 300 1080 300'/%3E%3Cpolygon fill='%23444' points='990 150 1080 0 900 0'/%3E%3Cpolygon fill='%23DDD' points='90 450 0 600 180 600'/%3E%3Cpolygon points='90 450 180 300 0 300'/%3E%3Cpolygon fill='%23666' points='270 450 180 600 360 600'/%3E%3Cpolygon fill='%23AAA' points='270 450 360 300 180 300'/%3E%3Cpolygon fill='%23DDD' points='450 450 360 600 540 600'/%3E%3Cpolygon fill='%23999' points='450 450 540 300 360 300'/%3E%3Cpolygon fill='%23999' points='630 450 540 600 720 600'/%3E%3Cpolygon fill='%23FFF' points='630 450 720 300 540 300'/%3E%3Cpolygon points='810 450 720 600 900 600'/%3E%3Cpolygon fill='%23DDD' points='810 450 900 300 720 300'/%3E%3Cpolygon fill='%23AAA' points='990 450 900 600 1080 600'/%3E%3Cpolygon fill='%23444' points='990 450 1080 300 900 300'/%3E%3Cpolygon fill='%23222' points='90 750 0 900 180 900'/%3E%3Cpolygon points='270 750 180 900 360 900'/%3E%3Cpolygon fill='%23DDD' points='270 750 360 600 180 600'/%3E%3Cpolygon points='450 750 540 600 360 600'/%3E%3Cpolygon points='630 750 540 900 720 900'/%3E%3Cpolygon fill='%23444' points='630 750 720 600 540 600'/%3E%3Cpolygon fill='%23AAA' points='810 750 720 900 900 900'/%3E%3Cpolygon fill='%23666' points='810 750 900 600 720 600'/%3E%3Cpolygon fill='%23999' points='990 750 900 900 1080 900'/%3E%3Cpolygon fill='%23999' points='180 0 90 150 270 150'/%3E%3Cpolygon fill='%23444' points='360 0 270 150 450 150'/%3E%3Cpolygon fill='%23FFF' points='540 0 450 150 630 150'/%3E%3Cpolygon points='900 0 810 150 990 150'/%3E%3Cpolygon fill='%23222' points='0 300 -90 450 90 450'/%3E%3Cpolygon fill='%23FFF' points='0 300 90 150 -90 150'/%3E%3Cpolygon fill='%23FFF' points='180 300 90 450 270 450'/%3E%3Cpolygon fill='%23666' points='180 300 270 150 90 150'/%3E%3Cpolygon fill='%23222' points='360 300 270 450 450 450'/%3E%3Cpolygon fill='%23FFF' points='360 300 450 150 270 150'/%3E%3Cpolygon fill='%23444' points='540 300 450 450 630 450'/%3E%3Cpolygon fill='%23222' points='540 300 630 150 450 150'/%3E%3Cpolygon fill='%23AAA' points='720 300 630 450 810 450'/%3E%3Cpolygon fill='%23666' points='720 300 810 150 630 150'/%3E%3Cpolygon fill='%23FFF' points='900 300 810 450 990 450'/%3E%3Cpolygon fill='%23999' points='900 300 990 150 810 150'/%3E%3Cpolygon points='0 600 -90 750 90 750'/%3E%3Cpolygon fill='%23666' points='0 600 90 450 -90 450'/%3E%3Cpolygon fill='%23AAA' points='180 600 90 750 270 750'/%3E%3Cpolygon fill='%23444' points='180 600 270 450 90 450'/%3E%3Cpolygon fill='%23444' points='360 600 270 750 450 750'/%3E%3Cpolygon fill='%23999' points='360 600 450 450 270 450'/%3E%3Cpolygon fill='%23666' points='540 600 630 450 450 450'/%3E%3Cpolygon fill='%23222' points='720 600 630 750 810 750'/%3E%3Cpolygon fill='%23FFF' points='900 600 810 750 990 750'/%3E%3Cpolygon fill='%23222' points='900 600 990 450 810 450'/%3E%3Cpolygon fill='%23DDD' points='0 900 90 750 -90 750'/%3E%3Cpolygon fill='%23444' points='180 900 270 750 90 750'/%3E%3Cpolygon fill='%23FFF' points='360 900 450 750 270 750'/%3E%3Cpolygon fill='%23AAA' points='540 900 630 750 450 750'/%3E%3Cpolygon fill='%23FFF' points='720 900 810 750 630 750'/%3E%3Cpolygon fill='%23222' points='900 900 990 750 810 750'/%3E%3Cpolygon fill='%23222' points='1080 300 990 450 1170 450'/%3E%3Cpolygon fill='%23FFF' points='1080 300 1170 150 990 150'/%3E%3Cpolygon points='1080 600 990 750 1170 750'/%3E%3Cpolygon fill='%23666' points='1080 600 1170 450 990 450'/%3E%3Cpolygon fill='%23DDD' points='1080 900 1170 750 990 750'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect x='0' y='0' fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect x='0' y='0' fill='url(%23b)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.logo{
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-color);
    cursor: pointer;
    transition: 0.3s ease   ;
}

.logo:hover{
    transform: scale(1.05);
}  

.navbar a{
    font-size: 1.8rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active{
    color: var(--text-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    visibility: hidden;
}

/* Home Section */

.home{
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-img img{
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    animation: floatimg 3s ease-in-out infinite;
    transition: 0.4s ease;
}

.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color);
}

@keyframes floatimg{
    0%, 100% {
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
}

.home-content{
    margin-left: 5rem;
}

.home-content h3{
    font-size: 3rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}

span{
    color: var(--main-color);
}

.home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p{
    font-size: 1.8rem;
    margin: 2rem 0;
    color: var(--text-color);
    max-width: 500px;
}  

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

#facebook{
    color: #0866FF;
    border-color: #0866FF;
}

#facebook:hover{
    background: #0866FF;
    color: var(--bg-color);
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 0 15px #0866FF,
                0 0 25px #0866FF,
                0 0 35px #0866FF;
}

#github{
    color: #000000;
    border-color: #000000;
}

#github:hover{
    background: #000000;
    color: var(--bg-color);
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 0 15px #000000,
                0 0 25px #000000,
                0 0 35px #000000;
}

#instagram{
    color: #e73838;
    border-color: #e73838;
}

#instagram:hover{
    background: #e73838;
    color: var(--bg-color);
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 0 15px #e73838,
                0 0 25px #e73838,
                0 0 35px #e73838;
}

#linkedin{
    color: #0a66c2;
    border-color: #0a66c2;
}

#linkedin:hover{
    background: #0a66c2;
    color: var(--bg-color);
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 0 15px #0a66c2,
                0 0 25px #0a66c2,
                0 0 35px #0a66c2;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 4rem;
    letter-spacing: 0.1rem;
    transition: 0.3s ease;
}  

.btn:hover{
    box-shadow: 0 0 1.6rem var(--main-color);
}

.scroll-down{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scroll-down p{
    font-size: 2rem;
    color: var(--text-color);
}

#arrow-icon{
    background-color: #3690f8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    width: 32px;
    padding: 10px;
    font-size: 4rem;
    border-radius: 50%;
    color: white;
    animation: floaticon 3s ease-in-out infinite;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 5rem;
}
    
@keyframes floaticon{
    0%, 100% {
        transform: translateY(0);
    }
    50%{
        transform: translateY(-1rem);
    }
}

#arrow-icon:hover{
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 0 15px var(--main-color),
                0 0 25px var(--main-color),
                0 0 35px var(--main-color);
}


/* Skills Section */
.skills{
    background: var(--snd-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.skills .heading{
    text-align: center;
}
.skills h2{
    margin-top: 8rem;
    margin-bottom: 8rem;
    color: var(--main-color);
}
.skills .skills-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.skills .skills-container .skill-box{
    width: 25rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 0.8rem;
    text-align: center;
    transition: 0.3s ease;
}

.skills .skills-container .skill-box:hover{
    box-shadow: 0 0 5px var(--main-color),
                0 0 15px var(--main-color),
                0 0 25px var(--main-color);
}

.skills .skills-container .skill-box i{
    font-size: 2rem;
    color: var(--main-color);
}

.skills .skills-container .skill-box h3{
    font-size: 2rem;
    margin-bottom: 1rem;
}
.skills .skills-container .skill-box p{
    font-size: 1.6rem;
    color: var(--text-color);
}

/* About Section */

.about{ 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-color);
}

.about-img img{
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease;
}

.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color);
}

.heading {
    font-size: 6rem;
    text-align: center;
}

.about-content{
    padding: 0 4rem;
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
}

.about-content h3{
    font-size: 3rem;
}

.about-content p{
    font-size: 1.8rem;
    margin: 2rem 0;
    color: var(--text-color);
    max-width: 500px;
}

/* Contact Section */

.contact{
    background:var(--snd-bg-color);
}

.contact .heading{
    text-align: center;
}

.contact h2{
    margin-bottom: 3rem;
    color: var(--main-color);
}

.contact form {
    max-width: 80rem;
    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: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input{
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn{
    margin-top: 2rem;
}

/* Footer Section */

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background: var(--bg-color);
}

.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);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    transition: 0.3s ease;
}   

.footer .social a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 0 15px var(--main-color),
                0 0 25px var(--main-color),
                0 0 35px var(--main-color);
}

.footer p {
    text-align: center;
    color: var(--text-color);
    font-size: 1.4rem;
}

/* Responsive */

@media (max-width: 1200px){
    html {
        font-size: 55%;
    }
    #menu-icon{
        visibility: hidden;
    }
}

@media (max-width: 991px) {
    .header{
        padding: 2rem 3%;
    }

    section{
        padding: 10rem 3%;
    }

    .contact form .input-box input{
        width: 100%;
    }

    .footer{
        padding: 2rem 3%;
    }
    #menu-icon{
        visibility: hidden;
    }
}

@media (max-width: 991px) {
    #menu-icon{
        display: block;
    }

    .navbar {
        background-color: #000000;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' %3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='0' y1='0' y2='1' gradientTransform='rotate(162,0.5,0.5)'%3E%3Cstop offset='0' stop-color='%2331F4FF'/%3E%3Cstop offset='1' stop-color='%235866FF'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpattern id='b' width='21' height='21' patternUnits='userSpaceOnUse'%3E%3Ccircle fill='%23000000' cx='10.5' cy='10.5' r='10.5'/%3E%3C/pattern%3E%3Crect width='100%25' height='100%25' fill='url(%23a)'/%3E%3Crect width='100%25' height='100%25' fill='url(%23b)' fill-opacity='0.02'/%3E%3C/svg%3E");
        background-attachment: fixed;
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        transition: all 0.5s ease;
    }

    .navbar a {
        display: block;
        padding: 17px;
        font-size: 22px;
    }

    .navbar.active {
        right: 0;
    }
    .home{
        flex-direction: column;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-content{
        order: 2;
        margin-left: 1rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
    .about{
        flex-direction: column-reverse;
    }
    .about-img img{
        width: 70vw;
        margin-top: 4rem;
    }#menu-icon{
        visibility: visible;
    }
}

@media (max-width: 617px) {
    .home-img img{
        width: 70vw;
        margin-top: 8rem;
    }
    .about-img img{
        width: 70vw;
        margin-top: 8rem;
    }

}

@media (max-width: 617px) {
    html {
        font-size: 50%;
    }
}