@font-face {
    font-family: 'Quicksand';
    src:  url('../assets/fonts/Quicksand-Regular.ttf')  format('truetype')
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand';
    background-color: rgb(15, 15, 15);
    font-weight: 300;
    color: rgb(204, 204, 204);
    padding: 8vh  68px;
}

html, body {
    margin: 0%;
}

/********** SELECTORS USED BY MULTIPLE ELEMENTS  **********/

.header-title {
    font-size: 34px;
}

.header-sub-title{
    font-size: 20px;
}

.bold-text {
    font-weight: 600;
}

.white-text {
    color: #e6e6e6;
}

.spaced-letter {
    letter-spacing: 1px;
}

.section-title{
    margin-bottom: 12px;
}

.section-desc{
    margin-bottom: 20px;
}

.section-root {
    padding: 60px 0;
}

.proj-link-box{
    display: flex;
    align-items: center;
}

.transition{
    transition: 0.25s ease-in-out;
}

.move-upward:hover {
    transform: translate(0, -10px);
}

/********** STYLES APPLIED TO ELEMENTS GLOBALLY **********/

p {
    line-height: 1.8;
}

a {
    text-decoration: none;
}

a img {
    width: 32px;
}

/********** HEADER SECTION **********/

.header-root {
    padding-bottom: 30px;
}

.header-box p {
    margin: 12px 0;
}

.about-me-box {
    width: 1000px;
}

.about-me-box p a {
    text-decoration: underline;
}

.about-me-box {
    margin-top: 20px;
}

.links-root {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 30px;
}


/********** TECHNOLOGIES AND TOOLS SECTION **********/

.tools-list{
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.tool {
    width: 25px;
}


/********** PROJECTS SECTION **********/

.projects-root {
    flex: 1 1 auto;
}

.project-box .body p{
    line-height: 1.6;
}

.projects-container{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 20px;
    height: 350px;
    color: #030303;
    flex: 0 0 32%;
    flex-grow: 1;
}

.project-box .body{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-box .proj-link-box{
    justify-content: flex-end;
    gap: 10px;
}

.project-box:hover p{
    color: rgb(204, 204, 204);
}

.project-box:hover p.header-title{
    color: rgb(240, 240, 240);
}

.project-box:hover .project-link{
    filter: brightness(0) saturate(100%) invert(72%) sepia(96%) saturate(1%) hue-rotate(5deg) brightness(104%) contrast(98%);
}

.project-box:nth-of-type(1) {
    background-color:#e4dfc1;
}

.project-box:nth-of-type(2) {
    background-color: #b6d6d6;
}

.project-box:nth-of-type(3) {
    background-color: #b4c6eb;
}

.project-box:nth-of-type(4) {
    background-color: #cdc3f1;
}

.project-box:nth-of-type(5) {
    background-color: #ffcae7;
}

.project-box:hover {
    background-color: transparent;
    color: #333333;
}

.project-link {
    filter: brightness(0) saturate(100%) invert(16%) sepia(15%) saturate(8%) hue-rotate(130deg) brightness(94%) contrast(86%);
}

.form-btn {
    border: 2px solid rgb(230, 230, 230);
    border-radius: 100px;
    background-color: rgb(230, 230, 230);
    width: 150px;
    height: 44px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 900;
    margin-top: 28px;
    cursor: pointer;
}

.form-btn:hover{
    background-color: transparent;
    color: rgb(230, 230, 230);

}

/********** ARCHIVED PROJECTS SECTION **********/
.proj-info{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.archived-project-box {
    display: flex;
    gap: 20px;
}

.archived-projects-container{
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 32px;
}

.archived-project-box .proj-link-box{
    gap: 8px;
}

/********** CONTACT SECTION **********/


form{
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: 700px;
    padding: 20px 0
}

input, textarea{
    background-color: transparent;
    border:none;
    border-bottom: 1px solid rgb(230, 230, 230);
    padding: 5px 10px;
    outline: none;
    font-family: inherit;
    color: #e6e6e6;
    padding: 12px;
    box-sizing: border-box;
    font-size: inherit;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    -webkit-text-fill-color:#e6e6e6;
    font-family: inherit;
    font-size: inherit;
    transition: background-color 5000s ease-in-out 0s;
}

input {  
    flex: 1 1 auto;
    height: 40px;
}

textarea{
    height: 100px;
    resize: none;
}

.input-container {
    display: flex;
    gap: 20px;
}

/********** ALERT BOX **********/

.alert-box{
    position: fixed;
    bottom: 40px;
    padding: 14px 20px;
    background-color: rgb(15, 15, 15);
    border: 0.8px solid ;
    color: rgb(192, 131, 131);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    display: none;
    margin: 0 auto;
    left: 50%;
    transform: translate(-50%, 0);
}

.alert-header {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #7cbe86;
}

.alert-msg {
    color: rgb(204, 204, 204);
    margin-left: 32px;
    line-height: 1.4;
}

.alert-icon{
    width: 22px;
}

.close-btn {
    position: absolute;
    top: 6px;
    right: 11px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #e6e6e6;
    max-width: 100%;
    max-height: 100%;
}

.close-symbol {
    font-size: 26px;
    color: #a0a0a0;
}

/********** FOOTER **********/

.section-root.footer{
    padding-bottom: 0px;
}


/********** RESPONSIVENESS **********/

/* FOR WIDE SCREENS*/
@media screen and (min-width: 1920px) {
    .main{
        width: 1780px;
        margin: 0 auto;
    }

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

}


@media only screen and (max-width: 1349px ) {
    .project-box {
        flex: 0 0 49%;
    }

    .project-box:nth-of-type(5) {
        flex: 0 0 100%
    }       
}

@media only screen and (max-width: 686px) {
    .archived-project-box {
        flex-direction: column;
    }

    .archived-projects-container {
        margin-top: 45px;
    }
}

/* MOBILES AND TABLETS */
@media only screen and (max-width: 1106px) {
    .about-me-box {
        width: 100%;
    }
}

@media only screen and (max-width: 950px) {
    .project-box {
        flex: 0 0 100%;
    }

    body {
        padding: 4vh  40px;
    }

    .input-container{
        flex-direction: column;
        gap: 40px;
    }

    .input-container, form {
        gap: 40px;
    }

    input, textarea, form {
        width: 100%;
    }

}

@media only screen and (max-width: 679px) {

    .alert-box {
        width: calc(100% - 40px);
        padding: 7px 10px;
    }
}

@media only screen and (max-width: 504px) {
    body {
        padding: 6vh 20px;
    }

    .header-title {
        font-size: 29px;
    }

    .header-sub-title{
        font-size: 21px;
    }

    p {
        font-size: 15px;
        overflow-wrap: break-word;
    }

    .project-box {
        height: 290px
    }

}

/*CHANGES TO THE BROWSWER*/

::-webkit-scrollbar {
    width: .3em;
}
  
::-webkit-scrollbar-track {
    box-shadow: none;
}
  
::-webkit-scrollbar-thumb {
    background-color: rgb(88, 88, 88);
    border-radius: 20px;
}

