@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
    --bg-color: #000000;
    --second-bg-color: #181818;
    --text-color: #ededed;
    --main-color: #00abf0;
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    border: none;
    outline: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

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: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    background: var(--bg-color);
}

.logo {
    position: relative;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.navbar {
    position: relative;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    position: relative;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section {
    max-width: 2800px;
    margin: 0 auto;
    padding: 10rem 9% 2rem;
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 9%;
    background: url(/images/home.png) no-repeat right center / contain;
}

.home-content {
    max-width: 60rem;
    z-index: 99;
}

.home-content .home-img {
    display: none;
}

.home-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.home-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    border-right: .2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.home-content h1 {
    position: relative;
    display: inline-block;
    font-size: 5.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--text-color);
}

.home-content h2 {
    display: inline-block;
    font-size: 3.2rem;
    margin-bottom: -1rem;
}

.home-content h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 0.07rem var(--main-color);
    animation: display-text 12s infinite;
    -webkit-animation: display-text 12s infinite;
    animation-delay: calc(-4s * var(--i));
}

.home-content h2 span::before {
    content: attr(data-text);
    position: absolute;
    width: 0;
    color: var(--main-color);
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
    -webkit-animation: fill-text 4s linear infinite;
}

.home-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    text-align: justify;

}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn {
    font-size: 1.3rem;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2)::before {
    background: transparent;
    background-color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: 0.5s;
}

.btn-box .btn:hover::before {
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    width: 27rem;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: 0.5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-sci a:hover {
    color: var(--bg-color);
}

/* About Section */
.about {
    min-height: auto;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading {
    position: relative;
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

span {
    color: var(--main-color);
}

.about-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 5rem;
    width: 100%;
}

.about-img {
    position: relative;
    width: 37rem;
    height: 37rem;
    min-width: 25rem;
    min-height: 25rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.about-img img {
    width: 90%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 0.2rem solid var(--main-color);
    object-fit: cover;
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 0.2rem solid var(--second-bg-color);
    border-bottom: 0.2rem solid var(--second-bg-color);
    border-left: 0.2rem solid var(--main-color);
    border-right: 0.2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.about-content {
    flex: 1;
    min-width: 40rem;
}

.about-content h3 {
    position: relative;
    display: inline-block;
    font-size: 2.6rem;
}

.about-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 1rem 0 0 0;
}

.about-content p:first-of-type,
.skills-column p {
    text-indent: 2rem;
}

/* Services Section */
.services {
    min-height: auto;
    gap: 2rem;
    padding-bottom: 6rem;
}

.services-container {
    height: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.service-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: .6rem;
    gap: 1rem;
    padding: 2rem;
    flex: 1 1 40rem;
    transition: .3s ease-in-out;
    background: var(--second-bg-color);
}

.service-content:hover {
    transform: scale(1.025);
    transition: transform 0.3s ease-in-out;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    font-size: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
}

.service-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.service-content p {
    font-size: 1.8rem;
    text-align: justify;
    color: var(--text-color);
    line-height: 1.4;
}

/* Projects Section */
.projects {
    min-height: auto;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.projects-container {
    height: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.project-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    gap: 1rem;
    padding: 2rem;
    flex: 1 1 40rem;
    transition: .3s ease-in-out;
}

.project-content:hover {
    transform: scale(1.025);
    transition: .3s;
}

.project-content h3 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.project-content img {
    width: 100%;
    aspect-ratio: 2/1;
    border-radius: .5rem;
    background: var(--second-bg-color);
}

.project-content p {
    text-align: justify;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content span {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    margin-top: -1.5rem;
}

.project-content .btn-box {
    width: 100%;
    justify-content: center;
    gap: 2rem;
}

.project-content .btn-box .btn:first-child:before {
    background: var(--second-bg-color);
}

/* journey Section */
.journey {
    min-height: auto;
    padding-bottom: 5rem;
}

.journey .journey-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.journey-row .journey-column {
    flex: 1 1 40rem;
}

.journey-column .title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.journey-column .journey-box {
    position: relative;
    border-left: .2rem solid var(--main-color);
}

.journey-box .journey-content {
    position: relative;
    padding-left: 2rem;
}

.journey-box .journey-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.journey-content .content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--main-color);
    border-radius: 0.6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.journey-content .content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: 0.5s;
}

.journey-content .content:hover::before {
    width: 100%;
}

.journey-content .content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
    align-items: center;
    display: flex;
}

.journey-content .content .year i {
    padding-right: .5rem;
}

.journey-content .content h3 {
    font-size: 2rem;
}

.journey-content .content p,
.journey-content .content span {
    font-size: 1.6rem;
    padding-top: .5rem;
}

/* Skills Section */

.skills {
    min-height: 55vh;
    padding-bottom: 7rem;
    background-color: var(--second-bg-color);
}

.skills h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-column .skills-box {
    position: relative;
}

.skills-row .skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    position: relative;
    display: inline-block;
    color: var(--main-color);
    font-size: 3rem;
    margin: 0 0 1.5rem;
}

.skills-column p,
.about-box p {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    text-align: justify;
}

.skills-toggle-switch {
    position: relative;
    display: flex;
    justify-content: center;
    background-color: var(--bg-color);
    border: .3rem solid var(--main-color);
    border-radius: 3rem;
    width: max-content;
    margin: 0 auto 3rem;
    padding: 0.3rem;
}

.skills-toggle-switch button {
    padding: 1rem 3rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1.6rem;
    border-radius: 3rem;
    cursor: pointer;
    z-index: 1;
    position: relative;
    transition: color 0.3s ease;
}

.skills-toggle-switch .toggle-option.active {
    color: #fff;
}

.switch-slider {
    position: absolute;
    top: .3rem;
    bottom: .3rem;
    left: .3rem;
    width: 50%;
    background-color: var(--main-color);
    border-radius: 3rem;
    z-index: 0;
    transition: left 0.3s ease;
}

.skills-switch-content {
    width: 100%;
    position: relative;
}

.skills-content {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.skills-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 2.5rem;
    justify-items: center;
    padding: 2rem 1rem;
    position: relative;
    opacity: 1;
    visibility: visible;
}

.skill-icon {
    position: relative;
    width: 11rem;
    height: 11rem;
    background-color: var(--bg-color);
    border-radius: 1.2rem;
    box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.skill-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 .8rem 2.4rem rgba(0, 0, 0, 0.15);
}

.skill-icon i,
.skill-icon .iconify {
    font-size: 6.2rem;
    color: var(--main-color);
    pointer-events: none;
}

.skill-icon span {
    margin-top: 0.6rem;
    font-size: 1.3rem;
    color: var(--text-color);
}

/* Contact Section */

.contact {
    min-height: 45vh;
    padding-bottom: 7rem;
}

.contact h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box .input-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

.contact form .focus {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-radius: .6rem;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field input:focus~.focus,
.contact form .input-box .input-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus {
    width: 100%;
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

.contact form .btn-box.btns {
    display: inline-block;
    width: 25rem;
}

.contact form .btn-box.btns .btn {
    cursor: pointer;
}

.notification {
    position: fixed;
    top: 7rem;
    right: 1rem;
    background-color: var(--main-color);
    color: var(--text-color);
    padding: 1.2rem 2rem;
    border-radius: .8rem;
    box-shadow: 0 0 1.2rem rgba(0, 171, 240, 0.4);
    z-index: 9999;
    font-size: 1.4rem;
    opacity: 0;
    animation: fadeInOut 3s forwards;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text,
.footer-iconTop {
    position: relative;
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    bottom: 5rem;
    right: 4rem;
    z-index: 999;
    font-size: 2.4rem;
    color: var(--main-color);
    background: var(--bg-color);
    border: .3rem solid var(--main-color);
    border-radius: 50%;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--main-color);
    color: var(--bg-color);
}


/* Animation */
.animate {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 98;
}

.logo .animate,
.navbar .animate,
#menu-icon .animate,
.home.show-animate .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.animate.home-img {
    width: 50%;
}

.animate.scroll {
    transition: 1s ease;
    transition-delay: calc(.3s / var(--i));
    animation: none;
}

section:nth-child(odd) .animate.scroll {
    background: var(--second-bg-color);
}

.journey .journey-box .animate.scroll {
    width: 105%;
}

.about.show-animate .animate.scroll,
.services.show-animate .animate.scroll,
.projects.show-animate .animate.scroll,
.journey.show-animate .animate.scroll,
.skills.show-animate .animate.scroll,
.contact.show-animate .animate.scroll {
    transition-delay: calc(.3s * var(--i));
    width: 0;
}

/* Media Queries */
@media (min-width: 1920px) {
    html {
        font-size: 75%;
    }
}

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

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

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }

    .skills-content.active {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 1.3rem;
    }

    .skill-icon {
        width: 94px;
        height: 94px;
    }

    .skill-icon i,
    .skill-icon .iconify {
        font-size: 5.8rem !important;
    }

    .skill-icon span {
        font-size: 1.2rem;
    }
}

@media (max-width:830px) {
    .home-content {
        width: 70%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: var(--main-color);
        padding: 1rem 4%;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        transition: .25s ease;
        transition-delay: .25s;
        z-index: 1;
    }

    .navbar .active-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, 0.2);
        transition: .25s ease;
        transition-delay: 0s;
        z-index: -1;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }

    .navbar.active .active-nav {
        left: 0;
        transition-delay: .25s;
    }

    .navbar a {
        display: block;
        font-size: 1.7rem;
        margin: 2rem 0;
        transform: translateX(-20rem);
    }

    .navbar.active a {
        transform: translateX(0);
        transition-delay: .25s;
    }

    .about-box {
        justify-content: center;
    }

    .about-img {
        width: 35rem;
        height: 35rem;
    }

    .skills-column p {
        font-size: 1.8rem;
        margin-bottom: -1.5rem;
    }

    .skills-content.active {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 1.2rem;
    }

    .skill-icon {
        width: 84px;
        height: 84px;
    }

    .skill-icon i,
    .skill-icon .iconify {
        font-size: 5rem !important;
    }

    .skill-icon span {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header {
        background-color: var(--bg-color);
    }

    .about-img {
        width: 25rem;
        height: 25rem;
    }

    .about-box p {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

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

    .home-imgHover {
        visibility: hidden;
        overflow: hidden;
    }

    .home-content .home-img {
        display: flex;
    }

    .home-content .home-img .circle-spin {
        border-top: .2rem solid var(--bg-color);
        border-bottom: .2rem solid var(--bg-color);
    }

    .home {
        justify-content: center;
        background: var(--bg-color);
    }

    .home-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content p {
        text-align: center;
        margin-bottom: 2rem;
    }

    .home-sci {
        width: 240px;
        bottom: 3rem;
    }

    .home-sci a {
        width: 35px;
        height: 35px;
    }

    .about-box {
        flex-direction: column;
    }

    .skills-content.active {
        grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
        gap: 1rem;
    }

    .skill-icon {
        width: 75px;
        height: 75px;
    }

    .skill-icon i,
    .skill-icon .iconify {
        font-size: 4.2rem !important;
    }

    .skill-icon span {
        font-size: 1.1rem;
    }
}

@media (max-width:462px) {
    .journey {
        padding: 10rem 4% 5rem 5%;
    }

    .contact form .input-box .input-field {
        width: 100%;
    }

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

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }
}

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

    .about-img {
        width: 20rem;
        height: 20rem;
    }

    .about-content {
        min-width: auto;
    }
}

/* Animations */
@keyframes display-text {

    33.33%,
    100% {
        display: none;
    }
}

@keyframes fill-text {

    10%,
    100% {
        width: 0;
    }

    70%,
    90% {
        width: 100%;
    }
}

@keyframes aboutSpinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes showRight {
    100% {
        width: 0;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-2rem);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-2rem);
    }
}

/* Removing the spinner inside the number input type */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}