@import url('https://fonts.googleapis.com/css2?family=Scheherazade+New:wght@400;500;600;700&display=swap');
  
/* Sources:
Nav-bar https://www.youtube.com/watch?v=PwWHL3RyQgk&t=621s
Page layout https://www.youtube.com/watch?v=Zwa5z9Ws7y4 */

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Scheherazade New", 'Times New Roman', Times, serif;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 20px
}

header{
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
}

p{
    line-height: 1.4;
}

.logo{
    width: 40px;
    cursor: pointer;
}

li, a, button{
    font-family: "Scheherazade", 'Times New Roman', Times, serif;
    font-weight: 500;
    font-size: 16px;
    color: black;
    text-decoration: none;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
}

.nav_links{
    list-style: none;
}

.nav_links li{
    display: inline-block;
    padding: 0px 20px;
}

.nav_links li a{
    transition: all 0.3s ease 0s;
}

.nav_links li a:hover{
    color: #388004;
}

button{
    padding: 9px 25px;
    background-color: rgba(131, 184, 47, 0.5);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

button:hover{
    background-color: rgba(131, 184, 47, 0.8);
}

section{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 100px;
    color: black;
}

.container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.main-title{
    font-size: 4em;
    margin-bottom: 50px;
    margin-top: 0;
}

.content{
    position: relative;
    width: 1150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content .image{
    position: relative;
    width: 800px;
    height: 400px;
    overflow: hidden;
}

.content .image img{
    z-index: 111;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.content .text-box{
    z-index: 222;
    background: rgba(131, 184, 47, 0.5);
    backdrop-filter: blur(20px);
    padding: 40px;
    max-width: 400px;
    border: 1px solid rgba(131, 184, 47, 0.5);
    border-radius: 10px;
    transform: translate(-80px, 50px);
}

.content .text-box h3{
    font-size: 2em;
    margin-bottom: 10px;
}

.media-icons{
    margin-top: 100px;
    margin-bottom: 100px;
}

.media-icons a{
    color: #388004;
    font-size: 2em;
    margin: 60px;
}

.media-icons h3 {
    margin-bottom: 50px; 
    text-align: center; 
}


.section-title{
    font-size: 1.8em;
    margin-bottom: 10px;
}

.info{
    width: 400px;
    margin-left: 50px;
}

.info p{
    margin-bottom: 20px;
    margin-top: 10px;
}

.content .project {
    display: flex;
    flex-direction: column;
}


.work-content .project {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.work-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.content .image {
    position: relative;
    width: 650px;  
    height: 420px; 
    overflow: hidden;
}

.content .image img {
    z-index: 111;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


.media-icons .icon i,
.media-icons .cta button {
    vertical-align: middle;
}


.text-changer{
    height: 40px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    color: black;
    font-family: "Scheherazade New", 'Times New Roman', Times, serif;
    font-weight: 500;
    font-size: 25px;
    box-sizing: content-box;
    justify-content: center;
    margin-top: 30px;
    margin-left: 45px;
}

.intro-text{
    margin-top: 8px;
}

.roles-container{
    overflow: hidden;
    position: relative;
    margin-left: 5px;
    color: #388004;
    min-width: 140px;
}

.role{
    display:block;
    height: 100%;
    padding-left: 6px;
    color: #388004;
    animation: role-change 12s infinite;
}

.decorative-line {
    border: none;
    height: 1px;
    background-color: #388004; 
    width: 18%;
    margin: 10px auto 0 auto; 
  }
 
/* Mobile */
@media (max-width: 768px) {

    .cta {
        align-self: flex-start;
        margin-top: 10px;
    }

    .content {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .content .text-box{
        align-items: center;
        margin-left: 160px;
    }

    .content .image {
        width: 100%;
        height: auto;
    }

    .content .image img {
        position: relative;
        width: 100%;
        height: auto;
    }

    .info {
        width: 100%;
        margin: 20px 0 0 0;
    }

    .text-box {
        transform: none;
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }

    .main-title {
        font-size: 2.5em;
        text-align: center;
    }

    .media-icons {
        margin-top: 60px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .media-icons a {
        margin-top: 30px;
        font-size: 1.5em;
        margin: 20px;
    }

    .work-content .project {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 60px 20px;
    }
}

/* Tablet (769px to 1024px wide) */
@media (min-width: 769px) and (max-width: 1024px) {


    .content {
        flex-direction: column;
        width: 100%;
        padding: 0 40px;
    }

    .content .image {
        width: 100%;
        height: auto;
    }

    .content .image img {
        position: relative;
        width: 100%;
        height: auto;
    }

    .info {
        width: 100%;
        margin-top: 20px;
        margin-left: 0;
    }

    .text-box {
        transform: none;
        margin-top: 30px;
        max-width: 100%;
        width: 100%;
    }

    .work-content .project {
        flex-direction: column;
        align-items: center;
    }

    .main-title {
        font-size: 3em;
        text-align: center;
    }

    section {
        padding: 70px 40px;
    }

    .media-icons {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 80px;
    }

    .media-icons a {
        font-size: 1.8em;
        margin: 30px;
    }
}
