* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    outline: none;
    border: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

/* :root {
    --color-primary: #8a2be2;
    --color-primary-variant: #9370db;
    --color-white: white;
    --color-dark: #9400d3;
    --color-black: #171c23;
    --color-off-black: #21272f;
    --bg-variant: #462c5f;
    --transition: .4s ease;
} */

:root {
    --color-primary: #32cd32;
    /* LimeGreen */
    --color-primary-variant: #66cdaa;
    /* MediumAquamarine */
    --color-white: white;
    --color-dark: #006400;
    /* DarkGreen */
    --color-black: #171c23;
    --color-off-black: #21272f;
    --bg-variant: #2e8b57;
    /* SeaGreen */
    --transition: .4s ease;
}

:root {
    --color-primary: #1e90ff;
    /* DodgerBlue */
    --color-primary-variant: #87cefa;
    /* LightSkyBlue */
    --color-white: white;
    --color-dark: #00008b;
    /* DarkBlue */
    --color-black: #171c23;
    --color-off-black: #21272f;
    --bg-variant: #4682b4;
    /* SteelBlue */
    --transition: .4s ease;
}

body {
    background: var(--color-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-off-black);
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 130%;
}

h1 {
    font-size: 60px;
}

h2 {
    font-size: 44px;
    text-align: center;
    color: var(--color-black);
    width: fit-content;
    margin: auto;
    margin-bottom: 4rem;
    position: relative;
}

h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    background: var(--color-primary);
    left: -1rem;
    height: 3.4rem;
    width: 3.4rem;
    border-radius: 50%;
    z-index: -1;
    box-sizing: 0 0 1rem rgba(0, 0, 0, 0.6);
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 36px;
    font-weight: 700;
    color: var(--bg-variant);
}

h5 {
    font-size: 20px;
    font-weight: 700;
}

p {
    font-size: 20px;
    line-height: 150%;
    color: var(--color-black);
}

img {
    display: block;
    width: 100%;

}

.btn {
    display: inline-block;
    width: fit-content;
    font-size: 19px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 30px;
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.btn:hover {
    background: var(--color-primary-variant);
    box-shadow: none;
}

section {
    padding: 6rem 0;

}

.container {
    width: 90%;
    max-width: 1420px;
    margin: 0 auto;
}

nav {
    width: 100%;
    display: flex;
    align-items: center;
    height: 5rem;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    background: var(--color-white);

}

.nav-scroll {
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    font-family: 'Brush Script MT', Brush Script Std, cursive;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav-links li a {
    color: var(--color-dark);
    font-size: 20px;
    position: relative;
    transition: var(--transition);
}

.nav-links li a::before {
    content: '';
    width: 0;
    height: 3px;
    background: var(--color-primary);
    position: absolute;
    border-radius: 6px;
    bottom: -6px;
    left: 0;
    transition: var(--transition);
}

.nav-links li a:hover::before {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--color-primary);
}

.active {
    color: var(--color-primary) !important;
}

.active::before {
    width: 100% !important;
}

nav button {
    display: none;
}

header {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.header-container {
    display: grid;
    grid-template-columns: auto 30rem;
    gap: 4rem;
    align-items: center;
}

.header-container h3 {
    margin: 1rem 0;
    color: var(--color-primary);
}

.header-container p {
    margin: 0 0 2rem;
}

.header-right {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    height: 28rem;
    width: 28rem;
    position: relative;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    animation: KeepRotating 20s linear infinite;
}

@keyframes KeepRotating {
    to {
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

.circle a {
    height: 4rem;
    width: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-white);
    position: absolute;
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 22px;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.circle a:hover {
    background: var(--color-primary-variant);
    color: var(--color-white);
}

.circle a:nth-child(1) {
    left: calc(50% - 2rem);
    top: -2rem;
}

.circle a:nth-child(2) {
    top: calc(50% - 2rem);
    right: -2rem;
}

.circle a:nth-child(3) {
    top: calc(50% - 2rem);
    left: -2rem;
}

.circle a:nth-child(4) {
    left: calc(50% - 2rem);
    bottom: -2rem;
}

.hero-image {
    position: absolute;
    height: 22rem;
    width: 22rem;
    /* padding: 1rem; */
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-primary);
}

.about-container {
    display: grid;
    grid-template-columns: 36% auto;
    gap: 4%;
    padding: 0.5rem;
    align-items: center;
}

.about-image {
    border-radius: 30px;
    overflow: hidden;
    border: .8rem solid var(--color-primary);
    background: var(--color-primary-variant);
}

.about-image img {
    object-fit: cover;
    aspect-ratio: 1/1;
}

.about-right p {
    margin: 1rem 0;
}

.about-right .btn {
    margin-top: 4rem;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5%;
}

.progress .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.outer-row {
    height: 100%;
    height: .6rem;
    background: var(--bg-variant);
    margin-bottom: 1rem;
}

.inner-row {
    background: var(--color-primary);
    width: 70%;
    height: 100%;
}

.progress#skill-python .outer-row .inner-row {
    width: 94%;
}

.progress#skill-php-sql .outer-row .inner-row {
    width: 88%;
}

.progress#skill-c-cpp .outer-row .inner-row {
    width: 85%;
}

.progress#skill-html-css-js .outer-row .inner-row {
    width: 85%;
}

.progress#skill-nextjs .outer-row .inner-row {
    width: 80%;
}

.progress#skill-csharp .outer-row .inner-row {
    width: 70%;
}


.projects-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2%;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project img {
    height: 15rem;
    object-fit: cover;
    border: solid black 1px
}

.proj-action {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.proj-action .btn {
    border-radius: 50px;
    margin-bottom: 0rem;
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.contact-container a {
    padding: 18px 19px;
    background: var(--color-primary);
    display: flex;
    border: 2px solid var(--color-primary);
    font-size: 29px;
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.contact-container a:hover {
    color: var(--color-primary);
    background: transparent;
}

footer {
    height: 6rem;
    background: var(--color-primary);
    text-align: center;
    display: flex;
    align-items: center;
    color: var(--color-black);
    font-size: 25px;
    font-family: 'Brush Script MT', Brush Script Std, cursive;
}

.back-to-top {
    background-color: #5A87FA;
    -ms-background-position: 50% 48%;
    background-position: 50% 48%;
    -ms-background-repeat: no-repeat;
    background-repeat: no-repeat;
    z-index: 9999;
    width: 40px;
    height: 40px;
    -ms-border-radius: 15px;
    border-radius: 15px;
    text-indent: -99999px;
    position: fixed;
    bottom: -100px;
    right: 25px;
    cursor: pointer;
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    overflow: auto;
}

.back-to-top:hover {
    background-color: #4555FA;
}

/* Media Queries */

@media (max-width:1200px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }
}

@media(max-width:1024px) {
    .nav-links {
        position: absolute;
        top: 5rem;
        width: 20rem;
        height: 100vh;
        background: var(--color-primary);
        right: -100%;
        flex-direction: column;
        gap: 0;
        box-shadow: 0.2rem 5rem rgba(0, 0, 0, 0.3);
        transition: var(--transition);
    }

    .nav-link-block {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: inline-block;
        text-align: center;
        width: 100%;
        padding: 2rem 0;
        color: var(--color-white) !important;
    }

    .nav-links li a::before {
        display: none !important;
    }

    .active {
        background: var(--color-primary-variant);
    }

    nav button {
        display: inline-block;
        font-size: 1.8rem;
        color: var(--color-black);
    }

    .header-container {
        grid-template-columns: 1fr;
    }

    .header-left {
        text-align: center;
    }

    .header-right {
        grid-row: 1;
        margin-top: 27rem;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
    }

    .about-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .about-image {
        width: 60%;
        margin: auto;
        display: none;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .skills-right {
        grid-row: 1;
    }

    .projects-container {
        grid-template-columns: 1fr 0.6fr;
    }
}

@media(max-width:600px) {
    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 2rem;
    }

    h3 {
        font-size: 26px;
    }

    h4 {
        font-size: 24px;
        margin-top: 60px;
        margin-bottom: -5px;
    }

    h5 {
        font-size: 18px;
    }

    .btn {
        padding: 10px 22px;
    }

    .nav-links {
        width: 18rem;
    }

    .circle {
        height: 10rem;
        width: 10rem;
    }

    .circle a {
        height: 3rem;
        width: 3rem;
        font-size: 20px;
    }

    .hero-image {
        height: 5rem;
        width: 5rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .proj-action {
        margin: 0;
    }
}
