:root {
    --primary-color: #7F4DFF;
    --on-primary-color: white;
    --secondary-color: #FB5393;
    --background-color: #EEF1FF;
    --surface-color: #64BCAC;
    --surface-content-color: black;
    --primary-font: Nunito;
    --heading-font: "Black Han Sans";
    --fallack-font: serif;
    --max-width: 1800px;
    --time: 0.707s
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes bottomMoveIn {
    from {
        transform: translateY(3em);
        opacity: 0;
    }

    to {
        transform: translateY(0em);
        opacity: 1;
    }
}

@keyframes topMoveIn {
    from {
        transform: translateY(-3em);
        opacity: 0;
    }

    to {
        transform: translateY(0em);
        opacity: 1;
    }
}

body {
    background-color: var(--background-color);
    font-family: var(--primary-font), var(--fallack-font);
    line-height: 2;
    letter-spacing: 1.3px;
}

h1 {
    font-family: var(--heading-font), var(--fallack-font);
}

.page {
    display: flex;
    flex-flow: row wrap;
    min-height: 100vh;
    align-items: center;
    padding: 60px 5vw;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.odd-page {
    background-color: #e0f2ee;
}

.center {
    margin: auto auto;
    text-align: center;
}

.badges {
    margin: auto auto;
    text-align: center;
    margin-top: 40px;
}

.badges a {
    text-decoration: none;
}

.problem-badge img:hover {
    filter: drop-shadow(0px 0px 5px rgba(247, 190, 52, 0.7));
}

.aws-badge img:hover {
    filter: drop-shadow(0px 0px 5px rgba(43, 54, 69, 0.6));
}

.front-page {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    min-height: 100vh;
    padding: 30px 5vw;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;

    color: white;
}

.front-page-color {
    background-color: var(--primary-color);
}

.front-page .header {
    text-align: left;
    order: 2;
    width: 80%;
    padding-left: 20px;
    padding-right: 40px;

    animation: fadeIn 1s;
}

.front-page .header .intro {
    font-family: var(--heading-font), var(--fallack-font);
    font-size: 5rem;
    line-height: normal;
}



.front-page .header .subtitle {
    color: white;
    font-size: 20px;
}

.front-page .header .primary-btn {
    margin-top: 20px;
    background-color: var(--secondary-color);
}

.front-page .socials {
    display: flex;
    flex-direction: column;
    order: 1;
    margin-top: auto;
    width: 10%;
    gap: 20px;

    opacity: 0;
    animation: bottomMoveIn 1s 0.5s forwards;
}

.front-page .socials a {
    color: #fda9c9 !important;
}

.front-page .socials a:hover {
    color: white !important;
}

.front-page .down-arrow {
    max-width: 40px;
    order: 3;
    width: 10%;

    opacity: 0;
    animation: topMoveIn 1s 1s forwards;
}

.timeline .primary-btn {
    margin-top: 16px;
}

.primary-btn {
    padding: 4px 14px;
    background-color: #7F4DFF;
    color: white;
    border: transparent;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1.3px;
}

.primary-btn:hover {
    color: black;
}

.page .left {
    order: 1;
}

.page .right {
    order: 2;
    padding-left: 30px;
    display: flex;
    flex-flow: column;
    align-items: flex-end;
}

.section-header {
    width: 40%;
}

.section-content {
    width: 60%;
}

.mobile-heading {
    display: none;
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.desktop-heading {
    font-family: var(--heading-font), var(--fallack-font);
    line-height: 1;
}

.primary-text {
    font-size: min(7vw, 7rem);
    color: var(--primary-color);
}

.desktop-heading .secondary-text {
    font-size: min(4vw, 4rem);
    color: var(--secondary-color);
}

.section-header {
    margin-top: auto;
}

.text-align-right {
    text-align: end;
}

.primary-text {
    font-family: var(--heading-font), var(--fallack-font);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.heading-text-font {
    font-family: var(--heading-font), var(--fallack-font);
}

.text-color-secondary {
    color: var(--secondary-color);
}

mark {
    background-color: var(--primary-color) !important;
    color: var(--on-primary-color);
}

.my-card {
    background-color: var(--surface-color);
    color: var(--surface-content-color);
}

.flip-cards {
    display: grid;
    gap: 30px;
}

.flip-card {
    perspective: 80rem;
    max-width: 550px;

    display: flex;
    margin-left: auto;
}

.flip-card-content {
    transition: transform 1s;
    transform-style: preserve-3d;

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex: 1;
    border-radius: 10px;
}

.flip-card:hover .flip-card-content {
    transform: rotateY(180deg);
    transition: transform 0.5s;
}

.flip-card-front,
.flip-card-back {
    backface-visibility: hidden;

    display: flex;

    min-width: 100%;
}

.flip-card-back {
    transform: rotateY(180deg) translate(100%, 0);
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;

    background-color: #93d0c5;
}

.project-image {
    border-radius: 10px;
}

.project-image {
    object-fit: cover;
    object-position: right;
    width: 100%;
    height: 100%;
}

.project-image,
.overlay-text {
    position: absolute;
}

.overlay-text {
    bottom: 10px;
    left: 10px;
    color: white;
    font-family: var(--heading-font), var(--fallack-font);
}

.timeline {
    border-left: 2px solid #FFC850;
    padding-bottom: 30px;
    padding-top: 40px;
    margin-left: 10%;
}

.dot {
    display: inline-block;
    border-radius: 50%;
    margin-left: -25px;
    height: 22px;
    width: 22px;
    background-color: var(--secondary-color);
    box-shadow: 4px 4px rgba(0, 0, 0, 0.6);
}

.timeline .space-between {
    height: 70px;
}

.timeline .container .content {
    margin-left: 20px;
    margin-top: -35px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 15px 10px;
    justify-content: center;
}

.skill-card {
    border-radius: 5px;
    background-color: white;
    color: black;
    padding: 8px 16px;
    font-weight: bold;
    display: flex;
    flex-flow: row;
}

.skill-image {
    margin-right: 12px;
    width: 25px;
}

.quote {
    font-size: larger;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 45px;
}

.popup-dialog {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px 0px;
}

.popup-dialog-content {
    background-color: white;
    margin: auto;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    padding: 15px;

    border-radius: 10px;
}

.close-button {
    color: red;
    margin-left: auto;
    margin-bottom: 10px;
}

.close-button:hover {
    color: black;
    cursor: pointer;
}

.footer {
    background-color: #93d0c5;
    padding-top: 14px;
    padding-bottom: 8px;
    text-align: center;
    font-weight: bold;
}

.call-to-action-socials {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
}

.call-to-action-socials a:hover {
    color: var(--secondary-color) !important;
}

.call-to-action-email-id {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    font-size: max(1.5vw, 1rem);
}

.flip-card-back .title {
    font-weight: bold;
}

.projects-image {
    margin-top: 20px;
}

.about-me-image {
    max-width: 60%;
}


@media screen and (max-width: 600px) {
    .left {
        width: 100%;
    }

    .right {
        width: 100%;
    }

    .mobile-heading {
        display: inline;
    }

    .desktop-heading {
        display: none;
    }

    .page .right {
        padding-left: 0px;
    }

    .front-page .socials {
        flex-direction: row;
        justify-content: center;
        order: 2;
        width: 100%;
        gap: 40px;
    }

    .front-page .header {
        text-align: center;
        width: 100%;
        order: 2;
        margin-top: auto;
        padding: 0px;
    }

    .front-page .down-arrow {
        display: none;
    }

    .front-page .header .intro {
        font-size: 3rem;
    }

    .timeline {
        margin-left: 10px;
    }

    .call-to-action-socials {
        margin-top: 40px;
    }

    .hide-on-mobile {
        display: none;
    }

    .section-header-right {
        order: 0 !important;
    }

    .quote {
        margin-bottom: 20px;
        font-size: large;
        margin-top: 20px;
    }

    .projects-image {
        margin-top: 0px;
        margin-bottom: 30px;
        width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-me-image {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    .skills-image {
        margin-bottom: 40px;
    }

    .popup-dialog-content {
        padding-left: 0px;
    }
}