
.cardcf img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.cardcf svg {
  position: relative;
  z-index: 2;
}
.cardcf_content {
  z-index: 3;
}

#card-section, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto 40px auto;
  box-sizing: border-box;
}
#s-projects {
     position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 550px;
  background: #ededed;
  margin: 0 auto 40px auto;
  border: 8px solid #111;
  box-shadow: 16px 16px 0 0 #111, 0 0 0 0 #000;
  box-sizing: border-box;
  z-index: 2;
}
#projects h2  {
  text-align: center;
}
#creative h2 {
  text-align: center;
  margin-bottom: 20px;
}
#Karya h2{
  text-align: center;
  
}
.card {
  width: 320px;
  padding: 30px;
  background: #fff;
  border: 8px solid #000;
  box-shadow: 15px 15px 0 #000;
  transform: rotate(-2deg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card:active {
  animation: shake 0.5s ease-in-out;
}
.card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 20px 20px 0 #000;
}

.banner {
  position: absolute;
  top: 3px;
  right: -95px;
  background: #000;
  color: #fff;
  padding: 15px;
  width: 350px;
  text-align: center;
  transform: rotate(45deg);
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 2px;
  overflow: hidden;
  transition: background 0.5s ease;
}
.banner-text {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
  position: absolute;
  left: 13%;
  top: 50%;
  transform: translateY(-50%);
}
.banner:hover .banner-text:first-child {
  opacity: 0;
  transform: translateY(-100%);
}
.banner:hover .banner-text:last-child {
  opacity: 1;
  transform: translateY(-40%);
}
.banner-text:last-child {
  opacity: 0;
  transform: translateY(60%);
}
.banner:hover {
  background: red;
}
.card__title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  border-bottom: 2px solid #000;
  width: 50%; /* or any other percentage or pixel value */
}
.card__subtitle {
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

/* creative section  */
/* Creative Tech Section Flex Container */
.creative-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto 40px auto;
  box-sizing: border-box;
}
.cardcf {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: #f2f2f2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cardcf svg {
  width: 48px;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cardcf:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.cardcf_content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f2f2f2;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cardcf:hover .cardcf_content {
  transform: rotateX(0deg);
}

.cardcf_title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 700;
}

.cardcf:hover svg {
  scale: 0;
}

.cardcf_description {
  margin: 10px 0 0;
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  max-height: 80px;
  overflow-y: auto;
  word-break: break-word;
  padding-right: 4px;
}


/* Infinite horizontal scroll  */
/* Infinite horizontal scroll for .makasih section */
.makasih {
  width: 100%;
  overflow: hidden;
  background: none;
  margin: 32px 0;
}
.makasih .alatnya {
  width: 100%;
  padding: 0 0 12px 0;
}
.makasih h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.makasih .inner {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: scroll-horizontal 18s linear infinite;
  align-items: center;
  padding: 8px 0;
}
.makasih .alat {
  background: #fff;
  border: 2px solid #222;
  border-radius: 18px;
  padding: 8px 22px;
  font-size: 1.08rem;
  color: #222;
  font-weight: 500;
  box-shadow: 2px 2px 0 #2222;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@keyframes scroll-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive: infinite scroll section */
@media (max-width: 700px) {
  .makasih h2 {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
  .makasih .inner {
    gap: 16px;
    animation-duration: 12s;
    padding: 6px 0;
  }
  .makasih .alat {
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 12px;
    gap: 6px;
  }
}

/* === sertifikat === */
.container-sf {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.certificates-section {
  padding: 20px;
}

@media (max-width: 1024px) {
  .container-sf .glass {
    width: 160px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .container-sf {
    justify-content: center;
  }

  .container-sf .glass {
    width: 140px;
    height: 160px;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container-sf {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px; /* kasih jarak antar kartu */
  }

  .container-sf .glass {
    width: 90%;
    height: auto;
    padding: 10px;
    margin: 0 auto;
  }

  .glass img {
    width: 100% !important;
    height: auto !important;
  }

  /* OVERRIDE HOVER di layar kecil */
  .container-sf:hover .glass {
    transform: translateY(10px); /* efek hover ke bawah */
    margin: 0 auto;
  }
}


/* DESKTOP DEFAULT */
.container-sf .glass {
  position: relative;
  width: 180px;
  height: 200px;
  background: linear-gradient(#fff2, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  border-radius: 10px;
  margin: 0 -45px;
  backdrop-filter: blur(10px);
  transform: rotate(calc(var(--r) * 1deg));
}

.container-sf:hover .glass {
  transform: rotate(0deg);
  margin: 0 10px;
}

.container-sf .glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.container-sf .glass svg {
  font-size: 2.5em;
  fill: #fff;
}

/* --- HERO KONTAK SECTION MODERN --- */
#herokontak {
  width: 100%;
  min-height: 620px;
  background-image: url('../img/contacthero.png');
  background-size: cover;
  background-position: center;
  background-size: 50%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 66px 0;
  margin: 0 auto 0 auto;
  position: relative;
  z-index: 1;
}
#herokontak .intro {
  background: transparent;
  border-radius: 22px;
  box-shadow: ;
  padding: 38px 5px 32px 5px;
  max-width: 1020px;
  width: 90vw;
  text-align: center;
  margin: 0 auto;
  position: relative;
}
#herokontak h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
  letter-spacing: 1px;
}
#herokontak h1 span {
  color: white;
  font-weight: 800;
  letter-spacing: 2px;
}
#herokontak p {
  font-size: 1.13rem;
  color: #444;
  margin-bottom: 28px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  #herokontak {
    padding: 32px 40px 24px 40px;
    min-height: 180px;
  }
  #herokontak .intro {
    padding: 18px 6vw 18px 6vw;
    max-width: 98vw;
  }
  #herokontak h1 {
    font-size: 1.35rem;
  }
  #herokontak p {
    font-size: 0.98rem;
    margin-bottom: 18px;
  }
  #herokontak .btn {
    font-size: 0.98rem;
    padding: 10px 22px;
  }
}

/* WhatsApp Confirm Popup as floating notification */
#whatsappConfirmPopup.popup {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 9999;
  background: rgba(30,40,60,0.18);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInNotif 0.3s;
}
#whatsappConfirmPopup .popup-content {
  /* background: #fff; */
  background-image: url('../img/kertassend.png');
  background-size: 130%;
  background-repeat: no-repeat;
  background-position: center;
  /* border-radius: 18px; */
  box-shadow: 0 8px 32px 0 rgba(0,188,212,0.18), 0 2px 8px #00bcd410;
  padding: 28px 22px 22px 22px;
  max-width: 820px;
  min-width: 320px;
  width: 128vw;
  height: 450px;
  text-align: left;
  position: relative;
  animation: notifPop 0.4s cubic-bezier(.6,-0.28,.74,.05);
}
#whatsappConfirmPopup .close {
  position: absolute;
  right: 23px;
  top: 12px;
  font-size: 3rem;
  color: #000000;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
#whatsappConfirmPopup .close:hover {
  opacity: 1;
}
#confirmMessagePreview {
  background: transparent;
  border-radius: 1px;
  padding: 12px 10px;
  margin-bottom: 10px;
  word-break: break-word;
  color: #222;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px #00bcd410;
}
#whatsappConfirmPopup .popup-content h3 {
  margin-bottom: 10px;
  color: #000000;
  font-weight: 700;
  font-size: 1.18rem;
}
#whatsappConfirmPopup .popup-content .info {
  font-size: 1.01rem;
  margin-bottom: 12px;
  color: #000000;
  font-weight: 600;
}
#whatsappConfirmPopup .popup-content .hint {
  font-size: 0.97rem;
  color: #000000;
  background: rgba(0,188,212,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  text-align: left;
}
#whatsappConfirmPopup .popup-content .hint i {
  color: #000000;
  font-size: 1.1rem;
}
#confirmSendBtn {
  background: transparent;
  color: #020202;
  font-family: "Indie Flower", cursive;
  padding: 10px 22px;
  border: none;
  /* border-radius: 18px; */
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #00bcd410;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
#confirmSendBtn:hover {
  /* background: linear-gradient(90deg, #0097a7 60%, #00bcd4 100%); */
  color: #fff;
}
@keyframes fadeInNotif {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes notifPop {
  0% { transform: scale(0.85) translateY(30px); opacity: 0; }
  80% { transform: scale(1.05) translateY(-6px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* --- CONTACT SECTION MODERN STYLE --- */
/* Chatbot Section */
.chatbot-section {
  max-width: 370px;
  min-height: 480px;
  max-height: 540px;
  height: 100vh;
  margin: 40px auto 0 auto;
 
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;

  overflow: hidden;
  min-height: 480px;
  position: relative;
}

.chatbot-header {
  display: flex;
  align-items: center;
  /* background: linear-gradient(90deg, #1a5555 60%, #4a7f85 100%); */
  color: #fff;
  padding: 16px 18px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  position: relative;
  text-shadow: 
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 14px;
  object-fit: cover;
  border: 2px solid #fff;
  background: #e0f7fa;
}

.chatbot-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.chatbot-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 400;
}

.chatbot-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.chatbot-close:hover {
  opacity: 1;
}

.chatbot-body {
  flex: 1;
  padding: 18px 14px 12px 14px;
  /* background: linear-gradient(135deg, #e0f7fa 0%, #ffffff 60%, #b2ebf2 100%); */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-message {
  display: flex;
  align-items: flex-end;
}

.chatbot-message.bot {
  justify-content: flex-start;
}

.chatbot-message.user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px 0 #00bcd410;
  /* background: #e0f7fa; */
  color: #000000;
  margin-bottom: 2px;
  word-break: break-word;
}

.chatbot-message.user .chatbot-bubble {
  /* background: #00bcd4; */
  color: #000000;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 16px;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
  margin-left: auto;
}

.chatbot-message.bot .chatbot-bubble {
  background: #faf5e0;
  color: #000000;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 16px;
  border-top-right-radius: 16px;
  border-top-left-radius: 16px;
  margin-right: auto;
}

.chatbot-footer {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  /* background: rgba(255, 255, 255, 0.72); */
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  /* border-top: 1px solid #e0e0e0; */
  gap: 8px;
  backdrop-filter: blur(12px);
  
  /* box-shadow: 0 2px 16px 0 rgba(0,188,212,0.07); */
}

#chatbotInput {
  flex: 1;
  /* border: 1.5px solid #00bcd4; */
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: 'Schoolbell', 'Indie Flower', cursive, sans-serif; /* Corrected font-family */
  outline: none;
  background: transparent;
  color: #000000;
  transition: border 0.2s, background 0.2s;
  
}

#chatbotInput:focus {
  border: 1.5px solid #0097a7;
  /* background: rgba(255,255,255,0.95); */
}

.chatbot-send {
  background: #000000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chatbot-send:hover {
  background: #a79100;
}

.chatbot-quickreplies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 0 0;
}

.chatbot-quick-btn {
  background: transparent;
  color: #000000;
  border: 1.5px solid #d4aa00;
  border-radius: 22px;
  text-align: left;
  padding: 12px 18px;
  font-size: 1.05rem;
  font-family: 'Schoolbell', 'Indie Flower', cursive, sans-serif; /* Corrected font-family */
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 8px 0 #00bcd410;
  opacity: 0.92;
  outline: none;
}
.chatbot-quick-btn:hover {
  background: linear-gradient(90deg, #d4b400 60%, #b2ebf2 100%);
  color: #fff;
  border: 1.5px solid #a79900;
  opacity: 1;
}

@media (max-width: 600px) {
  .chatbot-section {
    max-width: 98vw;
    min-width: 0;
    border-radius: 12px;
  }
  .chatbot-header, chatbotInput .chatbot-footer {
   border-top-left-radius: 18px;
   border-top-right-radius: 18px;

  }
}
#contact {
  max-width: 480px; /* diperlebar dari 100% */
  margin: 40px auto 0 auto;
  /* background: transparent; */
 font-family: 'Schoolbell', 'Indie Flower', cursive, sans-serif; /* Corrected font-family */
  
  padding: 30px 60px;
  background-image: url('../img/Kertas.png');
  background-size: 150%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  
}
#contact h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #00bcd4;
  margin-bottom: 18px;
  text-align: center;
}
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.suggestion img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: #e0f7fa;
  margin-right: 12px;
  flex-shrink: 0;
}
.suggestion strong {
  color: #00bcd4;
  font-weight: 600;
  margin-right: 6px;
}
