/* ===================================================== 
   RESET / BASE
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  -webkit-text-size-adjust: none;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote::before, blockquote::after, q::before, q::after {
  content: '';
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input, select, textarea {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15pt;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.75em;
  outline: none;
  border-radius: 5px;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  padding-left: 15px;
  transition: all 0.3s ease;
  appearance: none;
}

input:focus,
input:valid,
select:focus,
select:valid,
textarea:focus,
textarea:valid {
  border-color: #9b59b6;
}

/* ===================================================== 
   BODY & MAIN WRAPPER
===================================================== */
body {
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: linear-gradient(135deg, #71b7e6, #9b59b6);
  overflow: hidden;
}

#wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: wrapperFade 1.5s ease forwards;
}

#main {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

/* ===================================================== 
   BACKGROUND & OVERLAY
===================================================== */
#bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 6750px;
  height: 100%;
  background: #7db8d1 url("/images/bg2.jpg") bottom left / 2250px auto repeat-x;
  transform: translate3d(0,0,0);
  animation: bgScroll 60s linear infinite;
  z-index: 0;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(52,140,178,0.35), rgba(87,59,138,0.35), rgba(36,36,62,0.35));
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}

/* ===================================================== 
   REGISTRATION FORM
===================================================== */
.user_registration_container {
  max-width: 700px;
  width: 100%;
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  color: #000;
}

.user_registration_title {
  font-size: 25px;
  font-weight: 500;
  position: relative;
}

.user_registration_title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 30px;
  border-radius: 5px;
  background: linear-gradient(135deg, #71b7e6, #9b59b6);
}

.user-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0 12px;
}

.input-box {
  margin-bottom: 15px;
  width: calc(50% - 20px);
}

.input-box span.details {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}

.gender-details .gender-title {
  font-size: 20px;
  font-weight: 500;
}

.category {
  display: flex;
  width: 80%;
  margin: 14px 0;
  justify-content: space-between;
}

.category label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.category .dot {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  margin-right: 10px;
  background: #d9d9d9;
  border: 5px solid transparent;
  transition: all 0.3s ease;
}

#dot-1:checked ~ .category label .one,
#dot-2:checked ~ .category label .two,
#dot-3:checked ~ .category label .three {
  background: #9b59b6;
  border-color: #d9d9d9;
}

.button {
  height: 45px;
  margin: 35px 0;
}

.button input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #71b7e6, #9b59b6);
  transition: all 0.3s ease;
}

.button input:hover {
  background: linear-gradient(-135deg, #71b7e6, #9b59b6);
}

/* ===================================================== 
   HEADER & NAV
===================================================== */
#header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  animation: header 1s 2.25s forwards;
  opacity: 0;
}

#header h1 {
  font-size: clamp(2.5rem,5vw,4.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

#header p {
  font-size: 1.25em;
  opacity: 0.75;
}

/* Navigation icons */
#header nav ul {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  padding: 0;
  margin-top: 2rem;
}

#header nav li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.35em;
  height: 5.35em;
  position: relative;
  opacity: 0;
  transform: translate3d(0,1em,0);
  animation: navIcons 0.5s ease-in-out forwards;
  backface-visibility: hidden;
  border-radius: 50%;
}

/* Animation delays */
#header nav li:nth-child(1) { animation-delay: 2.5s; }
#header nav li:nth-child(2) { animation-delay: 2.75s; }
#header nav li:nth-child(3) { animation-delay: 3s; }

/* Circle background for icon */
#header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid #fff;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  color: #fff;
}

/* Hover and active states */
#header nav a:hover {
  background-color: rgba(255, 255, 255, 0.175);
}
#header nav a:active {
  background-color: rgba(255, 255, 255, 0.35);
}

/* Font Awesome icons inside links */
#header nav a i {
  font-size: 1.5em;
  pointer-events: none;
  transition: transform 0.2s ease;
}

/* Optional: scale icon slightly on hover */
#header nav a:hover i {
  transform: scale(1.1);
}

/* Hide text label */
#header nav a span.label {
  display: none;
}

/* ===================================================== 
   FOOTER
===================================================== */
#footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ===================================================== 
   ANIMATIONS
===================================================== */
@keyframes wrapperFade { to { opacity: 1; } }

@keyframes bgScroll { to { transform: translate3d(-2250px,0,0); } }

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes header {
  0% { transform: translate3d(0,1em,0); opacity: 0; }
  100% { transform: translate3d(0,0,0); opacity: 1; }
}

@keyframes navIcons {
  0% { transform: translate3d(0,1em,0); opacity: 0; }
  100% { transform: translate3d(0,0,0); opacity: 1; }
}

/* ===================================================== 
   RESPONSIVE
===================================================== */
@media(max-width: 736px) {
  body, input, select, textarea { font-size: 11pt; }
  .input-box { width: 100%; }
  .category { width: 100%; }
  #header nav li {
    width: 4.5em;
    height: 4.5em;
  }
  #header nav a i { font-size: 1.2em; }
}

@media(max-width: 480px) {
  #header nav { padding: 0 1em; }
  #header nav li {
    width: 3.5em;
    height: 3.5em;
  }
  #header nav a i { font-size: 1em; }
  #header h1 { font-size: 2.5em; }
  #header p { font-size: 1em; }
}
