/* ========== GENERAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== BODY BACKGROUND AND FONT ========== */
body {
  /*background-color: #0e59a9; /* Deep Blue */
  background-color: #ffffff; /* Deep Blue */
  color: white;
  font-family: 'Aileron', sans-serif;
  height: 100vh;
  overflow-x: hidden;
}

/* ========== FLEX CONTAINER STRUCTURE ========== */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  padding: 0 2vw;
}

/* ========== LEFT-SIDE (Left Building Image) ========== */
.left-side {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110%;
}

.left-side .background-image {
  max-height: 80vh;
  max-width: 90%;
  object-fit: contain;
  transform: translateX(-250px);
}

/* ========== LEFT-SIDE (Black Knight Image) ========== */
.left-side-front {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80%;
  position: relative;
  z-index: 5;
}

.left-side-front .background-image {
  max-height: 80vh;
  max-width: 90%;
  object-fit: contain;
  position: relative;
  z-index: 5;
}

/* ========== LEFT-SIDE (Author Image) ========== */
.left-side-author {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.left-side-author .background-image {
  max-height: 100vh;
  max-width: 90%;
  object-fit: contain;
}

/* ========== LEFT-SIDE (Cause Image) ========== */
.left-side-cause {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90%;
}

.left-side-cause .background-image {
  max-height: 70vh;
  max-width: 90%;
  object-fit: contain;
}

/* ========== LEFT-SIDE (Works Image) ========== */
.left-side-works {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95%;
}

.left-side-works .background-image {
  max-height: 70vh;
  max-width: 90%;
  object-fit: contain;
}

/* ========== LEFT-SIDE (Socials Image) ========== */
.left-side-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 75%;
}

.left-side-socials .background-image {
  max-height: 60vh;
  max-width: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translateX(100px);
}

/* ========== LEFT-SIDE (Press Image) ========== */
.left-side-press {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 75%;
}

.left-side-press .background-image {
  max-height: 60vh;
  max-width: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translateX(150px);
}

/* ========== CENTER TEXT CONTAINER ========== */
.center-text {
  flex-grow: 1;
  max-width: 600px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  margin-top: 0px;
  margin-left: -400px;
}

.center-text-author {
  flex-grow: 1;
  max-width: 600px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  margin-top: 0px;
  margin-left: 0px;
}

.center-text-front {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80%;
  margin-top: auto;
  margin-bottom: auto;
  overflow: visible;
}


.center-text-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%; /* Center the 130% width */
  width: 220%;
  height: 100%;
  background-image: url('images/bigbackground2.png');
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: 1;
  border-radius: 12px;
}



.center-text-cause {
  flex-grow: 1;
  max-width: 800px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  margin-top: 0px;
  margin-left: 0px;
}

/* Books Container */
.books-container {
  flex-grow: 1;
  max-width: 800px;
  padding: 0 20px;
  background-color: #333;
  display: flex;
  justify-content: center;
  gap: 60px;
  border-radius: 10px;
  flex-wrap: wrap;
  margin-top: 0px;
  margin-left: 0px;
}

/* Book Item */
.book-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-item h2 {
  font-family: 'Avenir Black', sans-serif;
  font-size: 20pt;
  color: orange;
  margin-top: 10px;
  margin-bottom: 10px;
}

.book-item h3 {
  font-family: 'Avenir Black', sans-serif;
  font-size: 20pt;
  color: white;
  margin-top: -10px;
  margin-bottom: -10px;
  line-height: 1.2;
}

.author-heading {
  font-family: 'Avenir Black', sans-serif;
  font-size: 2rem;
  color: white;
  text-align: center;
  text-decoration: underline;
  margin-bottom: 30px;
}

.text-block-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Book Cover Styling */
.book-cover {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.text-box {
  background-color: #ffffff; /* Bright white */
  padding: 30px 20px;
  border-radius: 12px;
  transform: none;
  z-index: 3;
  position: relative;
  max-width: 800px;
  width: 100%;
  color: #000000; /* Black text */
}

.text-box h1,
.text-box p {
  color: #000000; /* Black for main text */
}

.text-box h2 {
  color: #ff8c00; /* Optional: Keep orange for subheadings */
}

/* Socials Container */
.socials-container {
  background-color: #2b2b33;
  padding: 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.social-icon {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* RIGHT-SIDE (Menu + Logo) */
.right-side {
  z-index: 6; /* Add this line */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  width: 300px;
  height: 80%;
}

/* VERTICAL MENU */
.vertical-menu {
  padding-right: 20px;
}

.vertical-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.vertical-menu li {
  margin: 20px 0;
}

.vertical-menu a {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Aileron', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  padding: 10px 20px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 8px;
}

/* Hover Colors */
.menu-mission:hover { background-color: limegreen; color: black; }
.menu-founder:hover { background-color: #272527; color: black; }
.menu-businesses:hover { background-color: purple; color: black; }
.menu-causes:hover { background-color: crimson; color: black; }
.menu-projects:hover { background-color: royalblue; color: black; }
.menu-socials:hover { background-color: gold; color: black; }
.menu-press:hover { background-color: orange; color: black; }

/* Pressed State */
.menu-mission-pressed,
.menu-businesses-pressed,
.menu-causes-pressed,
.menu-projects-pressed,
.menu-socials-pressed,
.menu-press-pressed,
.menu-founder-pressed {
  border-radius: 8px;
  color: black;
}
.menu-mission-pressed { background-color: limegreen; }
.menu-businesses-pressed { background-color: purple; }
.menu-causes-pressed { background-color: crimson; }
.menu-projects-pressed { background-color: royalblue; }
.menu-socials-pressed { background-color: gold; }
.menu-press-pressed { background-color: orange; }
.menu-founder-pressed { background-color: #A9A9A9; }

/* Logo */
.logo-item {
  margin-top: 40px;
}

.logo-item img {
  max-width: 90px;
  height: auto;
  transition: filter 0.3s ease, transform 0.3s ease;
  margin-right: -10px;
}

.logo-item img:hover {
  transform: scale(1.05);
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    padding: 2vh 2vw;
    text-align: center;
  }
  .left-side, .center-text, .right-side {
    width: 100%;
    margin-bottom: 30px;
  }
  .vertical-menu ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .vertical-menu li {
    margin: 10px 15px;
  }
  .logo-item {
    margin-top: 20px;
  }
}

/* Top Right Logo */
.top-right-logo {
  position: relative;     /* REMOVE absolute positioning */
  top: auto;              /* Reset top */
  left: auto;             /* Reset left */
  align-self: flex-end;   /* Align to the right within the flex container */
  margin-bottom: 20px;    /* Space between logo and menu */
}

.top-right-logo img {
  width: 160px; /* You can adjust this size */
  height: auto;
}



/* Top Left Logo */
.top-left-logo {
  position: absolute;
  top: 20px;
  left: 30px;
  z-index: 10;
}

.top-left-logo img {
  width: 200px;
  height: auto;
}

.right-side-wrapper {
  background-color: rgba(0, 0, 0, 0.4); /* 20% opaque black */
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 6;
  position: relative;
  height: calc(100%); /* reduce height by 50px */
  margin-top: 0 px; /* NEW: lower the wrapper by 25px */
}

