*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    width: 100%;
    height: 100vh;
}

nav{
    background-color: #be3144;
    width: 100%;
    height: 12%;
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 0 3%;
    border-bottom: 2px solid black;
    position: fixed;
}

nav ul{
    display: flex;
    align-items: center;
    list-style: none;
    width: 20%;
    height: 100%;
}

nav ul li{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 35%;
}

nav ul li a{
    color: white;
    font-size: 20px;
    font-weight: bold;
}

nav ul li:hover{
    background-color: rgb(6, 94, 165);
    cursor: pointer;
}

section{
    width: 100%;
}

#welcome-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #262626;
    height: 100vh;
}

h1,
h2{
  font-family: 'Raleway', sans-serif;
  color: white;
}

h1,h2 {
    font-size: 4rem;
}
  
h6 {
    font-size: 2rem;
    color: #be3144;
}

p{
    margin: 20px;
    color: white;
    font-size: 1.5rem;
}

hr{
    width: 30%;
    margin-bottom: 10px;
}


#projects1 {
    overflow: hidden;
    transition: height 1.5s ease-out;
    background-color: #45567d;
    padding: 0 30px;
    text-align: center;
}

#projects1 hr{
    margin: 0 auto;
}

.show {
    height: 1045px;
}

.hide {
    height: 0;
    padding: 0 30px;
}

#btn{
    width: 100px;
    padding: 10px;
    border: none;
    color: #be3144;
    font-size: 15px;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
}

#ima{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #be3144;
}


#projects{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.project-tile{
    margin: 12px;
}

#projects div a img{
    width: 400px;
    height: 400px;
    margin-bottom: -7px;
}

.project-tile figcaption {
    background-color: #262626;
    color: white;
    width: 400px;
    height: 50px;
    text-align: center;
    overflow: hidden;
}

.project-tile figcaption::before,
.project-tile figcaption::after {
    color: orangered;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline;
}

.project-tile figcaption::before {
    content: "< ";
}

.project-tile figcaption::after {
    content: " />";
}

.project-tile a:hover figcaption::before,
.project-tile a:hover figcaption::after {
    opacity: 1;
}

#contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #242c34;
    height: 100vh;
    padding: 20% 0;
}

#contact div{
    width: 50%;
    margin: 15px;
}

#contact div ul{
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    list-style: none;
}

#contact div ul li{
    margin: 0 5px;
    transition: 0.3s ease-in-out; 
}

#contact div ul li #profile-link{
    color: white;
    text-decoration: none;
    font-size: 20px;
}

#contact div ul li #profile-link i{
    margin: 5px;
    font-size: 25px;
}

#contact div ul li:hover{
    transform: translateY(8px);
}

.foot{
    width: 100%;
    padding: 2px;
    background-color: #be3144;
    border: none;
    margin-top: 50px;
}

.daniel{
    display: flex;
    justify-content: end;
    align-items: center;
    align-self: flex-end;
    color: white;
    font-size: 20px;
}

.daniel i{
    margin: 0 5px;
    color: #be3144;
}

@media (min-width: 600px) and (max-width: 1024px) {
    nav ul{
        display: flex;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        width: 30%;
        height: 100%;
    }
    nav ul li{
        margin: 0 10px;
    }

    #contact div ul li #profile-link{
        color: white;
        text-decoration: none;
        font-size: 15px;
    }
    
    #contact div ul li #profile-link i{
        margin: 3px;
        font-size: 15px;
    }
}

@media screen and (max-width: 600px) {
    nav ul{
        display: flex;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        width: 50%;
        height: 100%;
    }

    nav ul li a{
        font-size: 14px;
    }

    h1,h2{
        font-size: 1rem; 
    }

    #contact div, #contact div ul{
        width: 100%;
    }

    #projects1 p {
        margin: 15px 0;
    }

    #projects1 #projects{
        display: flex;
        justify-content: center;
        margin: 10px 0;
    }


    .show {
        height: 125rem;
    }
    
    .hide {
        height: 0;
        padding: 0 30px;
    }

    #contact div ul{
        display: block;
    }

    #contact div ul li{
        margin: 10px 0;
    }

    #contact div ul li:hover{
        transform: none;
    }

    #contact div ul li #profile-link{
        color: white;
        text-decoration: none;
        font-size: 15px;
    }
    
    #contact div ul li #profile-link i{
        margin: 3px;
        font-size: 15px;
    }

    #contact p{
        font-size: 15px;
        text-align: center;
    }

    .daniel{
        display: flex;
        justify-content: end;
        align-items: center;
        align-self: flex-end;
        color: white;
        font-size: 15px;
    }
}