/* ===== DOWNLOADS THEME ===== */
.downloads-theme {
  background: linear-gradient(135deg, #fdfdfd, #f5faff);
  padding: 100px 0;
  font-family: 'Poppins', sans-serif;
}

.downloads-theme .downloads-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  margin-top: 50px;
}

.downloads-theme .downloads-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 70px;
  font-size: 1rem;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: #fff;
  border-radius: 20px;
  padding: 50px;
  margin-bottom: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.download-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.download-row.reverse {
  flex-direction: row-reverse;
}

.download-text {
  flex: 1;
  text-align: left;
}

.download-text h3 {
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 15px;
}

.download-text p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--secondary), #ffcc00);
  color: #111;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(252, 175, 30, 0.5);
}

.download-image {
  flex: 1;
  text-align: center;
}

.download-image img {
  width: 80%;
  max-width: 400px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.download-image img:hover {
  transform: scale(1.03);
}

/* Responsive Downloads Section */
@media (max-width: 900px) {
  .download-row,
  .download-row.reverse {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .download-text {
    text-align: center;
  }
  .download-image img {
    width: 100%;
    max-width: 350px;
  }
}

/* ===== TOPBAR ===== */
.topbar {
  width: 100%;
  background: linear-gradient(90deg, var(--primary), #00418a);
  padding: 6px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  transition: top 0.4s ease;
}

/* CONTACT INFO */
.topbar .contact-info {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin-right: auto;
}

.topbar .contact-info::-webkit-scrollbar {
  display: none;
}

.topbar .contact-info a {
  color: var(--light);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* SOCIAL ICONS */
.topbar .social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.topbar .social-icons a {
  color: var(--light);
  font-size: 15px;
  transition: color 0.3s ease;
}

.topbar a:hover,
.topbar a:focus {
  color: #ffcc00;
  outline: none;
}

/* TABLET RESPONSIVE */
@media (max-width: 768px) {
  .topbar {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .topbar .contact-info {
    gap: 10px;
  }
  .topbar .contact-info a {
    font-size: 14px;
  }
  .topbar .social-icons a {
    font-size: 16px;
  }
}

/* MOBILE RESPONSIVE */
@media (max-width: 480px) {
  .topbar .contact-info {
    display: none;
  }
  .topbar nav {
    display: none;
  }
  .topbar .social-icons {
    justify-content: flex-end;
    margin-left: auto;
  }
  .topbar .social-icons a {
    font-size: 15px;
  }
}

/* ===== POPUP FORM THEME ===== */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
  overflow-y: auto;
  padding: 20px;
}

.popup-content {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border-radius: 20px;
  padding: 40px;
  width: 95%;
  max-width: 900px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: popupFade 0.3s ease;
}

@keyframes popupFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#popupTitle {
  font-size: 2rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 25px;
}

/* ==== Forms Layout ==== */
.form-container {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.new-user, .existing-user {
  flex: 1;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.new-user:hover, .existing-user:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.new-user {
  background: linear-gradient(135deg, #fff6f6, #ffeaea);
  border: 1px solid #ffd6d6;
}

.existing-user {
  background: linear-gradient(135deg, #f5faff, #e8f2ff);
  border: 1px solid #cfe3ff;
}

.new-user h3, .existing-user h3 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

form input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 15px;
}

form input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 5px rgba(255, 204, 0, 0.4);
  outline: none;
}

.submit-btn {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, var(--secondary), #ffcc00);
  color: #111;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 204, 0, 0.4);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #444;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--primary);
}

/* ==== Responsive Popup ==== */
@media (max-width: 900px) {
  .popup-content {
    width: 95%;
    padding: 30px 20px;
  }
  .form-container {
    flex-direction: column;
    gap: 20px;
  }
  .new-user, .existing-user {
    width: 100%;
    padding: 20px;
  }
  #popupTitle {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .popup-overlay {
    padding: 10px;
  }
  .popup-content {
    padding: 20px 15px;
  }
  .new-user, .existing-user {
    padding: 15px;
    box-shadow: none;
    border-radius: 12px;
  }
  .submit-btn {
    padding: 10px;
    font-size: 0.95rem;
  }
  form input {
    font-size: 14px;
    padding: 10px;
  }
  #popupTitle {
    font-size: 1.5rem;
  }
  .close-btn {
    font-size: 24px;
    top: 10px;
    right: 12px;
  }
}
