@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Barlow&display=swap");

:root {
  /* colors */
  /* CSS HEX */
  /* --star-command-blue: #0077b6ff;
  --rich-black: #023436ff;
  --alice-blue: #e1eff6ff;
  --russian-green: #749c75ff;
  --winter-sky: #f42272ff; */

  --white: hsla(6, 50%, 96%, 1);
  --white: #fff;
  --accent: #4196e1;
  --accent-2: #00d8d8;
  --accent-3: #fae6b1;
  --accent-4: #005252;
  --dark: #000;
  --green: #00b800;
  --red: #ec0b43;

  /* CSS HSL */
  --gunmetal: hsla(197, 20%, 18%, 1);
  --erin: hsla(126, 100%, 60%, 1);
  --malachite: hsla(126, 100%, 44%, 1);
  --vivid-sky-blue: hsla(190, 100%, 48%, 1);
  --snow: hsla(6, 50%, 96%, 1);

  --gradient: linear-gradient(
    145deg,
    rgba(65, 150, 225, 1) 0%,
    rgba(0, 216, 216, 1) 49%,
    rgba(0, 0, 0, 1) 100%
  );

  /* font-sizes */
  --fs-900: clamp(5rem, 8vw + 1rem, 9.375rem);
  --fs-800: 4rem;
  --fs-700: 3rem;
  --fs-600: 2rem;
  --fs-medium: clamp(1rem, 0.938vw + 0.625rem, 1.75rem);
  --fs-small: clamp(0.75rem, 1.875vw + 0.375rem, 1.125rem);
  --fs-nav: clamp(1rem, 1.25vw + 0.5rem, 2rem);

  /* font-families */
  --ff-serif: Arial, Helvetica, sans-serif;
  --ff-sans-normal: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-color: transparent transparent;
  scrollbar-width: 0px;
}

*::-webkit-scrollbar {
  width: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}

* {
  -ms-overflow-style: none;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;

  color: var(--dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

/* make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* make forms elements easier to work with */
input,
button,
textarea,
select {
  font: inherit;
}

/* remove animations for people who have them turned off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------  */
/* Utility Classes             */
/* --------------------------  */
.flex {
  display: flex;
  gap: var(--gap, 0.25rem);
}

.relative {
  position: relative;
}

.d-block {
  display: block;
}

.flow > *:where(:not(:first-child)) {
  margin-top: var(--flow-space, 1rem);
}

.container {
  padding: 2em 2em;
  margin-inline: auto;
  max-width: 80rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}

/* colors */
.bg-dark {
  background-color: var(--dark);
}
.bg-accent {
  background-color: var(--accent);
}
.bg-accent-2 {
  background-color: var(--accent-2);
}
.bg-accent-3 {
  background-color: var(--accent-3);
}
.bg-white {
  background-color: var(--white);
}

.text-black {
  color: #000;
}
.text-accent {
  color: var(--accent);
}
.text-accent-2 {
  color: var(--accent-2);
}
.text-white {
  color: var(--white);
}
.text-green {
  color: var(--green);
}
.text-red {
  color: var(--red);
}

/* typography */
.ff-serif {
  font-family: var(--ff-serif);
}
.ff-sans-normal {
  font-family: var(--ff-sans-normal);
}

.letter-spacing-1 {
  letter-spacing: 4.75px;
}
.letter-spacing-2 {
  letter-spacing: 2.7px;
}
.letter-spacing-3 {
  letter-spacing: 2.35px;
}

.uppercase {
  text-transform: uppercase;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
}

.bold {
  font-weight: 700;
}

.fs-900 {
  font-size: var(--fs-900);
}
.fs-800 {
  font-size: var(--fs-800);
}
.fs-700 {
  font-size: var(--fs-700);
}
.fs-600 {
  font-size: var(--fs-600);
}
.fs-medium {
  font-size: var(--fs-medium);
}
.fs-small {
  font-size: var(--fs-small);
}
.fs-nav {
  font-size: var(--fs-nav);
}

.fs-900,
.fs-800,
.fs-medium {
  line-height: 1.2;
}

/* -------------------------- */
/* Components                 */
/* -------------------------- */

button:hover {
  cursor: pointer;
}

/* primary header */
.logo {
  margin: 1rem clamp(1.5rem, 5vw, 3.5rem);
  flex-shrink: 0;
}

.header-logo .logo {
  width: 100px;

  object-fit: fill;
}

.left-side .logo {
  width: 200px;
}

.primary-header {
  width: 100%;
  max-width: 100%;

  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.mobile-nav-toggle {
  display: none;
}

/* Navigation */
.primary-navigation {
  padding: 0;
  margin: 0;

  list-style: none;
  font-size: var(--fs-nav);
}

.active {
  border-bottom: 2px solid black;
}

.primary-navigation a {
  text-decoration: none;
  font-weight: 900;
}

.primary-navigation a:visited,
.primary-navigation a {
  color: black;
  margin: 0 0 1rem;
}

.primary-navigation a:hover {
  border-bottom: 2px solid black;
}

button {
  margin: 0;
  padding: 0;
}

@media (max-width: 40em) {
  .primary-navigation {
    --gap: 2em;

    position: fixed;
    z-index: 1000;
    inset: 0 0 0 30%;

    flex-direction: column;
    padding: min(30vh, 10rem) 2em;

    background: var(--dark);
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
    transition: transform 350ms ease-in;
  }

  .active {
    border-bottom: 2px solid white;
  }

  .primary-navigation a:visited,
  .primary-navigation a {
    color: white;
    margin: 0 0 1rem;
  }

  .primary-navigation a:hover {
    border-bottom: 2px solid white;
  }

  .mobile-nav-toggle {
    display: block;
    position: relative;
    width: 2rem;
    margin-left: auto;
    margin-right: 2rem;
    aspect-ratio: 1;

    background-color: transparent;
    background-image: url("/src/menu-icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
    border: 0;
    z-index: 9999;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    background-color: transparent;
    background-image: url("/src/x-icon.png");
    background-size: cover;
    filter: invert(100%);
  }
}

@media (min-width: 40em) {
  .primary-navigation {
    --gap: clamp(0.5rem, 1vw + 0.7rem, 3rem);
    padding-block: 2rem;
    padding-inline: clamp(1rem, 2.5vw, 3rem);
  }
  .header-logo {
    flex-shrink: 0;
  }
}

.top-div {
  position: relative;
}

/* Landing Hero */
.landing-hero {
  position: relative;
  flex-direction: column;
  flex-wrap: nowrap;
  height: 80vh;
  min-height: 900px;

  text-align: left;
  /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); */
}

.logo-row {
  --gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-block: auto;
}

.logo-animation {
  min-width: max(25%, 225px);

  border: white 2px solid;
  border-radius: 50%;
}

.logo-animation[data-position="middle"] {
  animation-name: fadeIn-slideIn-2, scaleUp;
  animation-duration: 500ms, 1000ms;
  animation-delay: 0ms, 500ms;
  animation-iteration-count: 1, 1;
  animation-timing-function: ease-in, ease-in;
  animation-fill-mode: forwards, forwards;
}

.logo-animation[data-position="left"] {
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 500ms;
  animation-timing-function: ease-in;
  animation-delay: 0ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.logo-animation[data-position="right"] {
  opacity: 0;
  animation-name: fadeIn-2;
  animation-duration: 500ms;
  animation-timing-function: ease-in;
  animation-delay: 0ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@media (max-width: 600px) {
  .landing-hero {
    min-height: 1000px;
  }

  .logo-row {
    flex-direction: column;
    align-items: center;
  }

  .logo-animation {
    min-width: 150px;
  }
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 79px;
}

.wave .shape-fill {
  fill: #ffffff;
}

.landing-text {
  position: relative;
  max-width: 100%;
  top: 0;
  left: 0;

  padding: clamp(2rem, 1.25vw + 1.5rem, 3rem) 0;

  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  font-weight: 700;
}

.landing-hero > p {
  position: relative;
  max-width: 75%;

  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
}

.landing-pic {
  position: absolute;
  top: 0;
  z-index: -1;

  height: 100%;
  width: 100%;
  object-fit: cover;
}

.about-us {
  /* width: 90%;
  margin-inline: auto; */
  position: relative;
  max-width: 80rem;

  margin-inline: auto;
}

.about-us {
  padding: clamp(1rem, 1vw + 1rem, 3rem);
}

.about-us p,
.exec-sum p,
.logo-design p,
.web-design p {
  padding: 1rem 0;
}

.logo-design {
  text-align: right;
}

.three-section {
  flex-direction: column;
  gap: clamp(0rem, 1.25vw - 0.5rem, 1rem);
  min-width: 0;
}

.three-section > * > .icons {
  display: none;
}

.line-break {
  display: none;
}

@media (min-width: 640px) and (max-width: 1090px) {
  .line-break {
    display: block;
  }
}

@media (min-width: 40em) {
  .three-section {
    flex-direction: row;
  }

  .three-section > * {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;

    text-align: center;
  }

  .three-section > * > .icons {
    display: flex;
    width: 80px;
    height: 80px;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;
    padding: 1rem;

    color: var(--white);
    background-color: var(--dark);
    border-radius: 100%;
    animation: fadeIn 3s;
  }

  .three-section > * > .icons::before {
    position: relative;
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  .fa-code::before {
    width: 60px !important;
    left: -5px;
  }

  .three-section > * > h3 {
    padding: 1rem 0;
  }

  .exec-sum p,
  .logo-design p,
  .web-design p {
    padding: 0 1rem 1.5rem;
  }

  .three-section > * > a {
    display: inline-block;
    height: min-content;

    margin-inline: auto;
    margin-top: auto;
  }
}

.footer {
  max-width: 80rem;

  margin-inline: auto;
  padding: 2rem 2rem 3rem;
}

.footer img {
  margin: auto;
  padding-bottom: 1rem;
}

.footer p {
  text-align: center;
}

.footer ul {
  margin: 0;
  padding: 2rem 2rem 1rem;

  list-style: none;
  text-align: center;
}

.footer li {
  margin: 0;
  padding: 1rem 0 1rem 0;
}

.footer a:visited,
.footer a {
  color: black;
  text-decoration: none;
}

.footer a:hover {
  border-bottom: 3px solid black;
}

@media (min-width: 40em) {
  .footer {
    display: flex;
    justify-content: space-between;
  }

  .footer ul {
    padding: 0 2rem;
  }
}

/* Large Button */
.large-button {
  display: inline-block;
  width: max-content;

  margin: 1rem 0 1rem;
  padding: 1rem 1.5rem;

  color: white;
  background: var(--accent);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  border-radius: 30px;
}

.button {
  display: inline-block;
  width: max-content;

  margin: 1rem 0 1rem;
  padding: 1rem 1.5rem;

  color: white;
  background: var(--accent);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  border: none;
  border-radius: 30px;
}

.blue-section {
  position: relative;
  min-height: 500px;
  padding: 5rem 0;

  background-color: #000;
}

ol,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.testimonial-header {
  grid-area: header;

  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.testimonial-section {
  /* display: grid;
  gap: 1rem;
  column-gap: 2rem;
  grid-template-areas:
    "header"
    "testimonials";

  padding-bottom: 1rem; */
  position: relative;
  min-height: 150px;
  filter: drop-shadow(0 0 10px #0003);
  perspective: 100px;
}

.carousel__viewport {
  position: relative;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: max-content;
  gap: 2rem;
  align-items: center;
  overflow-x: scroll;
  counter-reset: item;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.quotation {
  width: min(25vw, 150px);
  height: min(25vw, 150px);
}

.carousel__slide {
  position: relative;
  display: flex;
  flex: 0 0 90%;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: max-content;
  padding: 2rem 3rem;

  background-color: white;
  border-radius: 7px;
}

.carousel__slide p {
  width: 100%;

  z-index: 1;
}

.carousel__slide p:nth-of-type(2) {
  color: var(--accent-2);
}

.carousel__slide:first-child {
  margin-left: 2rem;
}

.carousel__slide:last-child {
  margin-right: 2rem;
}

.carousel__slide::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -40%, 70px);
}

.carousel__snapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
}

/* @media (hover: hover) {
  .carousel__snapper {
    animation-name: tonext, snap;
    animation-timing-function: ease;
    animation-duration: 4s;
    animation-iteration-count: infinite;
  }

  .carousel__slide:last-child .carousel__snapper {
    animation-name: tostart, snap;
  }
} */

@media (prefers-reduced-motion: reduce) {
  .carousel__snapper {
    animation-name: none;
  }
}

.testimonial-section:hover .carousel__snapper,
.testimonial-section:focus-within .carousel__snapper {
  animation-name: none;
}

.carousel__navigation {
  position: absolute;
  right: 0;
  bottom: 60px;
  left: 0;
  text-align: center;
}

.carousel__navigation-list,
.carousel__navigation-item {
  display: inline-block;
}

.carousel__navigation-button {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--accent-2);
  background-clip: content-box;
  border: 0.25rem solid transparent;
  border-radius: 50%;
  font-size: 0;
  transition: transform 0.1s;
}

.testimonial-section::before,
.testimonial-section::after,
.carousel__prev,
.carousel__next {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  top: 50%;

  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 0;
  outline: 0;
  z-index: 10;
}

.testimonial-section::before {
  left: 3.5rem;
}

.carousel__prev {
  left: -0.5rem;
}

.testimonial-section::after {
  right: 4.5rem;
}
.carousel__next {
  right: -1rem;
}

.testimonial-section::before,
.testimonial-section::after {
  content: "";
  z-index: 1;
  background-color: #333;
  background-size: 1.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
  font-size: 2.5rem;
  line-height: 4rem;
  text-align: center;
  pointer-events: none;
}

.testimonial-card {
  display: block;
  position: relative;
  margin: 0 0 3rem;
  padding: calc(2rem + min(25vw, 150px)) 2rem 0rem;

  transform: translateX(100px);
  opacity: 0;
  transition: 500ms;

  background-color: #fff;
  border: 2px solid #000;
  border-radius: 7px;
  box-shadow: #54494b -5px 5px, #4196e1 -10px 10px, #00d8d8 -15px 15px,
    #fae6b1 -20px 20px;
}

.testimonial-card.show {
  transform: translateX(0);
  opacity: 1;
}

.testimonial-card:nth-of-type(1),
.testimonial-card:nth-of-type(4) {
  background-color: var(--dark);
  color: white;
  text-shadow: 2px 2px 3px #000;
}

.testimonial-card p {
  padding-bottom: 2rem;

  font-weight: 500;
  letter-spacing: 1px;
  text-align: justify;
}

.testimonial-card p:nth-child(2) {
  font-style: normal;
  text-align: right;
}

.testimonial-card:nth-of-type(1) p:nth-of-type(even),
.testimonial-card:nth-of-type(4) p:nth-of-type(even) {
  color: var(--accent-2);
}

.black-quotation::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(25vw, 150px);
  height: min(25vw, 150px);
  margin: 1.5rem 0 0 1.5rem;

  background-image: url("/src/black-quotes.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 30%;
  z-index: -1;
  opacity: 1;
}

.triangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.triangle svg {
  position: relative;
  display: block;
  width: calc(170% + 1.3px);
  height: 69px;
}

.triangle .shape-fill {
  fill: #fff;
}

.flipped-triangle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.flipped-triangle svg {
  position: relative;
  display: block;
  width: calc(170% + 1.3px);
  height: 69px;
}

.flipped-triangle .shape-fill {
  fill: #ffffff;
}

.testimonial-section::before {
  background-image: url("/src/left.svg");
}

.testimonial-section::after {
  background-image: url("/src/right.svg");
}

@media (min-width: 1024px) {
  .testimonial-section {
    grid-template-areas:
      "header header"
      "large-test-1 large-test-1"
      "test-1 test-2"
      "large-test-2 large-test-2";
  }

  .testimonial-card-header {
    grid-area: header;
  }

  .testimonial-card:nth-of-type(1) {
    grid-area: large-test-1;
  }
  .testimonial-card:nth-of-type(2) {
    grid-area: test-1;
  }
  .testimonial-card:nth-of-type(3) {
    grid-area: test-2;
  }
  .testimonial-card:nth-of-type(4) {
    grid-area: large-test-2;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeIn-2 {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeIn-slideIn {
  0% {
    opacity: 0;
    transform: translateX(200px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}

@keyframes fadeIn-slideIn-2 {
  0% {
    transform: translateX(50px) rotateY(-180deg);
  }
  50% {
    transform: translateX(25px) rotateY(-90deg);
  }
  100% {
    transform: translateX(0px) rotateY(0deg);
  }
}

@keyframes scaleUp {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.25);
  }
}

@keyframes tonext {
  75% {
    left: 0;
  }
  95% {
    left: 100%;
  }
  98% {
    left: 100%;
  }
  99% {
    left: 0;
  }
}

@keyframes tostart {
  75% {
    left: 0;
  }
  95% {
    left: -300%;
  }
  98% {
    left: -300%;
  }
  99% {
    left: 0;
  }
}

@keyframes snap {
  96% {
    scroll-snap-align: center;
  }
  97% {
    scroll-snap-align: none;
  }
  99% {
    scroll-snap-align: none;
  }
  100% {
    scroll-snap-align: center;
  }
}
