@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --font-family: "Figtree", Helvetica, Arial, sans-serif;
  --blue-light: #00a7e0;
  --blue: #2860ad;
  --red-light: #e21b23;
  --red: #a92231;
  --purple-light: #b249d3;
  --purple: #6d2978;
  --dark: #101010;
  --light: #f6f3f0;

  --font-h1-lg: 7.5rem;
  --font-h1-lg: clamp(3rem, 5vw, 7.5rem);

  --font-h1: 5.625rem;
  --font-h1: clamp(2.5rem, 5vw, 5.625rem);

  --font-h2: 3.75rem;
  --font-h2: clamp(2rem, 5vw, 3.75rem);

  --font-h3: 2.25rem;
  --font-h3: clamp(1.5rem, 5vw, 2.25rem);

  --font-p: 1.125rem;
  --font-small: 1rem;
  --line-height: 160%;
  --line-height-thin: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

body {
  position: relative;
  font-family: var(--font-family);
  background-color: var(--dark);
  color: var(--light);
  margin: 0;
  padding: 0;
  line-height: var(--line-height);
}

/* Headers & Text Formatting */
h1 {
  font-size: var(--font-h1);
  font-weight: 700;
  line-height: var(--line-height-thin);
  word-break: break-word;
}

h2 {
  font-size: var(--font-h2);
  font-weight: 700;
  font-style: normal;
  line-height: var(--line-height-thin);
}

h3 {
  font-size: var(--font-h3);
  font-weight: 600;
  line-height: var(--line-height-thin);
}

p,
a {
  font-size: var(--font-p);
  font-weight: 300;
  line-height: var(--line-height);
}

a {
  color: inherit;
  transition: color 0.3s;
  cursor: pointer;
}

.button {
  display: inline-flex;
  border-radius: 100px;
  border: none;
  background: none;
  position: relative;
  width: auto;
  padding: 1px;
  text-decoration: none;
  transition: all 0.18s ease-in-out;
  transform: translate3d(0, 0, 0);
}

.button.anim::before,
.button.anim::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: calc(100px + 1.5px);
  background-size: 100% 100%;
  background-position: 0px 0px;
  background-image: conic-gradient(
    from var(--angle) at 50% 50%,
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0.8) 10deg,
    rgba(255, 255, 255, 0) 40deg,
    rgba(255, 255, 255, 0) 360deg
  );
  animation: rotate 2.5s infinite linear;
}

.button span {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #ffffff1a;
  border-radius: 100px;
  transition: all 0.18s ease;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(40px);
  backface-visibility: hidden;
  padding-block: 0.75rem;
  padding-inline: 2rem;
  z-index: 1;
}

.button.primary span {
  background: rgba(255, 255, 255, 0.1);
}

.button:hover span {
  background: rgba(0, 167, 224, 0.1);
  color: var(--light);
}

.button:active {
  transform: scale(0.95);
}

.svg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate {
  0% {
    --angle: 0deg;
  }
  100% {
    --angle: 360deg;
  }
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTAINER */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 6.25rem;
  width: 100%;
}

/* Media Queries */
@media screen and (max-width: 1240px) {
  .container {
    padding: 0 3rem;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* NAVIGATION */
nav {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 160px;
  padding: 2rem 6.25rem;
  z-index: 100;
}

nav img {
  height: 4.8rem;
}

body[data-page="home"] nav img {
  height: 6.25rem;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav ul li a {
  position: relative;
  text-decoration: none;
  padding-block: 6px;
  opacity: 0.8;
}

nav ul li a:hover {
  opacity: 1;
}

nav ul li a:hover::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

nav ul li a.active {
  opacity: 1;
}

nav ul li a.button.active {
  font-weight: normal;
}

nav ul li a.button {
  opacity: 1;
}

nav .mobile-menu {
  display: none;
}

nav #toggle-nav {
  position: relative;
  width: 25px;
  height: 20px;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  vertical-align: baseline;
}

nav #toggle-nav span {
  opacity: 1;
  left: 0;
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--light);
  position: absolute;
  transform: rotate(0deg);
  transition: 0.4s ease-in-out;
}

nav #toggle-nav span:nth-child(1) {
  top: 0;
}

nav #toggle-nav span:nth-child(2) {
  top: 9px;
}

nav #toggle-nav span:nth-child(3) {
  top: 18px;
}

nav #toggle-nav.open span:nth-child(1) {
  transform: translateY(9px) rotate(135deg);
}

nav #toggle-nav.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-60px);
}

nav #toggle-nav.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-135deg);
}

@media screen and (max-width: 1024px) {
  body.nav-active {
    overflow: hidden;
    height: 100vh;
  }

  nav {
    height: 100px;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    padding: 3rem 5rem;
    margin: 0;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    height: calc(100vh - 140px);
    pointer-events: none;
    opacity: 0;
  }

  nav ul.active {
    background-color: var(--dark);
    opacity: 1;
    transform: scaleY(1);
    pointer-events: initial;
    height: 100vh;
  }

  nav ul li {
    transform: scaleY(0);
    transition: none;
    opacity: 0;
  }

  nav ul.active li {
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem 0;
    opacity: 1;
    transform: scaleY(1);
    transition: all 0.3s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition-delay: 0.1s;
  }

  nav ul.active li:nth-child(2) {
    transition-delay: 0.2s;
  }

  nav ul.active li:nth-child(3) {
    transition-delay: 0.3s;
  }

  nav ul.active li:nth-child(4) {
    transition-delay: 0.4s;
  }

  nav ul.active li:nth-child(5) {
    transition-delay: 0.5s;
  }

  nav .mobile-menu {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  nav img {
    height: 4rem;
  }
}

/* BANNER */
.banner-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: min-content;
  padding-block: calc(160px + 4rem);
  overflow: hidden;
}

.banner-section .container {
  display: flex;
}

.banner-section h1 {
  margin-bottom: 1.2rem;
}

.banner-section p {
  max-width: 600px;
}

/* CTA */
.cta-section {
  position: relative;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-bottom: 100px;
}

.cta-rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: var(--font-h1-lg);
  margin-bottom: 1rem;
  max-width: 880px;
  margin-inline: auto;
}

.cta-section .btn-group {
  display: inline-flex;
  gap: 1rem;
  margin-top: 3.75rem;
}

@media screen and (max-width: 768px) {
  .cta-section {
    position: relative;
    padding-bottom: 150px;
  }

  .cta-section .btn-group {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .cta-section {
    height: auto;
    min-height: 800px;
  }
}

/* FOOTER */
footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 6.25rem;
  width: 100%;
  background: rgba(0, 0, 0, 0.15);
}

footer p {
  font-size: 14px;
}

footer .socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

footer .socials a {
  color: var(--light);
  transition: color 0.3s;
}

footer .socials a:hover {
  color: var(--blue);
}

footer .socials a img {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  footer p {
    text-align: center;
  }
}

/* 404 */
main.error-404 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100vh;
}

body:has(main.error-404) {
  overflow: hidden;
  height: 100vh;
}

main.error-404 .banner-section .container {
  flex-direction: column;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

main.error-404 .banner-section p {
  max-width: 550px;
}

main.error-404 .banner-section .button {
  margin-top: 2rem;
}

/* lenis */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
