*{
    margin: 0;
    padding: 0;
    box-sizing: border-box  ;
}


html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: 'Poppins';
    background-color: #ffddba;
}

.wrapper{
    max-width: 1400px;
    margin: 0 auto;
    
}

/*about*/

.wrapper-about{
    max-width: 65%;
    margin: 0 auto;
    padding: auto 30em;
    align-content: center;
    justify-content: center;
}

.wrapper-about img{
    border-radius: 8px;
    width: 30em;
    height: 30em;
    margin-left: 40%;
}



.about-txt{
    padding-top: 10em;
    border-radius: 2em;
    justify-content: center;

}

.about-txt h1{
    font-size: 5rem;

}

.about-txt p{
    padding-top: 1.5em;
    font-size: 2.5rem;
    text-align: justify;
    row-gap: 2em;

}

.about-img img{
    border-radius: 30%;
    transition: transform 1.5s ease-in-out , border-radius 1s ease-out;
 }

 .about-img img:hover{
    transform: scale(1.2);
    border-radius: 0%;
 }


/*navbar*/

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FA7268;
    padding: 1em;
}

header img{
    width: 96px; 
    margin-left: 3em;   
}

nav{
    margin: 4em;
}

nav ul{
    list-style-type: none;
    display: flex;
    gap: 4.1rem;
    margin: 0;
}

nav a{
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    font-size: 1.6rem;
    position: relative;
}



nav a.active::before{
    position: absolute;
    content: "";
    width: 35%;
    height: 1px;
    border-bottom:  5px solid black;
    bottom: -7px;

}

nav li a::before{
    position: absolute;
    content: "";
    width: 0%;
    height: 1px;
    border-bottom:  5px solid black;
    bottom: -7px;
    transition: width .4s;
}

/* hero section*/

main{
    display: flex;
    gap: 8em;
    margin-top: 11em;
    height: 80%;
}

.left-col{
    width: 45%;
}

.right-col{
    flex-grow: 1;
}

h1{
    font-family: 5.2rem;
    font-family: 'plafair Display';
    font-weight: normal;
    margin: 0;
    font-size: 4rem;
}

.subhead{
    font-size: 1.8rem;
}

.cta-btns{
    margin: 5em 0;
}

.cta-btns, .secondary-cta{
    display: flex;
    gap:  2em;
}

.primary-cta{
    background-color:  #FA7268;
    font-size: 1.8rem;
    font-weight: bold;
    color: black ;
    text-decoration: none;
    border-radius: 1.9em;
    padding: 1em 2em;

}

.secondary-cta{
    font-size: 1.8rem;
    text-decoration: none   ;
    color: black;
    display: block;
    padding:1em 0;
    
}

.secondary-cta svg{
    width: 20px;
    transition: transform .3s;
    
}

.news{
    display: flex;
    gap: 3em;
    padding: 5em;
    border-radius: .8em;
    position: relative;
    border: 1px solid black;
}

.news::before{
    position: absolute;
    content: "";
    background: url('confetti.svg');
    width: 100px;
    height: 100px;      
    top: -20px;
    left: -20px;
    z-index: 2;
}

p.employees{
    font-size: 3.3rem;
    margin: 0;
    font-weight: 300;
    line-height: 100%;
}

p.details{
    font-size: 1.4rem ;
    margin: 0;
}

/* right column gallery*/

.right-col{
    display: grid;
    gap: 2.3em;
    grid-template-columns: auto auto;
    grid-template-areas: 
        "left right"
        "left buttom";
}

.card{
    border-radius:  .8em;
    padding: 1.1em;
    display: flex;
    align-items: end;
    background-size: 150% ;
    transition: background-size 800ms;

}

.card1{
    grid-area: left;
    background-image: url(img/street2.jpg);
    
}

.card2{
    background-image: url(img/street1.jpg ) ;
}

.card3{
    background-image: url(img/street4.jpg ) ;
}

.card-details{
    background: whitesmoke;
    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;
}

/*micrinteractions*/

nav ul li a:hover::before{
    width: 35%;
}

.primary-cta:hover{
    background: maroon;
}

.secondary-cta:hover svg{
    transform: translateX(10px) ;
}

.secondary-cta:hover{
    text-decoration: underline;
}

.card:hover{
    background-size: 160%;
}

.card:hover .card-details{
    transform: translateY(-20px);
}

/*intro animation */

.overlay{
    position: absolute ;
    z-index: 999;
    background: #FA7268 ;
    width: 100%;
    height: 100%;
    animation:  reveal 2s ease-in forwards;
    transform-origin: bottom ;
}

@keyframes reveal{
    from{
        transform: scaleY(0.9);
    }
    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);
    }
}

.logo-wrapper{
    margin-top: 12em;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items:flex-start;
    width: 100%;
    justify-content:space-evenly;
}

.logo-wrapper img{
    max-width: 10%;
    max-height: 10%;
    white-space: nowrap;
    animation: move-rtl 15s linear infinite;
    padding-right: 20px;
}

@keyframes move-rtl{
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-90%);
    }
}


section{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    padding: 100px 20vw;
}

.spacer{
    aspect-ratio:  960/300  ;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center ;
    background-size: cover;    
}

.layer1{
    background-image: url(/toplayer.svg);
    padding-top: 1em;
    
}

.layer2{
    background-image: url(/bttmlayer.svg);
    
}


.contact-main{
    margin: 20em auto 30em 15% ;
    
}

/*project slider*/



.wrapper-slider {
    width: 100%;
    height: 60em ;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-slider {
    height: 500px;
    display: flex;
    text-wrap: nowrap;
    justify-content: start;
}

.card-slider {
    width: 80px;
    border-radius: .75rem;
    background-size: cover;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2rem;
    margin: 0 10px;
    display: flex;
    align-items: flex-end;
    transition: .6s cubic-bezier(.28, -0.03, 0, .99);
    box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
}

.card-slider > .row {
    color: white;
    display: flex;
    flex-wrap: wrap;
}

.card-slider > .row > .icon {
    background: #223;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.card-slider > .row > .description {
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 80px;
    width: 520px;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: .3s;
    transition: all .3s ease;
}

.description p {
    color: whitesmoke;
    padding-top: 5px;
    font-size: 5em;
    text-transform: uppercase;
}

.description h4 {
    text-transform: uppercase;
}

input {
    display: none;
}

input:checked + label {
    width: 800px;
}

input:checked + label .description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

label[for=c1] {
    background-image: url(/img/street1.jpg);
}

label[for=c2] {
    background-image: url(/img/street2.jpg);
}

label[for=c3] {
    background-image: url(/img/street3.jpg);
}

label[for=c4] {
    background-image: url(/img/street4.jpg);
}
label[for=c5] {
    background-image: url(/img/honda.jpg);
}

.text-slider {
    text-transform: uppercase;
    gap: 2em;
    padding-bottom: 5fem; /* Adjusted padding to bring the text closer */
    margin-top: 20em; /* Added margin-top to create some space above */
}

.text-slider p{
    font-size: 12px;
}