/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

.manrope-font {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight:400;
  font-style: normal;
}

body {
    color: #fff;
    background: #41495e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-height: 100vh;
    padding: 2rem;
    font-family: "Manrope", sans-serif;
    font-optical-sizing: auto;
    font-weight:400;
    font-style: normal;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: normal;
}

/* Header styles */
header {
    width: 100%;
    margin: 2rem 0 1rem;
    padding: 0 1rem;
}

nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;

    @media (min-width: 1024px) {
        flex-direction: row;
    }
}

nav h1 {
    font-size: 1.5rem;
    line-height: 1.125;
    font-weight: 700;
    text-align: left;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
nav h1 .h1-sub {
    font-size: 1.125rem;
    font-weight: 300;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: #bdc3d3;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    
}
nav ul li a {
    
}

/* Main content */
main {
    max-width: 42rem;
}

main nav {
    width: 100%;
    margin-top: 2.5rem;
}

main nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}
@media (min-width: 1024px) {
    main nav ul {
        flex-direction: row;
    }
}
main nav ul li a {
    min-width: 200px;
}
@media (min-width: 1024px) {
    main nav ul li a {
        min-width: inherit;

    }
}


main h2 {
    font-size: 5rem;
    line-height: 1.125;
    font-weight: bolder;
    text-align: center;
    color: #bdc3d3;
    text-decoration: none;
    transition: color 0.3s ease;
    text-wrap: balance;
}

main h3 {
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: normal;
    text-align: center;
    color: #bdc3d3;
    text-decoration: none;
    transition: color 0.3s ease;
    max-width: 50rem;
    margin: 2rem auto 0;
    text-wrap: balance;
}

main p {
    margin: 2rem auto 1rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: normal;
    color: #bdc3d3;
    text-decoration: none;
    transition: color 0.3s ease;
    max-width: 50rem;
    text-wrap: balance;
}


.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 56px;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    border: 2px solid #bdc3d3;
    color: #41495e;
    background: #bdc3d3;
    opacity: .9;
}
.button--outline {
    border: 2px solid #bdc3d3;
    color: #bdc3d3;
    background-color: transparent;
}


.button:hover {
    opacity: 1;
    scale: 1.1;
}

section {
    
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin: 3rem 0 1rem;
    padding: 0 1rem;
}

footer img, footer svg {
    padding: .5rem;
    color: #bdc3d3;
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav h1 {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    

    nav ul {
        gap: 1rem;
    }
    
    main {
        
    }

    main h2 {
        font-size: 10vw;
    }
    
    section {
        
    }
}

#fluid, #smoke {
    position: fixed;
    top: 0; left: 0;
    width: 100dvw;
    height: 100dvh;
    z-index: -1;
    background: transparent;
}

 
 /* marquee */
.marquee-wrapper {
	display: grid;
	place-content: center;
}

.marquee {
	overflow: hidden;
	position: relative;
	mask-image: linear-gradient(
		var(--mask-direction, to right),
		hsl(0 0% 0% / 0),
		hsl(0 0% 0% / 1) 10%,
		hsl(0 0% 0% / 1) 90%,
		hsl(0 0% 0% / 0)
	);
}

.marquee__ctn {
	display: flex;
	width: 100%;
}

.marquee__track {
	display: flex;
}

@supports (-webkit-touch-callout: none) {
	.marquee__ctn {
		transform: translate3d(0, 0, 0) scale(1);
		perspective: 1px;
	}
}

.marquee__item {
	display: flex;
	align-items: center;
	justify-content: center;

	flex-shrink: 0;

	width: 120px;
	margin-inline-end: 3rem;

	img {
		height: 60px;
		width: 100%;
		object-fit: contain;
		backface-visibility: hidden;
		filter: brightness(100%);
	}
}

a.flip-animate {
  perspective: 1000px;
  
  span {
    position: relative;
    display: inline-block;
    padding: 0;    
    transition: transform 0.3s;
    transform-origin: 50% 0;
    transform-style: preserve-3d;
  }
  
  span:before {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    content: attr(data-hover);
    transition: color 0.3s;
    transform: rotateX(-90deg);
    transform-origin: 50% 0;
    text-align: center;
  }
  
  &:hover span,
  &:focus span {
    transform: rotateX(90deg) translateY(-22px);
  }
  
  &:hover span:before,
  &:focus span:before {

  }
}


.btn {
    position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        border-radius: calc(infinity * 1px);
        font-weight: 500;
        font-size: 16px;
        line-height: 1.4;
        text-decoration: none;

    @media (min-width: 1024px) { 
        overflow: hidden;
        cursor: pointer;
        transition: all .4s cubic-bezier(.4, 0, .2, 1);
    }
  }
  .btn span {
    

    @media (min-width: 1024px) { 
        font-size:0;
    }
  }
  
  .btn:hover {
    padding: 16px 32px;
  }
  .btn:hover span {
    @media (min-width: 1024px) { 
        font-size:1.0rem;
    }
    
  }
  .btn:hover .ico {
    margin-left: 0px;
    transform:rotate(360deg);
  }
  .btn:hover .span {
    visibility:visible;
  }
  .ico {
    display:inline-flex;
    align-items:center;
    justify-content: center;
    transition:all 0.5s;
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 20px;
    font-size: 1.5em;
  }
  .ico::before {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    content: "\f2c3" !important;
    font-family:Ionicons;
    margin-left:-5px;
  }
  .btn:hover .ico::before {
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    content: "\f10b" !important;
    font-family:Ionicons;
    margin-left:-5px;
  }
  
  
  .tooltip {
    transform: translate(-50%, -200%);
    display: none;
    position: absolute;
    color: #41495e;
    background-color: #bdc3d3;
    border: none;
    border-radius: 4px;
    padding: 15px 10px;
    z-index: 10;
    display: block;
    width: 100%;
    max-width: 200px;
    top: 0;
    left: 50%;
    text-align: center;
}

.tooltip:after {
    content: "";
    display: block;
    position: absolute;
    border-color: rgba(189, 195, 211, 1) rgba(189, 195, 211, 0);
    border-style: solid;
    border-width: 15px 15px 0;
    bottom: -13px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 0;
}
