/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
}

/*
  3. Allow percentage-based heights in the application
*/
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/*
  6. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}

/*
  8. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/*
  9. Remove list styles
*/
ul,
ol {
  padding: 0;
  list-style: none;
}

/* Global styles */

body {
  height: max-content;
}
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1;
}
body {
  font-family: 'Helvetica Neue', 'Open Sans', 'Helvetica', 'Arial', 'sans-serif';
  font-size: 1.34rem;
  letter-spacing: 0.2px;
  text-align: center;
}

/*
** Home Page
*/

/* Header */

.header .wrapper {
  padding-top: 50px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.partner__logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 390px;
}
.partner__logos :is(.microsoft-partner-network__logo, .AWS__logo) {
  height: 50px;
}
.partner__logos img {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-inline: auto;
}
.header .wily-fox-technologies__logo, .partner__logos {
  margin-bottom: 50px;
}
.header .wily-fox-technologies__logo img {
  width: 390px;
  height: auto;
  margin-inline: auto;
}
.scroll-down__arrow {
  margin-top: 50px;
}
.scroll-down__arrow a {
  display: block;
  text-decoration: none;
  line-height: 1;
  margin-inline: auto;
  font-size: 2rem;
  color: #000;
}
.scroll-down__arrow a {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Navigation */

#Nav {
  background-color: #C1541E;
  font-weight: 500;
  font-size: 1.3rem;
  position: sticky;
  bottom: 0;
  z-index: 9;
  width: 100%;
  scroll-margin-top: -1px;
}
#Nav .wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
#Nav .wily-fox-technologies__logo {
  visibility: hidden;
  opacity: 0;
  width: 0;
  transition: all 0.3s ease;
}
#Nav .wily-fox-technologies__logo img {
  height: auto;
  margin: 15px;
  filter: saturate(2);
}
#Nav ul {
  display: flex;
  justify-content: center;
}
#Nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 1rem 1.6rem;
  font-weight: 500;
  transform: translate(0, -2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
#Nav ul li.active {
  background-color: #a0360070;
}
#Nav ul li:hover {
  background-color: #A03600;
  transition: all 0.3s ease;
}
body:not(#Home) #Nav .wrapper {
  justify-content: space-between;
}
body:not(#Home) #Nav .wily-fox-technologies__logo {
  visibility: visible;
  opacity: 1;
  width: 130px;
}

/* Main */

#Main {
  background: url('../img/background-image.webp');
  background: linear-gradient(360deg, rgb(255 255 255) 0%, rgb(255 255 255 / 0%) 90%),
    linear-gradient(179deg, rgb(255 255 255) 0%, rgb(255 255 255 / 0%) 40%),
    url('../img/background-image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 180px;
  padding-bottom: 100px;
}
.cards {
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin-bottom: 200px;
}
.card {
  width: 650px;
  max-width: 100%;
  height: 380px;
  max-height: 100%;
  border-radius: 60px;
  background-color: #A03600;
  box-shadow: 0px 15px 40px 10px #0000007d;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
.card:hover {
  background-color: #501a00;
  border: 1px solid #ffffff36;
}
.card:nth-child(even) {
  align-self: flex-end;
}
.card:not(:first-child) {
  margin-top: -5rem;
}
.card > a {
  width: 100%;
  height: 100%;
  padding: 50px;
  text-decoration: none;
  color: #F9A81E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card p {
  height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  color: #fff;
}
.card:hover p {
  height: auto;
  opacity: 1;
  visibility: visible;
}
.card-icon {
  background: rgb(66, 66, 66);
  background: linear-gradient(180deg, rgba(66, 66, 66, 1) 0%, rgba(24, 24, 24, 1) 100%);
  width: 200px;
  height: 200px;
  padding: 40px;
  border-radius: 50%;
  border: 1px solid #818181;
  box-shadow: 0px 15px 40px 10px #00000030;
  transition: opacity 0.3s ease;
}
.card-icon img {
  filter: invert(1);
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}
.card:hover .card-icon {
  opacity: 0;
  height: 0;
  width: 0;
  padding: 0;
}
.card:hover .card-icon img {
  opacity: 0;
  height: 0;
  width: 0;
}
.card .read-more {
  margin-top: 20px;
  font-weight: 600;
  color: #F9A81E;
  display: block;
}

/* Contact */

.phil-s__photo {
  width: 200px;
  margin: 40px auto 20px;
}
.phil-s__photo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 1px solid #fff;
  box-shadow: 0px 15px 40px 10px #00000030;
}
.phil-s__quote .quote {
  margin-bottom: 20px;
  font-style: italic;
}
.phil-s__quote .signature {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.phil-s__quote .signature .name {
  font-size: 1.5rem;
  font-weight: 600;
}
.phil-s__contact p {
  display: flex;
  align-items: center;
  justify-content: center;
}
.phil-s__contact a {
  margin-left: 10px;
}
.phil-s__contact a img {
  transition: all 0.3s ease;
}
.phil-s__contact a:hover img {
  opacity: 0.7;
}

/* Footer */

.footer {
  background-color: #F8F8F8;
  color: #6C6C6C;
  padding: 15px 10px 30px;
}

/*
** Other Pages
*/

#About {
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: space-between;
  font-size: 1.2rem;
  letter-spacing: 0;
}
#About #Content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#About #Content #Main {
  flex: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Header & Nav */

#About .header {
  flex-direction: row;
  height: unset;
  width: 100%;
  max-width: 1500px;
}
#About .header .logos {
  display: flex;
  align-items: baseline;
}
#About .header .wily-fox-technologies__logo {
  margin: 0 15px 0 0;
}
#About .header .wily-fox-technologies__logo img {
  width: 180px;
}
#About .header .partner__logos img {
  max-width: 180px;
  max-height: 40px;
}
#About .header .partner__logos .microsoft-partner-network__logo {
  transform: translate(0, 2px);
}

/* About Content */

#About .content__wrapper {
  text-align: left;
}
#About .content__wrapper h1 {
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 2.4rem;
}
#About .content__wrapper h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1.8rem;
}
#About .content {
  display: flex;
  align-items: start;
}
#About .content .text {
  margin-right: 10rem;
}
#About .content .text p:not(:last-child) {
  margin-bottom: 1.4rem;
}
#About .content img {
  width: 30%;
  height: auto;
  border-radius: 20%;
}
#About .contact-us {
  margin-top: 80px;
  text-align: left;
}
#About .contact-us .phil-s__wrapper {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: end;
  margin-top: 30px;
}
#About .contact-us .phil-s__photo {
  margin: 0 0 0 20px;
  width: 180px;
}
#About .contact-us .phil-s__linkedin img {
  transition: all 0.3s ease;
}
#About .contact-us .phil-s__linkedin:hover img {
  opacity: 0.7;
}

/* Our Team Content */

#About #OurTeam .content__wrapper {
  text-align: center;
  margin-bottom: -10rem;
}
#About #OurTeam .card {
  position: relative;
  overflow: hidden;
  background: #501a00;
  transition: all 0.3s ease;
  justify-content: center;
}
#About #OurTeam .card img {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  transition: all 0.6s ease;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
#About #OurTeam .card:hover img {
  transform: translate(0, -50%) scale(1.1);
  opacity: 0.2;
}
#About #OurTeam .card-content {
  width: 100%;
  padding: 50px;
}
#About #OurTeam .card h2 {
  height: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translate(0, 30px);
  font-weight: 600;
  color: #F9A81E;
}
#About #OurTeam .card p {
  height: auto;
  transform: translate(0, -30px);
  margin-bottom: 0;
}
#About #OurTeam .card:hover h2 {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}
#About #OurTeam .card:hover p {
  transform: translate(0, 0);
}

/* Our Work Content */

#About #OurWork .content__wrapper {
  text-align: center;
}

/* Team Certs & Our Work Logos */

.certs, .our-work__logos {
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.cert, .our-work__logo {
  flex: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
:is(.cert, .our-work__logo):not(:nth-last-child(-n+2)) {
  border-bottom: 1.5px solid #ebebeb;
}
:is(.cert, .our-work__logo):nth-child(odd) {
  border-right: 1.5px solid #ebebeb;
}
:is(.cert, .our-work__logo) img {
  width: 100%;
  height: auto;
  max-width: 270px;
  max-height: 140px;
  object-fit: contain;
}

/* Footer */

#About .footer {
  background-color: #C1541E;
  color: #fff;
}

/* Media Queries */

@media screen and (max-width: 1200px) {
  .card:not(:first-child) {
    margin-top: -1.5rem;
  }
  .header .wily-fox-technologies__logo img {
    width: 350px;
  }
}
@media screen and (max-width: 992px) {
  .wrapper {
    padding: 0 10px;
  }
  .header .wrapper {
    padding: 40px 20px;
  }
  .header .wily-fox-technologies__logo img {
    width: 290px;
  }
  .header .wily-fox-technologies__logo, .partner__logos {
    margin-bottom: 40px;
  }
  .scroll-down__arrow {
    margin-top: 40px;
  }
  body, #Nav {
    font-size: 1rem;
  }
  h1, h2 {
    font-size: 2.2rem;
  }
  #Main {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .card:not(:first-child) {
    margin-top: 2rem;
  }
  #Nav .wily-fox-technologies__logo img {
    margin-left: 0;
  }
  #Nav ul li a {
    padding: 0.6rem;
  }
  .card > a {
    padding: 30px;
  }
  .card-icon {
    width: 150px;
    height: 150px;
    padding: 35px;
  }
  .cards {
    margin-bottom: 80px;
  }
  #About {
    font-size: 1rem;
  }
  #About .header {
    flex-direction: column;
  }
  #About .header .logos {
    align-items: end;
    margin-bottom: 50px;
    justify-content: space-between;
  }
  #About .header .wily-fox-technologies__logo {
    margin: 0 30px 0 0;
  }
  #About .header .logos .partner__logos {
    flex-direction: column-reverse;
    align-items: end;
  }
  #About .header .logos .partner__logos .microsoft-partner-network__logo {
    margin-right: 0;
  }
  #About #Content #Main {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  #About .content__wrapper {
    text-align: center;
  }
  #About .content__wrapper h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  #About .content__wrapper h2 {
    font-size: 1.6rem;
    margin-bottom: 1.3rem;
  }
  #About .content {
    flex-direction: column-reverse;
  }
  #About .content img {
    width: 50%;
    margin-inline: auto;
    margin-bottom: 20px;
  }
  #About .content .text {
    margin-right: 0;
  }
  #About .contact-us {
    text-align: center;
    margin-top: 60px;
  }
  #About .contact-us .phil-s__wrapper {
    flex-direction: column;
    align-items: center;
  }
  #About .contact-us .phil-s__photo {
    margin: 0 auto 20px;
    width: 150px;
  }
  #About #OurTeam .content__wrapper {
    margin-bottom: 0;
  }
  #About #OurTeam .content__wrapper .phil-s__photo {
    margin: 20px auto 20px;
  }
  #About #OurTeam .content__wrapper .others {
    flex-direction: column;
  }
  #About #OurTeam .content__wrapper .others .phil-s {
    width: 100%;
    margin-bottom: 40px;
  }
  #About #OurTeam .content__wrapper .phil-s__quote .quote {
    height: 0;
  }
  #About #OurTeam .content__wrapper .phil-s__photo:hover + .phil-s__quote .quote {
    height: auto;
  }
}
