/* At the very top of your style.css or in a reset section */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 🔻 Sticky Footer Setup (Hamesha Neeche Rahe) */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1; /* Ensures it takes up available space, pushing footer down */
}

/* Reset & Fallback */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #000 url('fallback.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden; /* Prevent horizontal scroll */
  color: white;
  min-height: 100%;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
  width: 12px;
}
body::-webkit-scrollbar-track {
  background: #1a1a1a;
}
body::-webkit-scrollbar-thumb {
  background-color: #00d1ff;
  border-radius: 10px;
  border: 3px solid #1a1a1a;
}
body::-webkit-scrollbar-thumb:hover {
  background-color: #00a0e6;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: inherit;
  filter: brightness(0.75) blur(0.2px);
  z-index: -1;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.75) blur(0.2px);
  z-index: -1;
  opacity: 0;
  transition: opacity 1s ease;
  min-width: 100%;
  min-height: 100%;
}

#fallback-image {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 1;
  transition: opacity 1s ease;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
  opacity: 1;
  visibility: visible;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #00d1ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.container {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  z-index: 2;
  max-width: 900px; /* Limit container width for readability */
  margin: 0 auto; /* Center the container */
}

.heading {
  font-size: clamp(1.8rem, 6vw, 3rem);
  margin-bottom: 10px;
  color: white;
}

.highlight {
  color: #00d1ff;
  text-shadow: 0 0 10px #00d1ff;
  position: relative;
}

.typing-text {
  font-size: clamp(1rem, 5vw, 1.5rem);
  margin-top: 10px;
  color: #ccc;
}

.sub-text {
  font-size: clamp(0.9rem, 4vw, 1.1rem);
  color: #ccc;
  margin: 20px auto 30px;
  max-width: 300px;
}

.join-btn {
  background: linear-gradient(135deg, #00d1ff, #0066ff);
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  box-shadow: 0 0 15px #00d1ff;
  transition: all 0.3s ease;
  animation: glowPulse 2.5s infinite;
  display: inline-block;
}

.join-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00d1ff, 0 0 45px #0066ff;
}

.join-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px #00d1ff inset;
}

/* Animations */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px #00d1ff; }
  50% { box-shadow: 0 0 30px #00d1ff, 0 0 50px #0066ff; }
}

/* Mobile responsive */
@media (max-width: 400px) {
  .container {
    padding: 60px 15px;
  }
  .join-btn {
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}

/* --- Footer Glass Card Style --- */
.footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 120px;
  padding: 40px 10px 30px;
  background: transparent;
  margin-top: 50px;
}

.footer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px 15px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 209, 255, 0.1);
  font-size: 0.8rem;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: #00d1ff;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-icons {
  margin: 8px 0;
  font-size: 18px;
}

.footer-icons a {
  margin: 0 8px;
  color: #00d1ff;
  transition: transform 0.3s ease;
}

.footer-icons a:hover {
  transform: scale(1.2);
  color: #fff;
}

.footer-bottom {
  margin-top: 8px;
  color: #aaa;
  font-size: 0.75rem;
}

/* --- NAVBAR STYLING --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 999;
}

.nav-left {
  width: 30px;
  display: flex;
  justify-content: flex-start;
}

.nav-left i {
  font-size: 20px;
  color: white;
  cursor: pointer;
}

.nav-right {
  width: 80px;
  display: flex;
  justify-content: flex-end;
}

.nav-right .nav-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(45deg, #00d1ff, #0066ff);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s ease;
}

.nav-right .nav-btn:hover {
  background: linear-gradient(45deg, #0099ff, #0044cc);
}

.nav-center {
  flex: 1;
  margin: 0 5px;
}

.search-input {
  width: 100%;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 400px) {
  .navbar {
    height: 48px;
    padding: 0 8px;
  }
  .nav-right {
    width: 70px;
  }
  .nav-left {
    width: 26px;
  }
  .search-input {
    font-size: 13px;
    padding: 5px 12px;
  }
  .nav-right .nav-btn {
    font-size: 12px;
    padding: 5px 10px;
  }
  .nav-left i {
    font-size: 18px;
  }
}

/* --- LOGIN MODAL STYLING --- */
.login-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden; /* Default hidden */
  opacity: 0; /* Default invisible */
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2000;
}

.login-modal.show {
  visibility: visible;
  opacity: 1;
}

/* --- Glassy Gradient Border Box --- */
.login-box {
  position: relative;
  background: rgba(17, 17, 17, 0.7);
  padding: 30px 25px;
  border-radius: 30px;
  width: 90%; /* Responsive width */
  max-width: 320px;
  text-align: center;
  transform: scale(0.85) translateY(-20px);
  animation: popupZoom 0.4s ease-out forwards;
  box-shadow: 0 0 40px 6px rgba(0, 209, 255, 0.3); /* glowing effect only */
}

@keyframes popupZoom {
  from {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* --- Close (X) Button --- */
.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  transition: 0.2s ease;
}
.close-btn:hover {
  color: #fff;
}

/* --- Heading --- */
.login-box h2 {
  color: #00d1ff;
  margin-bottom: 20px;
  font-size: 22px;
}

/* --- Inputs with Glow + Circle --- */
.login-input {
  width: 85%;
  padding: 12px 16px;
  margin: 10px auto;
  border-radius: 50px;
  border: 1px solid transparent; /* Default transparent border for validation */
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
  text-align: center; /* Default for most inputs */
  outline: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.login-input:focus {
  box-shadow: 0 0 10px #00d1ff;
  border-color: #00d1ff; /* Blue border on focus */
}

/* Validation Feedback Colors */
.login-input.valid {
  border-color: #28a745; /* Green */
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}
.login-input.invalid {
  border-color: #dc3545; /* Red */
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}


/* --- Password Input Group with Toggle --- */
.password-input-group {
    position: relative;
    width: 85%;
    margin: 10px auto; /* Make sure this is present to center the group */
    /* Add box-sizing if not already global to prevent padding from adding to width */
    box-sizing: border-box;
}

.password-input-group .login-input {
    width: 100%; /* The input should take full width of its parent (.password-input-group) */
    padding: 12px 16px; /* Keep your default padding */
    padding-right: 40px; /* This padding creates space for the eye icon */
    margin: 0; /* Important: Remove any extra margin on the input itself within the group */
    text-align: left; /* CHANGED THIS LINE from 'center' to 'left' for password inputs */
    /* Add box-sizing if not already global */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 15px; /* This controls the position of the eye icon from the right edge */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
    transition: color 0.2s ease;
}


.toggle-password:hover {
    color: #fff;
}


/* Password Strength Indicator */
.password-strength {
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
    margin-bottom: 15px;
    height: 1.2em; /* To prevent layout shift */
}
.password-strength.weak { color: #dc3545; }
.password-strength.medium { color: #ffc107; }
.password-strength.strong { color: #28a745; }


/* --- Login Button --- */
.login-submit {
  width: 65%;
  padding: 10px 18px;
  margin-top: 12px;
  border-radius: 50px;
  background: linear-gradient(45deg, #00d1ff, #0066ff);
  color: white;
  border: none;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-submit:hover {
  background: linear-gradient(45deg, #0088ff, #0044cc);
}

/* --- Sign up switch --- */
.login-switch {
  margin-top: 10px;
  font-size: 13px;
  color: #ccc;
}

.login-switch a {
  color: #00d1ff;
  text-decoration: none;
  cursor: pointer;
}

/* --- Sidebar menu styles (Final Fix for complete hiding) --- */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1001;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -280px; /* Fully hide sidebar initially */
  width: 230px;
  height: 100vh;
  background: #111;
  padding: 20px;
  box-shadow: 4px 0 10px rgba(0,0,0,0.4);
  z-index: 1002;
  transition: left 0.3s ease;
}

.sidebar-menu.show {
  left: 0;
}

.sidebar-menu .close-sidebar {
  text-align: right;
  font-size: 22px;
  color: white;
  cursor: pointer;
  margin-bottom: 20px;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
}

.sidebar-menu ul li {
  margin: 20px 0;
}

.sidebar-menu ul li a {
  color: #00d1ff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  display: block;
  transition: 0.3s;
}

.sidebar-menu ul li a i {
    margin-right: 8px;
}

.sidebar-menu ul li a:hover {
  color: #fff;
}

/* For Date of Birth placeholder and value visibility and centering */
.login-input[type="date"],
.login-input[type="text"],
.login-input[type="email"],
.login-input[type="password"] {
  text-align: center; /* Keep centered for these types */
}

.login-input[type="date"] {
  color: #fff;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: text;
}

.login-input[type="date"]::-webkit-datetime-edit-text,
.login-input[type="date"]::-webkit-datetime-edit-month-field,
.login-input[type="date"]::-webkit-datetime-edit-day-field,
.login-input[type="date"]::-webkit-datetime-edit-year-field {
  color: transparent !important;
}

.login-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.8;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

/* Placeholder visibility for date inputs */
.login-input[type="date"]::before {
  content: attr(placeholder);
  color: rgba(255,255,255,0.4);
  width: 100%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  text-align: center;
  z-index: 0;
}

.login-input[type="date"].has-value::before {
  content: ''; /* Hide placeholder when value is present */
}


/* --- NEW CSS CODE FOR SELECT GENDER --- */
/* Ensure select element behaves like other inputs */
select.login-input {
  -webkit-appearance: none; /* Remove default dropdown arrow */
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  text-align: left; /* Align text left within the select */
  padding-right: 40px; /* Space for custom arrow */
  color: rgba(255,255,255,0.4); /* Placeholder color by default */
}

/* Force selected option color to white */
select.login-input option {
    background-color: #111; /* Dark background for options */
    color: white; /* White text for options */
}

/* Style for selected value when it's not the placeholder */
select.login-input.has-value {
    color: white; /* Change text color to white when a value is selected */
}

/* Placeholder for select element */
select.login-input option[value=""] {
  color: rgba(255,255,255,0.4);
  display: none; /* Hide the default "Select Gender" option once a value is selected */
}

/* Show placeholder color when no option is selected */
select.login-input:not(.has-value) {
    color: rgba(255,255,255,0.4);
}
/* --- END NEW CSS CODE --- */


.login-input[type="date"]:not(:empty) {
  color: #fff !important;
  text-align: center;
}

.login-input[type="date"]:focus {
  color: #fff !important;
}


/* --- START: Consolidated Mobile Input Styles --- */
.single-mobile-input {
    display: flex;
    align-items: center;
    margin: 10px auto 15px auto;
    width: 85%;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 0 10px;
    box-sizing: border-box;
    height: 40px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent; /* Default transparent border for validation */
}

.single-mobile-input:focus-within {
    box-shadow: 0 0 10px #00d1ff;
    border-color: #00d1ff;
}
.single-mobile-input.valid {
  border-color: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}
.single-mobile-input.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}


.single-mobile-input .login-input {
    flex-grow: 1;
    border: none; /* No individual border for this input */
    background: transparent;
    color: white;
    font-size: 14px;
    outline: none;
    padding: 0 5px;
    text-align: left;
    margin: 0; /* Reset margin from general .login-input */
}

.country-code-select {
    border: none;
    background: transparent;
    color: white;
    font-size: 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    text-align: center;
    padding: 0 5px;
    min-width: 50px;
    max-width: 70px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.2);
    margin-right: 10px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px;
}

.country-code-select option {
    background-color: #111;
    color: white;
    padding: 5px 10px;
}
/* --- END: Consolidated Mobile Input Styles --- */

.image-wrapper {
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.jalwa-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.action-buttons .btn {
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.register-btn {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  box-shadow: 0 0 15px #28a745;
}

.register-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #28a745, 0 0 45px #1e7e34;
}

.register-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px #28a745 inset;
}

.login-btn {
  background: linear-gradient(135deg, #17a2b8, #117a8b);
  box-shadow: 0 0 15px #17a2b8;
}

.login-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #17a2b8, 0 0 45px #117a8b;
}

.login-btn:active {
  transform: scale(0.97);
  box-shadow: 0 0 20px #17a2b8 inset;
}

@media (min-width: 500px) {
  .action-buttons {
    flex-direction: row;
    max-width: 400px;
  }
}

/* Styles for the new info section */
.info-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  padding: 30px 25px;
  margin-top: 50px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-shadow: 0 0 30px rgba(0, 209, 255, 0.15);
}

.info-section h3 {
  color: #00d1ff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: 25px;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(0, 209, 255, 0.5);
}

.info-section h3:first-of-type {
    margin-top: 0;
}

.info-section p,
.info-section li {
  color: #ccc;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  line-height: 1.6;
  margin-bottom: 15px;
}

.info-section ul,
.info-section ol {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 20px;
}

.info-section ul li,
.info-section ol li {
  margin-bottom: 8px;
}

.info-section a {
  color: #00d1ff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.info-section a:hover {
  color: #fff;
}

.highlight-text {
  color: #00d1ff;
  font-weight: 600;
}

/* Adjust for smaller screens */
@media (max-width: 600px) {
  .info-section {
    padding: 20px 15px;
  }
  .info-section h3 {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  .info-section p,
  .info-section li {
    font-size: clamp(0.8rem, 3vw, 0.95rem);
  }
}

/* Text for modal info/errors */
.modal-info-text {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 20px;
}
