/* Base styles - Core layout and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  background: rgb(255, 255, 255);
}

/* Canvas positioning for wobbly animation */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Core Layout Sections */
.logo-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  pointer-events: none;
}

.content-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Logo styles */
.logo-container {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 1;
  width: 180px;
  height: auto;
  pointer-events: all;
}

.logo-container object,
.logo-container img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Content styles */
.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}

.content.fade-out {
  opacity: 0;
  filter: blur(20px);
  transform: scale(0.95);
}

.content.fade-in {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.05);
  animation: fadeInText 1.5s ease-out forwards;
}

.content-box.fade-out {
  opacity: 0;
  filter: blur(20px);
  transform: translate(-50%, -50%) scale(0.95);
}

.content-box.fade-in {
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%, -50%) scale(1.05);
  animation: fadeInText 1.5s ease-out forwards;
}

.content-box {
  background: rgba(255, 255, 255, 0.3);
  color: rgb(0, 0, 0);
  padding: 40px;
  border-radius: 20px;
  width: 410px;
  height: auto;
  min-height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);*/
  backdrop-filter: blur(10px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.2;
  opacity: 1;
}

/* Main heading styles */
.main-heading {
  font-family: "Lexend", sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: rgb(0, 0, 0);
  text-align: left;
  margin-bottom: 30px;
  line-height: 1.2;
  text-shadow: none;
}

/* Content text styles */
.content-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.content-text p {
  font-family: "Lexend", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgb(0, 0, 0);
  text-align: left;
  margin-bottom: 16px;
  line-height: 1.5;
  text-shadow: none;
}

.content-text p:last-child {
  margin-bottom: 0;
}

/* Button styles */
.open-modal-btn {
  background: rgb(255, 255, 255);
  border: 0px solid rgb(0, 0, 0);
  color: rgb(0, 0, 0);
  padding: 12px 24px;
  border-radius: 17px;
  cursor: pointer;
  font-size: 14px;
  font-family: "Lexend", sans-serif;
  font-weight: 300;
  z-index: 1;
  transition: all 0.3s ease;
  pointer-events: all;
  align-self: flex-start;
  margin-top: 20px;
  text-shadow: none;
}

.open-modal-btn:hover {
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

/* Copyright styles */
.copyright {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
  text-align: center;
}


/* Copyright text styles */
.copyright p {
  font-family: "Lexend", sans-serif;
  font-size: 14px;
  font-weight: 200;
  color: rgb(255, 255, 255);
  margin: 0;
  opacity: 0.8;
  text-shadow: none;
}

/* Base animations */
@keyframes fadeInText {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .logo-container {
    display: none;
  }
  
  .content-box {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    background: transparent;
    backdrop-filter: none;
  }
  
  .main-heading {
    font-size: 28px;
  }
  
  .content-text p {
    font-size: 15px;
  }
  
  .open-modal-btn {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .content-box {
    width: 95%;
    padding: 25px;
  }
  
  .main-heading {
    font-size: 28px;
  }
  
  .content-text p {
    font-size: 15px;
  }
  
  .open-modal-btn {
    font-size: 12px;
    padding: 10px 20px;
  }
  
  .copyright p {
    font-size: 10px;
    padding: 0 15px;
  }
}
