html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  background-attachment: fixed;
  animation: gradient 15s ease infinite;
}

main {
  flex: 1;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  position: fixed;
  top: 0;
  left: 50%;
  width: 80%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 1.2rem;
  text-align: center;
  border-radius: 1rem;
  margin-top: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  box-sizing: border-box;
  transition: background 0.3s ease, transform 0.3s ease;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px; /* tebal border */
  background: linear-gradient(270deg, #ff00ff, #00ffff, #ff9900, #ff00ff);
  background-size: 400% 400%;
  animation: borderRun 6s linear infinite;

  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.card-border {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.card-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px; /* ketebalan border */
  background: linear-gradient(270deg, #ff00ff, #00ffff, #ff9900, #ff00ff);
  background-size: 400% 400%;
  animation: borderRun 6s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  z-index: 1;
}

.card-inner {
  position: relative;
  border-radius: inherit;
  background: transparent;            /* ❌ ga ada layer putih */
  backdrop-filter: blur(8px);         /* ✅ efek blur transparan */
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
  text-align: center;
  z-index: 2;
}

@keyframes borderRun {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo img {
  max-width: 100px;  /* ukuran maksimal desktop */
  height: 50px;      /* tinggi tetap, skala proporsional */
  object-fit: contain; /* jaga rasio logo */
  display: block;
}

.marquee {
  flex: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  backdrop-filter: none;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  font-size: 1.1rem;
  font-weight: bold;
  color: rgba(255,255,255,0.9);
  animation: text-run 15s linear infinite;
}

@keyframes text-run {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-10px);
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
    margin-top: 1rem;
  }
  .logo img {
    max-width: 60px;  /* lebih kecil di mobile */
    height: 40px;     /* tinggi tetap di mobile */
  }
  .marquee span {
    font-size: 0.9rem;
  }
}

.main-content {
  flex: 1;
  padding: 20px;
  color: white;
  margin-top: 120px;
  padding-bottom: 40px;
}

footer {
  background: transparent;
  text-align: center;
  padding: 10px;
  color: white;
}

.card-service.active {
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

textarea {
  resize: none;
  height: 150px;
  overflow-y: auto;
}