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

:root {
    --bgorange: #e84949;
}

@font-face {
    font-display: swap;
    font-family: "General Sans";
    font-style: normal;
    font-weight: 500;
    src:url(assets/GeneralSans_Complete/Fonts/OTF/GeneralSans-Medium.otf),
        url(assets/GeneralSans_Complete/Fonts/OTF/GeneralSans-Regular.otf);
}

html, body{
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    background-color: black;
    font-family: 'GeneralSans', sans-serif;
}

a{
    text-decoration: none;
}

*::selection {
    background-color: #fff;
    color: black;
}

#minicircle {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all cubic-bezier(0.19, 1, 0.22, 1) 1s;
    width: 20px;
    height: 20px;
    position: absolute;
    z-index: 999;
    border-radius: 50%;
    background-color: #fff;
    color: #fff;
    overflow: hidden;
}

.project-section {
    width: 98%;
    background-color: #000;
}

.page-header {
    color: #fff;
    text-transform: uppercase;
    font-size: 9vw;
    font-weight: 900;
    opacity: 0.6;    
    text-align: center;
    padding-top: 30px;
}

.project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.project-card {
    width: 90%;
    height: 550px;
    background-size: cover;
    position: relative;
    box-shadow: 0px 0px 40px #1f1f1f;
}

.project-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1f1f1f9a;
    z-index: 0;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #343d68, #343d68be, #343d687c);
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.5s;
    z-index: 1;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-number {
    position: absolute;
    font-size: 200px;
    font-weight: 600;
    color: white;
    z-index: 10;
    display: none;
}

.project-card:hover .project-number {
    display: block;
}

.project-number-odd {
    right: -40px;
    top: -45px;
}

.project-number-even {
    left: -40px;
    top: -45px;
}

.project-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    color: white;
    padding: 2em;
    bottom: 20%;
    z-index: 5;
    gap: 1em;
    transition: all 0.4s;
}

.project-content-left {
    left: 10%;
}

.project-content-right {
    right: 10%;
}

.project-skills-container {
    width: 60%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-skill {
    width: 40px;
}

.project-heading {
    font-size: 50px;
    font-weight: bold;
    line-height: 3rem;
}

.project-subheading {
    width: 70%;
    font-size: 16px;
    font-style: italic;
}

.button-group {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}

/* .button-project:hover{
    border: none;
} */

.icon {
    cursor: pointer;
    color: white;
    font-size: 35px;
    transition: all 0.4s;
}

.icon:hover {
    color: var(--bgorange);
}

.project-card:hover .project-content {
    transform: scale(1.2);
}

#project1 {
    background-image: url(./assets/project1.png);
}

#project2 {
    background-image: url(./assets/project2.png);
    margin-left: 120px;
}

#project3 {
    background-image: url(./assets/todo.png);
}

#project4 {
    margin-left: 120px;
    background-image: url(./assets/project3.png);
}

#project5 {
    background-image: url(./assets/projects/DevSeekho.png);
}

#go-back-button{
    margin-top: 3vw;
    margin-bottom: 1vw;
    margin-left: 5vw;
    margin-right: 5vw;
}

#contact-me-button{
    text-decoration: none;
    text-transform: uppercase;
    background-color: black;
    color: #fff;
    font-size: 1.3vw;
    cursor: pointer;
    border: 1.5px solid #fff;
    border-radius: 100px;
    padding: 0.5vw 1.5vw;
}

#contact-me-button:hover{
    color: black;
    background-color: #fff;
    border: 1.5px solid black;  
}

.footer-anchor{
    position: relative;
    text-decoration: none;
  }
  
  .footer-anchor::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 0;
    height: 2px;
    background-color: #fff;
    bottom: -1px;
    left: 0;
    transition: width 0.3s ease; 
  }
  
  .footer-anchor:hover::before {
    width: 100%; 
  }

  .footer-anchor i.ri-arrow-right-up-fill::before {
    content: "\279A";
    transition: 1s smooth;
}

.footer-anchor:hover i.ri-arrow-right-up-fill::before {
    content: "\279E"; 
    transition: 1s smooth;
}

.button-pink {
    background-color: var(--bgorange);
    width: fit-content;
    padding: 0.8rem 2.3rem;
    color: white;
    font-size: 18px;
    box-shadow: 5px 5px 7px 0px #0000003f;
    position: relative;
    cursor: pointer;
    transition: all 0.5s;
    font-weight: 500;
    border: solid 3px transparent;
    z-index: 1;
}

.button-pink::before {
    content: "";
    background-color: #ffff;
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0px;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.6s;
    z-index: -1;
}

.button-pink:hover::before {
    transform: scaleX(1);
}

.button-pink:hover {
    border: solid 3px var(--bgorange);
    color: black;
}

#button-bottom {
    display: none;
}

#page3footer{
    width: 100vw;
    bottom:2vw;
    padding: 0 3vw;
    padding-top: 5vw;
    padding-bottom: 5vw;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#footerleft{
    display: flex;
    flex-direction: row;
    gap: 3vw;
    text-transform: uppercase;
}

#footerleft h3{
    font-size: 1.1vw;
}

#footerright{
    display: flex;
    flex-direction: row;
    gap: 3vw;
}

#footerright a{
    text-decoration: none;
    color: #fff;
    font-size: 1.1vw;
    text-transform: uppercase;
}

@media (max-width: 1300px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: -1rem;
        padding-bottom: 3rem;
    }

    .hero-section-description {
        text-align: center;
        margin: auto;
    }

    .faded-text {
        display: none;
    }

    #button {
        align-self: center;
    }

    .page-header {
        padding-top: 30px;
        color: #fff;
        opacity: 0.6;
        text-align: center;
        font-size: 10vw;
    }

    .project-container {
        padding: 5px;
        margin: 10px;
        gap: 60px;
    }

    .project-card {
        width: 100%;
        height: 300px;
    }

    .project-card {
        background-size: cover;
        background-position: center;
    }

    .project-content {
        scale: 0.5;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
    }

    .project-content-left {
        left: 0;
    }

    .project-heading {
        font-size: 40px;
        width: 100%;
    }

    .project-sub-heading {
        width: 100%;
    }

    #project2 {
        margin-left: 0;
    }

    #project4 {
        margin-left: 0;
    }

    .project-skill-container {
        width: 100%;
    }

    .project-skill {
        width: 35px;
    }

    .project-card:hover .project-number {
        display: none;
    }

    .project-card:hover .project-content {
        scale: 0.55;
    }

}