/* Global Layout */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f9fbfd, #eef5f9);
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 25px 25px;
  pointer-events: none;
}

/* Header */
header {
  width: 100%;
  background: linear-gradient(135deg, #3a7bd5, #00d2ff);
  color: white;
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Background Illustration (DevOps theme) */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://i.ibb.co/4PHZ6Zw/tech-waves-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.15;
  z-index: 1;
}

/* Light gradient animation */
header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 70%);
  animation: lightMove 8s infinite alternate;
  z-index: 2;
}
@keyframes lightMove {
  from { transform: translateX(0); }
  to { transform: translateX(25%); }
}

/* Title */
header h1 {
  font-size: 2.3rem;
  margin-top: 50px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  position: relative;
  z-index: 3;
}
header h1::before {
  content: "☁️";
  font-size: 1.8rem;
  margin-right: 8px;
}

.back-button {
  position: fixed;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #00bfa6;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  z-index: 99999;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-button:hover {
  background: #ebfffb;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .back-button {
    top: 15px;
    left: 10px;
    font-size: 15px;
    padding: 8px 15px;
  }
}



/* Upload Section */
.upload-section {
  margin: 25px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.upload-section select,
.upload-section input[type="file"],
.upload-section button {
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Upload Button */
.upload-section button {
  background: linear-gradient(90deg, #00c9a7, #6a11cb);
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  font-weight: 500;
}
.upload-section button:hover {
  background: linear-gradient(90deg, #6a11cb, #00c9a7);
  transform: scale(1.05);
}

/* Container */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1600px;
  margin: 30px auto;
  padding: 0 2%;
  box-sizing: border-box;
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 201, 167, 0.25);
}
.card h2 {
  font-size: 1.4rem;
  color: #00bfa6;
  border-bottom: 2px solid #6a11cb;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* List */
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f8ff;
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  transition: background 0.3s;
  word-break: break-word;
}
.card li:hover {
  background: #edf8ff;
}

/* Download Button - Light Green */
.card li button {
  background: linear-gradient(90deg, #8ee98e, #41d37c);
  border: none;
  color: #fff;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
  white-space: nowrap;
  min-width: 90px;
  font-weight: 500;
}
.card li button:hover {
  background: linear-gradient(90deg, #41d37c, #8ee98e);
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }


  .upload-section {
    flex-direction: column;
    gap: 14px;
  }
  .card {
    padding: 15px;
  }
  .card li {
    flex-direction: column;
    align-items: flex-start;
  }
  .card li button {
    align-self: flex-end;
    margin-top: 6px;
  }
}
/* Professional Upload Popup */
.popup {
  position: fixed;
  top: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #f9d423, #a1ffce);
  color: #333;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
  z-index: 2000;
}

.popup.show {
  opacity: 1;
  transform: translateY(0);
}

.popup::before {
  content: "✔";
  font-weight: bold;
  background: #fff;
  color: #34c759;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
