/* =========================================================
   GLOBAL STYLES
   ========================================================= */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: #0077B6;
  margin: 10px 0 15px;
  letter-spacing: 0.5px;
}

p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

a {
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #FFD75E;
}

/* =========================================================
   HEADER (AUTHORS)
   ========================================================= */
.authors-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  padding: 30px 0;
  background: linear-gradient(90deg, #1CC7D0, #4FE3D4);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.big-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.and-text {
  font-family: serif;
  font-size: 3rem;
  font-weight: 400;
  color: #0077B6;
  display: inline-block;
  margin: 0 20px;
  line-height: 1;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.main-nav {
  background: linear-gradient(90deg, #1CC7D0, #3AD8D8, #4FE3D4);
  padding: 15px 0;
  position: relative;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: #0077B6;
  font-weight: 600;
  font-size: 1.3rem;
}

.main-nav a:hover {
  color: #f31b1f;
}

.lang-switch {
  position: absolute;
  right: 20px;
  top: 15px;
}

.lang-switch a {
  font-family: 'Montserrat', sans-serif;
  color: #0077B6;
  font-weight: 600;
  margin: 0 5px;
}

/* =========================================================
   HOME INTRO
   ========================================================= */
.home-intro {
  text-align: center;
  padding: 50px 20px;
}

.home-intro h1 {
  font-size: 2.6rem;
}

/* =========================================================
   AUTHORS PAGE
   ========================================================= */
.authors-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.author-card {
  background: #fff;
  border-left: 10px solid #1CC7D0;
  padding: 25px;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.author-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

.author-card h3 {
  text-align: center;
  font-size: 1.8rem;
}

.author-card p {
  text-align: justify;
}

.author-photo {
  text-align: center;
  margin-bottom: 20px;
}

.author-photo img {
  width: 260px;
  border-radius: 8px;
}

/* =========================================================
   BOOKS PAGE
   ========================================================= */
.books-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.books-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.book-card {
  margin: 35px auto;
  padding: 25px;
  border-radius: 10px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

.book-cover,
.book-cover-thin {
  display: block;
  margin: 0 auto 20px;
  height: 320px;
  width: auto;
  object-fit: contain;
}

.book-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.book-btn {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(90deg, #1CC7D0, #4FE3D4);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.book-btn:hover {
  background: #4FE3D4;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-card {
  max-width: 700px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border-left: 10px solid #1CC7D0;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  text-align: center;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

.contact-btn {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(90deg, #1CC7D0, #4FE3D4);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn:hover {
  background: #4FE3D4;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  text-align: center;
  padding: 30px;
  background: #1CC7D0;
  color: white;
  font-family: 'Montserrat', sans-serif;
  margin-top: 60px;
  font-size: 1rem;
}

.footer-line {
  border: none;
  border-top: 5px solid #FFD75E;
  width: 80%;
  margin: 0 auto 20px;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1, h2 {
  animation: slideIn 1.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MOBILE VERSION
   ========================================================= */
@media (max-width: 768px) {

  .authors-header {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .big-name {
    font-size: 2rem;
  }

  .and-text {
    font-size: 1.8rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .lang-switch {
    position: static;
    margin-top: 10px;
  }

  .home-intro h1 {
    font-size: 2rem;
  }

  .authors-page,
  .books-page,
  .page-content {
    padding: 0 15px;
  }

  .author-card,
  .contact-card {
    padding: 20px;
    margin: 30px auto;
  }

  .book-cover {
    width: 100%;
    max-width: 280px;
  }

  .book-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .book-btn {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    padding: 20px;
    font-size: 0.9rem;
  }

  .footer-line {
    width: 90%;
  }
}
