:root {
    --font-sans-serif: Inter, sans-serif;
    --black: #000;
    --white:#fff;
    --gray: #9b9999;
    --orange: #c96100;
    --blue: rgb(211, 230, 250);
    --greenneon: #e0ff16f7;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/**
*Typography
*/

body {
    font-family: var(--font-sans-serif);
    line-height: 1.2;
    font-weight: 400;
    padding-left: 200px;
    background-image: 
        linear-gradient(to right, rgba(238, 136, 41, 0.469) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(238, 136, 41, 0.469) 1px, transparent 1px);
    background-size: 40px 40px;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans-serif);
    line-height: 0.9;
}

h1 {
    font-size: 7rem;
    font-weight: 650;
}

h2 {
    font-size: 3.5rem;
    font-weight: 550;
}

h3 {
    font-size: 2.8rem;
    font-weight: 550;
}

h4 {
    font-size: 2rem;
    font-weight: 450;
}

img {
    max-width: 100%;
    display: block;
}

.page__heading {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--orange);
    border: 5px solid var(--blue);
    border-radius: 999px;
}

.typography__type {
    font-size: 2rem;
    font-weight: 550;
    text-align: right;
    padding: 0;
    padding-right: 20px;
    margin: 0;
}

.page__description {
    text-align: center;
}
/**
*Side Bar
*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 180px;
    padding: 2rem 1rem;
    border-right: 1px solid var(--black);
    overflow-y: auto;
    background: var(--blue);
    z-index: 100;
}

.sidebar__logo {
    padding: 0;
    margin: 0;
}

.website__link {
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
    color: var(--black);
}

.website__link:hover {
    color: var(--orange);
}

.sidebar__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar__list {
    list-style: none;
    text-align: right;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.sidebar__list a {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    color: var(--black);
}

.sidebar__list a:hover,
.sidebar__list a.active {
    color: var(--orange);
}

.backto__top {
    margin-top: 20rem;
    text-align: right;
}

.backto__top-text {
    text-decoration: none;
    color: var(--black);
}
.backto__top a {
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.backto__top a:hover,
.backto__top a:active {
    color: var(--orange);
}


/**
*Components
*/

.components__name {
    font-size: 2rem;
    font-weight: 550;
    border-bottom: 3px dashed var(--orange);
}

.components img {
    max-width: initial;
}

.components__img {
    border: 1px solid var(--black);
    overflow-x: auto;
    padding: 10px;
    margin: 20px;
}

.components__code {
    border: 1px solid var(--black);
    margin: 20px;
    padding: 10px;
}

.components__label {
    font-weight: 700;
    color: var(--orange);
    background-color: var(--blue);
    display: inline;
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

/**
*Components - NAVBAR
*/

.main-nav {
    width: 100%;
    font-size: 1.5rem;
    padding: 1rem 2rem;
}

.main-nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.main-nav__logo {
    height: auto;
    line-height: 0.9;
    display: inline-block;
    white-space: normal;
}

.main-nav__menu {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-nav__menu a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  transition: color 0.3s;
  white-space: nowrap;
}

.main-nav__menu a:hover {
  text-decoration: underline;
}

/**
*Components - HERO
*/
.hero__title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: Inter, sans-serif;
}

.hero__static {
  font-size: 6rem;
  font-weight: 600;
}

.hero__viewport {
  height: 6rem;
  overflow: hidden;
  position: relative;
}

.hero__word-track {
  display: flex;
  flex-direction: column;

  animation: slideUp 6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__word-track span {
  font-size: 6rem;
  font-weight: 600;
  line-height: 1;
}

/* KEY ANIMATION */
@keyframes slideUp {
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(-87.5%);
  }
}
/**
*Components - COVER
*/
.cover__text {
    font-size: 7rem;
    font-weight: 650;
}

.cover__img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
  display: block;
}

/**
*Components - CLIENT STRIP
*/
.logo-strip {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  width: max-content;

  animation: scrollLeft 25s linear infinite;
}

.logo-track img {
  height: clamp(20px, 5vw, 60px); 
  width: auto;
  flex-shrink: 0;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/**
*Components - BUTTON
*/
.button__solutions {
    display: inline-block;
    border-radius: 999px;
    border: 0.5px solid var(--black);
    color: var(--black);
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
}

.button__solutions:hover {
    color: var(--black);
    background: var(--white);
}

/**
*Components - PROJECT CARDS
*/
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project__img-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.components .project__img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.project__cards:hover .project__img-wrap img {
    transform: scale(1.1);
}

.project__cards h2,
.project__cards p {
    margin: 10px;
}

/**
*Components - SERVICES
*/
.services__heading {
    border-bottom: 1px solid var(--black);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.services__layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* LEFT */
.services__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services__item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 4rem;
    font-weight: 650;
    line-height: 1.1;
    color: var(--black);
    transition: color 0.3s;
}

.services__item.active {
    color: var(--black);
}

.services__num {
    font-size: 1rem;
    font-weight: 400;
    color: var(--black);
    align-self: flex-start;
    margin-top: 0.5rem;
}

.services__dot {
    opacity: 0;
    font-size: 5rem;
    transition: opacity 0.3s;
}

.services__item.active .services__dot {
    opacity: 1;
}

/* MIDDLE */
.services__subitems {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
}

.services__subitems.active {
    display: flex;
}

.services__subitems p {
    margin: 0;
    font-size: 1rem;
}

/* RIGHT */
.services__image img {
    width: 100%;
    height: auto;
    display: block;
}

/**
*Components - TESTIMONIALS
*/
.testimonials {
    padding: 4rem 2rem;
}

.testimonials__track {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--black);
    padding-bottom: 3rem;
}

.testimonials__card {
    flex: 0 0 40vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    padding-right: 3rem;
    border-right: 1px solid var(--black);
    margin-right: 3rem;
}

.testimonials__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.testimonials__quote {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.testimonials__text {
    font-size: 1.5rem;
    font-weight: 450;
    line-height: 1.3;
    margin: 0;
    flex: 2;
    padding-top: 1rem;
}

.testimonials__author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 1rem;
    margin-top: 2rem;
}

.testimonials__author strong {
    font-weight: 700;
}

.testimonials__author span {
    font-weight: 400;
    color: var (--gray);
}

.testimonials__footer {
    margin-top: 3.5rem;
}

.testimonials__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 350;
    text-decoration: none;
    background: var(--black);
    border-radius: 999px;
    padding: 15px 25px;
}

.testimonials__cta:hover {
    background: var(--white);
    color: var(--black);
}

/**
*Components - IMG SWAP
*/
.img-swap__combo {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.img-swap__text {
    font-size: 15rem;
    font-weight: 500;
    padding-right: 10px;
}

.img-swap {
    position: relative;
}

.img-swap__hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.1s;
}

.img-swap img:first-child {
    opacity: 1;
    position: relative;
}

/**
*Components - FOOTER
*/
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer__logo {
    display: flex;
    flex-direction: column;
    font-size: 4rem;
    font-weight: 500;
    line-height: 0.9;
}
.footer__list {
    list-style: none;
}

.footer__list-items a {
    color: var(--black);
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.8;
}

.footer__credit {
    align-self: flex-end;
}

/**
*Components - STICKY BANNER
*/
.banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 0.8rem 1rem;
    z-index: 999;
    background: var(--greenneon);
}

.banner__heading {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

.banner__text {
    font-size: 0.7rem;
    margin: 0;
}

.banner__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.banner__cta {
    display: inline-flex;
    font-size: 1rem;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--black);
    border-radius: 999px;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--black);
    white-space: nowrap;
    transition: background 0.3s;
}

.banner__cta:hover {
    background: var(--black);
    color: var(--white);
}

.banner__close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    font-size: 1.5rem;
    font-weight: 200;
}

/**
*Components - CURSOR
*/

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background: black;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}