@import url('https://fonts.cdnfonts.com/css/codec-pro');

/* color palette sample url: https://coolors.co/palette/e63946-f1faee-a8dadc-457b9d-1d3557*/
/* #1d3557 dark blue*/
/* #457b9d mid blue*/
/* #a8dadc light blue*/
/* #f1faee white-ish*/
/* #e63946 red*/


html{
    scroll-behavior: smooth;
}

header{
    position: sticky; 
    top: 0;
    width: 100%;
    z-index: 2;
}

body{
    background-color: #1d3557;
    margin: 0px;
    border: 0px;
    font-family: 'Codec Pro', sans-serif;
}

.navbar{
    background-color: #457b9d;
    text-align: center;
    position: sticky;
}

.navbar a{
    display: inline-flex;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 20px;
    transition: background-color 0.3s, color 0.3s;
    flex-direction: column;
}

.navbar a:hover{
    background-color: #a8dadc;
    color: #1b1b1d;
    cursor: pointer;
}

.mainpage{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 100vh;
    padding: 40px;
}


.left-side{
    flex: 1;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
}

.photo{
    position: relative;
    width: 80%;
    max-width: 500px;
}

.photo img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 80vh;
}

.title{
    position: absolute;
    font-family: 'Times New Roman', Times, serif;
    transform: translate(30px,-500px);
    font-size: 10vw;
    color: #e63946;
    margin: 0;
}


.right-side{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
}

.name1, .name2{
    font-size: 48px;
    text-transform: uppercase;
    color: white;
    margin: 2px;
    text-align: right;
    letter-spacing: 2px;
}

.name1{
    color: #e63946 ;
}

.top-line, .bottom-line{
    width: 80%;
    height: 3px;
    background-color: white;
}


.dropdown{
    position: relative;
}
  
.dropdown-content{
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 130px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    font-size: small;
    font-weight: 100;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    color: #010101;
}
  
.dropdown:hover .dropdown-content{
    display: block;
}

.section{
    padding: 80px 10%;
    text-align: center;
}

.section h2{
    font-size: 42px;
    margin-bottom: 30px;
    color: #e63946;
}


/* skills styles */

.skills-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-card{
    background-color: #457b9d;
    padding: 20px;
    border-radius: 10px;
    min-width: 200px;
    text-align: center;
    transition: transform 0.2s;
}

.skill-card:hover{
    transform: scale(1.05);
}


/* project styles */

.projects-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-card{
    background-color: #a8dadc;
    color: #1d3557;
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.2s;
}

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

/* contact styles */

.contact a{
    display: inline-flex;
    color: #a8dadc;
    text-decoration: none;
}

.contact a:hover{
    text-decoration: underline;
}


/* white text for sections outisde boxes */
#background p, #contact strong{
    color: #f1faee;
}