/* Font imports */
@font-face {
  font-family: 'Suisse Intl';
  src: url('/assets/fonts/SuisseIntl-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap');

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

:root {
  /* Base font size - adjust for scaling */
  font-size: 16px;

  /* Colors */
  --text-contrast: #ffffff;
  --overlay-bg: rgba(0, 0, 0, 0.8);
  --divider-color: rgba(255, 255, 255, 0.2);
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Suisse Intl', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-contrast);
  background-color: #000;
  font-size: 1rem;
  overflow-x: hidden;
}

/* Silver Page Styles */
.silver-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Use viewport height instead of min-height */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.background-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: url('/assets/img/bg.jpg') no-repeat center center;
  background-size: cover;
  z-index: -3;
  filter: blur(3rem);
}

.gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(254deg, rgba(41, 49, 74, 0) 0%, rgba(41, 49, 74, 0.70) 100%);
  box-shadow: 9.375rem 9.375rem 9.375rem;
  filter: blur(4.6875rem);
  z-index: -2;
}

.dark-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: var(--overlay-bg);
  z-index: -1;
}

/* Logo */
.logo {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  z-index: 10;
}

.logo img {
  width: 11.125rem;
  height: auto;
}

/* Content */
.title-group {
  position: absolute;
}

.title {
  position: relative;
  color: var(--text-contrast);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.subtitle {
  position: relative;
  color: var(--text-contrast);
  font-weight: 400;
  margin: 0;
}

.divider {
  position: relative;
  height: 0.0625rem;
  background: var(--divider-color);
}

.content-group {
  position: absolute;
  width: 100%;
  height: 100%;
}

.welcome-text {
  position: absolute;
  color: var(--text-contrast);
  font-weight: 400;
  margin: 0;
}

.feature-image {
  position: relative;
  object-fit: cover;
}

/* Desktop Styles (default) */
@media screen and (min-width: 768px) {
  .title-group {
    left: 0.875rem;
    top: 10rem;
  }

  .title {
    width: 54.5rem;
    font-size: 8rem;
    line-height: 8rem;
  }

  .subtitle {
    width: 54.5rem;
    margin-top: 2.25rem;
    margin-left: 0.625rem;
    font-size: 1.125rem;
    line-height: 1.575rem;
  }

  .divider {
    width: 97vw;
    margin-top: 2rem;
    margin-left: 0.625rem;
  }

  .content-group {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
  }

  .welcome-text {
    width: 26.75rem;
    left: 1.5rem;
    bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.575rem;
  }

  .feature-image {
    width: 45.3125rem;
    height: 30.1875rem;
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

/* Mobile Styles */
@media screen and (max-width: 767px) {
  :root {
    font-size: 14px;
  }

  .title-group {
    left: 0;
    top: 25vh;
    right: 0;
  }

  .title {
    width: 100%;
    font-size: 4rem;
    line-height: 4rem;
    padding: 0 1.25rem;
  }

  .subtitle {
    width: 100%;
    margin-top: 1rem;
    margin-left: 1.25rem;
    font-size: 1rem;
    line-height: 1.4rem;
    padding-right: 1.25rem;
  }

  .divider {
    width: auto;
    margin-top: 1.25rem;
    margin-left: 1.25rem;
    position: relative;
    left: 0;
    margin-right: 1.5rem;
  }

  .content-group {
    position: absolute;
    left: 0;
    bottom: 0;
  }

  .welcome-text {
    width: auto;
    left: 1.25rem;
    bottom: 1.25rem;
    right: 1.25rem;
    font-size: 1rem;
    line-height: 1.4rem;
  }

  .feature-image {
    width: 110vw;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 32vh;
  }
}

/* Animation Keyframes */
@keyframes moveLogoToCorner {
  0% {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  100% {
    left: 1.5rem;
    top: 1.5rem;
    transform: translate(0, 0);
  }
}

@keyframes revealFromBlur {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes scaleUp {
  0% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes scaleUpMobile {
  0% {
    transform: scale(0.8) translateX(-50%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Animation Classes */
.logo-animated {
  animation: moveLogoToCorner 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.title-group-animated {
  animation: revealFromBlur 1s ease-out forwards;
  animation-delay: 0.5s; /* Logo animation (1.5s) - 0.2s */
}

.content-group-animated {
  animation: revealFromBlur 1s ease-out forwards;
  animation-delay: 0.7s; /* Logo animation (1.5s) - 0.8s */
}

.feature-image-animated {
  animation: scaleUp 1s ease-out forwards;
  animation-delay: 0.7s; /* Same as content-group */
}

@media screen and (max-width: 767px) {
  .feature-image-animated {
    animation: scaleUpMobile 1s ease-out forwards;
    animation-delay: 0.7s;
  }
}

/* Index page animations */
@keyframes revealLogoFromBlur {

  0% {
    opacity: 0; /* Fade out */
    filter: blur(100px); /* Add blur */
  }
  100% {
    opacity: 1; /* Fade in */
    filter: blur(0px); /* Remove blur */
  }
}
@keyframes hideLogoToBlur {

  0% {
    opacity: 1; /* Fade out */
    filter: blur(0); /* Add blur */
  }
  100% {
    opacity: 0; /* Fade in */
    filter: blur(100px); /* Remove blur */
  }
}

.revealFromBlur {animation: revealLogoFromBlur 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;}
.hideToBlur {animation: hideLogoToBlur 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;}


.logo-reveal-animated {
  animation: revealLogoFromBlur 2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.text-reveal-animated {
  animation: revealFromBlur 1.5s ease-out forwards;
  animation-delay: 1.5s; /* Logo animation (2s) - 0.5s */
}

/* Responsive scaling */
@media screen and (min-width: 1600px) {
  :root {
    font-size: calc(14 * (100vw / 1600));
  }
}

@media screen and (max-width: 430px) {
  :root {
    font-size: calc(12 * (100vw / 430));
  }
}
