html{
    font-size: 62.5%;
}
body{
    margin: 0;
    font-family: Poppins;
}

.wrapper{
    max-width: 1200px;
    margin: 0 auto;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav{
    margin: 4em;
    
}
nav ul{

       list-style-type : none;
       display: flex;
       gap: 4.1em;
       margin: 0;  
}



nav ul li a{
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    font-size: 1.6rem;
    position: relative;
}


nav ul li a.active:before{
    position: absolute;
    content: "";
    width: 35%;
    height: 1px;
    border-bottom: 2px solid black;
    bottom: -6px;
}

nav ul li a:before{
    position: absolute;
    content: "";
    width: 0%;
    height: 1px;
    border-bottom: 2px solid rgb(122, 122, 122);
    bottom: -6px;
    transition: width .3s;
}

main{
    display: flex;
    gap: 10.8em;
    margin-top: 11em;
}

.left-col{
    width: 45%;
    
}

.right-col{
    flex-grow: 1;
}

h1{
    font-size: 5.2rem;
    font-family: 'Playfair Display';
    font-weight: normal;
    margin: 0;
}

.subhead{
    font-size: 1.8rem;
}

.cta-btns {
    margin: 5em 0;
}

.cta-btns, .secondary-cta{
    display: flex;
    gap: 2em;
}

.primary-cta{
    background-color: #F1E2D1;
    font-size: 1.8rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
    border-radius: 1.9em;
    padding: 1em 1em;
}

.secondary-cta{
    background-color: #F1E2D1;
    font-size: 1.8rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
    border-radius: 1.9em;
    padding: 1em 1em;
}

.news{
    display: flex;
    gap: 3em;
    padding: 30px;
    border: 1px solid black;
    border-radius: 0.8em;
    position: relative;
    align-items: center;
}

.news::before {
    position : absolute;
    content: "";
    background-image:url('assets/confetti.svg') ;
    width: 100px;
    height: 100px;
    top: -15px;
    left: -18px;
    z-index: 2;
}

p.employees{
    font-size: 3.3rem;
    margin: 0; 
}

p.details{
    font-size: 1.4rem;
    margin: 0;
}

.right-col{
    display: grid;
    gap: 2.3em;
    grid-template-columns: auto auto;
    grid-template-areas: 
        'left right'
        'left bottom';
}

.card{
    background-color:gray;
    border-radius: .8em;
    padding: 1.1em;
    display: flex;
    align-items: end;
    background-size: 150%;
    transition: background-size 800ms;
}

.card-1{
    grid-area: left;
    background-image: url('assets/clothing1.jpg');
   position: relative;
}
.card-1::before{
    position: absolute;
    content: "";
    background: url('assets/tag.svg') no-repeat ;
    width: 100%;
    height: 100%;
    top: 20px;
    left: -30px;
    pointer-events: none;
}

.card-2{
   
    background-image: url('assets/clothing2.jpg');
}

.card-3{
    
    background-image: url('assets/clothing3.jpg');
}

.card-details{
    background: white;
    border-radius: .6em;
    padding: 2em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 800ms;
}

.card-details a{
    color: black;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
}

.card-details p{
    font-size: 1.4rem;
    margin: 0;
}

p.product-price{
    font-size: 1.8rem;
}

/* Micro Interactions */

nav ul li a:hover:before{
    width: 35%;
}

.primary-cta:hover{
    background: #e2d1bd;
}

.secondary-cta:hover{
    background: #e2d1bd;
}

.card:hover{
    background-size: 160%;
}

.card:hover .card-details{
    transform : translateY(-20px)
}

/* Introduction Animation*/
.overlay{
    position: absolute;
    z-index: 999;
    background: white;
    width: 100%;
    height: 100%;
    animation : reveal 1s ease-in forwards;
    transform-origin: bottom;
}

@keyframes reveal{
    from{
        transform: scaleY(1);
    }
    to{
        transform: scaleY(0);
    }
}

main{
    animation: growIn 2s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
    transform: scale(.4);
}

@keyframes growIn{
    to{
        transform: scale(1);
    }
}
