/****** SETUP ******/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Barlow", sans-serif;
    color: #000;
    padding: 20px;

}

a {
    text-decoration: none;
    color: #000;
}

.header, .container {
    max-width: 1500px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-top: 7vh;

}

#logo {
    max-width: 200px;
    margin-bottom: 50px;
}


/****** CONTAINER ******/
.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 2px;
    grid-row-gap: 30px;
    overflow: hidden;
    border-radius: 5px;
}

/****** ITEM ******/
.image-bg {
    min-height: 50vh;
}

.bottom {
    position: relative;
    background-color: #f2f2f2;
    padding: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    overflow: hidden;
}

.bottom > .red {
    height: 10px;
    width: 0px;
    background-color: #f00;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.4s ease-in-out;
}

.neo-store:hover .bottom > .red, .neo-industry:hover .bottom > .red {
    width: 100%;
}

.neo-store--image, .neo-industry--image {
    position: relative;
    overflow: hidden;
}

/****** NEO Store ******/
.neo-store--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('neo-store--bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

/****** NEO Industry ******/
.neo-industry--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('neo-industry--bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.neo-store:hover .neo-store--image::after, .neo-industry:hover .neo-industry--image::after {
    transform: scale(1.03);
}

/****** FOOTER ******/
footer {
    padding: 75px 0;
    text-align: center;
}


footer #analogy {
    max-width: 170px;
}

/****** ANALOGY LINK ******/
a.anlg-link {
  position: relative;
  text-decoration: none;
  color: inherit;
}

a.anlg-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 6px;
  background: #f00;
  mask: linear-gradient(90deg, #000 0 0);
  mask-size: 0% 100%;
  mask-repeat: no-repeat;
  transition: mask-size 0.35s ease;
}

/****** ANALOGY LINK HOVER ******/
a.anlg-link:hover::after {
  mask-size: 100% 100%;
  color:#f00!important;
}

/****** MEDIA QUERIES ******/
@media screen and (max-width: 981px) {
    .header {
        margin-top: 50px;
    }
    .container {
        grid-template-columns: repeat(1, 1fr);
    }

    .image-bg {
        min-height: 20vh;
    }

    .neo-store, .neo-industry {
        border-radius: 5px;
        overflow: hidden;
    }
}

@media screen and (max-width: 470px) {
    .bottom {
        flex-direction: column;
    }
}