@import url('https://fonts.googleapis.com/css2?family=Matemasie&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
}

header nav {
    position: fixed;
    display: flex;
    background: #234d96;
    color: #fff;
    justify-content: space-around;
    height: 80px;
    width: 100%;
    top: 0;
    align-items: center;
}

header nav ul {
    display: flex;
    list-style: none;
    width: 40%;
    justify-content: space-between;
}

header nav ul li a {
    color: #c6c8cc;
    text-decoration: none;
    font-size: 1.1em;
}

header nav ul li a:hover {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
}

.section {
    display: flex;
    height: 99.9vh;
    width: 100%;
    flex-direction: column;
}

#home {
    flex-direction: row;
}

#aboutme {
    flex-direction: row;
}

#portfolio {
    flex-direction: column;
}

.home-container-left {
    margin-top: 200px;
    margin-left: 100px;
    width: 50%;
}

.home-container-right {
    margin-top: 80px;
    width: 50%;
}

#home-one {
    font-size: 150px;
    font-family: "Brush Script MT", cursive;
    color: #234d96;
}

#home-two {
    overflow: hidden; 
    white-space: nowrap;
    overflow: hidden; 
    font-size: 70px;
    font-family: 'Courier New', monospace;
}

#home-img {
    border: 10px solid #789dde;
    border-radius: 50%;
    margin: 110px;
    width: 300px;
    height: 300px;
}

.about-header {
    margin-top: 80px;
    width: 50%;
    text-align: center;
}

.about-header h1 {
    margin: 250px 0px;
    font-size: 100px;
    color: #fff;
    font-family: "Matemasie", sans-serif;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #234d96;
}

.about-section {
    margin-top: 80px;
    width: 50%;
}

.about-section p {
    text-align: justify;
    margin-top: 250px;
    margin-right: 90px;
    font-size: 25px;
}

.about-header h1:hover {
    margin: 250px 0px;
    font-size: 100px;
    color: #789dde;
    font-family: "Matemasie", sans-serif;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color:#234d96;
}

.portfolio-header {
    margin: 80px 600px 0px 600px;
    height: 20%;
    text-align: center;
    color: #234d96;
    font: ultra-condensed small-caps 60px "Fira Sans", sans-serif;
    padding-top: 40px;
    position: relative;
    text-decoration: none;
}

.portfolio-header::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    background-color: #234d96;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.portfolio-header:hover::before {
    transform: scaleX(1);
}

.portfolio-container {
    height: 80%;
    text-align: center;
    margin-top: 40px;
}

.portfolio-container ul {
    height: 100%;
    display: flex;
    justify-content: space-around;
    list-style: none;
    overflow: hidden;
    padding: 5px;
}

.portfolio-item {
    margin-top: 10px;
    width: 190px;
    height: 225px;
    border-radius: 10%;
    background-color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: transform .5s ease;
}

.portfolio-item:hover {
    transform: scale(1.1);
}

.portfolio-item a {
    text-decoration: none;
    font: 30px "Fira Sans", sans-serif;
    color: #234d96;
}

.portfolio-item img {
    margin-top: 20px;
    width: 150px;
    height: 150px;
}

.contact-section {
    margin-top: 80px;
    height: 60%;
}

.contact-section ul {
    padding: 40px;
    margin: 150px 250px 0px 250px;
    display: flex;
    justify-content: space-around;
    list-style: none;
    overflow: hidden;
}

.contact-section ul li {
    height: 100%;
}

.contact-section ul li img {
    width: 120px;
    height: 120px;
    transition: transform .5s ease;
}

.contact-section ul li:hover img {
    transform: scale(1.5);
}

.contact-header {
    margin: 20px 40px 50px 990px;
}

.contact-header h1 {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 75px;
    background-color: #234d96;
    color: #fff;
    text-align: center;
    margin-top: 0px;
    border-radius: 25px;
}
