*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: #080808;
    color: #fff;
}

#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/background_landscape.jpg);
    background-size: cover;
    background-position: center;
}

.container{
    padding: .5em 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 12em;
}
nav ul li {
    display: inline-block;
    list-style: none;
    margin: .75em 1em;
}
nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 1.25em;
    text-shadow: .1em .1em .4em #080808;
    position: relative;
}
nav ul li a::after{
    content: '';
    width: 0;
    height: .2em;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -.75em;
    transition: 0.5s;
}
nav ul li a:hover::after{
    width: 100%;
}
.header-text{
    margin-top: 20%;
    font-size: 2.5rem;
}
.header-text h1{
    margin-top: 1.02rem;
    font-size: 5rem;
}
.header-text h1 span{
    color: #ff004f;
}
/* -------------About------------- */
#about{
    padding: 5em 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 1em;
}

.about-col-2 {
    flex-basis: 60%;
}
.sub-title{
    font-size: 3.75em;
    font-weight: 600;
    color: #fff;
}
.sub-title-content{
    padding-top: 1em;
}
.tab-titles{
    display: flex;
    margin: 1.2em 0 2.4em;
}
.tab-links {
    margin-right: 3.2em;
    font-size: 1.2em;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: .3em;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -0.5em;
    transition: 0.5s;
}
.tab-links.active-link::after{
    width: 50%;
}
.tab-contents ul li{
    list-style: none;
    max-width: .75em 0;
    padding-bottom: .75em;
}
.tab-contents ul li span{
    color: #b54769;
    font-size: .95em;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab {
    display: block;
}

/* -------------Services------------- */

#services{
    padding: 2em 0;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.70em, 1fr));
    gap: 2.5em;
    margin-top: 2.2em;
}
.services-list div{
    background: #262626;
    padding: 3em;
    font-size: .9em;
    font-weight: 300;
    border-radius: .8em;
    transition: background 0.5s, transform 0.5s;
}
.services-list div:hover {
    background: #ff004f;
    transform: translateY(-.75em);
}
.services-list div i {
    font-size: 3.2em;
    margin-bottom: 2em;
}
.services-list div h2 {
    font-size: 2em;
    font-weight: 500;
    margin-bottom: 1em;
}
.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: .8em;
    margin-top: 1.2em;
    display: inline-block;
}

/* -------------Portfolio------------- */
#portfolio{
    padding: 3.5em 0;
}
.work-list{
    display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15.70em, 1fr));
        gap: 2.5em;
        margin-top: 2.2em;
}
.work{
    border-radius: .9em;
    position: relative;
    overflow: hidden;
}
.work img{
    width: 100%;
    border-radius: .9em;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6),#ff004f);
    border-radius: .9em;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0,3em;
    text-align: center;
    font-size: 1em;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 1.1em;
}
.layer a{
    margin-top: 1.1em;
    color: #ff004f;
    text-decoration: none;
    font-size: 1.1em;
    line-height: 3.75em;
    background: #fff;
    width: 3.75em;
    height: 3.75em;
    border-radius: 50%;
    text-align: center;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 3em auto;
    width: fit-content;
    border: .2em solid #ff004f;
    padding: .9em 3em;
    border-radius: .4em;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background: #ff004f;
}

/* -------------Contact------------- */

.contact-left{
    flex-basis: 35%;
}
.contact-right {
    flex-basis: 60%;
}
.contact-left p {
    margin-top: 2em;
}
.contact-left p i{
    color: #ff004f;
    margin-right: 1em;
    font-size: 1.75em;
}
.social-icons{
    margin-top: 2em;

}
.social-icons a{
    text-decoration: none;
    font-size: 2em;
    margin-right: 1em;
    color: #ababab;
    display: inline-block;
    transition: transform .05s;

}
.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-.3em);
}
.btn.btn2{
    display: inline-block;
    background: #ff004f;
}
.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 1em;
    margin: 1em 0;
    max-width: 1em 0;
    color: #fff;
    font-size: 1.1em;
    border-radius: .2em;
}
form .btn2{
    padding: 1em 3em;
    font-size: 1em;
    margin-top: 1.1em;
    cursor: pointer;
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 1.5em 0;
    background: #262626;
    font-weight: 300;
    margin-top: 1.1em;
}
.copyright i {
    color: red;
}

/* ------------- css for smal screen ------------- */
nav .fa-solid {
    display: none;
}
@media only screen and (max-width: 37.5em){
    #header{
        background-image: url(images/background_portrait.jpg);
    }
    .header-text{
        margin-top: 100%;
        font-size: 1rem;
    }
    .header-text h1{
        font-size: 2rem;
    }
    nav .fa-solid {
        display: block;
        font-size: 1.25em;
    }
    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -12.5em;
        width: 12.5em;
        height: 100%;
        padding-top: 3.1em;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 1.5em;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 1.5em;
        left: 1.5em;
        cursor: pointer;

    }
    .sub-title{
        font-size: 2.85em;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1 {
        margin-bottom: 2em;
    }
    .about-col-2{
        font-size: .9em;
    }
    .tab-links{
        font-size: 1em;
        margin-right: 1.1em;
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .copyright{
        font-size: .9em;
    }
}