@font-face {
  font-family: 'DayWithoutSun';
  src: url('fonts/A-DAY-WITHOUT-SUN.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GlacialIndifference-Bold';
  src: url('fonts/GlacialIndifference-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hero Section */
.hero-section {
  background-color: #fdf3e7;
  height: 720px;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center the content */
  align-items: center;     /* Horizontally center the content */
  overflow: hidden;
  position: relative;
}

.shop-now {
  position: absolute;
  top: 5%;
  left: 5%;
  transform: translate(-50%, -50%); /* perfect center */
  width: 120px;
  height: auto;
  opacity: 1;
  z-index: 0;
  animation: fadeSlideUp 1.5s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.sparkle-bg-decor {
  position: absolute;
  top: 15%;
  transform: translate(-50%, -50%); /* perfect center */
  width: 1000px;
  height: auto;
  opacity: 1;
  z-index: 0;
  animation: fadeSlideUp 1.5s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}
.melt-choco-bg-decor {
  position: absolute;
  top: 18%;
  left: 75%;
  transform: translate(-50%, -50%); /* perfect center */
  width: 500px;
  height: auto;
  opacity: 1;
  z-index: 0;

}

/* Container to center content and limit width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1; /* Keeps text above the background image */
  animation: fadeSlideUp 1.5s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: #4a2c2a; /* chocolate color */
  margin-bottom: 1px;
}

.hero-section p {
  font-size: 2rem;
  color: #6b4c3b;
}

.flow-chocolates {
  font-family: 'DayWithoutSun', sans-serif;
  font-size: 5rem;
  letter-spacing: 3px;
}

.sun-small {
  font-family: 'DayWithoutSun', sans-serif;
  font-size: 3rem;
  letter-spacing: 2px;
  color: #eb8917;
}

.arabic {
  font-family: 'DayWithoutSun', sans-serif;
  font-size: 2rem;
  color: #eb8917;
}

.logo-image {
  width: 240px;       /* Adjust size as needed */
  height: auto;
  margin-top: 1px;
  margin: 0px 10px;     /* 20px top and bottom, 10 left and right */
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }
}

/* Slide Up Animation */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 2nd Section */
.products-section {
  background-color: #fdf3e7;
  padding: 60px 20px;
  display: flex;
  flex-direction: row;
}

.products-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.products-left {
  width: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.explore-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #4a2c2a;
  text-align: center;
  margin-bottom: 10px;
  font-style: italic;
}

.explore-subtext {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #6e4b3a;
  text-align: center;
  max-width: 200px;
  margin: 0 auto;
}

.products-right {
  width: 75%;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: stretch; /* Ensures all children match height */
}

.product-card {
  background-color: #8b5e3c;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  max-width: 30%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Full height inside .products-right */
}

.product-card p {
  font-size: 1rem;
  color: #fff9f0;
  font-family: Arial, sans-serif;
  text-align: center;
  overflow: visible;
  height: auto;
}

.product-image {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-info {
  min-height: 160px; /* Set consistent height for text block */
  margin-bottom: 10px;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
}

.product-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fbe9d0;
}

.shopee-buy-now {
  width: 150px;
  height: auto;
  margin-top: 10px;
  display: inline-block;
  object-fit: contain;
}

.shopee-buy-now:hover {
  transform: scale(1.05); /* Slight zoom on hover */
}

.product-card h1,
.product-card p,
.product-card a {
  margin-bottom: 10px;
}

/* Animation keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base state before visible */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

/* When visible */
.animate-on-scroll.visible {
  animation: fadeUp 0.8s ease-out forwards;
}

.product-card:nth-child(1) {
  animation-delay: 0.2s;
}
.product-card:nth-child(2) {
  animation-delay: 0.4s;
}
.product-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* Mobile Phone */
@media (max-width: 768px) {
  .second-section {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .products-left {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .products-right {
    width: 100%;
    flex-direction: column;
    gap: 20px;
  }

  .product-card {
    max-width: 100%;
    width: 100%;
    min-height: auto;
  }

  .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .product-name {
    font-size: 1.1rem;
  }

  .product-desc {
    font-size: 0.9rem;
  }

  .shopee-buy-now {
    width: 180px;     /* bigger width */
    height: auto;
    padding: 10px 16px; /* extra padding */
    margin-top: -50px;
  }

.second-section,
.products-left,
.products-right,
.product-card {
  align-items: center;
  justify-content: center;
}
}

/* Third Section Layout */
.story-section {
  background-color: #4b2119;
  color: #fcd6c4;
  padding: 80px 30px;
  background-image: url('element/cocoa-beans.png'), url('element/sparkle2.png'); /* ← your image path */
  background-repeat: no-repeat, no-repeat;
  background-position: right center, center;
  background-size: 720px auto, 1080px; /* adjust as needed */
}
.story-heading {
  position: relative;
  display: inline-block;
  margin-bottom: 30px; /* Space below the group */
}

.story-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Left Text */
.story-text {
  flex: 3;
  padding-left: 20px;   /* move right */
  padding-top: 20px;     /* move down */
  max-width: 600px;
  min-width: 300px;
}

.story-title {
  font-family: 'DayWithoutSun', sans-serif;
  font-size: 5rem;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 3px;
}

.underline-decor {
  position: absolute;
  right: 0;             /* Align to bottom-right */
  bottom: -50px;        /* Slightly below the title */
  width:170px;         /* Adjust size */
  height: auto;
}

.story-paragraph {
  font-size: 1.05rem;
  word-wrap: break-word;
  font-family: 'Nunito', sans-serif;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

/* Only show background on smaller screens */
@media (max-width: 768px) {
  .story-text-bg {
    background-color: rgba(116, 86, 86, 0.4); /* Transparent dark */
    padding: 20px;
    border-radius: 12px;
  }
  .underline-decor {
  width:240px;         /* Adjust size */
}
}

/* Fourth Section */
.creation-section {
  background-color: #fdf3e7; /* match your first section */
  color: #4b2119;
  padding: 80px 30px;

  background-image: url('element/chocolate-flow.png'), url('element/cocoa-bag.png'), url('element/sparkle3.png');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: -120px -60px, bottom right, bottom left; /* Or adjust as needed */
  background-size: 480px auto, 300px auto, 320px auto; /* Adjust width as necessary */
}

.creation-wrapper {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.creation-title {
  font-family: 'DayWithoutSun', sans-serif;
  font-size: 3rem;
  letter-spacing: 2px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #4b2119;
}

.creation-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #4b2119;
  letter-spacing: 0.1px;
}

@media (max-width: 768px) {
  .creation-wrapper {
    background-color: rgba(199, 184, 184, 0.4); /* Transparent dark */
    padding: 20px;
    border-radius: 12px;
    color: #070201;
  }
}

/* fifth */
.features-section {
  background-color: #fdf3e7;
  color: #4b2119;
  padding: 210px 100px;
  background-image: 
    url('element/sparkle1.png'),
    url('element/cocoa-open.png'),
    url('element/choco-drip.png'),
    url('element/choco-bar.png');
  background-repeat: no-repeat;
  background-position: 
    30% 50%,       /* sparkle */
    -10% 30%,        /* cocoa pod */
    100% 0%,        /* drip */
    95% 90%;       /* chocolate bar */
  background-size:
    1080px,
    420px,
    320px,
    320px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .features-section {
    padding: 100px 20px;
    background-position: 
      -170% 75%,       /* sparkle */
      -20% 0%,      /* cocoa pod */
      100% 0%,       /* drip */
      90% 95%;       /* chocolate bar */
    background-size:
      640px,
      200px,
      180px,
      120px;
  }

  .features-title {
    font-size: 3.2rem;
    margin-bottom: 30px;
  }

  .features-list {
    grid-template-columns: 1fr !important; /* Force 1 column */
    justify-items: start;
    text-align: left;
  }

  .features-list li {
    font-size: 1rem;
    justify-content: flex-start;
    align-items: center;
  }

  .features-list li img {
    width: 48px;
    height: auto;
  }
}

.features-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.features-title {
  font-family: 'DayWithoutSun', sans-serif;
  font-size: 5.5rem;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.features-list li {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.features-list li img {
  width: 80px;
  height: 50px;
}

/* Last Section */
.cta-section {
  background-color: #fdf3e7;
  background-image: url('element/choco-berry.png'), url('element/sparkle4.png');
  background-repeat: no-repeat, no-repeat;
  background-position: 
  90% 20%,       
  -10% 30%;
  background-size: 240px auto, 100px auto;
  padding: 60px 30px 100px;
  font-family: 'Nunito', sans-serif;
  color: #4b2119;
  position: relative;
}

.cta-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cta-text {
  max-width: 600px;
  position: relative;
}

.cta-wrapper {
  position: relative; /* Needed for absolute child positioning */
  display: inline-block; /* Shrinks to content width */
}

.cta-title {
  font-family: 'GlacialIndifference-Bold', sans-serif;
  font-size: 4rem;
  color: #3a0f0f;
  line-height: 1.2;
  position: relative;
  z-index: 1; /* Keep title above background/decoration */
}

.cta-underline {
  position: absolute;
  bottom: 0px;   /* Adjust vertically */
  left: 250px;     /* Adjust horizontally */
  width: 200px;    /* Adjust image size */
  z-index: 0;      /* Behind text */
}

.cta-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 60px;
  gap: 30px;
  
}


.info-block {
  flex: 1;
  min-width: 150px;
  
}

.info-block h4 {
  font-weight: 800;
  margin-bottom: 10px;
}

.info-block img {
  margin-right: 10px;
  height: 30px;
  vertical-align: middle;
}

/* Bottom border styling */
.cta-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.checker-line {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #0047ba,
    #0047ba 10px,
    white 10px,
    white 20px
  );
}

.choco-bar {
  height: 40px;
  background-color: #4b2119;
}

@media (max-width: 768px) {
  .cta-section {
  background-position: 
  90% 20%,       
  -10% 30%;
  background-size: 120px auto, 100px auto;
}
.cta-info {
  gap: 45px;
}
}
