:root {
  --primary-color: #3498db;
  --primary-color-dark: #2980b9;
  --text-dark: #2e2e2e;
  --text-light: #595959;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--extra-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-title span {
  color: var(--primary-color);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.product-display {
  width: 100%;
  max-width: var(--max-width, 1200px);
  margin: 50px auto 0;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 100px;
}

.product-details {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.company-badge {
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 auto -7px;
}

.company-badge .gradient-text {
  background: linear-gradient(90deg, #3498db, #cf5d5d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dynamic-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 0;
}

.text-changer {
  position: relative;
  color: var(--primary-color);
  display: inline-block;
}

.text-changer::before {
  content: "Mlaku Coffee";
  animation: productChange 15s infinite;
}

.text-changer::after {
  content: "";
  position: absolute;
  right: -5px;
  width: 2px;
  height: 90%;
  top: 5%;
  background-color: var(--primary-color);
  animation: cursorBlink 0.8s infinite;
}

.about__description__join {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.mlaku-features {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 123, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.feature-item i {
  color: #3498db;
}

.header__btns {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  justify-content: center;
}

.header__btns a {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #3498db;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

.btn-outline {
  border: 1px solid #3498db;
  color: #3498db;
}

.header__btns a i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.product-image-mobile {
  display: none;
  justify-content: center;
  width: 100%;
}

.product-image-desktop {
  display: flex;
  justify-content: center;
}

.clean-img {
  max-width: 90%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

@keyframes productChange {
  0%,
  100% {
    content: "Mlaku Coffee";
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .product-display {
    grid-template-columns: 1fr 1fr;
    padding: 3rem 2rem;
  }

  .product-details {
    text-align: left;
    order: 1;
  }

  .company-badge {
    margin: 0 0 -7px;
  }

  .dynamic-heading {
    font-size: 2.5rem;
  }

  .header__btns {
    justify-content: flex-start;
  }

  .product-image-desktop {
    order: 2;
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .product-display {
    padding: 4rem 2rem;
  }

  .dynamic-heading {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

@media (max-width: 768px) {
  .product-image-desktop {
    display: none;
  }

  .product-image-mobile {
    display: flex;
    order: -1;
  }
}

@media (max-width: 540px) {
  .dynamic-heading {
    font-size: 1.8rem;
  }

  .header__btns {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header__btns a {
    width: 100%;
    justify-content: center;
  }

  .mlaku-features {
    justify-content: center;
  }
}

.about-section {
  padding: 80px 0;
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  border-radius: 10px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
}

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  text-align: justify;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background-color: var(--extra-light);
  border-radius: 10px;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

.products-section {
  padding: 60px 0;
  background-color: var(--extra-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.product-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.product-info p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
  flex-grow: 1;
}

.product-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: auto;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .products-section {
    padding: 40px 0;
  }

  .products-grid {
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

.franchise-section {
  padding: 80px 0;
  background-color: var(--white);
}

.franchise-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

.franchise-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.franchise-text h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
}

.franchise-text p {
  color: var(--text-light);
  line-height: 1.8;
}

.franchise-benefits {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.franchise-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
}

.franchise-benefits i {
  color: var(--primary-color);
}

.franchise-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.franchise-image img {
  border-radius: 10px;
}

.testimonials-section {
  padding: 80px 0;
  background-color: var(--extra-light);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.testimonial-rating {
  color: #ffc107;
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--text-light);
  font-size: 0.8rem;
}

.slider {
  width: 100%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 30s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc(
    (30s / var(--quantity)) * (var(--position) - 1) - 30s
  ) !important;
}

.slider .list .item img {
  width: 100%;
}

@keyframes autoRun {
  from {
    left: 100%;
  }
  to {
    left: calc(var(--width) * -1);
  }
}

.slider:hover .item {
  animation-play-state: paused !important;
  filter: grayscale(1);
}

.slider .item:hover {
  filter: grayscale(0);
}

.slider[reverse="true"] .item {
  animation: reversePlay 30s linear infinite;
}

.download-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-content {
  display: inline-block;
  position: relative;
  width: 100%;
}

.btn-content > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.loading-anim,
.success-anim,
.error-anim {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  width: 100%;
}

.loader {
  display: flex;
  gap: 6px;
  height: 20px;
  align-items: center;
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.checkmark {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
}

.checkmark-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.crossmark {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
}

.crossmark-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.download-btn.loading .btn-text {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.download-btn.loading .loading-anim {
  opacity: 1;
  visibility: visible;
}

.download-btn.success .btn-text {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.download-btn.success .success-anim {
  opacity: 1;
  visibility: visible;
}

.download-btn.success .checkmark-path {
  animation: draw 0.6s ease-out forwards;
}

.download-btn.error .btn-text {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.download-btn.error .error-anim {
  opacity: 1;
  visibility: visible;
  color: #ff4444;
}

.download-btn.error .crossmark-path {
  animation: draw 0.6s ease-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.download-btn.loading {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes reversePlay {
  from {
    left: calc(var(--width) * -1);
  }
  to {
    left: 100%;
  }
}

@keyframes productChange {
  0%,
  100% {
    content: "Mlaku Coffee";
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .product-display {
    grid-template-columns: 1fr 1fr;
    padding: 3rem 2rem;
  }

  .product-details {
    text-align: left;
    order: 1;
  }

  .company-badge {
    margin: 0 0 -7px;
  }

  .dynamic-heading {
    font-size: 2.5rem;
  }

  .header__btns {
    justify-content: flex-start;
  }

  .product-image-desktop {
    order: 2;
    justify-content: flex-end;
  }

  .about-content,
  .franchise-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .product-display {
    padding: 4rem 2rem;
  }

  .dynamic-heading {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .about-image {
    width: 100%;
    text-align: center;
  }

  .about-image img {
    display: block;
    margin: 0 auto;
  }

  .product-image-desktop {
    display: none;
  }

  .product-image-mobile {
    display: flex;
    order: -1;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav-buttons {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 540px) {
  .dynamic-heading {
    font-size: 1.8rem;
  }

  .header__btns {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header__btns a {
    width: 100%;
    justify-content: center;
  }

  .mlaku-features {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .franchise-cta {
    flex-direction: column;
  }

  .franchise-cta .btn {
    width: 100%;
  }
}
