/* Mobile-first media query */
@media screen and (max-width: 768px) {
  .copyright {
    position: static;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
  }
}

body {
  background-image: url('homebg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-color: #000000;
  width: 100%;
  min-height: 100vh;
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1.2s ease-out forwards;
}

.copyright {
  background-color: transparent;
  height: 40px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 5px 20px;
  transition: 0.5s;
  font-size: 0.9rem;
  box-sizing: border-box;
  position: static;
  margin-top: auto;
  opacity: 0;
  flex-shrink: 0;
}

.copyright:hover {
  transition: 0.5s;
  background-color: rgb(255, 255, 255);
  color: #141414;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  flex: 1;
}

.welcome-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 2rem;
  opacity: 0;
}

.welcome-text {
  margin-bottom: 3rem;
}

.welcome-line-1 {
  font-size: 3.5rem;
  font-weight: 300;
  color: white;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.welcome-line-2 {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.15em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.button-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nav-button {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.5s ease;
  text-transform: uppercase;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.nav-button:hover {
  background-color: rgb(255, 255, 255);
  color: #141414;
  border-color: rgb(255, 255, 255);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Specific breakpoints for your target devices */

/* Very small phones (344px - 375px width) */
@media (max-width: 375px) {
  .welcome-line-1 {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
  }
  
  .welcome-line-2 {
    font-size: 1.3rem;
    letter-spacing: 0.02em;
  }
  
  .welcome-section {
    padding: 0.5rem;
  }
  
  .nav-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Small phones (376px - 390px width) */
@media (min-width: 376px) and (max-width: 390px) {
  .welcome-line-1 {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
  }
  
  .welcome-line-2 {
    font-size: 1.4rem;
    letter-spacing: 0.03em;
  }
}

/* Medium phones (391px - 450px width) */
@media (min-width: 391px) and (max-width: 450px) {
  .welcome-line-1 {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
  }
  
  .welcome-line-2 {
    font-size: 1.6rem;
    letter-spacing: 0.04em;
  }
}

/* General mobile styling for all small screens */
@media (max-width: 768px) {
  body {
    font-size: 1.2rem;
  }

  .page-container {
    padding: 1rem;
    min-height: auto;
  }

  .welcome-section {
    padding: 1rem;
    min-height: calc(100vh - 80px);
  }

  .welcome-text {
    margin-bottom: 2rem;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .welcome-line-1 {
    margin-bottom: 0.3rem;
    line-height: 1.2;
  }
  
  .welcome-line-2 {
    line-height: 1.2;
  }
  
  .button-container {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
  }
  
  .nav-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
  }

  .copyright {
    height: auto;
    min-height: 60px;
    font-size: 0.8rem;
    padding: 15px 20px;
    position: static;
    margin-top: auto;
    flex-shrink: 0;
  }
}

/* Medium phones/small tablets (540px - 600px width) */
@media (min-width: 451px) and (max-width: 600px) {
  .welcome-line-1 {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
  }
  
  .welcome-line-2 {
    font-size: 2.2rem;
    letter-spacing: 0.06em;
  }
  
  .nav-button {
    font-size: 1.15rem;
    padding: 1rem 2rem;
  }
}

/* Larger phones/small tablets (601px - 768px width) */
@media (min-width: 601px) and (max-width: 768px) {
  .welcome-line-1 {
    font-size: 2.2rem;
    letter-spacing: 0.12em;
  }
  
  .welcome-line-2 {
    font-size: 2.6rem;
    letter-spacing: 0.08em;
  }
  
  .button-container {
    flex-direction: row;
    gap: 2rem;
  }
  
  .nav-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    width: auto;
  }
}

/* Tablet portrait (768 x 1024) */
@media (min-width: 769px) and (max-width: 850px) {
  .welcome-line-1 {
    font-size: 2.5rem;
    letter-spacing: 0.15em;
  }
  
  .welcome-line-2 {
    font-size: 3rem;
    letter-spacing: 0.1em;
  }
  
  .button-container {
    flex-direction: row;
    gap: 2.5rem;
  }
  
  .nav-button {
    font-size: 1.3rem;
    padding: 1.2rem 3rem;
  }
}

/* Tablet landscape (820 x 1180 becomes 1180 x 820 in landscape) */
@media (min-width: 851px) and (max-width: 1200px) {
  .welcome-line-1 {
    font-size: 2.8rem;
  }
  
  .welcome-line-2 {
    font-size: 3.2rem;
    letter-spacing: 0.1em;
  }
}

/* Large tablets and small desktops */
@media (min-width: 1201px) and (max-width: 1439px) {
  .welcome-line-1 {
    font-size: 3.2rem;
    letter-spacing: 0.18em;
  }
  
  .welcome-line-2 {
    font-size: 3.8rem;
    letter-spacing: 0.12em;
  }
  
  .nav-button {
    font-size: 1.4rem;
    padding: 1.3rem 3.5rem;
  }
  
  .button-container {
    gap: 3rem;
  }
}

/* Large displays (1440 x 3168 and similar) */
@media (min-width: 1440px) {
  .welcome-line-1 {
    font-size: 4.5rem;
    letter-spacing: 0.2em;
  }
  
  .welcome-line-2 {
    font-size: 5.5rem;
    letter-spacing: 0.15em;
  }
  
  .welcome-text {
    margin-bottom: 4rem;
  }
  
  .nav-button {
    font-size: 1.6rem;
    padding: 1.5rem 4rem;
    letter-spacing: 0.12em;
  }
  
  .button-container {
    gap: 4rem;
  }
  
  .welcome-section {
    padding: 3rem;
  }
}

/* Ensure text never overflows horizontally */
.welcome-line-1,
.welcome-line-2 {
  max-width: 100%;
  word-wrap: break-word;
  hyphens: auto;
}