/* Base Styling */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: rgb(179, 179, 179);
  box-sizing: border-box;
}

/* Flipbook Layout */
.flipbook-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin-top: -150px;
}

.flipbook {
  position: relative;
  width: 90vw;
  max-width: 600px;
  height: calc(90vw * 0.66); /* Maintain approx 3:2 ratio */
  max-height: 471px;
  perspective: 1200px;
  min-height: 50px;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transition: transform 2s;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  transform: rotateX(0deg);
  z-index: calc(100 - var(--i));
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Buttons */
button {
  padding: 10px 20px;
  width: 100px;
  margin: 5px;
  font-size: 1rem;
  border: none;
  background-color: #222;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.info-item a {
  color: inherit;       /* Inherit the text color from parent */
  text-decoration: none; /* Remove underline */
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item a:hover {
  opacity: 0.8; /* Optional: slight hover effect */
}


button:hover {
  background-color: #444;
}

/* Header */
.header {
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.left-section,
.right-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-section {
  margin-right: 50px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}

.icon {
  width: 20px;
  height: 20px;
}

.center-section {
  text-align: center;
}

.logo {
  height: 100px;
  width: auto;
}

/* Back Button */
.back-button-container {
  width: 100%;
  padding: 10px 30px;
}

.back-button-container button {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.back-button-container button:hover {
  background-color: #444;
}

/* Branding (optional corner logo) */
.branding-corner {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
}

.branding-corner img {
  width: 70px;
  height: auto;
}

/* ==================== Responsive Breakpoints ==================== */

/* Laptop & Large screens */
@media (max-width: 1200px) {
  .header {
    padding: 15px 20px;
  }

  .logo {
    height: 55px;
  }
}

/* Tablet: iPad */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .left-section,
  .right-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .center-section {
    order: -1; /* move logo to top */
  }

  .logo {
    height: 70px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .info-item {
    font-size: 14px;
  }

  .icon {
    width: 18px;
    height: 18px;
  }

  .logo {
    height: 90px;
  }

  button {
    width: 100px;
    font-size: 0.9rem;
  }

  .page.final-contact a button {
    width: 150px;
    padding: 6px;
    font-size: 13px;
  }

}

/* Very small mobile (e.g., 280px) */
@media (max-width: 280px) {
  .header {
    padding: 10px;
  }

  .info-item {
    font-size: 12px;
  }

  .icon {
    width: 16px;
    height: 16px;
  }

  .logo {
    height: 50px;
  }
}
