.body{
    background-color: #BC9B78;
    margin: 0;
}

.head{
    background-color: #987455;
    border-bottom-right-radius: 200px;
    border-top-right-radius: 200px;
    margin-right: 20%;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 0px;
    display: flex;
    gap: 15%;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.31);
    border: solid 2px #2a1b10;
}

.head-text{
    font-family: Abhaya Libre;
    font-size: 270%;
    color: #E7D3B3;
    margin-left: 5%;
}

.head-image{
    width: 22.5%;
    height: 25%;
    border-radius: 50%;
    border: solid 2px #664127;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 3%;
    margin-left: 12%;
    margin-bottom: 3%;
}

#motto{
    font-family: abhaya libre;
    font-size: 25px;
    padding-top: 0px;
}


/* ABOUT ME SECTION */
.aboutme{
    margin-left: 20%;
    margin-right: 0%;
    margin-top: 5%;
    background-color: #E7D3B3;
    border-bottom-left-radius: 200px;
    border-top-left-radius: 200px;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 10%;
    display: flex;
    flex-direction: column;
    gap: 15%;

    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.31);
    border: solid 2px #2a1b10;
}

.aboutmeheading{
    font-family: Abhaya Libre;
    font-size: 30px;
    text-align: center;
    color: #664127;
}

.aboutme-text{
    font-family: abhaya libre;
    font-size: 20px;
    color: #664127;
    text-align: center;
}



/* TECHNICAL SKILSS SECTION */
.technicalskills{
    margin-left: 0%;
    margin-right: 20%;
    margin-top: 5%;
    background-color: #987455;
    border-bottom-right-radius: 200px;
    border-top-right-radius: 200px;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 2%;
    gap: 15%;
    overflow: auto;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.31);
    border: solid 2px #2a1b10;
}

.technicalskills::-webkit-scrollbar {
    display: none;
}

.technicalskillsheading{
    font-family: Abhaya Libre;
    font-size: 30px;
    margin-bottom: 2%;
    text-align: center;
    color: #E7D3B3;
}

.technicalskills-list{
    display: flex;
    flex-direction: row;

    animation: scroll-left 15s linear infinite; 
}

.technicalskills-list:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate the width of the original set of boxes */
    transform: translateX(-80%);
  }
}

.skill{
    background-color: #E7D3B3;
    min-width: 200px;
    border-radius: 30px;
    display: inline-block;
    justify-content: center;
    align-items: center;
    margin: 2%;
    text-align: center;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.471);
    border: solid 2px #664127;
}


.skill:hover{
    background-color: #664127;
    color: #E7D3B3;
    transform: translateY(-5px);
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


/* PROJECTS SECTION */
.project-section{
    margin-left: 20%;
    margin-right: 0%;
    margin-top: 5%;
    margin-bottom: 5%;
    background-color: #E7D3B3;
    border-bottom-left-radius: 200px;
    border-top-left-radius: 200px;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 2%;

    display: flex;
    flex-direction: column;
    overflow: auto;

    scroll-behavior: smooth;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.909);
    border: solid 2px #2a1b10;
}

.projects-heading{
    font-family: Abhaya Libre;
    font-size: 30px;
    text-align: center;
    color: #664127;
}

#each-project-heading{
    color: #2a1b10;
    text-decoration: none;
    font-size: 2rem;
}

.projects-container {
    display: flex;
    flex-direction: row;
    gap: 2%;

    align-items: center;
    animation: scroll-right 20s linear infinite;
}

.projects-container:hover {
    animation-play-state: paused;
}

@keyframes scroll-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-80%);
    }
}

.project-section::-webkit-scrollbar {
    display: none;
}

/* .project-box{
    background-color: #987455;
    width: 200px;
    height: 100px;
    border-radius: 20px;
    display: inline-block;
    margin: 2%;
    text-align: center;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    flex-shrink: 0;
} */

.flip-card {
    width: 300px;
    height: 200px;
    perspective: 1000px;
    flex-shrink: 0; 
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 80%;
    height: 80%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.471);
    border: solid 2px #664127;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.flip-card-front {
    background-color: #987455;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    padding: 10px;
}

.flip-card-back {
    background-color: #987455;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Courier New', Courier, monospace;
    color: #2a1b10;
    padding: 10px;
    transform: rotateY(180deg);
    overflow: auto;
}


/* CONTACT ME SECTION */
.contactme{
    background-color: #987455;
    border-bottom-right-radius: 150px;
    border-top-right-radius: 150px;
    margin-right: 20%;
    margin-top: 5%;
    padding: 2%;
    color: #664127;
    box-shadow: 0px -10px 8px -1px rgba(0, 0, 0, 0.41);
    border: solid 2px #2a1b10;
}

.contactme h2 {
    color: #E7D3B3;
}

.contactmetext{
    font-family: Abhaya Libre;
    font-size: 120%;
    margin-left: 4%;
}

.contact-placement{ 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#contact-boxes{
    color: #987455;
    text-decoration: none;
    background-color: #E7D3B3;
    width: 40%;
    height: 100%;
    border-radius: 15px;
    margin: .5%;
    text-align: center;
    padding: 1%;
    font-family: abhaya libre;
    font-size: 130%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#contact-boxes:hover{
    background-color: #664127;
    color: #E7D3B3;
    transform: translateY(-5px);
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}













/* LEFT SLIDE IN */
.head,
.technicalskills,
.contactme {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* RIGHT SLIDE IN */
.aboutme,
.project-section {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-350px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(350px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.aboutme { animation-delay: 0.1s; }
.technicalskills { animation-delay: 0.2s; }
.project-section { animation-delay: 0.3s; }
.contactme { animation-delay: 0.4s; }


@media screen and (max-width: 1000px) {
    .head{
        flex-direction: column;
        align-items: center;
        margin-right: 0;
        border-radius: 0;
    }

    .head-text{
        margin-left: 0;
        text-align: center;
        font-size: 200%;
        align-items: center;
    }


    .head-image{
        margin-left: 0;
        margin-top: 2%;
        width: 35%;
        height: auto;
    }

    /* ABOUT ME SECTION */
    .aboutme{
        margin-right: 0;
        margin-left: 0;
        text-align: center;
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        padding-left: 5%;
        padding-right: 5%;
    }
    

    /* SKILLS SECTION */
    .technicalskills{
        margin-right: 0;
        margin-left: 0;
        text-align: center;
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
        padding-left: 0%;
    }

    .skill{
        width: 90%;
        height: 5%;
        padding: 1px;
    }

    .skill-boxes{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-right: 4%;
    }

    .technicalskillsheading{
        text-align: center;
    }


    /* PPOJECTS SECTION */
    .project-section{
        margin-right: 0;
        margin-left: 0;
        text-align: center;
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        padding-left: 0%;
    }

    .project{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #contact-boxes{
        width: 100%;
        margin: 5% 0;
        margin-right: 5%;
    }

    .contactme{
        border-radius: 0;
        margin-right: 0;
        margin-left: 0;
        text-align: center;
    }
    
}

