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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0b0404;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-visible {
  opacity: 1;
}

.page1 {
  display: flex;
  min-height: 100vh;
}

.image-section {
  flex: 1;
  display: flex;
}

.image-section img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #0b0404;
  position: relative;
}

.title {
  color: white;
  font-size: 8vw;
  line-height: 1.1;
  text-align: center;
  display: flex;
  flex-direction: column;
  font-family: Grained;
}

.title span {
  display: block;
}

.learn-more {
  color: #555;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  font-family: Grained;
  display: inline-block;
  margin-top: 30px;
}

.learn-more:hover {
  color: white;
  font-family: Grained;
}

/* Page 1 specific learn-more positioning */
.page1 .learn-more {
  position: absolute;
  bottom: 40px;
  margin-top: 0;
}

/* Page 2 Styles */
.page2 {
  display: flex;
  min-height: 100vh;
  background-color: #0b0404;
}

.page2-text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.page2-title {
  color: white;
  font-size: 7vw;
  line-height: 1.05;
  font-family: Grained;
  margin-bottom: 30px;
}

.page2-title span {
  display: block;
}

.page2-tagline {
  color: #555;
  font-size: 1.5rem;
  font-family: Grained;
  max-width: 400px;
  line-height: 1.4;
}

.page2-image-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page2-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@font-face {
  font-family: Grained;
  src: url(/assets/fonts/Grained.ttf);
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0404;
}

::-webkit-scrollbar-thumb {
  background: #3d1a1a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5c2a2a;
}

/* Page 3 Styles */
.page3 {
  display: flex;
  min-height: 100vh;
  background-color: #0b0404;
}

.page3-image-section {
  flex: 1;
  display: flex;
}

.page3-image-section img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.page3-text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #0b0404;
}

.page3-title {
  color: white;
  font-size: 7vw;
  line-height: 1.1;
  text-align: center;
  display: flex;
  flex-direction: column;
  font-family: Grained;
}

.page3-title span {
  display: block;
}

.community-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.community-btn {
  padding: 15px 40px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-family: Grained;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.community-btn:hover {
  background-color: white;
  color: #0b0404;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet and smaller screens (max-width: 1024px) */
@media screen and (max-width: 1024px) {
  .page2-text-section {
    padding: 40px;
  }

  .page2-tagline {
    font-size: 1.2rem;
  }

  .community-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* Mobile devices (max-width: 768px) */
@media screen and (max-width: 768px) {
  /* Page 1 - Stack vertically */
  .page1 {
    flex-direction: column;
  }

  .image-section img {
    height: 50vh;
  }

  .text-section {
    min-height: 50vh;
  }

  .title {
    font-size: 12vw;
  }

  .page1 .learn-more {
    position: relative;
    bottom: auto;
    margin-top: 30px;
  }

  /* Page 2 - Stack vertically */
  .page2 {
    flex-direction: column;
  }

  .page2-text-section {
    padding: 40px 30px;
    order: 2;
  }

  .page2-title {
    font-size: 10vw;
    margin-bottom: 20px;
  }

  .page2-tagline {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .page2-image-section {
    order: 1;
    min-height: 50vh;
  }

  .page2-image-section img {
    height: 50vh;
  }

  /* Page 3 - Stack vertically */
  .page3 {
    flex-direction: column;
  }

  .page3-image-section img {
    height: 50vh;
  }

  .page3-text-section {
    min-height: 50vh;
    padding: 40px 30px;
  }

  .page3-title {
    font-size: 10vw;
  }

  .community-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
  }

  .community-btn {
    width: 100%;
    text-align: center;
    padding: 15px 30px;
  }
}

/* Small mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
  .title {
    font-size: 14vw;
  }

  .page2-title,
  .page3-title {
    font-size: 12vw;
  }

  .learn-more {
    font-size: 1rem;
  }

  .page2-text-section,
  .page3-text-section {
    padding: 30px 20px;
  }

  .page2-tagline {
    font-size: 1rem;
  }

  .community-btn {
    font-size: 0.9rem;
    padding: 12px 25px;
  }
}

/* Large screens (min-width: 1440px) */
@media screen and (min-width: 1440px) {
  .title {
    font-size: 6vw;
  }

  .page2-title,
  .page3-title {
    font-size: 5vw;
  }

  .page2-text-section {
    padding: 80px;
  }

  .page2-tagline {
    font-size: 1.8rem;
    max-width: 500px;
  }

  .community-btn {
    padding: 18px 50px;
    font-size: 1.4rem;
  }
}

/* Hide scrollbar on mobile for cleaner look */
@media screen and (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px;
  }
}