html {
    box-sizing: border-box;
    scroll-padding-top: 50px;
}

:root {
    --color: white;
    --body-back-color: #2b1b03;
    --home-back-color: #724c14;
    --heading-background: linear-gradient(#1a1003, #724c14, #1a1003)
}

body {
    background: linear-gradient(var(--body-back-color));
    display: flex;
    flex-direction: column;
    font-family: "arial";
    font-style: normal;
    color: var(--color);
    margin: auto;
    font-size: 1.5rem;
}

header {
    width: 100%;
    /* margin: auto; */
    display: flex;
    gap: 50px;
    background: var(--heading-background);
    border: 2px solid #3a2609;
    position: fixed;
    top: 0;
}

header img {
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    place-items: center;
    margin-top: 0.5%;
}

header>h1 {
    width: 100%;
    font-size: 2.0rem;
    display: flex;
    align-items: center;
    margin-left: 2.5%;
}

#home {
    width: 50%;
    /* min-height: 100vh; */
    margin: auto;
    background: linear-gradient(var(--home-back-color));
    margin-top: 2%;
    border-radius: 10px;
    min-height: 100vh;
    padding-top: 60px;
}

#welcome-message {
    display: flex;
    flex-direction: column;
    place-items: center;
    line-height: 35px;
    padding: 2%;
}

#welcome-message>h2,
#about>h2 {
    background: var(--heading-background);
    /* border: 2px solid red; */
    font-size: 1.5em;
    padding: 1.5%;
}

#welcome-message p {
    text-align: justify;
}

#welcome-message p:first-of-type:before {
    content: "👋";
    position: relative;

}

#welcome-image {
    width: 104%;
    border: 2px solid #291b05;
    border-radius: 10px;
}

nav {
    width: 100%;
    border-radius: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 60px;
    justify-content: flex-end;
    padding: 2%;
}

nav>ul>li>a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    /* text-shadow: 0px 0px 2px #857b7b; */
}

nav>ul>li:hover {
    transform: scale(1.1);
    transition: 0.8s ease-in-out;
}

#about {
    /* min-height: 100vh; */
    width: 50%;
    border: 2px solid #3a2609;
    margin: auto;
    min-height: 100vh;
}

.about-me {
    background: #1a1003;
    padding: 2.5%;
    border-radius: 10px;
    text-align: justify;
    line-height: 2;
    /* background-color: #724c14; */
    background-color: #725324;
}

.about-me h2 {
    
}

.life strong {
    background-color: #291b05;
    padding: 0.5%;
    font-weight: bolder;
}

.about-me a {
    text-decoration: none;
    color: white;
    background-color: #1a1003
}

#projects {
    min-height: 100vh;
    margin-top: 5%;
}

#projects>h2,
.about-me h2 {
    font-size: 2.0rem;
    border: 2px solid #724c14;
    width: 30%;
    margin: auto;
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    background: var(--heading-background);
    margin-bottom: 2%;
    padding: 1.5%;
}

#home,
#about,
#projects,
#contact {
    scroll-margin-top: 80px;
}


.gridding {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: 'header header' 'backend frontend';
}

.gridding .category {
    /* border: 2px solid #724c14; */

}

.gridding .category {
    border: 2px solid #724c14;
}

.gridding .category h3 {
    display: flex;
    justify-content: center;
    background: var(--heading-background);
    width: 50%;
    padding: 1.8%;
    margin: auto;
    margin-bottom: 2%;
    font-size: 2.1rem;
    margin-top: 2%;
}

.repos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.specific-project {
    /* border: 2px solid #724c14; */
    padding: 1.5%;
    margin: auto;
    display: flex;
    flex-direction: column;
    width: 80%;
    justify-content: center;
    text-align: center;
    line-height: 2.5rem;
}

.specific-project h4{
    background: var(--heading-background);
    padding: 1.5%;
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto;
    height: 100px;
    font-size: 1.5rem;
}

.repo-link {
    color: white;
    text-decoration: none;
}

.repo-link:hover {
    transform: scale(1.3);
    transition: 0.8s ease-in-out;
}

#contact {
    /* border: 2px solid #724c14; */
    display: flex;
    flex-direction: column;
    place-items: center;
    width: 50%;
    margin: auto;
    height: 100vh;
    text-align: center;
}

#contact h2 {
    font-size: 10px;
}

#contact address {
    font-size: 5px;
}
#contact h2 {
    background: var(--heading-background);
    padding: 1.5%;
    font-size: 200%;
    text-transform: uppercase;
}

#contact address {
    font-size: 250%;
}

#contact address p:nth-child(1)::before {
    content: "👤";
    position: relative;
}

#contact address p:nth-child(2)::before {
    content: "🏠";
    position: relative;
}

#contact address p:nth-child(3)::before {
    content: "📍";
    position: relative;
}

#contact address p:nth-child(4)::before {
    content: "📞";
    position: relative;
    background-color: white;
}

#contact address p:nth-child(5)::before {
    content: "📧";
    position: relative;
}

#contact a {
    color: white;
    text-decoration: none;
}

#personal-portfolio-photo {
    border: 2px solid #725324;
    margin: auto;
    width: 150px;
    margin-top: 3%;
}

@media screen and (max-width: 1000px) {
    body {
        margin: 0;
        padding: 0;
    }
    #contact h2 {
        font-size: 120%;
    }
    
    #contact address {
        font-size: 120%;
    }
    
    nav>ul {
        flex-direction: row;
        background-color: #2b1b03;
        border: none;
        gap: 20px;
        margin: auto;
        justify-content: center;
        margin-top: 5%;
        margin-left: -10%;
        /* border: 2px solid #3a2609; */
        border-radius: 10px;
        place-items: center;
        width: 100%;
        
        
    }
    
    body {
        margin: 0;
        padding-top: 60px;
    }
    
    nav {
        /* border: 2px solid #725324; */
        width: 150%;
        height: 60px;
        left: 65%;
        top: 0%;
        
    }
    header {
        display: flex;
        flex-direction: row;
        position: static;
        gap: 20px;
        top: 0;
        width: 50%;
        /* place-items: center;
        place-content: center; */
        z-index: 1000;
        margin: auto;
        border: none;
        /* background: none; */
        /* border: 2px soli3d #11100e; */
        background: none;
    }

    header>h1 {
        /* margin: auto; */
        /* display: flex; */
        /* flex-direction: row; */
        /* gap: 20px; */
        /* justify-content: center; */
        display: none;
        position: fixed;
        margin-bottom: 10%;
        right: 10%;
        top: 10%;
        width: 10%;
        /* border: 2px solid #1a1003; */
        font-size: 80%;
        justify-content: flex-start;
        border: none;
        
    }

    #welcome-message>h2,
    #about h2 {
        background: var(--heading-background);
        /* border: 2px solid red; */
        font-size: 1.1em;
        display: flex;
        place-items: center;
        place-content: center;
        margin: auto;
        width: 350px;
        border: none;
    }
    
    #welcome-message p {
        text-align: justify;
    }
    
    #home {
        width: 450px;
        position: relative;
        top: 30%;
    }
    
    #about {
        width: 450px;
        margin: auto;
    }
    #home, #about, #projects, #contact {
        scroll-margin-top: 1000px;
    }
    
    #projects {
        display: flex;
        flex-direction: column;
        
    }
    
    #projects h2 {
        width: 500px;
        border: none;
    }
    
    .gridding {
        display: flex;
        flex-direction: column;
    }
    
    .gridding .category {
        display: flex;
        flex-direction: column;
        border: none;
    }
    
    .repos {
        display: flex;
        flex-direction: column;
        border: none;
    }
    
    #projects h3 {
        width: 650px;
        border: none;
    }
    
   
}


/* Dropdown container */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Dropdown items */
.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    transition: background 0.2s ease;
}
/* Hover effect for each CV option */


/* Show dropdown */
.dropdown:hover .dropdown-menu {
    display: block;
}

.cv-link {
    color: #1a1003;
    background-color: white;
    font-size: 0.8em;
}

.cv-link:hover {
    background-color: #724c14;
    color: white;

}


#markdown-to-html-converter {
    color: black;
    background-color: white;
    text-decoration: none;

}

#markdown-to-html-converter:hover {
    background: linear-gradient(#e7e5e1, #725324, #776d5f);
    color: white;
    transform: scale(3);
}