:root {
    /* --main-red: #692932; */
    --main-red: #7c3943;
    --accent-blue: #7596c2;
    --default-max-width: 968px;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: #ffff;
}

h2::after {
    display: block;
    content: '';
    margin: 0 auto;
    height: 2px;
    border-radius: 2px;
}



/************************ Header ************************/
header {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 10px 3px #00000059;
}

.headerContent {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(-180deg, #662f35, #7c3943);
    padding: 5px 0;
}

nav {
    margin-left: 400px;
}

.headerNav {
    display: inline-block;
    text-decoration: none;
    font-size: 20px;
    padding: 2px 14px;

    transition: transform .3s ease;
}

.headerNav:hover {
    border-bottom: 1px solid #ffff;
    border-radius: 5px;

    transform: translateY(-5px);
}



/************************ Introduction ************************/
.introduction {
    background-image: url('../img/background.png');
    background-repeat: no-repeat;
    background-size: cover;

    text-align: center;
    
    padding-block: 175px;
}

.introductionText {
    background-color: #38383886;
    border-radius: 15px;

    font-size: 30px;
    font-weight: normal;

    max-width: 530px;
    margin: 0 auto;
    padding: 30px 20px;

    height: 195px;
}



/************************ Experiences ************************/
.experiences {
    background: linear-gradient(#dddddd, #ffff, #dddddd);
    border-top: 2px solid var(--main-red);
    border-bottom: 2px solid var(--main-red);

    padding: 10px;
    margin-inline: auto;
    scroll-margin-top: 70px;
}

.experiences h2 {
    color: #000000;
    margin-bottom: 20px;
}

.experiences h2::after {
    width: 100px;
    background: var(--main-red); 
}

.experienceGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: var(--default-max-width);
    padding: 10px;

    background-color: #4242422c;
    border-radius: 15px;
    margin: auto;
    margin-bottom: 20px;
}

.experienceRow {
    display: flex;
    flex-flow: column wrap;
}

.experienceItem {
    margin: 10px;
    padding: 30px 20px;
    border-radius: 15px;

    background-color: var(--main-red);
}

.experienceItem:hover {
    background: linear-gradient(-45deg, #6b2d36, var(--main-red), #854d54);
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 4px 6px #00000059;

    transform: translateY(-5px);
}


/* Progressbar Experiences */
.positionSkill {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skillsContainer {
    background-color: #ddd;
    border-radius: 5px;
    margin-top: 15px;
}

.skills {
    height: 10px;
    border-radius: 5px;
    background-color: var(--accent-blue);
}

.hundred {
    width: 100%; 
}
.ninety {
    width: 90%; 
}
.eighty {
    width: 80%; 
}
.seventy {
    width: 70%; 
}
.sixty {
    width: 60%; 
}
.ten {
    width: 10%; 
}



/************************ About me ************************/
.aboutme {
    padding-block: 10px;
    scroll-margin-top: 70px;
}

.aboutme h2 {
    margin-bottom: 20px;
}

.aboutme h2::after {
    width: 60px;
    background: #ffff; 
}

.aboutme p {
    font-size: 16px;
    margin-left: 10px;
    margin-right: 10px;
}

.aboutmeText {
    margin-bottom: 20px;
}



/************************ Projects ************************/
.projects {
    background: linear-gradient(#dddddd, #ffff, #dddddd);
    border-block: 2px solid var(--main-red);

    width: 100%;
    padding: 10px;
    scroll-margin-top: 70px;
}

.projects h2 {
    color: #000000;
    margin-bottom: 20px;
}

.projects h2::after {
    width: 100px;
    background: var(--main-red); 
}

.projectGrid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;

    margin-inline: auto;
    max-width: 1000px;
}

.projectItem {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-radius: 15px;
    box-shadow: 0 4px 6px #0000001a;
    overflow: hidden;

    min-height: 350px;
    height: auto;
    padding: 10px;
    margin-bottom: 20px;

    text-align: center;
    background-color: var(--main-red);
    transition: transform .3s ease, box-shadow .3s ease;
}

.projectItem:hover {
    background: linear-gradient(-45deg, #6b2d36, var(--main-red), #854d54);
    transform: translateY(-5px);
    
    box-shadow: 0 4px 6px #00000059;
}

.projectItem img {
    display: block;
    width: 100%;
    height: 150px;

    border-radius: 10px;
}

.projectItem h3 {
    margin: 0;
}

.projectItem p {
    margin: 5px;
}

.projectButton {
    background-color: var(--accent-blue);
    border-radius: 10px;

    margin-top: 5px;
    padding: 5px;
    font-size: 18px;
    text-decoration: none;
}

.projectButton:hover {
    background-color: #587dad;
} 



/************************ Contact ************************/
.contact {
    padding-block: 10px;
    scroll-margin-top: 70px;
}

.contact h2 {
    margin-bottom: 20px;
}

.contact h2::after {
    width: 60px;
    background: #ffff; 
}

form {
    max-width: 500px;
    margin: 0 auto;
}

.formInputs {
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
}

.name, .email, .message {
    background: linear-gradient(#ffff, #f1f1f1);
    border: 2px solid var(--main-red);
    border-radius: 10px;
    box-sizing: border-box;
    padding: 5px;
    margin: 0;
}

.name, .email {
    width: 245px;
}

.message {
    margin-top: 20px;
    height: 200px;
    width: 100%;
}

.submit {
    background-color: var(--accent-blue);
    border: 0px;
    border-radius: 10px;

    width: 100%;
    padding: 5px;
    margin: 10px 0 20px 0;

    font-size: 18px;
    color: #ffff;
    cursor: pointer;
}

.submit:hover {
    background-color: #587dad;
} 

.submit i {
    font-size: 15px;
}



/************************ Footer ************************/
footer {
    background: linear-gradient(-180deg, #662f35, #7c3943);
    padding: 5px;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px auto;
    max-width: 1000px;
}

footer p {
    margin-top: 5px;
    padding: 10px 0;
    font-size: 15px;
}

.footerLinks {
    padding: 10px 0;
}

footer i {
    padding-top: 5px;
    font-size: 30px;
    margin: 0 5px;
}



/************************ Animations ************************/
.aboutme, .contact {
    background: linear-gradient(-45deg, #a16d74, #81555b);
    background-size: 400% 400%;
    animation: gradient 5s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/************************ Responsive Features ************************/
.hidden {
    display: none !important;
}

@media only screen and (max-width: 1024px) {
    .headerContent {
        justify-content: space-around;
    }

    .headerContent h1{
        text-align: center;
        width: 100dvw;
    }

    .headerContent i {
        display: block;
        position: absolute;
        right: 10%;
        margin-top: 10px;
    }
    
    nav {
        position: absolute;
        top: 100%;
        z-index: 1;
        display: flex !important;
        flex-flow: column nowrap;
        align-items: center;
        margin-inline: auto;
        width: 100dvw;

        background-color: #a16d74;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: 0 4px 10px -2px #00000059;
    }

    .headerNav {
        border-bottom: 1px solid #ffff;
        border-radius: 5px;
        transform: none !important;

        width: 125px;
        padding: 0 5px;
        margin-top: 5px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 700px) {
    .introductionText {
        height: 250px;
    }

    .experienceGrid {
        position: relative;
        grid-template-columns: 1fr;
        height: calc(3 * 108px + 40px);
        overflow-y: scroll;
    }

    .experienceGrid::-webkit-scrollbar {
        width: 5px;
    }

    .experienceGrid::-webkit-scrollbar-thumb {
        background: #b4b4b4;
        border-radius: 5px;
    }

    .aboutme p {
        text-align: left;
    }

    .formInputs {
        justify-content: center;
        gap: 5px;
    }
}

@media screen and (max-width: 509px) {
    .message, .submit {
     width: 245px;
    }
}