@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

:root {
    --primary-color: #fcd277;
    --bg-color: #fffcfb;
    --heading-color: black;
    --p-color: #444;
    --border-color: black;
    --outline-color: skyblue;
}

html {
    font-size: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--p-color);
}

/* Make media queries easier */
img,
video {
    max-width: 100%;
    height: auto;
}

body {
    width: 100%;
    height: 100dvh;
    font-family: "Open Sans", Arial, sans-serif;
    background-color: var(bg-color);
}

h1 {
    color: var(--heading-color);
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

p {
    font-family: Ubuntu, Arial, sans-serif;
    color: var(--p-color);
    font-size: 1.3rem;
}

.logo--highlight {
    background: linear-gradient(to top, #30cfd0 0%, #330867 100%);
    background-clip: text;
    color: transparent;
    font-family: Ubuntu, Arial, sans-serif;
    font-weight: bolder;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-buttons a img {
    width: 2.5rem;
    height: 2.5rem;
    transition: 0.25s;
}

.social-buttons a img:hover {
    filter: invert(1) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
    transform: scale(1.1);
}

a {
    text-decoration: none;
    display: block;
}

/* *********************************************************************************************************** */
/* ***************************************************Navbar Starts******************************************* */
/* *********************************************************************************************************** */

.navbar {
    position: fixed;
    padding: 1.5rem;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    height: 10vh;
    background-image: linear-gradient(to bottom,
            var(--primary-color) 0%,
            transparent 100%);
    z-index: 1000;
}

.navbar a {
    text-decoration-line: none;
}

.navbar__logo {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.navbar__links {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    list-style: none;
}

.navbar__links li a {
    color: black;
    font-size: 1.5rem;
    transition: color 0.25s ease;
    position: relative;
}

.navbar__links li a::after {
    color: black;
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, black, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar__links li a:hover::after {
    transform: scaleX(1);
}





/* *********************************************************************************************************** */
/* ***************************************************Navbar Ends******************************************* */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* ***************************************************Sidebar Starts******************************************* */
/* *********************************************************************************************************** */

#sidebar {
    display: none;
    font-size: 2rem;
}

#sidebar__open-button{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#sidebar__open-button img , #sidebar__close-button img{
    width: 2rem;
    height: 2rem;
    transition: transform 0.2s ease;
}

#sidebar__open-button:hover img {
    filter: invert(1) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
    transform: scale(1.1);
}

#sidebar__close-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#sidebar__close-button img{
    width: 2rem;
    height: 2rem;
    position: fixed;
    top: 20px;
    right: 20px;
}

#sidebar {
    width: 60%;
    height: 100dvh;
    padding: 20px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2000;
    background-color: var(--heading-color);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#sidebar.active{
    transform: translateX(0%);
}

#sidebar li{
    list-style: none;
    margin-bottom: 10px;
}

#sidebar a{
    text-decoration: none;
    display: block;
    color: var(--primary-color);
}

/* *********************************************************************************************************** */
/* *****************************************************Sidebar Ends******************************************* */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* *****************************************************Home Starts******************************************* */
/* *********************************************************************************************************** */
.home {
    display: flex;
    height: 100dvh;
    position: relative;
    z-index: 1;
}

.home__left {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to right, #a8edea 0%, white 100%);
}

.home__container {
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home__greeting {
    font-size: 2rem;
    font-weight: bold;
}

.home__name {
    font-size: 2.5rem;
}

.home__role {
    font-size: 2rem;
    color: var(--p-color);
}

.home__buttons {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.home__hire-me {
    display: flex;
}


.home__hire-me a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 25px;
    background: #0056b3;
    color: white;
    box-shadow: 0 0 5px 4px #bcd8fbae inset, 0 0 10px 4px white;
    outline-offset: 4px;
    transition: 0.4s;
    height: fit-content;
    width: fit-content;
    text-align: center;
    margin-right: 5px;
}


.home__hire-me a:hover {
    background: white;
    color: navy;
    box-shadow: 0 0 10px navy;
    cursor: pointer;
}

.home__hire-me>a:nth-child(2) {
    background: tomato;
    color: white;
    box-shadow: 0 0 5px 4px #bcd8fbae inset, 0 0 10px 4px white;
}

.home__hire-me>a:nth-child(2):hover {
    background: white;
    color: red;
    box-shadow: 0 0 10px red;
    cursor: pointer;
}

.home__right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home__photo {
    width: 100%;
    height: 100%;
    flex: 1;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

/* *********************************************************************************************************** */
/* *****************************************************Home Ends********************************************* */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* *****************************************************About Starts**************************************** */
/* *********************************************************************************************************** */

.section {
    scroll-snap-align: center;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 5dvh;
}

.section__title {
    margin-top: 10vh;
    width: 90%;
    min-height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section__title h1 {
    width: 60%;
    height: 50%;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--heading-color);
    border: 2px solid var(--heading-color);
}

.section__main {
    width: 100%;
    height: auto;
}

.about__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}


.about__top {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50%;
}

.about__top__left,
.about__top__right {
    width: 50%;
    max-width: 100%;
    overflow: hidden;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about__top__right {
    text-align: center;
}

.about__top__left img {
    width: 60%;
    height: 50%;
    flex: 1;
    object-fit: cover;
    object-position: center;
    border-radius: 25px;
}

.about__content {
    margin-top: 0;
    padding: 20px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.about__down {
    height: 80%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50%;
}

.about__down__left {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.about__what-i-do__title {
    width: 80%;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__what-i-do__content {
    width: 80%;
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.about__work {
    display: flex;
    width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.about__work-img {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__work-img img {
    width: 50%;
    height: 50%;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

.about__work-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.about__down__right {
    width: 50%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__stats {
    position: relative;
    height: 80%;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px;

    background: var(--heading-color);
    color: var(--primary-color);
    border-radius: 25px;
    box-shadow: 0 0 10px 5px grey;
    outline: 3px solid var(--primary-color);
}

.about__stats::after {
    position: absolute;
    content: '';
    height: 80%;
    width: 3px;
    background: linear-gradient(to top, transparent 5%, var(--primary-color) 50%, transparent 100%);
}

.about__stats::before {
    position: absolute;
    content: '';
    height: 3px;
    width: 80%;
    background: linear-gradient(to right, transparent 5%, var(--primary-color) 50%, transparent 100%);
}

.about__stats__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    box-sizing: border-box;
}

.about__stats__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    box-sizing: border-box;
}

.about__stats-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.about__stats-box h3 {
    font-size: 4.5rem;
    text-align: center;
}

.about__stats-box p {
    font-size: 3rem;
}

/* *********************************************************************************************************** */
/* *****************************************************About Ends******************************************** */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* *****************************************************Education Starts**************************************** */
/* *********************************************************************************************************** */

.education__main {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education__timeline {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
}

/* vertical center line */
.education__timeline::after {
    content: "";
    position: absolute;
    width: 7px;
    background: linear-gradient(to top, transparent 5%, orange 40%, skyblue 60%, transparent 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3.5px;
}

/* container blocks */
.education__timeline-container {
    padding: 2rem;
    position: relative;
    width: 40%;
}

/* left side */
.education__timeline-container.left {
    left: 10%;
}

/* right side */
.education__timeline-container.right {
    left: 50%;
}

/* box content */
.education__content {
    background: white;
    padding: 20px;
    background-color: var(--heading-color);
    color: var(--primary-color);
    border-radius: 25px;
    box-shadow: 0 0 10px 5px grey;
    outline: 3px solid var(--primary-color);
}

.education__timeline-container::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, orange 40%, yellow 60%);
    border: 3px solid white;
    top: 20px;
    right: -10px;
    border-radius: 50%;
    z-index: 1;
}

.education__timeline-container.right::after {
    left: -10px;
    right: auto;
}

/* *********************************************************************************************************** */
/* *****************************************************Education Ends**************************************** */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* *****************************************************Skills Starts**************************************** */
/* *********************************************************************************************************** */

.skills__main {
    width: 80%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    padding: 20px;
}

.skills__box {
    width: 30%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills__box img {
    width: 40%;
    height: 40%;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

/* *********************************************************************************************************** */
/* *****************************************************Skills Ends**************************************** */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* *****************************************************Projects Starts**************************************** */
/* *********************************************************************************************************** */

.projects__main {
    position: relative;
    height: auto;
    box-sizing: border-box;
}

.projects__box {
    position: relative;
    margin: 30px;
    width: 70%;
    min-height: 13rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    box-shadow: 0 0 10px 5px grey;
    outline: 3px solid var(--primary-color);
}

.project__image {
    width: 40%;
    height: 100%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project__image:hover .project-img {
    transform: scale(1.1);
}


.project__image:hover .overlay {
    opacity: 1;
}

.icon {
    background: transparent;
    font-size: 1.8rem;
    filter: invert(1);

    transition: transform 0.3s ease;
}

.icon img {
    width: 3rem;
    height: 3rem;
}

.icon:hover {
    transform: scale(1.3);
}

.left-project {
    left: 0;
    border-radius: 0 10rem 10rem 0;
    flex-direction: row-reverse;
}

.right-project {
    left: calc(30% - 60px);
    border-radius: 10rem 0 0 10rem;
}

.project__description {
    width: 60%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    box-sizing: border-box;
}

.project__description h2 {
    padding: 0;
    margin: 0;
    width: 100%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project__description p {
    width: 100%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    text-align: justify;
}

.project__technologies {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.project__technologies div {
    height: fit-content;
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-right: 5px;

    border: 0px solid black;
    border-radius: 25px;
    background-color: #007bff;
    color: white;
    padding: 0 5px;
    margin: 5px;
}




/* *********************************************************************************************************** */
/* *****************************************************Projects Ends**************************************** */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* ************************************************Achievements Starts**************************************** */
/* *********************************************************************************************************** */

.achievements__main{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
}

.achievements__card{
    max-width: 20rem;
    margin: 20px;
    height: 30rem;
    border: 2px solid black;
    border-radius: 25px;
    padding: 5px;

    background-color: black;
    display: flex;
    flex-direction: column;

    box-shadow: 0 0 10px 5px grey;
    outline: 3px solid var(--primary-color);
}

.card__image{
    height: 60%;
    border-radius: inherit;
    overflow: hidden;
}

.card__image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card__content{
    height: 40%;
    text-align: center;
    gap: 1rem;
    color: grey;
}

.card__content h2{
    color: var(--primary-color);
}


/* *********************************************************************************************************** */
/* ****************************************************Achievements Ends************************************** */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* ****************************************************Contacts Starts************************************** */
/* *********************************************************************************************************** */

.contact__main {
    display: flex;
}

.contact__left {
    width: 50%;

    box-sizing: border-box ;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    padding: 20px;
}


.contact__container {
    width: 80%;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 25px;
    box-shadow: 0 0 10px 5px grey;
    outline: 3px solid var(--primary-color);
}

.contact__container__left {
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__container__left img {
    width: 3rem;
    height: 3rem;
    transition: transform 0.3s ease;
}

.contact__container__left img:hover {
    cursor: pointer;
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.contact__container__right {
    width: 65%;
    padding: 5px;
    height: 100%;
    box-sizing: border-box;
    border-radius: 0 25px 25px 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-evenly;

    background: var(--heading-color);
    color: var(--primary-color);
}

.contact__container__right h2{
    font-size: 1.5rem;
}

.contact__container__right p {
    color: white;
    word-break: break-all;
    font-size: 1rem;
}

.contact__right {
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__form {
    width: 80%;
    min-height: 80%;
    background-color: #ffffff;
    overflow:hidden ;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0 0 10px 5px grey;
}

.contact__right__title h2 {
    width: 100%;
    margin-bottom: 24px;
    color: var(--heading-color);
    text-align: center;
}

.contact__right__content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__right .form-group {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.contact__right .form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.contact__right .form-group input,
.contact__right .form-group textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fafafa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__right .form-group input:focus,
.contact__right .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact__right .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.contact__right button[type="submit"] {
    padding: 12px 24px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact__right button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.contact__right .contact__right__content form>div:last-child {
    text-align: center;
}


/* *********************************************************************************************************** */
/* *****************************************************Contact Ends**************************************** */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* *****************************************************Footer Starts**************************************** */
/* *********************************************************************************************************** */

.footer {
    width: 100%;
    background: linear-gradient(to top, #fddb92 0%, white 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.footer__top {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer__name {
    font-size: 2rem;
}

.footer__role {
    font-size: 1.5rem;
}

.footer__buttons a img {
    width: 2rem;
    height: 2rem;
}

.footer__down {
    height: fit-content;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__down img {
    width: 2rem;
    height: 2rem;
}

/* *********************************************************************************************************** */
/* *****************************************************Footer Ends**************************************** */
/* *********************************************************************************************************** */

/* *********************************************************************************************************** */
/* ***************************************CSS for making the website responsive******************************* */
/* *********************************************************************************************************** */

@media screen and (min-width:320px) and (max-width: 767px) {

    /* phones */
    html {
        font-size: 50%;
    }

    .navbar {
        justify-content: space-between;
    }

    .navbar__logo {
        width: fit-content;
    }

    .navbar__logo a {
        display: block;
    }

    .navbar__links {
        display: none;
    }

    .home {
        flex-direction: column;
    }

    .home__left {
        width: 100%;
        height: 100dvh;
    }

    .home__container {
        width: 80%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .home__buttons {
        align-items: center;
    }

    .home__description {
        text-align: center;
    }

    .home__right {
        display: none;
    }

    #sidebar__open-button {
        display: block;
    }

    #sidebar{
        display: block;
    }

    .section {
        padding: 0;
    }

    .about__top,
    .about__down {
        flex-direction: column;
    }

    .about__top__left,
    .about__top__right,
    .about__down__left,
    .about__down__right {
        width: 100%;
        height: 100%;
    }

    .about__top__left img {
        height: 100%;
    }

    .about__stats-box h3 {
        font-size: 2.5rem;
    }

    .about__stats-box p {
        font-size: 1rem;
    }

    .skills__box img {
        width: 8rem;
        height: 8rem;
    }

    .projects__box {
        height: 15dvh;
    }

    .contact__main {
        flex-direction: column;
        height: 100%;
    }

    .contact__left,
    .contact__right {
        width: 100%;
        height: fit-content;
    }

    .contact__container {
        width: 70%;
    }

    .contact__form {
        width: 80%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .navbar__logo {
        width: 30%;
    }

    .navbar__links {
        width: 70%;
    }

    .about__top__left img{
        width: 90%;
        height: 100%;
    }

    .about__stats {
        height: 50%;
        width: 120%;
    }

    .about__work {
        margin-bottom: 1.5rem;
    }

    .contact__container__right p {
        word-break: break-all;

    }
}