/* ========== FONT SETUP ========== */
@font-face {
  font-family: 'ZenLoop';
  src: url('./assets/fonts/ZenLoop-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Squarish';
  src: url('./assets/fonts/ZF2334Squarish-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Squarish';
  src: url('./assets/fonts/ZF2334Squarish-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========== LANDING PAGE BACKGROUND FIX ========== */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: url('./assets/images/background.jpg')
              center center / cover no-repeat scroll !important;
  min-width: 100vw;
  min-height: 100vh;
}

/* ========== LANDING PAGE LAYOUT ========== */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
  font-family: 'Squarish', 'Inter', sans-serif;
}

/* ========== LANDING PAGE TITLE ========== */
.title {
  font-family: 'ZenLoop', 'Spline Sans Mono', monospace;
  font-size: 7.5rem;
  letter-spacing: 0.05em;
  margin: 2rem 0 1rem 0;
  color: #FFFFFF;
  animation: titleReveal 2s ease-out forwards,
             titleGlow 3s ease-in-out infinite alternate 2s;
  z-index: 1;
  text-shadow: 
    0 0 3px #FFFFFF,
    0 0 6px #FFFFFF,
    0 0 9px #D3CCE3,
    0 0 12px #D3CCE3,
    0 0 18px #D3CCE3;
  opacity: 0;
}

/* ========== TAGLINE ========== */
.tagline {
  font-weight: 400;
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInSubtle 1.5s ease-out 2.5s forwards;
}

/* ========== ADDITIONAL TEXT CONTENT ========== */
.additional-text {
  font-weight: 400;
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInSubtle 1.5s ease-out 4s forwards;
  max-width: 600px;
  line-height: 1.6;
}

/* ========== CALL TO ACTION BUTTON ========== */
.cta {
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #D3CCE3, #E9E4F0);
  color: #292E49;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  opacity: 0;
  animation: fadeInSubtle 1.5s ease-out 5.5s forwards,
             pulseGlow 2.5s ease-in-out 7s 2;
  /* Fix button text centering */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.cta:hover {
  border-color: #E9E4F0;
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* ========== ANIMATION KEYFRAMES ========== */
@keyframes titleReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0% 0 0);
  }
}

@keyframes fadeInSubtle {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 
      0 0 3px #FFFFFF,
      0 0 6px #FFFFFF,
      0 0 9px #D3CCE3,
      0 0 12px #D3CCE3,
      0 0 18px #D3CCE3;
  }
  100% {
    text-shadow: 
      0 0 5px #FFFFFF,
      0 0 10px #FFFFFF,
      0 0 15px #D3CCE3,
      0 0 20px #D3CCE3,
      0 0 25px #D3CCE3;
  }
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 rgba(255,255,255,0); transform: scale(1); }
  50%  { box-shadow: 0 0 12px rgba(255,255,255,0.15); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 rgba(255,255,255,0); transform: scale(1); }
}

/* ========== MOBILE RESPONSIVENESS ========== */
@media (max-width: 768px) {
  .title {
    font-family: 'ZenLoop', 'Spline Sans Mono', monospace;
    font-size: 3.5rem;
    letter-spacing: 0.02em;
    margin: 1.5rem 0 1rem 0;
    font-weight: normal;
  }
  
  .tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Squarish', Arial, sans-serif;
  }
  
  .additional-text {
    font-size: 1rem;
    max-width: 90%;
    margin-bottom: 2rem;
    line-height: 1.5;
    padding: 0 1rem;
    font-family: 'Squarish', Arial, sans-serif;
  }
  
  .content {
    padding: 1.5rem 1rem;
    min-height: 100vh;
    justify-content: center;
  }
  
  .cta {
    font-size: 1rem;
    padding: 1rem 2rem;
    min-height: 44px;
    margin-top: 1.5rem;
    font-family: 'Squarish', Arial, sans-serif;
  }
}

/* ========== SMALL PHONES ========== */
@media (max-width: 480px) {
  .title {
    font-size: 2.5rem;
    margin: 1rem 0;
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .additional-text {
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 95%;
  }
  
  .content {
    padding: 1rem 0.5rem;
    padding-top: 2rem;
  }
  
  .cta {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}

/* ========== MOBILE LANDSCAPE MODE ========== */
@media (max-height: 500px) and (orientation: landscape) {
  html, body {
    width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
  
  .title {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    font-family: 'ZenLoop', 'Spline Sans Mono', monospace;
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .additional-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    max-width: 85%;
    padding: 0 2rem;
  }
  
  .content {
    padding: 1rem 0;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    box-sizing: border-box;
  }
  
  .cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
}
