@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');

* {
    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: #181818;
    --text-color: white;
    --main-color: #228896;
    --placeholder: #6e6e6e;
    --second-text-color: black;
}

html {
    font-size: 60%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 1rem;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.name {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.name:hover {
    transform: scale(1.1);
}

.name span {
    color: var(--main-color);
    text-shadow: 0 0 25px var(--main-color);
}

#menu-icon {
    font-size: 3.2rem;
    color: var(--main-color);
    display: none;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

/* Home */
.home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8rem;
}

.home-l {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

.home-content h1 {
    font-size: 6.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3rem
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.social-icons {
    display: flex;
}

.social-content {
    position: relative;
}

.social-content a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-content a:hover {
    color: var(--text-color);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.social-content span {
    width: 100%;
    font-size: 1.05rem;
    font-weight: 600;
    background-color: var(--text-color);
    color: var(--second-text-color);
    text-align: center;
    padding: 1rem 0.3rem;
    border-radius: 1rem;
    position: absolute;
    left: -10%;
    top: 80%;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s;
}

.social-content span::after {
    content: '';
    border-style: solid;
    border-width: 0.7rem;
    border-color: transparent transparent transparent var(--text-color);
    position: absolute;
    transform: rotate(-90deg);
    bottom: 95%;
    right: 40%;
}

.social-content:hover span {
    opacity: 1;
    visibility: visible;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    top: 3rem;
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
    animation: floating 2s ease-in-out infinite alternate;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

@keyframes floating {
    0% {
        top: 0;
    }
    100% {
        top: 30px;
    }
}

/* Scroll Down  */
.scroll-down {
    width: 45px;
    height: 70px;
    border: 2px solid var(--text-color);
    border-radius: 30px;
    display: flex;
    justify-content: center;
}

.scroll-down span {
    background-color: var(--text-color);
    width: 5px;
    height: 10px;
    border-radius: 30px;
    margin-top: 10px;
    position: relative;
}

.scroll-down span::before {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    border: none;
    border-right: 2px solid var(--text-color);
    border-top: 2px solid var(--text-color);
    transform: translateY(-10px) rotate(135deg);
    left: -6px;
    margin-top: 10px;
    opacity: 0;
    animation: ani 1.8s infinite linear;
}
.scroll-down span::after {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    border: none;
    border-right: 2px solid var(--text-color);
    border-top: 2px solid var(--text-color);
    transform: translateY(-10px) rotate(135deg);
    left: -6px;
    margin-top: 10px;
    opacity: 0;
    animation: ani 1.8s infinite linear;
    animation-delay: 0.8s;
}

@keyframes ani {
    0% {
        margin-top: 10px;
        opacity: 0;
    }

    50% {
        margin-top: 25px;
        opacity: 1;
    }

    100% {
        margin-top: 40px;
        opacity: 0;
    }
}

/* About */
.about {
    background-color: var(--second-bg-color);
}

.about-content {
    display: flex;
    gap: 10rem;
}

.about-text h3 {
    font-size: 3rem;
    font-weight: normal;
    margin-top: 1rem;
}

.about-text p, .about-title p{
    font-size: 1.5rem;
    line-height: 1.5; 
    font-weight: 500;
    margin-top: 2rem;
}

.about-text p:nth-child(3) {
    font-size: 1.35rem;
}

.about-title {
    width: 80%;
}

.about-title h3 {
    font-size: 4rem;
}

.about-img {
    border-radius: 2rem;
}

.about-img img{
    width: 25vw;
    border-radius: 2rem;
}

/* Skills and Hobbies */
.hobbies {
    background-color: var(--second-bg-color);
}

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.boxes {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.box-content {
    height: 13rem;
    width: 15rem;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.box-content i {
    font-size: 7rem;
}

.box-content p {
    font-size: 1.8rem;
}

.box-content:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--main-color);
}

.box-content img {
    width: 70px;
    height: 70px;
}

/* Projects */
.projects {
    display: flex;
    flex-direction: column;
}

.project-content {
    display: flex;
    gap: 2rem
}

.action-project {
    width: 50%;
}

.text-project h3 {
    font-size: 3.5rem;
}

.text-project p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-info .buttons {
    display: flex;
    gap: 1.5rem
}

.project-button {
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    color: var(--second-text-color);
    font-weight: 600;
    transition: 0.3s ease-in;
}

a {
    text-decoration: none;
}

.project-button:last-child {
    color: var(--main-color);
    background-color: var(--second-bg-color);
    box-shadow: 0 0 0;
}

.project-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--main-color);
}

.project-button:last-child:hover {
    background-color: var(--main-color);
    color: var(--second-text-color);
}

/* Contact */
.contact {
    background-color: var(--second-bg-color);
    min-height: 0;
}

.box-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.text-contact p {
    font-size: 1.8rem;
    text-align: center;
}

.box-contact a {
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--main-color);
    transition: 0.3s ease-out;
}

.box-contact a:hover {
    transform: scale(1.1);
}

.box-contact .email-contact i {
    margin-left: 0.8rem;
}

.box-contact .social-icons {
    margin-top: 0;
    gap: 1.2rem
}

.box-contact .social-icons .social-content {
    transition: 0.3s ease-in-out;
}

.box-contact .social-icons .social-content:hover {
    transform: scale(1.2);
}

.btn {
    font-weight: 600;
    font-size: 1.6rem;
    padding: 1rem 2.8rem;
    border-radius: 2rem;
    background-color: var(--main-color);
    color: var(--second-text-color);
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
}

footer {
    position: relative;
    bottom: 0;
    padding: 4rem 0;
    text-align: center;
    font-size: 2rem;
}

@media(max-width: 2560px) {
    html {
        font-size: 80%;
    }
}

@media(max-width: 1920px) {
    html {
        font-size: 75%;
    }

    /* Home */
    .home {
        padding-bottom: 0rem;
        margin-top: 1rem;
    }

    .scroll-down {
        margin-top: 7rem;
        width: 52px;
        height: 80px;
    }
}

@media(max-width: 1366px) {
    html {
        font-size: 55%;
    }

    /* Home */
    .home {
        padding-bottom: 0;
    }

    .scroll-down {
        margin-top: 0;
        width: 45px;
        height: 70px;
    }

    .form-contact {
        margin-top: -1rem;
    }
}

@media(max-width: 895px) {
    /* Navbar */
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }

    .active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }

    /* Home */
    .home .home-l {
        flex-direction: column-reverse;
        gap: 4rem;
    }

    .home-img img {
        width: 46vw;
        margin-top: 3rem;
        box-shadow: 0 0 25px var(--main-color),
                    0 0 50px var(--main-color);
    }

    .home-img img:hover {
        box-shadow: 0 0 25px var(--main-color),
                    0 0 50px var(--main-color);
    }
    
    .scroll-down {
        display: none;
    }

    .heading {
        font-size: 5.8rem;
    }

    /* About */

    .about-text h3, p {
        text-align: center;
    }

    /* Skills and Hobbies */
    .box-content {
        width: 14rem;
        height: 12rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-img img {
        width: 46vw;
    }

    /* Projects */
    .project-content {
        flex-direction: column;
        align-items: center;
    }

    .action-project {
        width: 100%;
    }

    .project-info {
        text-align: center;
      
    }

    .project-info .buttons {
        justify-content: center;
    }
}