/* Imports  */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root{
    /* Colors */
    --secondary-color: #BE5B50 ;
    --tertiary-color: #8A2D3B ;
    --light-color: #FBDB93;
    --dark-color: #641B2E;
    --black-color: #1E201E;
    --white-color:  #F4E7E1;

    /* Fonts  */
    --main-serif: 'Georgia', serif;

    /* Font Weights  */


    /* Font Sizes  */
    --link-text-size: 1.5rem;
    --logo-text-size: 2rem;

    /* Container Sizes  */
    --container-normal: 1100px;
    --container-wide: 1400px;
    --container-narrow: 900px;


}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--white-color);
  position: relative;
  z-index: 0;
}

/* Reset list style for all ul globally */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.deanna-text{
  color: var(--light-color);
  font-size: 32px;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 5;
}

header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  background-color: transparent;
  
}

.nav-logo {
  font-family: 'Caveat', sans-serif;
  font-size: var(--logo-text-size);
  font-weight: 600;
  line-height: 1.6;
  color: var(--light-color);
  text-decoration: none;
}

.nav-menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
  display: flex;
  gap: 20px;
}

.nav-item a {
  position: relative;
  font-size: var(--link-text-size);
  line-height: 1.2;
  color: var(--white-color);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.nav-item a::after {
  content: '';
  position: absolute;
  left: 1rem; /* match horizontal padding */
  right: 1rem;
  bottom: 0.3rem;
  height: 2px;
  background-color: var(--light-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-item a:hover {
  color: var(--light-color);
}

.nav-item a:hover::after {
  transform: scaleX(1);
}

/* All sections  */
section{
    min-height: 100vh;
    display: flex;
    padding-top: 100px; /* offset for fixed header */
    justify-content: center;
    align-items: center;
    /* background: var(--tertiary-color); */
}

section h1{
  font-family: 'Georgia', serif;
  font-size: 3rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background-color: var(--secondary-color);
  padding-top: 100px; /* offset for fixed header */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.book-covers {
  margin: 40px 0;
}
.hero-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--light-color);
}

.hero-text h1 {
  font-size: 3rem;         /* BIG title */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--light-color);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  /* font-family: 'Caveat', cursive; */
}

.hero-text p {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-color);
  opacity: 0.9;
}

/* Purchase Links */
.purchase-links ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0;
}

.purchase-links ul li a {
  display: inline-block;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--black-color);
  background-color: var(--white-color);
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.purchase-links ul li a:hover {
  background-color: var(--light-color);
  color: var(--background-color-dark);
}

.purchase-links .img-link {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Book Covers */
.book-covers {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 20px;
  position: relative;
}

.book-covers img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 2s forwards;
}

.book-covers img:hover {
  transform: scale(1.02);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* About section  */
.about-section {
  background: url(/img/sun.jpg) center center / cover no-repeat;
  color: var(--text-color);
  padding: 80px 20px;
}

.about-container {
  background-color: rgba(30,32,30, 0.5);
  opacity: 0.3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.about-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.2s;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}


.about-text {
  flex: 1;
  max-width: 600px;
  text-align: left;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.8s;
}

.about-text h2 {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--light-color);
  font-family: var(--main-serif)
}

.about-text p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 20px;
}

.about-text .deanna-text {
  color: var(--light-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid var(--light-color);
  color: var(--light-color);
  text-decoration: none;
  border-radius: 30px;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 1.4s;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more-btn:hover {
  background-color: var(--light-color);
  color: var(--background-color-dark);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-text {
    max-width: 90%;
  }



  .nav-logo a{
    text-align: center;
  }

    .about-full-content {
    flex-direction: column;
    text-align: center;
  }

  .about-full-text h2 {
    text-align: center;
  }

  .about-full-text {
    max-width: 90%;
  }

  .about-full-image img {
    max-width: 100%;
  }
}


.hero-text h1 {
  animation: blurSlideUp 1.5s ease forwards;
}

.hero-text p {
  animation: blurSlideUp 1.5s ease 0.3s forwards;
}

/* Testimonials */
.testimonials-section {
  background-color: var(--tertiary-color);
  color: var(--text-color);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonials-section .container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.testimonial-carousel {
  overflow: hidden;
  position: relative;
  height: 300px;
}

.testimonial-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.8s ease;
}

.testimonial {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1s forwards;
  padding: 20px;
}

.testimonial p {
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--light-color);
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color);
  margin-top: 10px;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.carousel-controls button {
  background-color: transparent;
  color: var(--light-color);
  border: 2px solid var(--light-color);
  padding: 8px 14px;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-controls button:hover {
  background-color: var(--light-color);
  color: var(--background-color-dark);
}



/* Footer */
footer {
  background: var(--black-color);
  color: var(--light-color);
  text-align: center;
  padding: 20px;
}


/* Scroll Reveal effect  */

.reveal{
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: all 2s ease-in-out;
}

.reveal.active{
    transform: translateY(0px);
    opacity: 1;
}

/* About Hero  */

.about-hero {
  position: relative;
  height: 80vh;
  background: url("../img/deanna-full-portrait.jpg") center 10% / cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--light-color);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(251, 219, 147, 0.1), rgba(10, 10, 10, 0.9));
  backdrop-filter: grayscale(50%) brightness(0.5);
  z-index: 0;
}

.about-hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 90%;
  animation: fadeInHero 2s ease forwards;
  opacity: 0;
}

.about-hero-overlay h1 {
  font-size: 3rem;
  font-family: 'Georgia', serif;
  margin-bottom: 10px;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--light-color);
  display: inline-block;
  padding-bottom: 5px;
}

.about-hero-overlay p {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-top: 15px;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.9;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Contact Page  */

.contact{
    padding: 3rem 0 4rem;
    background: var(--black-color);
    color: var(--light-color);

}

.contact p, h2{
    text-align: center;
    margin-bottom: 2rem;

}

.form-group{
    margin: 2rem 0;   
}

.contact input,
.contact textarea{
    border: none;
    border-bottom: 1px var(--light-color) solid;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    padding-bottom: 1rem;
    background: transparent;
    color: var(--light-color);
}

.contact textarea{
    height: 200px;
}

.contact input:focus, 
.contact textarea:focus{
    outline: 0;
}

.contact button{
    width: 100%;
}

.btn{
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--light-color);
    background: var(--black-color);
    color: var(--white-color);
    font-family: inherit;
    font-size: inherit;

}

.btn:hover{
    background: #333;
    color: #fff;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.container{
    max-width: var(--container-normal);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-lg{
    max-width: var(--container-wide);

}

.container-sm{
    max-width: var(--container-narrow);

}





/* Mobile Layout and Header Bar  */

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #eae2b7;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media only screen and (max-width: 768px) {

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background: var(--black-color);
        width: 100%;
        border-radius: 10px;
        text-align: left;
        transition: 0.3s;
        box-shadow:
            0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-item a{
        color: var(--light-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

}