@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

:root {
    --dark: #1f1f26;
    --graylight: #f9f9f9;
    --seablue: #1ca9c9;

}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Comfortaa', cursive;
}

body {
    line-height: 1.6;
}

/* Utility Class and stylings*/
img {
    width: 100%;
    display: block;
}

.container {
    padding: 5rem 1rem;
}

.text {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 400;
    opacity: 0.7;
}

.btn {
    margin: 25px 0;
    text-transform: uppercase;
    background: var(--dark);
    color: #fff;
    border:1.5px solid var(--dark);
    font-size: 14px;
    padding: 12px 26px;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    
} 
.btn:hover{
    color:var(--seablue);
}

/* Header */

.header{
    min-height: 100vh;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
.head-top{
    color: #fff;
    display: flex;
    justify-content: space-between;
    width: 90vw;
    margin:0 auto;
    padding: 18px 0;
    /* flex-direction: column; */
}
.head-body{
    flex: 1;
    background: var(--graylight);
}
.brand-name{
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.4s ease;
}
.brand-name span{
    margin-left: 3px;
    background: #fff;
    color: var(--dark);
    padding: 5px 10px;
    transition: background 0.5s ease;
}
.brand-name:hover{
    color: var(--seablue);
}
.brand-name:hover span{
    background: var(--seablue);
}
.head-icon{
    margin-left: 30px;
    cursor: pointer;
    transition: color 0.4s linear;
    font-size: 20px;
}
.head-icon:hover{
    color: var(--seablue);
}
.head-body{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: #dedee4;
    background-image: linear-gradient(45deg,#dedee4 0%,#f9f9f9);
}
.head-body > div{
    margin: 16px;

}
.head-body-content{
    text-align: center;
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
}
.head-body-img img{
    width: 60%;
    margin: 0 auto;
}
.head-title{
    font-size: 42px;
    text-transform: capitalize;
    line-height: 1.5;
    padding: 10px 0;
    font-family: fantasy;
    word-spacing: 17px;
}
/* title */
.title{
    margin: 30px 0;
}
.title h4{
    text-transform: uppercase;
    
}
.title h2{
    text-transform: capitalize;
    font-size: 28px;
    font-weight: 600;
    font-family: monospace;
    padding: 5px 0;
}
/* ******* */
/* trend */
.trend-item{
    background: var(--graylight);
    margin: 40px 0;
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    transition: all 0.3s ease-in-out; 
}

.trend-item:hover{
    /* -webkit-box-shadow:0px 9px 10px -10px rgba(208,208,208,1);
    -moz-box-shadow:0px 9px 10px -10px rgba(208,208,208,1); */
    box-shadow: 0px 18px 20px -10px rgba(208,208,208,1);
}
.trend-item:nth-child(3) img{
    width: 50%;
    margin: 0 auto;
}
.trend-item-content{
    padding: 16px 0;
    line-height: 1.9;
}
.trend-item-content h4:first-of-type{
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
    opacity: 0.8;
}
.trend-item-content h4:last-of-type{
    font-weight: 600;
    font-size: 20px;
}
.chevron-icon{
    background: var(--dark);
    color: #fff;
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 16px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.chevron-icon:hover{
    background: var(--seablue);
}

/* featured */
.underline{
    height: 5px;
    width: 80%;
    background: var(--graylight);
    margin: 0 auto;
    border-radius: 15px;
}
.featured-btns button:last-child{
    background:white;
    color: var(--dark);
    margin: 10px;
}
.featured-btns button:last-child:hover{
    color: var(--seablue);
    border-color: var(--seablue);
}
.featured-item >div{
    padding: 24px;
}
.featured-item .item-price{
    font-weight: 700;
    font-size: 20px;
}
.featured-item{
    margin-bottom: 36px;
}
.featured-item:nth-child(even){
    background: var(--graylight);
}
.featured-item:last-child{
    margin-bottom: 0;
}
/* blog */

.blog-item{
    background: var(--graylight);
    margin: 30px 0;
}
.blog-item:last-of-type{
    margin-bottom: 0;
}
.blog-item-img{
    overflow: hidden;
}
.blog-item-img img{
    transition: transform 0.4s ease-in-out;
}
.blog-item-img:hover img{
    transform: scale(1.1);
}
.blog-item-content{
    padding:28px;
}
.blog-item-content a{
    text-transform: capitalize;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
    display: block;
    padding: 6px 0;
    color: var(--dark);
}
/* newsletter */
.newsletters .container{
    padding-top: 0;
}
.newsletter-content{
    background: var(--dark);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.newsletters .title{
    text-align: center;
}
.form-group{
    margin: 30px 0;
}
.form-control, .subscribe-btn{
    font-size: 20px;
    padding: 7px 10px;
    border: none;
    display: block;
    outline: 0;
    /* text-transform: capitalize; */
}
.form-control{
    color: var(--dark);
    font-weight: 400;
    padding: 16px 28px;
    border-radius: 50px;
    width: 100%;
}
.subscribe-btn{
    background:var(--dark);
    color: #fff;
    border: 1.5px solid var(--graylight);
    display: block;
    padding: 10px 28px;
    margin: 22px auto;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.5s ease;
}
.subscribe-btn:hover{
    color:var(--seablue);
    border-color: var(--seablue);
}
.circle-box {
    border: 4px solid #fff;
    height: 300px;
    width: 300px;
    border-radius: 50%;
    position: absolute;
}
.circle-box.cirle-1{
    top:-150px;
    left: -150px;
}
.circle-box.cirle-2{
    bottom:-150px;
    right: -150px;
}

/* footer */
.footer{
    text-align: center;
    background: var(--dark);
}
.footer .brand-name{
    margin: 24px 0;
}
.footer a{
    text-decoration: none;
    color: var(--dark);
}
.footer a:hover{
    opacity: 0.7;
}
.footer ul li{
    list-style: none;
    padding: 2px 0;
}
.footer a, .footer p{
    text-transform: capitalize;
    font-size: 15px;
    color:#fff;
    font-weight: 500;
    opacity: 0.9;
}
.footer h3{
    text-transform: uppercase;
    padding: 12px 0;
    color: var(--graylight);
}
.footer-icons{
    display: flex;
    justify-content: center;
}
.footer-icons li{
    margin: 10px;
}

/* media queries */

@media screen and (min-width: 768px){
    .trend-grid{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 32px;
    }
    .trend-item{
        margin: 0;
    }
    .featured-item{
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .featured-item:nth-child(even) .featured-item-img{
        order: 2;
    }
    .blog-grid{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 16px;
    }
    .footer{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-row-gap: 16px;
    }

}
@media screen and (min-width:992px){
    .container{
        padding: 5rem 10rem;
    }
    .head-body-content{
        flex:1;
        height: auto;
        align-items: flex-start;
        text-align: left;

    }
    .head-body-img{
        flex: 1;
    }
    
    .head-body-img img{
        width: 100%
    };
    .blog-grid{
        grid-gap: 33px;
    }
    .footer{
     grid-template-columns: 1fr 1fr 1fr 1fr;   
    }
}
@media screen and (min-width:1200px){
    .trend-grid{
        grid-template-columns: 1fr 1fr 1fr;
    }
    .featured-item{
        grid-gap: 20px;
    }
}

@media screen and (max-width:400px){
    .head-top{
        flex-direction: column;
    
    }
    .head-icon:first-child{
        margin-left: 0;
    }
    .brand-name{
        margin-bottom: 20px;
    }
    .head-body-content h1{
        font-size: 30px;
    }
    .head-body-content p{
        display: none;
    }
    .head-body.container{
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
    .featured-btns{
        display: flex;
        flex-direction: column;
    }
    .featured-btns button{
        width: 100%;
        margin: 8px 0!important;
    }
    .form-control, .subscribe-btn{
        font-size: 16px;
    }
    .form-control{
        width: 255px;
    }
    .circle-box{
        height: 150px;
        width: 150px;
    }
    .circle-box.circle-1{
        top: -75px;
        left: -75px;
    }
    .circle-box.circle-2{
        bottom: -75px;
        right: -75px;
    }
}
    
   