/* global */
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  color: #ededed;
  background: #0a0a0a;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* header */
.header {
    width: 100%;
    padding: 0 140px;
    display: flex;
    height: 60px;
    position: fixed;
    box-sizing: border-box;
    z-index: 999;
    border-bottom: 1px solid #ffffff1a;
    background-color: #01011140;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.inner {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

nav#main {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.menubtn,
.submenubtn {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.submenu {
    height: 100%;
    overflow: hidden;
}

.submenubtn {
    height: 100%;
    transition: all 0.3s ease;
}

.submenubtn img {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease-in-out;
}

.submenu a:hover, .submenu:hover .submenubtn {
    color: #bababa;
}

.submenu a:hover img,
.submenu:hover .submenubtn img {
    transform: rotate(-180deg);
}

.submenucontent a:hover {
    color: goldenrod;
    background-color: #1F1F1F;
}

.submenucontent {
    overflow: hidden;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
    transition: opacity 0.5s ease;
    opacity: 0;
    transform: translateY(-100vh);
}

.submenucontent .inner {
    height: 100%;
    margin-top: 8px;
    border: 1px solid #ffffff34;
    background-color: #010101;
    display: flex;
    flex-direction: row;
}

.submenucontent .inner .highlight {
    width: 220px;
    flex-shrink: 0;
    align-self: stretch;
    padding: 40px 15px 20px 20px;
    background: #202020;
    position: relative;
    overflow: hidden;
    border-right: 1px solid;
    border-image: linear-gradient(to bottom, #333, #555, #333) 1;
}

.highlight .desc {
    position: relative;
    z-index: 10;
}

.highlight h4 {
    text-transform: uppercase;
    margin-bottom: 12px;
    color: goldenrod;
    border-bottom: 1px solid goldenrod;
}

.highlight span {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.9rem;
}

.highlight p {
    color: #A0A0A0;
    font-size: 0.8rem;
    line-height: 1.2rem;
    padding: 12px 0;
}

.highlight img {
    display: block;
    position: absolute;
    bottom: 0;
    left: -15px;
    z-index: 1;
}

.submenucontent .inner .links {
    padding: 40px 50px 30px 50px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    flex: 1;
}

.submenucontent .inner .pillar {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.submenucontent .inner .pillar h4 {
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 0 15px;
}

.submenucontent a {
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease-in-out, padding-left 0.3s ease-in-out;
}

.submenucontent a:hover {
    animation: fadeInBackground 0.3s forwards;
    padding-left: 20px;
}

.submenucontent a:not(:hover) {
    animation: fadeOutBackground 0.9s forwards;
}

@keyframes fadeInBackground {
    from {
        background-color: transparent;
    }
    to {
        background-color: #1A1A1A;
    }
}

@keyframes fadeOutBackground {
    from {
        background-color: #1A1A1A;
    }
    to {
        background-color: transparent;
    }
}

.submenu:hover .submenucontent {
    height: auto;
    transform: translateY(0);
    opacity: 1;
}

.cta .contact {
    position: relative;
    background: linear-gradient(135deg, white, #9c83ff);
    color: black;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 0 20px rgba(156, 131, 255, 0.3);
    outline: 1px dashed #666;
    outline-offset: 4px;
    transition: all 0.3s ease;
}

.cta .contact:hover {
    background: linear-gradient(135deg, #ffffff, #b49aff); /* slightly lighter end */
    box-shadow: 0 0 25px rgba(156, 131, 255, 0.4);
}

.cta .contact::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        #ff0000,
        #ff7300,
        #fffb00,
        #48ff00,
        #00ffd5,
        #002bff,
        #7a00ff,
        #ff00c8,
        #ff0000
    );
    border-radius: 10px;
    background-size: 400%;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

.cta .contact img {
    color: black;
    margin-right: 6px;
    animation: attention 4s infinite;
    transition: transform 0.3s ease;
}

.cta .contact:hover img {
    animation: shake 0.5s infinite ease-in-out;
    transform: scale(1.2) rotate(0deg);
}

@keyframes shake {
    0% { transform: scale(1.2) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-15deg); }
    75% { transform: scale(1.2) rotate(15deg); }
    100% { transform: scale(1.2) rotate(0deg); }
}

@keyframes attention {
    0%, 95% { transform: scale(1); }
    96% { transform: scale(1.2) rotate(-15deg); }
    97% { transform: scale(1.2) rotate(15deg); }
    98% { transform: scale(1.2) rotate(-15deg); }
    99% { transform: scale(1.2) rotate(15deg); }
    100% { transform: scale(1); }
}

@keyframes flipArrow {
    0% {
      transform: rotate(0deg); /* Start from down */
    }
    100% {
      transform: rotate(-180deg); /* End at up */
    }
  }


/* hero section */

.hero {
    height: 100svh;
    box-sizing: border-box;
    padding: 180px 140px 60px 140px;
    display: flex;
    flex-direction: column;
    background: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 1) 95%),
        url("../images/backgrounds/bg_stars-speed.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.heroimage {
    position: absolute;
    right: 160px;
}

.intro {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.highlight {
    font-weight: 600;
}

.circle {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-radius: 50%;
    background: white;
    display: inline-block;
}

.desc {
    max-width: 660px;
    margin: 5px 0 20px 0;
}

.desc h1 {
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 2.8rem;
}

.desc p {
    margin: 20px 0 0 0;
    font-size: 1.1rem;
    line-height: 1.9rem;
}

.actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.actions .secondary,
.actions .primary {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.actions .primary {
    background: white;
    color: black;
}

.secondary {
    background: #1f1f1f;
    opacity: 0.7;
    cursor: not-allowed;
}

.primary:hover {
    background: #DADADA;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.secondary:hover {
    color: #c0c0c0;
    background: #1a1a1a;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.bottom {
    display: flex;
    flex-direction: row;
}

.services {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.service {
    width: 260px;
    box-sizing: border-box;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    border: 1px solid #fff3;
    border: 1px solid #2F2F2F;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(to right, #2a2a2a, #1a1a1a);
    background: linear-gradient(225deg,#00001000 71%,#9c83ff4d);
    background-color: #020202;
    cursor: default;
    opacity: 1;
    transition: all 0.3s ease;
    animation: pulseIn 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67) backwards;
}

.service:nth-child(1) {
    animation-delay: 0.3s;
}

.service:nth-child(2) {
    animation-delay: 0.6s;
}

.service:nth-child(3) {
    animation-delay: 0.9s;
}

.service:hover {
    transform: scale(1.05);
    background: linear-gradient(210deg,#00001000 60%,#faa8564d);
    background-color: #020202;
    border: 1px solid #4A4A4A;
}

.service .icon {
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.service .icon h3 {
    margin-left: 7px;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
}

.service p {
    line-height: 1.5rem;
    color: #EAEAEA;
}

.service a {
    width: auto;
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #999;
}

.partners {
    display: flex;
    flex: 1;
    align-self: flex-end;
    justify-content: flex-end;
}

.testimg {
    display: block;
    position: absolute;
    right: 250px;
    top: 100px;
}


.slideFromLeft {
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInLeft 1s ease forwards;
}

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

@keyframes pulseIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    70% {
        opacity: 1;
        transform: scale(1.1) translateY(-5px);
    }
    85% {
        transform: scale(0.95) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* kicker */
.kicker {
    font-weight: 600;
    font-size: .625rem;
    letter-spacing: .15vw;
    text-transform: uppercase;
    position: relative;
    color: #ffba1f;
    line-height: 2rem;
    height: 2rem;
    overflow: hidden;
}

.slogans {
    position: relative;
    height: 2rem;
    top: 0;
    animation: spinner 20s ease infinite;
    animation: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
}
  
.slogan {
    position: absolute;
    height: 2rem;
    width: max-content;
    box-sizing: border-box;
    border-radius: 50px;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #DAA52080;
}

.slogan .text {
    margin-left: 10px;
    flex-shrink: 0;
    background-image: linear-gradient(90deg, goldenrod, white);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    color: white;
}
