* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

:root {
    /* colors */
    --white: hsl(255, 50%, 96%);
    --red: #E60023;
    --yellow: #FFDD00;
    --gray: #666666;
    --black: hsl(0, 0%, 0%);

    /* fonts */
    --ff-secondary: 'Montserrat', sans-serif;
    --ff-primary: 'Lato', sans-serif;
    --ff-accent: 'Pacifico', cursive;
}

.cta {
    background: var(--yellow);
    padding: 18px 32px;
    border-radius: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-cta:hover {
    gap: 18px;
    transition: gap .3s ease-in-out;
}

section {
    padding: 2rem 10%;
    z-index: 10;
}

.section-title {
    display: flex;
    align-items: end;
    gap: 32px;
    width: fit-content;
}

.section-title h1 {
    font-family: var(--ff-secondary);
    color: var(--red);
    font-size: 32px;
    line-height: 1;
}

.section-title a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    color: var(--gray);
    border-bottom: 2px solid var(--gray);
}

.section-title a > i {
    color: var(--red);
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* resets */
body {
    width: 100%;
    overflow-x: hidden;
}

a, li {
    text-decoration: none;
    list-style: none;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
}


/* home section */

.main-section {
    width: 100%;
    height: 96svh;
    background: var(--red);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

/* navigation menu */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 42px;
    z-index: 100;
}

.nav-bar .navlinks {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-bar .navlinks a {
    color: var(--white);
    font-size: 18px;
}

.nav-bar .navlinks a:hover {
    color: var(--yellow);
}

/* main section content */
.main-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
    padding-inline: 10%;
    width: 100%;
}

.main--left span {
    color: var(--yellow);
    font-family: var(--ff-accent);
    font-size: 18px;
    font-style: italic;
}

.main--left h1 {
    font-size: 42px;
    font-family: var(--ff-secondary);
    color: var(--white);
}

.main--left p {
    padding-block: 2rem 2.5rem;
    line-height: 1.5;
    color: var(--white);
    font-size: 18px;
}



.main--right {
    height: 96svh;
    width: 100%;
}

.main--right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    top: -170px;
}



/* product section */
.product {
    position: relative;
    z-index: 100;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-block: 32px;
}

.product-grid .product-card {
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 24px;
}

.product-card {
    cursor: pointer;
}

.product-card img {
    position: relative;
    left: -50px;
}

.product-card > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card h3 {
    font-weight: 400;
    font-size: 20px;
    color: var(--gray);
}

.product-card .rating {
    color: var(--yellow);
}

/* how it works  */
.hiw-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding-block: 2rem;
}


.hiw--right {
    display: flex;
    align-items: start;
    gap: 32px;
}

.hiw--right .tl {
    display: flex;
    align-items: start;
    position: relative;
}

.hiw--right .tl .line {
    width: 1px;
    height: 340px;
    background-color: var(--gray);
}

.hiw--right .tl .step-number {
    position: absolute;
    left: -15px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 58px;
}

.hiw--right .tl .step-number div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    position: relative;
}

.hiw--right .tl .step-number div:nth-child(2) {
    top: -2px;
}
.hiw--right .tl .step-number div:nth-child(3) {
    top: 18px;
}

.hiw--right .tl .step-number div:last-child {
    top: 42px;
}

.hiw--right .steps {
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 24px;
}

.hiw--right .steps h3 {
    font-family: var(--ff-secondary);
}

.hiw--right .steps p {
    font-family: var(--ff-primary);
    color: var(--gray);
    padding-top: 4px;
}













/* tab designs */
@media (max-width: 760px) {
    /* main section */
    .main-section {
        height: auto;
    }

    /* main container */
    .main-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .main--right img {
        top: 0;
    }

    /* hiw */
    .hiw-container {
        grid-template-columns: 1fr;
    }

    .hiw--right .tl .line {
        height: 350px;
    }

    .hiw--right .tl .step-number div:nth-child(3) {
        top: 38px;
    }

    .hiw--right .tl .step-number div:last-child {
        top: 54px;
    }
}

/* mobile design */
@media (max-width: 480px) {
    /* navbar */
    .navbar {
        padding: 32px 42px;
    }

    /* main container */
    .main-container {
        padding-inline: 5%;
    }

    

    /* hiw */
    .hiw--right .tl .line {
        height: 500px;
    }

    .hiw--right .tl .step-number div:nth-child(2) {
        top: 18px;
    }

    .hiw--right .tl .step-number div:nth-child(3) {
        top: 120px;
    }

    .hiw--right .tl .step-number div:last-child {
        top: 180px;
    }
}