/* Background Gradient */
@import "./assets/css/gradient.css";

/* Font Imports */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@200;300;400&display=swap");

:root {
  /* Sizes and Effects */
  --circle-size: 85%;
  --blending: plus-lighter;
  --grid-gap: 1rem;

  /* Animation Timings */
  --transition-speed: 300ms;
  --fade-speed: 800ms;
  --theme-transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradient Positions */
  --g1-offset: -200px;
  --g2-offset: 300px;
  --g3-offset: -400px;
  --g4-offset: 250px;
  --g5-offset: -300px;

  /* Theme Colors - Dark (Default) */
  --primary-color: #4a90e2;
  --primary-hover-color: #357abd;
  --secondary-color: #2c3e50;

  --text-color: #ffffff;
  --text-secondary: #a1a1a1;
  --background-color: #202124;
  --app-container: #10161c;

  /* Project Board Colors - Dark Theme */
  --surface-color: #555555;
  --sidebar-bg: #1a1a1a;
  --border-color: #404040;
  --border-dark: #202020;
  --input-bg: #3c3c3c;
  --toolbar-bg: #2d2d2d;
  --column-bg: rgba(255, 255, 255, 0.02);
  --item-bg: #3c3c3c;
  --tag-bg: #404040;
  --tag-color: #e8eaed;
  --modal-bg: #2d2d2d;
  --button-bg: #3c3c3c;
  --button-color: #1a1a1a;
  --button-hover-bg: #4d4d4d;
  --button-active-bg: #4a90e2;
  --button-active-color: #ffffff;
  --panel-bg: #0a0a0a;

  /* Fonts */
  --font-opensans: "Open Sans", Arial, sans-serif;
  --font-raleway: "Raleway", sans-serif;
  --font-roboto: "Roboto", sans-serif;

  /* Layout */
  --card-padding: 48px;
  --logo-width: 220px;

  /* Updated Background Colors */
  --color-bg1: rgb(8, 10, 15);
  --color-bg2: rgb(0, 17, 32);
  --color-bg-accent1: rgba(18, 113, 255, 0.015);
  --color-bg-accent2: rgba(80, 47, 122, 0.02);

  /* Gradient Colors */
  --color1: rgb(18, 113, 255);
  --color2: rgb(107, 74, 255);
  --color3: rgb(100, 100, 255);
  --color4: rgb(50, 160, 220);
  --color5: rgb(80, 47, 122);
  --color-interactive: rgb(140, 100, 255);
}

/* Light Theme Colors */
:root body.light {
  /* Theme Colors - Light */
  --text-color: #333333;
  --text-secondary: #5f6368;
  --background-color: #ffffff;
  --app-container: #fefefe;
}

/* Splash Page Body */

html,
body {
  position: fixed;
  width: 100% !important;
  height: 100% !important;
  backface-visibility: hidden;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Resets */

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

/* Helper classes */

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* Base Typography */
body {
  font-family: var(--font-roboto);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-opensans);
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-light {
  font-weight: 300;
}

/* Neuro Background */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.95;
  z-index: 10;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease-out;
}

body.light canvas {
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* Hide canvas if WebGL fails */
canvas.hidden {
  display: none;
}

/* Splash Page Styles */

body,
div.splash {
  margin: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  background: linear-gradient(
    135deg,
    rgb(20, 15, 35) 0%,
    /* very dark purple-tinted black */ rgb(15, 20, 45) 45%,
    /* very dark blue-tinted black */ rgb(10, 25, 50) 100%
      /* very dark navy-tinted black */
  );
  opacity: 1; /* remove opacity, colors are dark enough */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -webkit-background-size: cover;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  user-select: none;
  overflow: hidden;
  z-index: 999;
}

body,
div.splash {
  background: linear-gradient(
    135deg,
    rgb(20, 15, 35) 0%,
    /* very dark purple-tinted black */ rgb(15, 20, 45) 45%,
    /* very dark blue-tinted black */ rgb(10, 25, 50) 100%
      /* very dark navy-tinted black */
  );
  opacity: 1; /* remove opacity, colors are dark enough */
  overflow: hidden;
}

div.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.splash-container {
  position: absolute;
  left: 50%;
  top: 45%;
  height: auto;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

body.ready div.splash {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 1;
}

body.ready .splash {
  position: relative;
  width: 100%;
  height: auto;
  opacity: 1;
  width: 255px;
  min-width: 255px;
}

body.light .splash,
body.ready.light .splash {
  width: 225px;
  min-width: 225px;
}

flt-glass-pane {
  visibility: hidden;
  opacity: 0;
}

body.loaded flt-glass-pane {
  visibility: visible;
  opacity: 1;
  transition: opacity 1500ms ease-in-out;
  -webkit-transition: opacity 1500ms ease-in-out;
  padding-left: constant(safe-area-inset-left);
  padding-right: constant(safe-area-inset-right);
}

body.loaded div.splash {
  opacity: 0;
  transition: opacity 800ms ease-out;
  -webkit-transition: opacity 800ms ease-out;
}

/* IOS Safe Area Fixes */

body,
html,
div.splash,
flt-glass-pane {
  padding-left: constant(safe-area-inset-left);
  padding-right: constant(safe-area-inset-right);
  padding-bottom: constant (safe area inset bottom);
  padding-bottom: env(safe area inset bottom);
}

/* App Container Styles */
.container.cover {
  width: 100%;
  height: 100vh;
  text-align: center;
  display: block;
  position: fixed;
  z-index: 100;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
}

/* App Container Styles */
.app {
  width: 100%;
  height: 100%;
  min-width: 100%;
  margin: 0 auto;
  padding: 0;
  transition: height 300ms ease-in 1000ms;
}

.app.loaded {
  height: calc(100vh + 100px);
  min-height: calc(100vh + 100px);
}

/* Content transitions
.page-content {
  opacity: 1;
  transform: translateX(0);
  transition: opacity var(--fade-speed) cubic-bezier(0.4, 0, 0.2, 1),
    transform var(--fade-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.page-content.exit {
  opacity: 0;
}

.page-content.enter {
  opacity: 0;
}
 */

/* Loadng Screen */
.site-loader {
  position: fixed;
  display: flex;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  font-family: "SourceSans";
  box-sizing: border-box;
  -webkit-transition: transform 800ms cubic-bezier(0.19, 1, 0.56, 1);
  transition: transform 800ms cubic-bezier(0.19, 1, 0.56, 1);
  -webkit-transform: translate3d(0, -100%, 0);
  transform: translate3d(0, -100%, 0);
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 999995200;
}

.site-loader.show {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Main Container Styles */
.container {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  text-align: center;
  background: transparent;
  z-index: 11;
  transition: scale 600ms cubic-bezier(0.785, 0.135, 0.15, 0.86) 300ms;
  scale: 0;
}

.app.loaded .container {
  scale: 1;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

/* Overlay and Logo Styles */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/img/darkstripe.png");
  background-repeat: repeat;
  opacity: 0.25;
  transition: opacity 600ms ease-out 100ms;
  z-index: 1;
}

img.logo {
  position: absolute;
  width: 180px;
  height: auto;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -135px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  z-index: 10;
}

/* Card Component Styles */
.card {
  position: absolute;
  z-index: 10;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  width: 90%;
  max-width: 600px;
  min-width: 290px;
  padding: 48px;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 90px rgba(0, 0, 0, 0.31);
  overflow: visible;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.card:before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    white 34%,
    white 89%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.12;
  filter: blur(0.5px);
  mix-blend-mode: hard-light;
}

/* Card Content Styles */
.card .noise {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  opacity: 0.1;
}

.card .content-box {
  position: relative;
  color: #242424;
  z-index: 2;
  text-shadow: -3px 0px 2px rgba(0, 0, 0, 0.1);
}

.card h1 {
  font-family: var(--font-opensans);
  font-size: 3.5rem;
  margin-bottom: 36px;
  margin-top: 20px;
  color: #ffffff;
  text-align: center;
}

.card h3 {
  font-family: var(--font-roboto);
  font-size: 1.78rem;
  margin-bottom: 36px;
  margin-top: 20px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  line-height: 1.3;
  height: 120px;
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  padding-top: 10px;
}

.card h3 {
  width: 100%;
  display: block;
}

.card h3 span {
  display: inline;
  white-space: normal;
}

.card h3 .word {
  position: relative;
  color: rgb(100, 100, 255);
  animation: colorFade 0.5s ease-out forwards;
}

.card h3 .word::after {
  content: "|";
  position: absolute;
  right: -4px;
  color: #ffffff;
  animation: blink 1s step-end infinite;
  opacity: 0;
}

.card h3 .word:last-of-type::after {
  animation: blink 1s step-end infinite;
  opacity: 1;
}

.card h3 .letter {
  opacity: 0;
  display: inline-block;
  animation: typeIn 0.05s ease-out forwards;
}

/* Adjust delays for each word's color transition and letter animations */
.card h3 .word:nth-child(1) {
  animation-delay: 2.6s;
}
.card h3 .word:nth-child(2) {
  animation-delay: 3.2s;
}
.card h3 .word:nth-child(3) {
  animation-delay: 4s;
}
.card h3 .word:nth-child(4) {
  animation-delay: 4.6s;
}
.card h3 .word:nth-child(5) {
  animation-delay: 5.2s;
}
.card h3 .word:nth-child(6) {
  animation-delay: 6s;
}
.card h3 .word:nth-child(7) {
  animation-delay: 6.8s;
}
.card h3 .word:nth-child(8) {
  animation-delay: 7.4s;
}
.card h3 .word:nth-child(9) {
  animation-delay: 8.2s;
}
.card h3 .word:nth-child(10) {
  animation-delay: 8.8s;
}

/* Letter animation delays for first word (others follow similar pattern) */
.card h3 .word:nth-child(1) .letter:nth-child(1) {
  animation-delay: 2s;
}
.card h3 .word:nth-child(1) .letter:nth-child(2) {
  animation-delay: 2.05s;
}
.card h3 .word:nth-child(1) .letter:nth-child(3) {
  animation-delay: 2.1s;
}
.card h3 .word:nth-child(1) .letter:nth-child(4) {
  animation-delay: 2.15s;
}
.card h3 .word:nth-child(1) .letter:nth-child(5) {
  animation-delay: 2.2s;
}
.card h3 .word:nth-child(1) .letter:nth-child(6) {
  animation-delay: 2.25s;
}
.card h3 .word:nth-child(1) .letter:nth-child(7) {
  animation-delay: 2.3s;
}
.card h3 .word:nth-child(1) .letter:nth-child(8) {
  animation-delay: 2.35s;
}
.card h3 .word:nth-child(1) .letter:nth-child(9) {
  animation-delay: 2.4s;
}
.card h3 .word:nth-child(1) .letter:nth-child(10) {
  animation-delay: 2.45s;
}
.card h3 .word:nth-child(1) .letter:nth-child(11) {
  animation-delay: 2.5s;
}
.card h3 .word:nth-child(1) .letter:nth-child(12) {
  animation-delay: 2.55s;
}

.card .content-box p {
  font-family: var(--font-roboto);
  font-size: 1.15rem;
  line-height: 1.5;
  text-align: center;
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card .content-box p.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: darken(var(--primary-color), 10%);
}

.card button {
  display: block;
  width: 255px;
  height: 50px;
  font-size: 1.25rem;
  font-weight: 300;
  background: transparent;
  border-radius: 1px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  right: 8px;
  top: calc(100% - 58px);
  opacity: 0.45;
  z-index: 100;
}

.card button:hover {
  color: #ffffff;
  background: #3084c8;
  border: 2px solid rgba(48, 132, 200, 1);
  opacity: 1;
}

.card button:active,
.card button:focus {
  background: #4dafff;
  border: 2px solid rgba(77, 175, 255, 1);
  outline: none;
}

/* Launch Button Styles */
.launch-button-container {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto;
  margin-top: 48px;
  margin-bottom: 48px;
  text-align: center;
}

.launch-button {
  position: relative;
  margin: 0 auto;
  text-align: center;
}

/* Page Transition Styles */
.page-transition {
  position: fixed;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  background: var(--color-background, #000);
  transition: opacity 800ms ease-in-out 200ms,
    visibility 800ms ease-in-out 500ms;
}

.page-transition.active {
  visibility: visible;
  opacity: 1;
}

/* Footer Styles */
.footer {
  position: absolute;
  bottom: 80px;
  width: 100%;
  height: 0;
  text-align: center;
  margin: 0 auto;
  visibility: hidden;
  transition: height 300ms ease-in 300ms;
  z-index: 100;
}

.footer .copyright-container {
  position: relative;
  opacity: 0;
  text-align: center;
  margin: 0 auto;
  transition: opacity 300ms ease-in 1500ms;
}

.app.loaded .footer {
  height: 100px;
  visibility: visible;
}

.app.loaded .footer .copyright-container,
.app.loaded .footer .social-container {
  opacity: 1;
}

/* Copyright Styles */
.copyright-container {
  position: relative;
}

.copyright,
.copyright-container p,
.copyright-container span {
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-opensans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Media Queries */
@media only screen and (max-width: 480px) {
  body.ready img.splash {
    width: 200px;
    min-width: 200px;
  }
}

@keyframes zoom-in-zoom-out {
  0% {
    transform: scale(1, 1);
  }

  50% {
    transform: scale(1.25, 1.25);
  }

  100% {
    transform: scale(1, 1);
  }
}

/* Animation Keyframes */
@keyframes moveInCircle {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  50% {
    transform: rotate(180deg) translateX(150px) rotate(-180deg);
  }
  100% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(50%) scale(1.1);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%) scale(1);
  }
  50% {
    transform: translateX(50%) translateY(10%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) translateY(-10%) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@-webkit-keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}
@-ms-keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}

@keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* Enhanced theme transitions */
body {
  transition: var(--theme-transition);
}

.card,
.overlay,
.container,
.footer,
.copyright,
.gradient-bg,
canvas {
  transition: var(--theme-transition);
}

/* Optimized animations */
@keyframes moveInCircle {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  50% {
    transform: rotate(180deg) translateX(150px) rotate(-180deg);
  }
  100% {
    transform: rotate(360deg) translateX(100px) rotate(-360deg);
  }
}

@keyframes moveVertical {
  0% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(50%) scale(1.1);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

@keyframes moveHorizontal {
  0% {
    transform: translateX(-50%) translateY(-10%) scale(1);
  }
  50% {
    transform: translateX(50%) translateY(10%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) translateY(-10%) scale(1);
  }
}

/* Update gradient animation */
@keyframes gradients {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Typing Animation Styles */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes typeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes colorFade {
  0%,
  90% {
    color: #ffffff;
  }
  100% {
    color: rgb(100, 100, 255);
  }
}
