// Variables
$main-color: #ffffff;
$secondary-color: #1D1C20;
$highlight-color: #970C0A;
$text-color: #fff;
$footer-background: #000000;
$footer-text-color: #ffffff;
$link-color: lightseagreen;
$play-store-color: #3ddc84;
$app-store-color: #000;
$hover-play-store-color: #35c377;
$hover-app-store-color: #333;

// Mixins
@mixin border-bottom($color) {
  border-bottom: 2px solid $color;
}

// Global Styles
body {
  font-family: 'CerebriSans', sans-serif;
}

h1, h3 {
  display: flex;
  flex-direction: row;
  @include border-bottom($main-color);
  margin: 0;
  color: $main-color;
}

// Section Styles
.con {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.card-con {
  display: flex;
  flex-direction: column;
  width: 400px;
  margin-bottom: 60px;

  > div {
    box-shadow: 0 15px 20px 0 rgba(0, 0, 0, 0.5);
  }
}

.card-image {
  height: 250px;

  > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
  }
}

.card-text {
  margin: -30px auto;
  margin-bottom: -50px;
  height: 400px;
  width: 300px;
  background-color: $secondary-color;
  color: $text-color;
  padding: 20px;
}

.card-meal-type {
  font-style: italic;
}

.card-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  margin-top: 5px;
}

.card-body {
  font-size: 1.25rem;
}

.card-price {
  width: 100px;
  height: 100px;
  background-color: $highlight-color;
  color: $text-color;
  margin-left: auto;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-one-line {
  position: relative;
  width: max-content;
  height: 35px;
  padding: 0 32px;
  border: 1px solid #c6ac83;
  display: inline-block;
  align-items: center;
  justify-content: center;
  color: $text-color;
  font-family: 'CerebriSans', sans-serif;
  font-size: 13px;
  line-height: 25px;
  font-weight: 500;
  letter-spacing: 2px;
  background-size: 300%;
  background-image: linear-gradient(340deg, #e6c9a2 50%, #fff0 50%);
}

.txt p {
  color: $text-color;
}

.section-slogans {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  z-index: 1;
  transform: translateY(-30%);
  color: wheat;
  overflow: hidden;

  h3 {
    color: $main-color;
    font-family: 'oswald', sans-serif;
    font-size: 50px;
  }
}

// Footer Styles
.footer-distributed {
  background: $footer-background;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  font: bold 16px sans-serif;
  padding: 55px 50px;

  .footer-left,
  .footer-center,
  .footer-right {
    display: inline-block;
    vertical-align: top;
  }

  .footer-left {
    width: 40%;

    h3 {
      color: $main-color;
      font: normal 36px 'Open Sans', cursive;
      margin: 0;

      span {
        color: $link-color;
      }
    }

    .footer-links {
      color: $main-color;
      margin: 20px 0 12px;
      padding: 0;

      a {
        display: inline-block;
        line-height: 1.8;
        font-weight: 400;
        text-decoration: none;
        color: inherit;

        &:before {
          content: "|";
          font-weight: 300;
          font-size: 20px;
          color: $main-color;
          display: inline-block;
          padding-right: 5px;
        }
      }

      .link-1:before {
        content: none;
      }
    }

    .footer-company-name {
      color: #b2b2b2;
      font-size: 14px;
      font-weight: normal;
      margin: 0;
    }
  }

  .footer-center {
    width: 35%;

    i {
      background-color: $footer-background;
      color: $footer-text-color;
      font-size: 25px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      text-align: center;
      line-height: 42px;
      margin: 10px 15px;
      vertical-align: middle;

      &.fa-envelope {
        font-size: 17px;
        line-height: 38px;
      }
    }

    p {
      display: inline-block;
      color: $footer-text-color;
      font-weight: 400;
      vertical-align: middle;
      margin: 0;

      span {
        display: block;
        font-weight: normal;
        font-size: 14px;
        line-height: 2;
      }

      a {
        color: $link-color;
        text-decoration: none;
      }
    }
  }

  .footer-right {
    width: 20%;

    .footer-company-about {
      line-height: 20px;
      color: #92999f;
      font-size: 13px;
      font-weight: normal;
      margin: 0;

      span {
        display: block;
        color: $main-color;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 20px;
      }
    }
  }
}

// Media Queries
@media (max-width: 880px) {
  .footer-distributed {
    font: bold 14px sans-serif;

    .footer-left,
    .footer-center,
    .footer-right {
      display: block;
      width: 100%;
      margin-bottom: 40px;
      text-align: center;
    }

    .footer-center i {
      margin-left: 0;
    }
  }
}

@media (max-width: 768px) {
  .app-download-section {
    padding: 80px 20px;
  }

  h1 {
    font-size: 2em;
  }

  p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .app-download-section {
    padding: 60px 20px;
  }

  h1 {
    font-size: 1.5em;
  }

  p {
    font-size: 0.9em;
  }

  .btn {
    font-size: 0.9em;
    padding: 10px 20px;
  }
}

// App Download Section
.app-download-section {
  position: relative;
  background: url('../images/bacckground.png') no-repeat center center/cover;
  color: $text-color;
  text-align: center;
  padding: 100px 20px;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .content- {
    position: relative;
    z-index: 2;
  }

  .phone-icon {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
  }

  .download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;

    .btn {
      display: inline-block;
      padding: 15px 30px;
      border-radius: 5px;
      text-decoration: none;
      color: $text-color;
      font-size: 1em;
      transition: background 0.3s ease;

      &.play-store {
        background-color: $play-store-color;

        &:hover {
          background-color: $hover-play-store-color;
        }
      }

      &.app-store {
        background-color: $app-store-color;

        &:hover {
          background-color: $hover-app-store-color;
        }
      }
    }
  }
}

// Logo Animation
.logo img {
  width: 500px;
  height: auto;
  animation: spin 5s linear infinite;
  border-radius: 50%;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate
  }}