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

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  background-color: rgba(52, 52, 52, 0.25);
}

.top-left .logo {
  width: 20rem;
  height: auto;
}

.bottom-container {
  position: relative;
  color: white;
  font-size: 1rem;
  border-radius: 8px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.status {
  display: grid;
  grid-template-columns: 5rem 1.5rem 1fr;
  column-gap: 0.25rem;
  row-gap: 0.25rem;
  align-items: center;
}

.contact-box, .status-box {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.75rem;
  border-radius: 4px;
}

.contact-box {
  margin-bottom: 1rem;
}

.status-box {
  background: rgba(255, 255, 255, 0.02);
}

.status p {
  display: contents;
}

.status .label {
  width: 5rem;
  color: rgba(255, 255, 255, 0.6);
}

.status .colon {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.status-box > p:last-child .value{
  position: relative;
  width: fit-content;
}

.status-box > p:last-child .value::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  bottom: 0.15rem;
  width: 0.5rem;
  height: 1rem;
  background-color: #fff;
  animation: blink 1s step-end infinite;
}

.bottom-container a {
  color: #fff;
  text-decoration: none;
}


/* Modal & Form Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Courier New', Courier, monospace;
  overflow-y: auto;
  padding: 2rem 0;
}

.modal.visible {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 4px;
  width: 100%;
  max-width: 450px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.visible .modal-content {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
}

.modal h2 {
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.2rem;
  margin-bottom: 2rem;
  /* border-left: 2px solid #fff; */
  /* padding-left: 1rem; */
}

.input-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.input-group label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="file"] {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0.5rem;
  color: #fff;
  font-family: inherit;
  transition: border-bottom 0.3s;
}

.modal input:focus {
  outline: none;
  border-bottom: 1px solid #fff;
  background: rgba(255, 255, 255, 0.06);
}

.modal input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  text-transform: lowercase;
}

.submit-btn {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  padding: 1rem;
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  text-transform: lowercase;
}

.submit-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.apply-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border:  2px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  text-transform: lowercase;
  transition: all 0.3s;
  display: block;
  z-index: 10;
}

.apply-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}


@media (max-width: 600px) {
  body, html {
    overflow: auto; /* Allow background scrolling if needed on mobile */
  }
  
  .top-left .logo {
    width: 8rem;
  }

  .apply-btn {
    top: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    z-index: 1000; /* Ensure it's above other overlays */
  }

  /* Improved touch feedback */
  .apply-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
  }

  .modal-content {
    padding: 1.5rem;
    max-width: 95%;
    margin: auto;
  }

  .modal h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
}


@keyframes blink {
  50%{
    opacity: 0;
  }
}
