@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */

/*
Document
========
*/

/**
Use a better box model (opinionated).
*/

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  /* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
  font-family:
    system-ui,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji';
  line-height: 1.15;
  /* 1. Correct the line height in all browsers. */
  -webkit-text-size-adjust: 100%;
  /* 2. Prevent adjustments of font size after orientation changes in iOS. */
  tab-size: 4;
  /* 3. Use a more readable tab size (opinionated). */
}

/*
Sections
========
*/

body {
  margin: 0;
  /* Remove the margin in all browsers. */
}

/*
Text-level semantics
====================
*/

/**
Add the correct font weight in Chrome and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    'Liberation Mono',
    Menlo,
    monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
Tabular data
============
*/

/**
Correct table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
  border-color: currentcolor;
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
  padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

:root {
  --blue: #1C0DB1;
  --yellow: #FFC012;
  --orange: #FF6912;
  --green: #00FF83;

  --accent-1: var(--blue);
  --accent-2: var(--green);

  --bg-color: #f0f0f3;

  --neu-shadow: -2px -2px 6px 0 white,
    2px 2px 3px 0 #aeaec0,
    inset 4px 4px 6px 0 white,
    inset -2px -2px 3px 0 #aeaec0;

  --neu-shadow-rev:
    -4px -4px 6px 0 #aeaec0,
    4px 4px 6px 0 white,
    inset 4px 4px 6px 0 #aeaec0,
    inset -4px -4px 6px 0 white;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;
  --space-5: 128px;
  --space-6: 256px;
  --space-7: 512px;

  --font-size-huge: 3.5rem;
  --font-size-x-large: 1.5rem;
  --font-size-large: 1.25rem;
  --font-size-medium: 1rem;
  --font-size-small: 0.75rem;

  font-family: "Lexend",
    Arial,
    Helvetica,
    sans-serif;

  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;

  color: black;
  font-size: var(--font-size-medium);

  @media only screen and (max-width: 760px) {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 32px;
    --space-5: 64px;
    --space-6: 128px;
    --space-7: 256px;

    --font-size-huge: 2rem;
    --font-size-x-large: 1.25rem;
    --font-size-large: 1rem;
    --font-size-medium: 1rem;
    --font-size-small: 1rem;
  }
}

/*** GENERAL TYPOGRAPHY ***/

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  margin: 0;
}

h1,
h2 {
  font-size: var(--font-size-huge);

  strong {
    background-color: var(--accent-2);
    font-weight: bold;
  }
}

h1 {
  animation: slide-from-bottom-h1 2s;
  animation-timeline: auto;
}


@keyframes slide-from-bottom-h1 {
  0% {
    transform: translate(0, 50px);

  }

  100% {
    transform: translate(0);

  }
}


h2 {
  animation: slide-from-bottom 4s;
  animation-timeline: view(block);
  animation-range: cover 0% cover 70%;
}

h3,
h4 {
  font-size: var(--font-size-x-large);
}

h3,
h4 {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

h4,
h3 {
  text-transform: uppercase;
  color: var(--accent-1);

  >i {
    font-size: var(--font-size-huge);
  }
}

a {
  text-decoration: none;
  color: var(--accent-1);
  transition: color 0.3s ease-in-out;

  &:hover {
    color: var(--accent-2);
  }
}

cite {
  font-size: var(--font-size-small);
  text-transform: capitalize;

  &::before {
    content: "Source: "
  }
}

@media only screen and (max-width: 768px) {
  *:not(h1)>br {
    display: none;
  }
}

/*** UTILITY CLASSES ***/
.neu>*,
.neu-card {
  border-radius: var(--space-3);
  background: var(--bg-color);
  box-shadow: var(--neu-shadow);
  animation: slide-from-bottom 4s;
  animation-timeline: view(block);
  animation-range: cover 0% cover 70%;
}

.left-border {
  font-size: var(--font-size-large);
  padding-left: var(--space-3);
  border-left: 4px solid var(--accent-2);
  max-width: 50%;

  @media only screen and (max-width: 768px) {
    max-width: none;
  }
}

.key>*,
.big-number {

  h3,
  h4 {
    font-size: var(--font-size-huge);
  }

  margin-top: var(--space-2);
  padding: var(--space-4);

  @media only screen and (max-width: 1024px) {
    margin: 0;
    padding: 0;
  }

  @media only screen and (max-width: 768px) {
    padding: var(--space-4) var(--space-4);
  }

}

.list {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;

  section {
    flex: 1 1 400px;
    min-width: 300px;
    padding: var(--space-3) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);

  }

  h3 {
    flex: 1 0 100%;
    display: none;

    @media only screen and (max-width: 768px) {
      display: block;
    }
  }
}

.cta {
  color: var(--accent-1);
  background-color: var(--bg-color);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-radius: var(--space-3);
  text-transform: uppercase;
  box-shadow: var(--neu-shadow);
  width: fit-content;
  text-wrap: nowrap;

  &:hover {
    color: black;
    box-shadow: var(--neu-shadow-rev);
  }

  &::before {
    content: none;
  }
}

.cta-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/*** UTILITY KEYFRAMES ***/


@keyframes disapear-to-right {
  0% {
    transform: translate(100vw, 0);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes disappear-to-left {
  0% {
    transform: translate(0vw);
  }

  100% {
    transform: translate(-100vw);
  }

}

@keyframes appear-from-left {
  0% {
    transform: translate(-100vw);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes appear-from-right {
  0% {
    transform: translate(100vw);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes slide-from-bottom {
  0% {
    transform: translate(0, var(--space-6));
  }

  100% {
    transform: translate(0);
  }
}

/*** FIGURES ***/



.animation-drop.size-3 {
  width: 100%;
  animation-delay: 2.25s;

}

.animation-drop.size-2 {
  width: 100%;
  margin: 64px;
  animation-delay: 1.5s;
}

.animation-drop.size-1 {
  width: 100%;
  margin: 64px;
  animation-delay: 0.75s;
}

.animation-drop.size-0 {
  width: 100%;
  margin: 64px;
  animation-delay: 0s;
}

.animation-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 /1;
  border-radius: 100%;
  animation: drop-wave 4s linear alternate infinite;
}

@keyframes drop-wave {
  0% {
    box-shadow: none;
  }

  50% {
    box-shadow:
      -4px -4px 6px 0 white,
      4px 4px 6px 0 #aeaec0,
      inset 4px 4px 6px 0 white,
      inset -4px -4px 6px 0 #aeaec0;
  }


  /* 100% {
      box-shadow: 
        -4px -4px 6px 0 #aeaec0,
        4px 4px 6px 0 white,
        inset 4px 4px 6px 0 #aeaec0,
        inset -4px -4px 6px 0  white;
  } */
}

/*** GENERAL LAYOUT ***/

body {
  background-color: var(--bg-color);
  overflow-x: hidden;
}

header,
main>* {
  padding: var(--space-5) 10vw;
}

footer {
  padding: var(--space-3) 10vw;
}

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

  header,
  main>*,
  footer {
    padding: var(--space-4) var(--space-3);
  }
}

/*** SECTION-SPECIFIC LAYOUT ***/

nav {
  z-index: 99;
  background-color: var(--bg-color);
  position: fixed;
  width: 100vw;
  height: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 0 10%;
  border-bottom: 1px solid var(--accent-2);
  gap: var(--space-3);
}

&:first-child {
  flex-grow: 1;

  img {
    height: var(--space-4);
  }
}

header {
  view-timeline-name: --header-timeline;
  display: flex;
  flex-flow: row;
  align-items: start;
  justify-content: start;
  gap: var(--space-4);
  padding-top: var(--space-6);
  background-color: #f0f0f3;

  h1 {
    text-wrap: nowrap;
  }

  >div:first-child {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    width: 50%;
  }

  >section:last-child {
    flex-grow: 1;
    justify-content: center;
    width: 50%;
  }

  @supports (animation-timeline: view()) {
    animation: shrink-slide-to-top-left linear forwards;
    animation-timeline: --header-timeline;
    animation-range: contain 100% 200%;
  }


  @media only screen and (max-width: 1024px) {
    justify-content: center;

    h1 {
      text-wrap: wrap;
    }

    >section:last-child {
      display: none;
    }
  }

}

@keyframes shrink-slide-to-top-left {
  0% {
    transform: scale(1) translate(0, 0);

  }

  100% {
    transform: scale(0.33333) translate(-100vw, 0);
  }
}

main>* {
  scroll-margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: var(--space-4);

  p.left-border {
    margin-bottom: var(--space-2);

    @supports (animation-timeline: view()) {
      animation: appear-from-left ease-in-out forwards;
      animation-range: entry 0% 35%;
      animation-timeline: view(block);
    }
  }
}

#features {
  view-timeline-name: --features-timeline;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;

  .figure {
    display: grid;
    grid-column: 5;
    grid-row: 5;
    aspect-ratio: 1/1;
    margin: auto;

    .neu-card {
      animation: none;
    }

    .bg {
      grid-row: 1/ 6;
      grid-column: 1 / 6;
      content: " ";
      border-radius: 100%;
      margin: 10%;
      z-index: -1;
    }

    section:first-child {
      grid-column: 3;
      grid-row: 1;
    }

    section:nth-child(2) {
      grid-column: 1;
      grid-row: 4;
    }

    section:nth-child(3) {
      grid-column: 5;
      grid-row: 4;
    }

    >section,
    section>h3 {
      display: flex;
      align-items: start;
      justify-content: center;
      flex-direction: column;
      gap: var(--space-2);
    }

    section:nth-child(n + 1) {
      justify-content: start;
    }

    >section {
      padding: var(--space-2);

      >p {
        border-left: 4px solid var(--accent-2);
        padding: var(--space-1);
        padding-left: var(--space-3);
        background-color: rgba(255, 255, 255, 0.2);
      }
    }
  }
}

#service {
  view-timeline-name: --service-timeline;

  >section {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    gap: var(--space-2);

    h3 {
      display: none;
    }

    >section {
      width: 256px;
      padding-block: var(--space-3);
      display: flex;
      align-items: center;
      justify-content: center;

      @supports(animation-timeline: --service-timeline) {
        animation: appear-from-left ease-in-out forwards;
        animation-timeline: --service-timeline;
      }


      &:nth-child(n + 0) {
        animation-range: entry 0% 60%;
      }

      &:nth-child(n + 1) {
        animation-range: entry 0% 55%;
      }

      &:nth-child(n + 2) {
        animation-range: entry 0% 50%;
      }

      &:nth-child(n + 3) {
        animation-range: entry 0% 45%;
      }

      &:nth-child(n + 4) {
        animation-range: entry 0% 40%;
      }
    }

    h4 {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  }
}

#last-screen {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: var(--space-4);

  .left-border {
    max-width: none;
  }
}

#about-us {
  padding: var(--space-5);
  scroll-margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1 1 400px;
  min-width: 250px;


  @media only screen and (max-width: 768px) {
    padding: var(--space-4);
  }
}


@media only screen and (max-width: 768px) {
  #about-us {
    padding: var(--space-4);
  }
}

#contact {
  view-timeline-name: --contact-timeline;
  scroll-margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: var(--space-5);
  flex: 0 1 600px;
  min-width: 250px;

  >h2>a {
    text-transform: none;
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  @supports(animation-timeline: view()) {
    >p {
      animation: disapear-to-right linear forwards;
      animation-timeline: --contact-timeline;
      animation-range: entry 0% contain 30%;
    }

  }
}

footer {
  border-top: 1px solid var(--accent-2);
  display: flex;
  flex-flow: row wrap;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);

  >address,
  >div {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  >address>a {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: var(--space-2);
  }

  .logo-social {
    font-size: var(--font-size-large);
    font-weight: bold;

    >span {
      color: var(--accent-1);
    }
  }
}
