@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body, html {
  margin: 0;
  padding: 0;
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #F4DCBE;
  color: #4C3B32;
}

.set1 {
  background: url('Pic/ikeay2.png') center/cover no-repeat;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  position: relative;
  z-index: 10;
}

.nav-container {
  background: #E9A26C;
  display: flex;
  align-items: center;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  padding: 0.5rem 1rem;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo a {
  text-decoration: none;
}

.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-logo strong {
  font-family: 'Pacifico', cursive;
  font-size: 1.6rem;
  font-weight: normal;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  cursor: pointer;
}

.nav-links {
  display: flex;
}

.nav-links a {
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #FFFFFF;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.nav-links a.active {
  background-color: #D9896C;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.nav-links a:hover {
  background-color: #A6BAA0;
  box-shadow: 0 0 10px rgba(246,202,180,0.6);
  color: #FFFFFF;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.9;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: 4rem;
  color: #FFFFFF;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInHero 1s forwards;
}

.hero p {
  font-size: 2rem;
  color: #FFFFFF;
  max-width: 1200px;
  margin-top: 1rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInHero 1s 0.3s forwards;
}

@keyframes fadeInHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease;
}

.container h2 {
  text-align: center;
  color: #813109;
  font-size: 4rem;
  margin-bottom: 60px;
}

.story-card {
  background-color: #fff8f3;
  border: 2px solid #e2c4a3;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: fadeIn 0.8s ease;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  border-color: #d9896c;
}

.story-card h3 {
  margin-top: 0;
  color: #5C4438;
  font-size: 1.7rem;
  transition: color 0.3s ease;
}

.story-card:hover h3 {
  color: #b85c38;
}

.story-card p {
  font-size: 1.2rem;
  color: #5C4438;
  line-height: 1.6;
}

.story-card button {
  background-color: #d9896c;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.story-card button:hover {
  background-color: #A6BAA0;
  transform: scale(1.05);
}

.story-content {
  max-height: 280px;
  overflow: hidden;
  position: relative;
  transition: max-height 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255,248,243,0), #fff8f3);
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.story-content.expanded {
  max-height: 2000px;
}

.story-content.expanded::after {
  opacity: 0;
}

.story-card .read-more {
  display: inline-block;
  margin: 1rem 0 0;
  background-color: #D9896C;
  color: white;
  font-size: 1.05rem;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.story-card .read-more:hover {  
  background-color: #A6BAA0;
  transform: scale(1.05);
}

.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: #D9896C;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 999;
  opacity: 0;
  animation: fadeInFab 1.2s ease forwards;
  animation-delay: 0.2s; 
}

.fab:hover {
  background-color: #A6BAA0;
  transform: scale(1.05);
}

.fab img {
  width: 55px;
  height: 55px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.fab:hover img {
  filter: brightness(0) invert(69%) sepia(25%) saturate(494%) hue-rotate(336deg) brightness(85%) contrast(105%);
}

@keyframes fadeInFab {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cool-box {
  background-color: #f6ebe3;
  border: 1px solid #e2c4a3;
  color: #4c3b32;
  border-radius: 40px;
  margin-bottom: 60px;
  padding: 30px;
  font-size: 1.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cool-box-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
}

.cool-box-row-p2 {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
}

.cool-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background-color: #fdf7f2;
}

.cool-box-p1:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cool-box-p1 .box-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cool-box-p1 p1 {
  font-size: 3.4rem;
}

.cool-box-p2 p1 {
  font-size: 3.4rem;
}

.cool-box-p3 p1 {
  font-size: 3.4rem;
}

.box-image {
  height: 420px;
  margin-left: 70px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.box-image-p2{
  height: 290px;
  margin: 0px;
  margin-top: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.box-image-p3 {
  height: 290px;
  margin: 0px;
  margin-top: 80px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.cool-box-p1{
  width: 700px;
  height: 420px;
  background-color: #f0e2d0;
  border: 1px solid #e2c4a3;
  color: #4c3b32;
  border-radius: 40px;
  padding: 30px;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.6;
  box-sizing: border-box;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, #fdf7f2, #f0e2d0);
  margin: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cool-box-p1 p {
  margin: 0;
}

.cool-box-p2{
  width: 700px;
  height: 510px;
  background-color: #f0e2d0;
  border: 1px solid #e2c4a3;
  color: #4c3b32;
  border-radius: 40px;
  padding: 30px;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.6;
  box-sizing: border-box;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, #fdf7f2, #f0e2d0);
  margin: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cool-box-p2 p{
  margin-top: -5px;
}

.cool-box-p3 {
  width: 700px;
  height: 460px;
  background-color: #f0e2d0;
  border: 1px solid #e2c4a3;
  color: #4c3b32;
  border-radius: 40px;
  padding: 30px;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.6;
  box-sizing: border-box;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(135deg, #fdf7f2, #f0e2d0);
  margin: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cool-box-p3 p{
  margin-top: -10px;
}

* {
box-sizing: border-box;
}

#yourstory {
  background-color: #fff8f3;
  border: 2px solid #e2c4a3;
  border-radius: 20px;
  padding: 3rem;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  animation: fadeIn 0.8s ease;
}

#yourstory h2 {
  text-align: center;
  color: #813109;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

#yourstory input,
#yourstory textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  border: 2px solid #d9896c;
  border-radius: 12px;
  font-size: 1.1rem;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
  display: block;
}

#yourstory input:focus,
#yourstory textarea:focus {
  border-color: #a6baa0;
  box-shadow: 0 0 0 4px rgba(166,186,160,0.2);
  outline: none;
}

#yourstory button {
  display: block;
  margin: 1rem auto 0;
  background-color: #d9896c;
  color: white;
  font-size: 1.2rem;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background-color 0.3s, transform 0.2s;
}

#yourstory button:hover {
  background-color: #a6baa0;
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

textarea, input {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #AAA;
}

button {
  background-color: #5C4438;
  color: white;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #A6BAA0;
}

.timeline {
  border-left: 4px solid #E9A26C;
  padding-left: 1.5rem;
  margin-top: 2rem;
}

.timeline-entry {
  margin-bottom: 1.5rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.about-me-section {
  background-color: #f0f0f0;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 2px solid #e0e0e0;
  margin-top: 2rem;
  font-size: 1.2rem;
}

.about-me-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.about-me-section p {
  max-width: 1200px;
  margin: 0 auto 1rem auto;
  color: #555;
  line-height: 1.6;
}

.about-me-section .copyright {
  font-size: 1.0rem;
  color: #888;
  margin-top: 2rem;
}

/* ========== Responsive ========== */

@media (max-width: 1024px) {
  .cool-box-row,
  .cool-box-row-p2 {
    flex-direction: column;
    align-items: center;
  }

  .cool-box-p1,
  .cool-box-p2,
  .cool-box-p3 {
    width: 90%;
    max-width: 600px;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .box-image,
  .box-image-p2,
  .box-image-p3 {
    height: auto;
    width: 70%;
    max-width: 350px;
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {

  nav {
    flex-direction: column;
    padding: 0.5rem;
  }
  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.3rem;
  }

  .cool-box-row,
  .cool-box-row-p2 {
    flex-direction: column;
    align-items: center;
  }

  .cool-box-p1,
  .cool-box-p2,
  .cool-box-p3 {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .box-image,
  .box-image-p2,
  .box-image-p3 {
    margin: 0;
    height: 200px;
    margin-bottom: 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  .container h2 {
    font-size: 2.5rem;
  }

  .story-card p {
    font-size: 1rem;
  }

  .story-card h3 {
    font-size: 1.3rem;
  }

  #yourstory {
    padding: 1.5rem;
    margin: 2rem auto;
  }

  #yourstory h2 {
    font-size: 2rem;
  }

  .fab {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }
  .fab img {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {

  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .cool-box {
    font-size: 1.2rem;
    padding: 20px;
  }

  .cool-box-p1,
  .cool-box-p2,
  .cool-box-p3 {
    padding: 20px;
    font-size: 1.2rem;
  }

  .box-image,
  .box-image-p2,
  .box-image-p3 {
    height: 160px;
  }

  .story-card p {
    font-size: 0.95rem;
  }

  .story-card button,
  .story-card .read-more {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  #yourstory h2 {
    font-size: 1.7rem;
  }

  #yourstory input,
  #yourstory textarea {
    font-size: 1rem;
    padding: 0.75rem;
  }

  #yourstory button {
    font-size: 1rem;
    padding: 0.7rem 2rem;
  }
}
