@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root{

    --black-color: #14171A;
    --white-color: #fff;
    --orange-color: #ff6633;
    --grey-color: #f7f7f7;

    --body-font: 'Poppins', sans-serif;
    --subtitle-font: 'Poppins', sans-serif;
    --biggest-font: 2rem;
    --bigger-font: 1.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 800;

    /* Light Mode */
    --bg-color-light: #fff;
    --text-color-light: #333;
    --link-color-light: #ff6633;

    /* Dark Mode */
    --bg-color-dark: #222;
    --text-color-dark: #f7f7f7;
    --link-color-dark: #ff6633;

}
@media screen and (min-width: 1000px) {
    :root {
        --biggest-font: 3rem;
        --bigger-font: 2rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }    
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#icon{
    width: 25px;
    cursor: pointer;
}

a{
    text-decoration: none;
}
img{
    width: 100%;
}
li{
    list-style: none;
}
body{
    font-family: var(--body-font);
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
}

body.dark-mode{
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
    a,
    i{
        color: var(--grey-color);
    }
    .header-active{
        height: 70px;
        background-color: var(--bg-color-dark);
        box-shadow: 0 0 10px  rgba(255, 255, 255, .2);
    }
    .sub-title{
        color: var(--text-color-dark);
    }
    #about p, li{
        color: var(--text-color-dark);
    }
    #portfolio{
        a{
            color: var(--link-color-dark);
        }
    }
    #contact{
        .box-field,
        .box-text-field{
            border: 1px solid var(--text-color-dark);
        }
        input,
        .text-area{
            background-color: #222;
            color: var(--grey--color);
        }
    }
}

html{
    scroll-behavior: smooth;
}
section{
    padding: 0 20px;
}
.container{
    height: 100%;
    max-width: 1200px;
    margin: auto;
}
.grid{
    display: grid;
    gap: .5rem;
}
.grp-btns{
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 7px;
}

header{
    position: fixed;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all .2s ease-in-out;
}
.header-active{
    height: 70px;
    background-color: var(--white-color);
    box-shadow: 0 0 10px  rgba(0, 0, 0, .2);
}
header a{
    color: var(--orange-color);
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}
.logo{
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    color: var(--black-color);
}
.orange-color{
    color: var(--orange-color);
}

.icons{
    width: 100%;
    font-size: var(--h2-font-size);
    padding: 20px 0;
    color: var(--orange-color);
}
.icons img{
    margin-top: 3px;
    margin-right: -15px;
}
.icons > i{
    padding: 10px;
    cursor: pointer;
}

header i,
footer i,
#contact i{
    transition: transform 0.5s;
}

header i:hover,
footer i:hover,
#contact i:hover{
    transform: translateY(-3px);
}

@media screen and (max-width: 768px){
    .menu{
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 50vh;
        background-color: rgba(225, 225, 225, .2);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        box-shadow: 0 0 10px rgba(0,0,0,.2);
        transition: all .2s ease-in-out;
    }
    .social-icon{
        display: none;
    }
}
.nav-link{
    padding: 10px 20px;
    display: block;
    color: var(--black-color);
    font-size: var(--normal-font-size);
}

.nav-link:hover{
    color: var(--orange-color);
}
.nav-link.active{
    color: var(--orange-color); 
}

nav ul li a{
    text-decoration: none;
    font-size: 18px;
    position: relative;
}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--orange-color);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
nav ul li a:hover::after,
.nav-link.active::after{
    width: 80%;
    margin-left: 10px;
}

.close-btn{
    position: absolute;
    top: 8%;
    right: 8%;
    background: none;
    border: none;
    font-size: var(--h1-font-size);
    cursor: pointer;
}
.menu-btn{
    background: none;
    border: none;
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    cursor: pointer;
    margin-right: 10px;
}
.menu-active{
    right: 0;
    color: var(--orange-color);
}

.social-icon{
    position: fixed;
    top: 35%;
    right: 0;
    font-size: var(--h1-font-size);
}
.social-icon li{
    transition: transform 0.5s;
}
.social-icon li:hover{
    transform: translateY(-5px);
}

/* ---home page---- */
.box{
    padding-top: 100px;
    grid-template-columns: 1fr;
}
.box-content{
    margin: 20px;
}
.box-img img{
    border-radius: 10px;
    transition: 0.5s;
    box-shadow: 0 10px 20px -10px var(--black-color);
}
.box-img img:hover{
transform: translateY(-5px);
}
.box-content > h1{
    font-size: var(--biggest-font);
}
.custom-btn{
    background-color: var(--orange-color);
    border: none;
    outline: none;
    color: var(--white-color);
    width: 90px;
    height: 35px;
    border-radius: 5px;
    font-size: var(--normal-font-size);
    box-shadow: 0 10px 20px -10px var(--orange-color);
    cursor: pointer;
}
.custom-btn:hover{
    box-shadow: 0 10px 25px -10px var(--orange-color);
    color: var(--grey-color);
}
.let-btn{
    margin-top: 20px;
    width: 150px;
    height: 40px;
}
.let-btn:hover > span{
    margin-right: 10px;
    transition: all .3s ease-in-out;
}
.let-arrow{
    position: absolute;
    opacity: 0;
    transition: all .2s ease-in-out;
}
.let-btn:hover > .let-arrow{
    opacity: 1;
}

/**tablet screen**/
@media screen and (min-width: 769px){
    header{
        height: 120px;
    }
    .close-btn,
    .menu-btn{
        display: none;
    }
    .menu{
        display: flex;
    }
    section{
        height: 100%;
    }
    .container{
        height: 100%;
    }
    .row{
        width: 100%;
    }
    .about-left{
        text-align: center;
    }
    .about-left > img{
        width: 100%;
        align-items: center;
    }
    .box {
        padding-top: 120px; 
    }
    .tab-links {
        font-size: 16px; 
    }
    .services-list div {
        padding: 30px; 
    }
    .work-list .work{
        padding: 20px; 
    }
    .contact-box{
        align-items: center;
    }
}

/*===laptop screen====*/
@media screen and (min-width: 900px){
    .box{
        grid-template-columns: 1fr 1fr;
        place-items: center;
        height: 100vh;
    }
    .box-img{
        order: 1;
    }
    .row{
        padding: 40px 0;
        grid-template-columns: 1fr 1fr; 
    }
    .footer-element{
        display: flex;
        align-items: center;
        flex-direction: column;
    }
}

/* ----------about-------- */
#about{
    padding: 100px 0;
    color: var(--black-color);
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-left{
    flex-basis: 35%;
}
.about-left img{
    width: 100%;
    border-radius: 10px;
    transition: 0.5s;
    box-shadow: 0 10px 20px -10px var(--black-color);
}
.about-left img:hover{
    transform: translateY(-5px);
}
.about-right{
    flex-basis: 60%;
}
.sub-title{
    padding-bottom: 10px;
    font-family: var(--subtitle-font);
    font-size: 60px;
    font-weight: 700;
    color: var(--black-color);
}
.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-titles p:hover{
    color: var(--orange-color);
    transition: all 0.5s ease;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--orange-color);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after{
    width: 50%;

}
.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: var(--orange-color);
    font-size: 14px;
    font-weight: 500;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}

/* -------------Services---------- */
#services{
    padding: 100px 0;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div{
    background: #262626;
    color: var(--grey-color);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 5px;
    transition: background 0.5s, transform 0.5s;
    box-shadow: 0 10px 20px -10px var(--black-color);
}
.services-list i{
    font-size: 50px;
    margin-bottom: 30px;
    justify-content: center;
}
.services-list h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list a{
    text-decoration: none;
    color: var(--white-color);
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}
.services-list a:hover{
    transform: scale(1.1);
}
.services-list div:hover{
    background-color: var(--orange-color);
    transform: translateY(-10px);
}

/* ----------portfolio--------- */
#portfolio{
    padding: 100px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.work{
    height: 80%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    color: var(--grey-color);
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(255, 107, 53, .5), #ff6633);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color: var(--orange-color);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--orange-color);
    padding: 14px 50px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--black-color);
    transition: background 0.5s;
}
.btn:hover{
    background: var(--orange-color);
}

/* ----------contact--------- */

#contact{
    padding: 100px 0;
}
.contact-left{
    flex-basis: 50%;
}
.contact-left p i{
    color: var(--orange-color);
    margin-right: 15px;
    font-size: 25px;
}
.contact-left a{
    color: var(--orange-color);
}
.download-btn{
    width: 35%;
    height: 40px;
}

.contact-right{
    flex-basis: 50%;
}
.contact-box{
    margin-left: 20px;
    padding: 60px 0;
    width: 100%;
    max-width: 500px;
}
.box-field{
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border: 2px solid var(--black-color);
    border-radius: 5px;
    padding-left: 10px;
    padding: 2px;
}
.box-field > input{
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    padding-left: 10px;
    font-family: var(--bigger-font);
}
.box-text-field{
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border: 2px solid var(--black-color);
    border-radius: 5px;
    padding-left: 10px;
    padding: 2px;
}
.box-text-field > .text-area{
    resize: none;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    padding-left: 10px;
    font-family: var(--bigger-font);
}
.box-text-field i{
    margin-top: 5px;
    align-self: self-start;
}
.submit-btn{
    width: 100%;
    margin-top: 10px;
    height: 40px;
}

.loader {
    border: 8px dotted var(--grey-color); 
    border-top: 8px dotted #3498db; 
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    margin-top: -35px;
    margin-right: 10px;
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#msg{
    margin-top: 25px;
}

footer{
    background-color: var(--black-color);
    color: var(--white-color);
    padding: 50px 0;
}
.footer-container{
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.footer-logo{
    color: var(--white-color);
    padding-bottom: 10px;
    display: block;
}
footer h3{
    margin-bottom: 10px;
    font-size: var(--h3-font-size);
    text-align: left;
    width: 100%;
}
footer a{
    color: var(--grey--color)
}
footer li a:hover{
    color: var(--orange-color);
}

.email-input-box{
    width: 100%;
    height: 45px;
    background-color: var(--white-color);
    display: flex;
    border-radius: 5px;
}
.email-input-box > input{
    width: 100%;
    border: none;
    outline: none;
    padding-left: 10px; 
    font-family: var(--body-font);
}
.email-btn{
    width: 20%;
    border: none;
    outline: none;
    background-color: var(--orange-color);
    font-weight: var(--font-medium);
    font-size: var(--normal-font-size);
    border-radius: 5px;
    cursor: pointer;
}
footer .icons{
    margin-left: 15px;
    color: var(--grey-color);
}
.copyright {
    background: var(--black-color);
    color: var(--white-color);
    justify-content: center;
    align-items: center; 
    font-size: 12px;
    display: flex; 
    height: 45px; 
    box-shadow: 0 0 10px  rgba(255, 255, 255, .2);
}