:root {
  --background-color: #ffffff;
  --contrast-background: #e5e5e5;
  --nav-tabs: #000000;
  --font: 'Open Sans', sans-serif;
  --off-gray: #757470;
}

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

input {
  min-width: 1px;
}

html {
  background-color: var(--background-color);
  scroll-behavior: smooth;
}

nav {
  background-color: #ffffff;
  box-shadow: 0 3px 2px -2px gray;
}

.nav-item {
  margin-bottom: -2em;
  transition: 0.2s ease-out;
}

nav .navbar-nav li a {
  color: var(--nav-tabs) !important;
  margin-right: 1em;
  padding-top: 2em;
  font-size: 16px;
  padding-bottom: 3.5em;
  font-family: var(--font);
}

.navbar .navbar-toggler-icon {
  color: black !important;
}

#navList a:hover {
  color: #000000;
}

.links {
  float: right;
  display: flex;
  min-width: 40vw;
  justify-content: space-between;
}

#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  min-width: 100%;
  min-height: 90%;
  margin-right: 1.5em;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('assets/hero-code.webp');
  height: 50%;
  background-attachment: scroll;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  max-width: 100%;
  position: relative;
}

#hero .content {
  color: var(--logo-color);
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
}

#hero .content h1 {
  font-size: 3.5rem;
  font-weight: 500;
}

#hero .content .hero_button {
  display: flex;
  flex-direction: row;
  text-align: center;
}

#landing {
  position: relative;
  margin-top: 3em;
  height: 30vh;
  width: 100%;
  min-width: 100%;
  min-height: 90%;
}

.landing-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('assets/what-we.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  max-width: 100%;
  position: relative;
}

#landing .content {
  color: white;
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  left: 50%;
  top: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
}

#landing .content h1 {
  font-size: 2em;
}

#marketing-landing {
  position: relative;
  margin-top: 3em;
  height: 30vh;
  width: 100%;
  min-width: 100%;
  min-height: 90%;
  max-width: 100vw;
}

.marketing-landing-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('assets/abstract-waves.webp');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  max-width: 100%;
  position: relative;
}

.about-us-landing-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('assets/dark-abstract.webp');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  max-width: 100%;
  position: relative;
}

.projects-landing-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
  url('assets/space.webp');
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
max-width: 100%;
position: relative;
}

#marketing-landing .content {
  color: white;
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  left: 50%;
  top: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
}

#marketing-landing .content h1 {
  font-size: 2em;
}

.our-btn {
  text-decoration: none;
  margin-top: 2rem;
  padding: 10px 15px;
  background-color: #4562e7;
  color: white;
  transition: 0.2s linear;
  align-self: center;
  font-family: var(--font);
  font-size: 0.9rem;
  border-radius: 8px;
}

.our-btn:hover {
  text-decoration: none;
  color: white;
  background-color: #4562e7;
  transform: scale(1.1);
}

.mission-btn {
  text-decoration: none;
  margin-top: 1rem;
  padding: 10px 15px;
  background-color: #4562e7;
  color: white;
  transition: 0.2s linear;
  align-self: center;
  font-family: var(--font);
  border-radius: 8px;
}

.mission-btn:hover {
  text-decoration: none;
  color: white;
  transform: scale(1.1);
}

#hero .content h1 {
  color: white;
}

#mission {
  margin: 1em;
  margin-top: -2em;
}

#mission h3 {
  margin: 2em;
  text-align: center;
  padding-bottom: 2rem;
  font-size: 2rem;
  max-width: 90vw;
  max-height: 90vh;
}

#mission .statistics {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 2rem 0;
}

#mission .statistics .stats_card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#mission .statistics .stats_card h3 {
  margin-bottom: -1rem;
  font-size: 3rem;
}

#mission .statistics .stats_card p {
  font-size: 1.4rem;
}

#mission .content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 3rem;
}

#mission .content .my-img {
  padding-bottom: 1rem;
}

#mission .content .offer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 6rem;
  background-color: var(--contrast-background);
  margin: 0 -1rem;
  padding: 1rem;
}

#mission .content .offer .wrapped-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#mission .content .offer .wrapped-flex p {
  text-align: center;
}

#mission .content .why-marketing .wrapped-flex p {
  text-align: center;
}

#mission .content .offer .wrapped-flex h3 {
  font-size: 31px;
  margin-bottom: 0rem;
}

#mission .content .why-marketing .wrapped-flex h3 {
  font-size: 31px;
  margin-bottom: 0rem;
}

#mission .content .why-marketing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 6rem;
  padding: 1rem;
}

#mission .content .why-marketing .wrapped-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#mission {
  margin-bottom: 2rem;
}

#contact {
  background-color: var(--contrast-background);
  padding: 2em;
  font-family: var(--font);
}

#contact .content h2 {
  text-align: center;
}

#contact .content p {
  text-align: center;
  padding-bottom: 1em;
  color: var(--off-gray);
}

#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

#contact form input {
  margin-bottom: 1em;
}

#contact form input {
  margin-right: 1em;
  padding: 1em;
  height: 7vh;
}

#contact .contact-btn {
  padding: 1em;
  height: 7vh;
  color: white;
  cursor: pointer;
  text-align: center;
  background-color: #4562e7;
  border-radius: 2%;
  width: 50%;
  border-radius: 8px;
}

#contact .contact-btn:hover {
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
}

#core {
  font-family: var(--font);
}

#core .core-title {
  text-align: center;
  padding-top: 2.5em;
  font-size: 33px;
  font-weight: bold;
}

#grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  justify-content: center;
  margin: 1.5em;
  padding-top: 3em;
  padding-bottom: 3em;
}

#grid .my-card {
  padding-bottom: 2em;
}

#grid .my-card h2 {
  text-align: center;
  padding-bottom: 0.5em;
  font-size: 33px;
  font-weight: bold;
}

#grid .my-card .what-img {
  padding-bottom: 1em;
  height: 250px;
  width: auto;
}

#black {
  background-color: black;
  color: white;
  font-family: var(--font);
  padding: 3em;
}

#black p {
  text-align: center;
}

#black .author {
  color: gray;
}

#stats {
  font-family: var(--font);
  padding-top: 4em;
  padding-bottom: 3em;
}

#stats .wrapped-flex h2 {
  text-align: center;
  margin-bottom: 1.5em;
}

#stats .stat-img {
  padding-top: 2em;
  margin-bottom: 2em;
}

.stat-gray {
  background-color: #f1f1f1;
}

#stats .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100vw;
  padding: 2em;
  margin-bottom: 3em;
}

#stats .stat-card .wrapped-flex {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
  max-width: 100vw;
  max-height: 100vh;
  padding: 1em;
}

#random-word {
  color: #4562e7;
}

.footer {
  text-align: center;
  padding-top: 2.5em;
  color: #2d2d2d;
  background-color: var(--background-color);
  font-size: 1em;
  font-family: 'Montserrat', sans-serif;
  padding-bottom: 2.5em;
}

.footer h3 {
  font-size: 1.3em;
}

.footer-contact {
  color: #434240;
  text-decoration: none;
}

.footer-contact:hover {
  color: var(--off-gray);
  text-decoration: none;
  transition: 0.3s ease;
}

.footer p {
  padding-top: 1em;
  font-size: 1.2em;
}

.footer .social {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  padding: 2rem;
}

.footer .social i {
  padding: 1rem;
  margin-top: -10rem;
}

.footer .social a:hover {
  transform: translateY(-8%);
  transition: 70ms linear;
}

@media only screen and (min-width: 768px) {
  .navbar-brand {
    padding-left: 1.5em;
  }

  .nav-item {
    margin-bottom: -2em;
    transition: 0.2s ease-out;
    padding-right: 1.5em;
  }

  #hero:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(assets/hero_potential1.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    filter: brightness(0.7);
  }

  #hero .content {
    color: var(--logo-color);
    position: absolute;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font);
  }

  #landing {
    position: relative;
    height: 50vh;
    width: 100%;
    min-width: 100%;
    min-height: 90%;
  }

  .landing-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('assets/splash-abstract.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    max-width: 100%;
    position: relative;
  }

  #landing .content {
    color: white;
    position: absolute;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    left: 50%;
    top: 50%;
    font-size: 2em;
    transform: translate(-50%, -50%);
    font-family: var(--font);
  }

  #marketing-landing {
    position: relative;
    height: 50vh;
    width: 100%;
    min-width: 100%;
    min-height: 90%;
  }

  .marketing-landing-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('assets/abstract-waves.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    max-width: 100%;
    position: relative;
  }

  .hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('assets/hero-code.webp');
    height: 50%;
    background-attachment: scroll; /* Changed from fixed to scroll for mobile */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    max-width: 100%; /* Fixed typo from 50 to 100% */
    position: relative;
    -webkit-background-size: cover; /* Added vendor prefixes for better mobile support */
    -moz-background-size: cover;
    -o-background-size: cover;
  }

  .about-us-landing-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('assets/dark-abstract.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    max-width: 100%;
    position: relative;
  }

  #marketing-landing .content {
    color: white;
    position: absolute;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    left: 50%;
    top: 50%;
    font-size: 2em;
    transform: translate(-50%, -50%);
    font-family: var(--font);
  }

  .our-btn {
    text-decoration: none;
    margin-top: 3rem;
    padding: 10px 15px;
    background-color: #4562e7;
    color: #ffffff;
    transition: 0.2s linear;
    align-self: center;
    font-family: var(--font);
    border-radius: 8px;
  }

  .our-btn:hover {
    text-decoration: none;
    color: white;
    background-color: #4562e7;
  }

  #mission h3 {
    margin: 2em;
    text-align: center;
    padding-bottom: 2rem;
    font-size: 2.7rem;
    max-width: 90vw;
    max-height: 90vh;
  }

  #mission .content {
    font-family: var(--font);
  }

  #mission .content .my-img {
    width: 40%;
    height: 20%;
  }

  #mission .content .offer {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: row-reverse;
  }

  #mission .content .offer .wrapped-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 40%;
  }

  #mission .content .offer .wrapped-flex h3 {
    font-size: 31px;
  }

  #mission .content .offer .wrapped-flex p {
    padding-top: 1em;
    text-align: center;
    line-height: 2em;
  }

  #mission .content .why-marketing {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }

  #mission .content .why-marketing .wrapped-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 40%;
  }

  #mission .content .offer .wrapped-flex h3 {
    font-size: 2rem;
    margin-bottom: -1rem;
  }

  #mission .content .why-marketing .wrapped-flex h3 {
    font-size: 31px;
    margin-bottom: -1rem;
  }

  #mission .content .why-marketing .wrapped-flex p {
    padding-top: 1em;
    text-align: center;
    line-height: 2em;
  }

  #mission .statistics {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 2rem 0;
  }

  #contact {
    background-color: var(--contrast-background);
    padding: 2em;
    max-width: 100vw;
  }

  #contact .content {
    padding-top: 5em;
    padding-bottom: 5em;
    width: -moz-max-content;
    max-width: 100%;
  }

  #contact .content h2 {
    text-align: center;
  }

  #contact form {
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Chrome */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    font-size: 0.9em;
  }

  #contact form input {
    appearance: none;
    margin-right: 1em;
    padding: 1em;
    height: 7vh;
  }

  #contact .contact-btn {
    padding: 1em;
    height: 7vh;
    width: 7em;
    color: white;
    cursor: pointer;
    text-align: center;
    background-color: #4562e7;
    border-radius: 2%;
  }

  #core .core-title {
    text-align: center;
    padding-top: 2em;
    font-size: 2.5em;
    font-weight: bold;
  }

  #grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 0.5em;
    align-items: start;
    justify-items: center;
    justify-content: space-evenly;
    margin: 2em;
    padding-top: 2em;
  }

  #grid .my-card .what-img {
    padding-bottom: 2em;
  }

  #grid .my-card {
    width: 75%;
  }

  #grid .my-card h2 {
    text-align: center;
    padding-bottom: 1em;
  }

  #black p {
    text-align: center;
    font-size: 2em;
    padding-top: 1em;
  }

  #black .author {
    font-size: 1em;
    color: gray;
    padding-bottom: 2em;
  }

  #stats {
    font-family: var(--font);
    padding-top: 4em;
    padding-bottom: 3em;
  }

  #stats .stat-card {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    height: 100%;
    padding: 4em;
  }

  .about-us-paragraph {
    padding: 2rem 2rem;
    margin: 0rem 8rem 3rem 8rem;
    font-size: 1.3rem;
  }

  .icon-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  #stats .stat-img {
    width: 40%;
    height: 40%;
    max-width: 50%;
    margin-left: 1em;
  }

  #stats .stat-card .wrapped-flex {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 40%;
    height: 100%;
  }

  #stats .stat-card .wrapped-flex h2 {
    padding-bottom: 1em;
  }

  #stats .stat-card .wrapped-flex ul li {
    padding-bottom: 1.5em;
  }

  .stat-gray {
    background-color: #f1f1f1;
  }
}

@media only screen and (max-width: 600px) {

  .landing-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('assets/what-we.jpg');
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
  }

  .marketing-landing-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('assets/abstract-waves.webp');
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
  }

  .about-us-landing-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('assets/dark-abstract.webp');
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
  }

  .projects-landing-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
      url('assets/space.webp');
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
  }

  #marketing-landing .content {
    color: white;
    position: absolute;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    left: 50%;
    top: 50%;
    font-size: 1em;
    transform: translate(-50%, -50%);
    font-family: var(--font);
  }

  .footer h3 {
    font-size: 1.1em;
  }

  .footer-contact {
    color: #434240;
    text-decoration: none;
  }

  .footer-contact:hover {
    color: var(--off-gray);
    text-decoration: none;
    transition: 0.3s ease;
  }

  .footer p {
    padding-top: 1em;
    font-size: 1em;
  }

  .stat-gray {
    background-color: #f1f1f1;
  }

  .about-us-paragraph {
    padding: 1.3rem 1.3rem;
    font-size: 1.3rem;
  }
}

.card {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
