/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik Distressed", cursive;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f8fafc;
}

/* Container */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 3rem;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

/* Links */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  width: 100%;
}

.link-card {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: #f1f5f9;
  font-size: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.link-card:hover {
  transform: translateY(-5px);
  background: #334155;
  color: #b80000;
}

/* New Badge */
.new-badge {
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  0% { opacity: 1; }
  100% { opacity: 0.2; }
}

/* Footer */
footer {
  background-color: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ---------------- Contact Page ---------------- */

/* Contact Container */
/* Contact Container */
.contact-container {
  max-width: 700px;
  width: 95%;              /* make it scale on smaller devices */
  margin: 3rem auto;
  padding: 1.5rem;         /* reduce padding for mobile */
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  text-align: left;
  box-sizing: border-box;  /* ensure padding doesn’t add extra width */
}

/* Responsive Fix */
@media (max-width: 600px) {
  .contact-container {
    margin: 1.5rem auto;
    padding: 1rem;
    width: 90%;           /* slightly smaller width for mobiles */
  }

  .contact-container h2 {
    font-size: 1.6rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 0.7rem;
  }

  .contact-form button {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

.contact-container h2 {
  color: #38bdf8;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
  outline: none;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 2px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.contact-form input[type="file"] {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Form Note */
.contact-form h5 {
  margin-top: 0.5rem;
  font-weight: 600;
  color: #f8fafc;
}

.contact-form code {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: #f87171;
}

/* Button */
.contact-form button {
  background: #38bdf8;
  color: #0f172a;
  font-weight: bold;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #0ea5e9;
  transform: translateY(-3px);
}

/* Contact Info */
.contact-info {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
  line-height: 1.6;
}

.contact-info h3 {
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

/* ---------------- Popup ---------------- */
.popup {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #1e293b;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.7);
  position: relative;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #f8fafc;
}

.close-popup:hover {
  color: #38bdf8;
}

.loading-spinner {
  border: 4px solid #334155;
  border-top: 4px solid #38bdf8;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#successMessage {
  margin-top: 1rem;
  color: #a7f3d0; /* soft green */
  font-size: 1rem;
}

a{
    text-decoration: none;
    color: #38bdf8;
}
a:hover{
    text-shadow: 0 0 1px rgb(255, 255, 255);
}