* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*copied form html head*/
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');
                        
body{
  font-family: 'Crimson Text', serif;
  line-height: 1.7;
  color: #333333;  
  background: #ffeddb;   
}                  
            
/*Navigation */    
nav{
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title{
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #8B4513;
  text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.1);
  letter-spacing: 1px;
}

ul{
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #333333;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
}

nav ul li a:hover {
  color: #8B4513;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8B4513;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.top {
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(139, 69, 19, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(212, 165, 116, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  pointer-events: none;
}

.top-content {
  max-width: 800px;
}

.top-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #8B4513;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
  letter-spacing: 2px;
  position: relative;
}

.top-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8B4513, transparent);
}

.top-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #666666;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
  font-weight: 400;
  letter-spacing: 1px;
}

.top-image {
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 3s forwards;
}

/*sections */   
.section {    
  padding: 6rem 0;  
  background: #f0d8bc;
}           
    
/*need other background color*/
.alt-bg{           
  background: #e1ba8e;
  position: relative;
  border-top:3px #8B4513 dashed;
  border-bottom:3px #8B4513 dashed;
  padding-right:1rem;
}    

.alt-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*learned how to make this cool background online!*/
  background: 
    linear-gradient(45deg, transparent 40%, rgb(111, 65, 11, 0.02) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgb(93, 60, 25, 0.03) 50%, transparent 60%);
  background-size: 30px 30px;
}
        
.container{  
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.section-title{
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #8B4513;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  letter-spacing: 1px;
  position: relative;
}

.section-title::before,
.section-title::after {
  content: '❦'; /*cool character I put on the sides for the aesthretic!*/
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #d4a574;
  font-size: 1.5rem;
}

.section-title::before {
  left: -60px;
}

.section-title::after {
  right: -60px;
}

/*more scroll effect*/
.section-title.visible{
  opacity: 1;
  transform: translateY(0);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/*makes the text enter in diff ways*/
.grid-two{
  direction: rtl;
}

.grid-two > *{
  direction: ltr;
}

/*Text scroll transition (same as header kinda)*/
.text-content{
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.text-content.visible{
  opacity: 1;
  transform: translateX(0);
}

/*same transition for image boxes*/
.image-content{
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
  margin:2rem;
}

.image-content.visible{
  opacity: 1;
  transform: translateX(0);
}

.text-content p{
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  margin-left:2rem;
  color: #444444;
  text-align: justify;
  text-indent: 1.5em;
}

/*makes first letter bigger*/
.text-content p:first-letter {
  font-size: 24px;
  font-weight: 600;
  color: #8B4513;
}

/*image holders*/
.placeholder-image{
  width: 100%;
  height: 300px;
  background:#d4a574;
  border-radius: 15px;
  transition: transform 0.5s ease;
  border: 3px solid #8B4513;
  position: relative;
  object-fit: cover;

}

.placeholder-image::before{
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 10px;
  pointer-events: none;
}

.image-content .placeholder-image {
  height: 400px;
  font-size: 24px;
}

.placeholder-image:hover {
  transform: translateY(-5px);
}

/*Timeline */
.timeline{
  padding: 6rem 0;
  background: #fff4e0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*make tiny circles in background*/
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.05) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(212, 165, 116, 0.05) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  pointer-events: none;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: auto;
}

/*tried to include smooth animations*/
.timeline-container::before{
  content:'';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #8B4513;
  transform: translateX(-50%);
}

/*same animation as elements previous*/
.timeline-item{
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible{
  opacity: 1;
  transform: translateY(0);
}

.timeline-item .timeline-content{
padding:.75rem;
}

.timeline-item:nth-child(odd) {
  text-align: right;
  padding-right: 50%;
}

.timeline-item:nth-child(even) {
  text-align: left;
  padding-left: 50%;
}

.timeline-year{
  display: inline-block;
  background: linear-gradient(135deg, #8B4513, #a0572a);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border: 2px solid #6d3410;
  letter-spacing: 1px;
}

.timeline-content h3{
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #8B4513;
  letter-spacing: 0.5px;
}

.timeline-content p {
  color: #444444;
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
}

/*copied prev transitoon*/
.timeline-item::before{
  content: '';
  position: absolute;
  top: 1rem;
  width: 15px;
  height: 15px;
  background: #8B4513;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid white;
}

/*Footer */
.footer {
  background: white url('footerbackground.png') center/cover;
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
}

/*Animations */
@keyframes fadeInUp{
  from{
    opacity: 0;
    transform: translateY(30px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
