*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
    main{
      padding-top: 80px;
    }
    html{
      scroll-behavior: smooth;
    }

  section{
    min-height: 100vh;       /*Tiap section satu layar penuh*/  
    padding: 60px 20px;
    box-sizing: border-box;
    scroll-margin-top: 80px; /*kalau ada nav bar fixed*/
    display: flex;
    flex-direction: column;
    /* tengahin konten vertical */
    justify-content: center;
  
  }
  section h1{
    font-size: 2rem;
    text-align: center;
    
  }

    header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem;
    background-color: #1a9b4b;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    
    z-index: 1000;
    box-sizing: border-box;
    }
    .logo {
      font-size: 2rem;
      font-weight: bold;
    }
    .hamburger{
      display: none;
      font-size: 2rem;
      cursor: pointer;
      color: white;
    }
    .nav-desktop{
      display: flex;
      gap: 1rem;
    }
    .nav-desktop a {
      text-decoration: none;
      color: white;
      font-weight: bold;
    }
    .nav-mobile{
    position: fixed;
    top: -80%;
    left: 0;
    right: 0;
    background-color: #1a9b4b;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: top 0.6s ease;
    z-index: 999;
    display: none;
    padding: 1rem;
    }
    .nav-mobile.active{
      display: flex;
      top: 0;
    }
    .nav-mobile a,
    .nav-mobile {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    }
    .nav-mobile a:hover{
      color: #ddd;
      transform: scale(1.05);
      transition: 0.2s ease-in-out;
    }
    .close-btn{
      position: fixed;
      align-self: flex-end;
      font-size: 2rem;
      color: white;
      cursor: pointer;
      
    }
  

    .template-frame {
      border: 2px solid 14cf5c;
      border-radius: 8px;
      margin: 1rem 0;
      padding: 1rem;
      background-color: #eef0e5;
    }
    .template-link {
      display: block;
      margin-top: 0.5rem;
      color: #1a9b4b;
    }


    .contact-link {
      display: block;
      margin: 1rem 0;
      color: #1a9b4b;
      font-weight: bold;
    }
    
    /* home area */
    .home-center{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100vh;
      text-align: center;
      padding: 5rem 2rem;
      box-sizing: border-box;
    }
    .welcome {
      font-size: 3rem;
      font-family: "Titan One", sans-serif;
      margin: 0;
      
      
    }
    .container-wrapper{
      
      max-width: 800px;
      width: 100%;
      margin: 0 auto;
      padding: 0 1rem;
    }
    
    #gethint{
      color: #1a9b4b;
      font-size: 5rem;
      margin: 0.5rem 0;
      letter-spacing: 8px ;
      font-family: 'Libre Baskerville', serif;
      font-weight: 700;
      
    }
    #home{
        padding: 60px 20px 200px;
    }
    
    .home-center h3{
      margin-top: 0.2rem;
  letter-spacing: 3px;
  color: #1a9b4b;
  font-family: "Libre Baskerville", serif;
  font-weight: 600;
      
    }
    .home-center p{
      margin-top: 2rem;
      font-size: 1.25rem;
      max-width: 800px;
      line-height: 1.6;
      color: #2f3e2e;
    }

    .container{
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap:1.5rem;
      margin-top: 3rem;

    }
    .keunggulan{
      flex: 1 1 200px;
  max-width: 240px;
  background: #eef0e5;
  border: 2px solid #96dab0;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(155, 216, 168, 0.2);
  transition: transform 0.2s ease-in-out;
    }
    .keunggulan:hover {
  transform: translateY(-5px);
    }
    .keunggulan i {
  font-size: 40px;
  color: #1a9b4b;
  margin-bottom: 10px;
    }

    .keunggulan h1{
      font-size: 1.25rem;
  color: #1a9b4b;
  margin: 0.5rem 0;
    }
    .keunggulan h2{
      font-size: 0.95rem;
  color: #696262;
  font-weight: 400;
    }

    .template-button {
     margin-top: 3rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  background-color: #1a9b4b;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.2s;
    }

    .template-button:hover{
      background-color: #157d3a;
      transform: scale(1.05);
    

    }
    /* Responsive */
@media(max-width: 768px) {
  .welcome {
    font-size: 2rem;
  }

  #gethint {
    font-size: 3rem;
    letter-spacing: 3px;
  }

  .home-center p {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .keunggulan {
    max-width: 100%;
  }
  
}


    #template{
      width: 100%;
      padding: 60px 20px;
      background: #fdfaf4;
    }
   .container-template {
    display: flex;
    gap: 20px;
    overflow-x: auto ;
    overflow-y: hidden;
    scroll-snap-type: x mandatory ;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 10px;
   }
.template-frame {
  flex: 0 0 auto;
  width: 260px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  transition: transform 0.2s;
}

.template-frame:hover {
  transform: scale(1.05);
}

.template-cover {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.price {
  margin: 8px 0;
  font-family: "Poppins", sans-serif;
}
.oldPrice {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}
.newPrice {
  font-size: 1.3rem;
  font-weight: bold;
  color: #e63946;
}
.disc {
  margin-left: 8px;
  font-size: 0.9rem;
  color: #2a9d8f;
  font-weight: bold;
}

.template-link {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 8px 15px;
  background-color: #5a463a;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.template-link:hover {
  background-color: #3a2f28;
}

.container-template::-webkit-scrollbar{height: 10px;}
    .container-template::-webkit-scrollbar-thumb{background: rgba(0,0,0.0.15); border-radius: 10px;}

    /* ✅ Desktop: tampil grid */
@media(min-width: 992px) {
  .container-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    overflow: visible; /* hilangin scroll di desktop */
  }
  .template-frame {
    flex: unset;
    width: 100%; /* biar auto sesuai grid */
  }
}

/* ✅ Tablet: masih rapih, bisa grid 2 kolom */
@media(min-width: 600px) and (max-width: 991px) {
  .container-template {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow: visible;
  }
  .template-frame {
    width: 100%;
  }
}

/* ✅ Mobile (Android/iOS): scroll horizontal */
@media(max-width: 599px) {
  .container-template {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .template-frame {
    width: 240px;
  }
}


    #contact{
      min-height: auto;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      background: #f9f9ff;
      padding:40px 20px;
      
      align-items: center;

      
    }
    #contact h2{
      font-size: 1.5rem;
      margin-bottom: 20px;
      color: #333333;
      letter-spacing: 1px;
    }
    .contact-link{
      display: block;
      margin: 10px auto;
      padding: 12px 20px;
      max-width: 280px;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.3s ease;


    }

    .contact-link[href*="wa.me"]{
      background: #25D366;
      color: white;
    }
    .contact-link:hover {
      color: #157d3a;
  opacity: 0.9;
  transform: translateY(-2px);
    }







    @media(max-width:768px){
    section{
      padding: 100px 16px;
    }
    section h1{
      color: #333333;
      font-size: 1.5rem;

    }
    section p{
      font-size: 0.95rem;
    }
    header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a9b4b;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
 
    }
    .home-center{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100vh;
      text-align: center;
      box-sizing: border-box;
      margin-top: 53%;
      padding: 2rem;


    }
    .home-center h1{
      color: #000000;
      font-size: 25px;
      
      
    }
    #gethint{
      color: #1a9b4b;
      font-size: 80px;
      margin-top: 0.5rem ;
      letter-spacing: 5px ;
      font-family: 'Libre Baskerville', serif;
      font-weight: Bold;
      
    }
    .home-center h3{
      margin-top: 0rem;
      letter-spacing: 1px ;
      color: #1a9b4b;
      font-family: 'Libre Baskerville', serif;
      font-weight: 700;
      
    }
    .home-center p{
      margin-top: 3rem;
      font-size: 15px;
    }
      .nav-desktop{
      display: none;
    }
    .hamburger{
      display: block;
      font-size: 2rem;
      color: white;
      cursor: pointer;
      
    }
    .nav-mobile{
      display: flex;
    
      
    }
  }