/* fonts */
@import url('https://fonts.cdnfonts.com/css/ananda-black');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* root */
:root {
    background: #eff4fd;
    font-family: sans-serif;
}

/* reset */
* {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}


/* NAV CSS */
header {
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 5px;
}

nav {
    display: flex;
    width: 84%;
    margin: auto;
    padding: 10px;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 280px;
    height: auto;
    cursor: pointer;
}

nav ul li {
    display: inline-block;
    margin: 10px 9px;
}

nav ul li a {
    color: #000;
    font-weight: bold;
    padding: 18px 16px;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: #633179;
    border-bottom: 4px solid #30BCED;
    transition: color 0.6s ease;
    transition: border 0.2s ease;
}

nav ul li .active {
    color: #633179;
    border-bottom: 4px solid #30BCED;
}

nav .icon {
    display: none;

}

/* nav responsive */
@media screen and (max-width: 900px) {

    nav ul {
        display: none;
    }

    nav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 900px) {
    nav.responsive {
        position: relative;
    }

    nav.responsive a.logo {
        position: absolute;
        right: 0;
        top: 0;
    }

    nav.responsive ul {
        float: none;
        display: block;
        text-align: left;
    }
}

/* Home Page Body CSS */
.details {
    margin-left: 8%;
    margin-top: 15%;
}

.details .title {
    font-size: 50px;
    color: #212121;
    margin-bottom: 20px;
}

.title>span {
    font-family: 'Ananda', sans-serif;
    text-decoration: underline;
}

.title span:nth-child(2) {
    color: #492958;
}

p {
    color: #555;
    line-height: 22px;
}

.details a {
    background: rgba(33, 33, 33, 0.8);
    padding: 10px 18px;
    font-weight: bold;
    color: #fff;
    display: inline-block;
    margin: 30px 0;
    border-radius: 5px;
    transition: background 0.6s ease;
}

.details a:hover {
    background: #612c77;
}

.images {
    width: 45%;
    height: 80%;
    position: absolute;
    bottom: 0;
    right: 100px;
}

.images img {
    height: 100%;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: bottom 1s, left 1s;
}

.images:hover .shape {
    bottom: 20px;
}

.images:hover .pic {
    left: 45%;
}

.link {
    margin-left: 8%;
    margin-top: 100px;
}

.link a {
    font-size: 30px;
    color: rgba(33, 33, 33, 0.9);
    margin-right: 20px;
    transition: color 0.6s ease;
}

.link a:hover {
    color: #612c77;
}


main {
    margin-top: 30px;
    text-align: center;
}

.heading {

    color: #612c77;
    font-size: 50px;
    text-align: center;
}

/* Contact Page Body CSS */
.contact {
    width: 1100px;
    height: auto;
    margin: 5% auto;
    box-shadow: 0px 0px 10px #C8C7D9;
    position: relative;

}

.left-content .content-block {
    color: #555555;
    font-weight: 500;
    font-size: 18px;
    padding-top: 10px;
    line-height: 1;

}

.left-content {
    width: 45%;
    float: left;
    padding-top: 100px;
}

.contact-form {
    width: 53%;
    margin-left: 2%;
    float: left;

}

input,
textarea {
    width: 330px;
    padding: 3%;
    margin: 2% 8%;
    color: #242424;
}

input:valid {
    background-color: ivory;
    border: none;
    outline: 2px solid deepskyblue;
    border-radius: 5px;
    accent-color: gold;

}

input:not(:valid) {
    background-color: ivory;
    border: none;
    outline: 2px solid rgb(255, 0, 0);
    border-radius: 5px;
    accent-color: gold;
}

.btn-send {
    background: #612c77;
    width: 140px;
    height: 60px;
    color: #f8f8f8;
    font-weight: 700;
    margin: 2% 8%;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;

}

.btn-send:hover {
    background: #30BCED;
}

/*About Page Body CSS */
div.card-back {
    align-items: center;
    background-color: #30BCED;
    border-radius: 20px;
    display: flex;
    margin: 3% auto;
    height: 360px;
    width: 780px;
}

div.card-front {
    border-radius: 18px;
    margin-left: auto;
    margin-right: auto;
    width: 760px;
    height: 340px;
    background-image: linear-gradient(to left bottom, #482857, #5a337b, #6841a4, #6f51d0, #6c63ff);
}

div.image-wrapper {
    align-items: center;
    display: grid;
    grid-template-columns: auto auto;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    height: 100%;
}

div.card-paragraph {
    font-family: 'Montserrat', sans-serif;
    color: #e7e7e7;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    padding-left: 2%;
}

.comp img {
    border-radius: 50%;
    width: 8%;
}

.comp p {
    padding-top: 10px;
    size: 24px;
    font-weight: 600;
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

.projects .heading {
    padding-top: 40px;
}

.projects .pr1 {
    padding-top: 20px;
    width: 1000px;
}

/* Blog Page Body CSS */
#blog {
    display: flex;
    flex-direction: column;
    padding: 20px;


}

.blog-container {
    display: flex;
    justify-content: center;
    margin: 20px 0px;
}

.blog-box {
    width: 350px;
    background-color: #30BCED;
    margin: 20px 20px;

}

.blog-img {
    width: 100%;
    height: auto;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.blog-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    font-weight: 200;
}

.blog-text time {
    color: #f33c3c;
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
}

.blog-text a {
    color: #0f0f0f;
}

.blog-text a:hover {
    color: #c74242;
    transition: all ease 0.3s;
}


.blog-text p {
    color: #ffffff;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 20px 0px;
}

@media(max-width:1250px) {

    .blog-box {
        width: 300px;
    }
}

@media(max-width:1200px) {
    .images {
        width: 35%;
    }

}

@media(max-width:1100px) {
    .blog-box {
        width: 70%;
    }

    .images {
        width: 25%;
    }
}

@media(max-width:1100px) {

    .images {
        width: 20%;
    }
}

@media(max-width:1000px) {

    .images img {
        height: 50%;
    }
}


@media(max-width:550px) {

    .blog-box {
        margin: 20px 10px;
        width: 100%;
    }

    #blog {
        padding: 20px;
    }

    .images {
        display: none;
    }
}