/* ============================================================
   🌐 GLOBAL STYLES — shared by all pages
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Poppins', sans-serif;
  background: #012169;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==== Background layers (used everywhere) ==== */
#bg-lines, #background-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}
#bg-lines {
  background: radial-gradient(circle at 20% 20%, #001a3d, #002d6e 30%, #012051 70%);
}
#background-animation { z-index: -3; }

/* ==== Universal center container ==== */
.center-content, main.center-content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px;
  flex: 1;
}

/* ============================================================
   🏠 HOMEPAGE (index.html)
   ============================================================ */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

/* Center middle section */
body.home .center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 20px;
}

/* Logo + Headings */
.logo {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  background: linear-gradient(90deg, #00bfff, #00e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.tagline {
  color: #b9d6ff;
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 6px;
}

.coming-soon {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  background: linear-gradient(90deg, #00bfff, #00e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.join-btn {
  display: inline-block;
  background: linear-gradient(90deg, #00bfff, #00e0ff);
  color: #fff;
  padding: 12px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0, 191, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-top: 20px;
}

.join-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 224, 255, 0.25);
}

/* ============================================================
   🎯 FORM BUTTONS (Join Page)
   ============================================================ */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----- Submit Button (Bright Cyan Gradient) ----- */
.submit-btn {
  width: 100%;
  max-width: 320px;
  margin-top: 10px;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #00bfff, #00e0ff);
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 191, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 224, 255, 0.25);
}

/* ----- Go Back Button (Deeper Blue Gradient) ----- */
.back-btn {
  display: inline-block;
  width: 100%;
  max-width: 120px;
  margin-top: 10px;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #0078d7, #0095cc);
  color: white;
  box-shadow: 0 6px 24px rgba(0, 120, 215, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 149, 204, 0.25);
}


/* ============================================================
   ⚙️ FOOTER (shared by all pages)
   ============================================================ */
footer {
  text-align: center;
  padding: 26px 10px 40px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.86);
  margin-top: auto; /* always at the bottom */
}

.social-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.social-icon img {
  width: 40px; height: 40px;
  filter: brightness(0) invert(1);
  transition: transform .18s ease, filter .18s ease;
}
.social-icon:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px #00bfff);
}

/* ============================================================
   ✨ CURSOR GLOW (global)
   ============================================================ */
.cursor-glow {
  position: fixed;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,191,255,0.35), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease;
}

/* ============================================================
   📩 JOIN PAGE (join.html)
   ============================================================ */
body.join {
  min-height: 100vh;
  padding: 60px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact.container {
  width: 100%;
  max-width: 980px;
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 36px;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.join .contact.left, .contact.left { flex: 1; min-width: 260px; }
.contact.right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact.right img {
  width: clamp(180px, 35vw, 360px);
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Inputs */
.contact-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: #eaf6ff;
  margin-bottom: 14px;
  outline: none;
  font-size: 1rem;
}

.contact-input:focus {
  box-shadow: 0 0 14px rgba(0,191,255,0.12);
  border-color: rgba(0,191,255,0.35);
}

/* Fixed Message Box */
textarea.contact-input {
  height: 120px;
  resize: none;
}

/* Centered Buttons */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.submit-btn
{
  width: 100%;
  max-width: 220px;
  margin-top: 10px;
}

.back-btn 
{
  width: 100%;
  max-width: 120px;
  margin-top: 10px;
}

/* ============================================================
   🙏 THANK YOU PAGE (thankyou.html)
   ============================================================ */
body.thankyou {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.thankyou .center-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 36px;
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}

.thankyou h1 {
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: transparent;
  background: linear-gradient(90deg,#00bfff,#00e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown {
  color: #bfefff;
  margin: 10px 0 0;
}

.thankyou footer {
  margin-top: 40px;
}

/* ===== Custom Form Validation Look (for Repdox theme) ===== */

/* When an input is invalid */
.contact-input:invalid {
  border-color: #00bfff !important;
  box-shadow: 0 0 14px rgba(0, 191, 255, 0.6);
  background: rgba(0, 191, 255, 0.08);
}

/* When the input is valid */
.contact-input:valid {
  border-color: rgba(0, 255, 200, 0.4);
  box-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

/* Add smooth transitions for focus and validation changes */
.contact-input {
  transition: all 0.25s ease-in-out;
}

/* Custom tooltip-like style for browser error popups (Chrome/Edge) */
input:invalid:-webkit-autofill,
input:invalid:focus,
textarea:invalid:focus {
  outline: none;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.8);
}

/* Remove the default red outline in some browsers */
input:invalid, textarea:invalid {
  outline: none;
}

/* Highlight label placeholder on invalid fields */
.contact-input:invalid::placeholder {
  color: #7fe3ff;
  opacity: 0.9;
}

/* ===== Custom Neon Tooltip for Invalid Fields ===== */
.custom-tooltip {
  position: absolute;
  transform: translateX(-50%);
  background: rgba(0, 191, 255, 0.95);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.7);
  animation: fadeInTooltip 0.2s ease-out;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes fadeInTooltip {
  from { opacity: 0; transform: translate(-50%, -5px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   📱 RESPONSIVE STYLES
   ============================================================ */
@media (max-width:900px) {
  .contact.container {
    padding:26px;
    gap:26px;
    flex-direction:column;
  }
  .contact.right { order:2; margin-top:6px; }
  .contact.left { order:1; }
}

@media (max-width:480px) {
  .logo { font-size:2.4rem; }
  .join-btn { padding:10px 28px; }
  .social-icon img { width:34px; height:34px; }
}
