/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Aileron:wght@100&display=swap');

@font-face {
  font-family: 'Avenir Black';
  src: local('Avenir Black'), local('AvenirNext-Black'),
       url('https://fonts.cdnfonts.com/s/14832/AvenirNextLTPro-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

/* General Settings */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Aileron', sans-serif;
  background-color: #040802;
  overflow: hidden;
}

/* Desktop Site Layout */
.container {
  display: flex;
  height: 100vh;
}

.left-side {
  flex: 1;
  position: relative;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #040802;
  text-align: center;
}

/* Menu Layout */
.menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Row Layout */
.row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Menu Item Styles */
.menu-item {
  padding: 40px 30px;
  color: gray;
  font-size: 22px;
  text-align: center;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  font-family: 'Aileron', sans-serif;
  cursor: pointer;
}

/* Hover Colors */
#mission:hover { background-color: lime; }
#causes:hover { background-color: magenta; }
#business:hover { background-color: red; }
#socials:hover { background-color: yellow; }
#press:hover { background-color: orange; }
#books:hover { background-color: cyan; }
#media-projects:hover { background-color: #cc00ff; }

/* Desktop Title */
.desktop-title {
  font-family: 'Avenir Black', sans-serif;
  font-size: 36px;
  color: #444;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 24px;
}

/* Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
}

.logo {
  width: 100px;
  height: auto;
  transition: filter 0.3s ease;
}

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

/* Desktop Books / Mission / Socials / Press Pages */
.federico-title {
  font-family: 'Avenir Black', sans-serif;
  font-size: 36px;
  color: #444;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 24px;
}

.desktop-books-page, .desktop-business-page {
  background-color: #040802;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Changed from flex-start */
  min-height: 100vh;
  padding: 50px 20px;
  position: relative;
}

/* Books Container */
.books-container {
  background-color: #333;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Media Container */
.media-container {
  background-color: #333;
  padding: 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  border-radius: 10px;
  flex-wrap: wrap;
}

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

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

/* Book Item */
.book-item {
  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);
}

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

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

/* Book Titles */
.books-title-desktop {
  margin-top: 40px;
  font-size: 36px;
  text-align: center;
  font-family: 'Aileron', sans-serif;
  font-weight: 100;
  color: cyan;
}

/* Mobile Layout */
#mobile-site {
  display: none;
}

.mobile-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #040802;
  position: relative;
}

/* Mobile Pages Scrollable */
.pages {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

.page {
  scroll-snap-align: start;
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #040802;
}

.page-content {
  color: white;
  font-size: 28px;
  text-align: center;
  padding: 20px;
}

/* Fade Images */
.fade-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 2s;
}

/* Mobile Books and Mission Pages */
.books-page, .mission-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  background-color: #040802;
  position: relative;
}

.books-title, .mission-title {
  font-size: 32px;
  margin: 40px 0;
  text-align: center;
  z-index: 2;
}

.mission-sidebar {
  position: absolute;
  top: 0;
  right: 10px;
  width: 40px;
  height: 20%;
  z-index: 1;
}

.books-title {
  color: cyan;
}

.mission-title {
  color: lime;
}

.mission-content {
  color: lime;
  font-size: 24px;
  text-align: center;
  margin: 20px;
  z-index: 2;
}

/* Mobile Business Page */
.business-page {
  background-color: #2b2b33;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  position: relative;
}

.business-title {
  font-size: 32px;
  color: red;
  margin: 40px 0 20px;
  font-family: 'Aileron', sans-serif;
}

.business-sidebar {
  position: absolute;
  top: 0;
  right: 10px;
  width: 35px;
  height: 15%;
  z-index: 1;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  gap: 8px 20px;
  margin-top: -50px;
  justify-content: center;
}

.business-icon {
  width: 100px;
  height: 110px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.desktop-business-page .business-icon {
  width: 80px;
}

.desktop-business-page .business-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 0, 0, 1);
}

.business-icon:hover {
  transform: scale(1.05);
}

.business-bigicon {
  width: 140px;
  height: 165px;
  object-fit: contain;
  border-radius: 0px;
  transition: transform 0.3s ease;
  margin-left: -20px;
  margin-top: -25px;
  box-shadow: 0 0 20px rgba(255, 0, 0, 1);
}

.business-bigicon:hover {
  transform: scale(1.05);
}

.business-placeholder {
  width: 100px;
  height: 50px;
  visibility: hidden;
}

.desktop-business-placeholder {
  width: 100px;
  height: 110px;
  visibility: hidden;
}

/* Socials Page */
.socials-page {
  background-color: #2b2b33;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  position: relative;
}

.socials-title {
  color: yellow;
  font-size: 32px;
  margin: 10px 0;
  text-align: center;
  z-index: 2;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(2, 100px);
  gap: 30px 40px;
  margin-top: 20px;
  z-index: 2;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.social-sidebar {
  position: absolute;
  top: 0;
  right: 10px;
  width: 40px;
  height: 30%;
  z-index: 1;
}

/* Book Sidebar */
.book-sidebar {
  position: absolute;
  top: 0;
  right: 10px;
  width: 40px;
  height: 20%;
  z-index: 1;
}

/* Top Book */
.top-book {
  margin-top: 20px;
}

.book-image-large {
  width: 200px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.book-image-large:hover {
  transform: scale(1.05);
}

.bottom-books {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.book-image-small {
  width: 120px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.book-image-small:hover {
  transform: scale(1.05);
}

.book-placeholder {
  width: 140px;
  height: 200px;
  visibility: hidden;
}

/* Side Navigation */
.side-nav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #040802;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.side-nav a {
  padding: 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: gray;
  display: block;
  transition: 0.3s;
  font-family: 'Aileron', sans-serif;
}

.side-nav a:hover {
  color: white;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
}

/* Header for Mobile */
.header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: gray;
  font-size: 24px;
  z-index: 10;
  font-family: 'Aileron', sans-serif;
}

.menu-icon {
  font-size: 30px;
  margin-right: 10px;
  cursor: pointer;
}

.site-title {
  font-size: 28px;
  color: gray;
  font-family: 'Aileron', sans-serif;
}

.back-arrow {
  position: absolute;
  top: 35px;
  right: 120px;
  z-index: 10;
  cursor: pointer;
}

.back-arrow-image {
  width: 30px;
  height: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.back-arrow-image:hover {
  opacity: 1;
}

.mobile-business-background {
  background-image: url('images/mbusiness_bg.png');
  background-repeat: no-repeat;
  background-position: center 65px;
  background-size: contain;
  background-color: #000;
  background-attachment: scroll;
  padding-top: 0;
  margin-top: 0;
}

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

@keyframes fadeInEffect {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
