@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital@1&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Andika&display=swap');

/* sidebar hide in large screen */
nav .fa-solid {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: white;
    overflow-x: hidden;
    padding-top: 80px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

#home {
    width: 100%;
    height: 100vh;
    background-image: url(img/bg\ new.jpg);
    background-size: cover;
    /* background-size: 1268px; */
    /* background-repeat: no-repeat; */
    background-position: center;


}

.container {
    padding: 10px 8%;
    width: 100%;

}

/* 
#sidemenu {
    position: fixed;
    right: -100px;
    top: 0;
    width: 220px;
    height: 100vh;
    transition: right 0.5s ease;
} */

#sidemenu {
    background: rgba(20, 20, 20, 0.95);
    position: fixed;
    top: 0;
    right: -180px;
    width: 180px;
    /* height: 100vh; */
    padding-top: 30px;
    z-index: 999;
    transition: right 0.4s ease;
}

#sidemenu li {
    display: block;
    margin: 20px;
}

#sidemenu li a {
    font-size: 20px;
    color: white;
    text-decoration: none;
}

#sidemenu .fa-xmark {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    cursor: pointer;
    color: rgb(235, 13, 13);
}

.fa-bars {
    font-size: 28px;
    cursor: pointer;
    color: red;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.logo {
    width: 25px;
    filter: invert(100);
    display: flex;
    height: auto;
    margin: 0;
}

.logo:hover {
    border: 2px dotted rgb(233, 7, 7);
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: rgb(252, 252, 252);
    text-decoration: none;
    /* margin: 30px; */
    font-size: 18px;
    /* font-family: 'Crimson Text', serif; */
    position: relative;
    font-weight: bold;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: rgb(255, 255, 255);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.8s;
}

nav ul li a:hover::after {
    width: 100% !important;
}

nav ul li a:hover {
    color: rgb(255, 0, 0) !important;
}

.text {
    margin-top: 20%;
    font-size: 27px;
    padding-top: 100px;
}

.text h2 {
    /* font-family: cursive; */
    /* font-size: 60px; */
    margin-top: 20px;
    line-height: 1.3;
}

.text h2 span1:hover {
    color: rgb(255, 9, 9);
}

.text h2 span2 {
    color: rgb(238, 62, 62);
}

.text span2:hover {
    color: rgb(251, 249, 249);
}

.text h2 span3 {
    padding-left: 15%;
}

.text h2 span3:hover {
    color: rgb(244, 5, 5);
}


/* --------about------------- */

#about {
    padding: 60px 0;

}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about1 {
    flex-basis: 32%;
}

.about1 img {
    width: 100%;

}

.about2 {
    flex-basis: 67%;
    font-family: 'Andika', sans-serif;
}


.about2 span {
    color: rgb(255, 15, 15);
    /* font-size: 18px; */
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.about2 span2 {
    color: rgb(72, 221, 234);
    /* font-size: 18px; */
    font-family: Arial, Helvetica, sans-serif;
}

.about2 span1 {
    /* font-family: cursive; */
    margin: 3%;
}

.sub {
    font-size: 50px;
    font-weight: 500;
}

.tab {
    display: flex;
    margin: 20px 80px;
}

.links {
    margin-right: 17%;
    font-size: 25px;
    cursor: pointer;
    position: relative;
}

.links::after {
    content: '';
    width: 9%;
    height: 4px;
    background: rgb(255, 0, 0);
    position: absolute;
    left: 2%;
    bottom: -8px;
    transition: 3s;
}

.links.active-link::after {
    width: 100%;
}

.contents ul li {
    list-style: none;
    margin: 10px 0;
    font-size: 17px;
}

.contents ul li span {
    font-size: 20px;
    color: rgb(255, 0, 0);

}

.contents {
    display: none;
}

.contents.active-tab {
    display: block;
}

/* ----------- services--------- */

#services {
    padding: 60px 0;
    font-family: 'Andika', sans-serif;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 10px;
    font-size: 16px;
    /* font-weight: 300; */
    border-radius: 20px;
    transition: background 0.8s, tranform 0.8s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 20px;
}

.services-list div h2 {
    font-size: 25px;
    font-weight: 1200;
    margin-bottom: 8px;
}

.services-list div a {
    text-decoration: none;
    color: rgb(65, 192, 247);
    font-size: 20px;
    margin-top: 10px;
    margin-left: 2%;
    display: inline-block;
}

.services-list div:hover {
    background: linear-gradient(rgb(247, 1, 1), rgb(0, 0, 0));
    background-color: #e89bf4;
    transform: translate(5px);
}

/*--------------------- portfolio-------------- */
#portfolio {
    padding: 60px 0;
    font-family: 'Andika', sans-serif;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 25px;
    margin-top: 50px;
}

.work {
    border: radius 12px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 20px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #e00f0f);
    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: 15px;
    transition: height 0.3s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 30px;
}

.layer a {
    margin-top: 40px;
    text-decoration: none;
    font-size: 30px;
    line-height: 60px;
    background: wheat;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(2.1);
}

.work:hover .layer {
    height: 100%;
}

/* --------------------contact---------------- */
#contact {
    padding: 100px 0;
    font-family: 'Andika', sans-serif;

}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left p {
    margin-top: 20px;
}

.contact-left p a:link {
    color: rgb(255, 255, 255);
    text-decoration-color: #b18080;
}

.contact-left p a:hover {
    color: rgb(227, 0, 0);
}

.contact-left p i {
    color: rgb(227, 0, 0);
    margin-right: 15px;
    font-size: 25px;
}

.icon {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;

}

.icon a {
    text-decoration: none;
    font-size: 34px;
    border-radius: 5px;
    background-color: #535254;
    margin-right: 5px;
    /* padding: 1px; */
    color: rgb(223, 185, 226);
    /* display: inline-block;/0 */
    transition: transform 0.7s;
    text-align: center;
}

.icon a:hover {
    color: rgb(255, 0, 0);
    transform: translate(5px);
}

.btn {
    display: inline-block;
    margin: 50px auto;
    border: 2px solid white;
    padding: 10px 18px;
    color: white;
    transition: background 0.5s;
    border-radius: 20px;
    text-decoration: none;
    font-size: 20px;

}

.btn:hover {
    background: #ff004f;
    color: black;
}

.contact-right form {
    width: 100%;
    margin-top: 5%;

}

#msg {
    color: #fbfffe;
    margin-top: -40px;
    display: block;
}

label input,
label textarea {
    width: 100%;
    border: 0;
    outline: ridge 4px;
    color: rgb(192, 190, 189);
    background: #2e1e1e;
    padding: 15px;
    margin: 15px 0;
    font-size: 18px;
    border-radius: 10px;
}

.btn.btn1 {
    display: inline-block;
    background: black;
    padding: 14px 40px;
    /* border-radius: 6px; */
    text-decoration: none;
    transition: 0.4s;
    margin-top: 25px;
    cursor: pointer;
}

.btn.btn1:hover {
    background: #ff004f;
}

.center {
    margin-bottom: -60.9px;
    width: 100%;
    text-align: center;
    margin-top: -10px;
    font-size: 20px;
    background-color: rgb(43, 44, 44);
    /* padding: 25px 0; */
}

.center span {
    color: rgb(227, 0, 0);
}

.center i {
    color: rgb(227, 0, 0);
}

.center span2 i {
    font-size: 30px;
    background-color: rgb(8, 8, 8);
}

.center span2 i:hover {
    background-color: #fbc3c3;
    transition: background 0.9s;
}

section {
    scroll-margin-top: 80px;
}


/* css for small screen */
/* nav .fa-solid {
    display: none;
} */
/* @media only screen and (max-width:600px) {
    #home {
        background-image: url(img/phone-background.png);
    }



} */
/* DESKTOP NAV FIX */
@media only screen and (min-width: 769px) {
    /* Move logo slightly more left on desktop */

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 5%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
    }

    .logo {
        width: 40px;
        height: auto;
        position: relative;
        top: 10px;
        margin-left: 10px;
        z-index: 1001;
    }

    nav ul {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        width: auto !important;
        height: auto !important;
        padding: 1px !important;
        margin-left: auto;
        flex-direction: row;
        align-items: center;
    }

    nav ul li {
        display: inline-block !important;
        margin: 10px 50px !important;
    }

    nav ul li a {
        font-size: 20px;
        color: white;
    }

    nav .fa-solid {
        display: none !important;
    }
}

/* Mobile transparent navbar */
@media only screen and (max-width: 768px) {

    nav {
        background: transparent !important;
        /* backdrop-filter: none !important; */
        /* box-shadow: none !important; */
        padding: 8px 5% !important;
        height: 60px;

    }

    .logo {
        width: 28px;
        height: auto;
    }

    #sidemenu {
        background: rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

    }
}