@font-face {
  font-family: 'Shery';
  src: url('/Giza/Gizacake.ttf') format('opentype'); /* Free for Personal Use */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*font-family: 'Faustina';*/
  font-family: 'Shery';
  font-weight: 500;
}

body {
  background-color: rgb(212, 205, 215);
  color: black;
  transition: background-color 0.8s, color 0.8s;
  overflow-x: hidden;
  position: relative;
}

.image-1 {
  background-image: url('pic1.jpg');
}
.image-2 {
  background-image: url('pic2.jpg');
}

.dark-mode {
  background-color: #1f1f1f;
  color: rgb(238, 238, 238);
}

.logo {
  font-family: 'Times New Roman', serif;
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 1000;
}

.menu-button {
  font-family: 'Times New Roman', serif;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  z-index: 1000;
  cursor: pointer;
  transition: opacity 0.3s;
}

.menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.menu.dark {
  background-color: rgba(18, 18, 18, 0.95);
}

.menu.open {
  right: 0;
}

.menu-item {
  font-family: 'Times New Roman', serif;
  padding: 15px 30px;
  font-size: 1.5rem;
  text-align: right;
  cursor: pointer;
  transition: color 0.3s;
}

.menu-item:hover {
  color: #999;
}

.close-menu {
  font-family: 'Times New Roman', serif;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  padding: 2rem; /* larger hit area */
  z-index: 1000;
}

section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.text-section {
  font-size: 2rem;
  font-weight: 300;
  padding: 20px;
  max-width: 800px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s, transform 1s;
  margin-bottom: 100px; /* space between text and images */
}

.text-section h1{
  font-size: 5rem;
  font-weight: 900;
}

.text-section p{
  font-size: 2rem;
}

.text-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-section {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-top: 100px; /* More space after text */
}

.image-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease; 
}

.final-section {
  height: 100vh; /* Reduced height for less space before footer */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
}

.final-text h2 {
  font-size: 4rem; 
  margin-bottom: 20px; 
}

.final-text p {
  font-size: 2rem; 
  line-height: 1.4;
}

@media (max-width: 768px) {
  .final-section {
    flex-direction: column;
    padding-top: 19rem; /* Add space at the top */
    padding: 10rem 1rem 0; /* Top, horizontal, bottom padding */
  }
  
  .final-text {
    position: static !important;
    text-align: center !important; /* CHANGE: Force center alignment */
    max-width: none;
    width: 100% !important; /* CHANGE: Use full width */
    margin: 0 auto 10rem !important; /* CHANGE: Add space between text and button */
    transform: none !important;
  }
  
  .next-button {
    padding: 5rem;
    position: static !important;
    margin: 0 auto 5rem; /* From button to footer */
    transform: none !important;
  }
  
  /* CHANGE: Add this to center wrapper container */
  .final-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .final-text h2 {
    font-size: 2.7rem !important;
  }
  
  .final-text p {
    font-size: 1.5rem !important;
  }
  
  .next-button {
    padding: 2rem;
    position: static !important;
    margin: 0 auto 0.5rem; /*from button to footer*/
    transform: none !important;
  }

  .text-section h1 {
    font-size: 3rem;
  }

  .text-section p {
    font-size: 1.5rem;
  }

  .logo {
    font-family: 'Times New Roman', serif;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1000;
  }
}

.final-text {
  width: 30%;
  opacity: 0;
  transition: opacity 0.5s; 
  position: absolute;
  left: 33.3%;
  transform: translateX(-50%);
}

.next-button {
  background-color: transparent;
  color: currentColor;
  border: 1px solid currentColor;
  padding: 12px 24px;
  font-size: 1.9rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s, background-color 0.3s;
  right: 16.7%;
  position: absolute;
  transform: translateX(50%);
}

.next-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

footer {
  width: 100%;
  padding: 20px;
  text-align: center;
  background-color: inherit;
  color: inherit;
  font-size: 1rem;
  margin-top: -5rem; /* Negative margin to bring it closer to content */
}
