* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;

  background: linear-gradient(135deg, #f8fafc, #edf2f7, #f8fafc);

  min-height: 100vh;

  padding: 50px 20px;

  color: #0f172a;
}

.container {
  max-width: 900px;

  margin: auto;
}

.hero {
  text-align: center;

  margin-bottom: 50px;
}

.hero h1 {
  font-size: 72px;

  font-weight: 800;

  letter-spacing: -3px;

  color: #0f172a;
}

.subtitle {
  font-size: 20px;

  margin-top: 10px;

  color: #64748b;
}

.card {
  background: #ffffff;

  border-radius: 28px;

  padding: 45px;

  margin-bottom: 35px;

  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.07);

  border: 1px solid #e2e8f0;

  text-align: center;

  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.step-number {
  width: 55px;

  height: 55px;

  background: #eff6ff;

  color: #2563eb;

  border-radius: 50%;

  display: flex;

  justify-content: center;

  align-items: center;

  margin: auto;

  font-weight: 700;

  font-size: 18px;

  margin-bottom: 20px;
}

.card h2 {
  font-size: 34px;

  margin-bottom: 10px;
}

.desc {
  color: #64748b;

  margin-bottom: 25px;
}

.icon {
  width: 110px;

  margin-bottom: 25px;
}

#doneImg {
  width: 88px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.upload-section {
  display: flex;

  justify-content: center;

  gap: 15px;

  flex-wrap: wrap;
}

#uploadfile {
  padding: 18px;

  width: 340px;

  background: #f8fafc;

  border: 2px dashed #cbd5e1;

  border-radius: 18px;

  font-size: 15px;

  cursor: pointer;
}

#submitbtn {
  padding: 16px 32px;

  border: none;

  border-radius: 16px;

  background: linear-gradient(135deg, #2563eb, #3b82f6);

  color: white;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

#submitbtn:hover {
  transform: translateY(-2px);

  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.note {
  display: block;

  margin-top: 15px;

  color: #64748b;

  font-size: 14px;
}

.buttons {
  display: flex;

  justify-content: center;

  gap: 20px;

  flex-wrap: wrap;

  margin-top: 20px;
}

#encode {
  padding: 18px 40px;

  border: none;

  border-radius: 18px;

  background: linear-gradient(135deg, #0f766e, #14b8a6);

  color: white;

  font-size: 18px;

  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 15px 30px rgba(20, 184, 166, 0.2);

  transition: 0.3s;
}

#decode {
  padding: 18px 40px;

  border: none;

  border-radius: 18px;

  background: linear-gradient(135deg, #334155, #475569);

  color: white;

  font-size: 18px;

  font-weight: 600;

  cursor: pointer;

  box-shadow: 0 15px 30px rgba(51, 65, 85, 0.15);

  transition: 0.3s;
}

#encode:hover,
#decode:hover {
  transform: translateY(-3px) scale(1.03);
}

.dots {
  margin-top: 20px;
}

.dots span {
  display: inline-block;

  width: 16px;

  height: 16px;

  border-radius: 50%;

  background: #94a3b8;

  margin: 8px;
}

.restart {
  text-align: center;

  margin-top: 10px;
}

.restart button {
  padding: 18px 38px;

  border: none;

  border-radius: 18px;

  background: #0f172a;

  color: white;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.restart button:hover {
  background: #1e293b;
}

.footer {
  text-align: center;

  margin-top: 35px;

  color: #64748b;

  font-size: 16px;
}

.footer a {
  text-decoration: none;

  margin-left: 12px;

  padding: 12px 20px;

  background: #e2e8f0;

  color: #0f172a;

  border-radius: 14px;

  font-weight: 600;
}

.footer a:hover {
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 50px;
  }

  .card {
    padding: 30px;
  }

  .card h2 {
    font-size: 28px;
  }

  #uploadfile {
    width: 100%;
  }
}
