/* ===== GLOBAL MOBILE FIX ===== */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

* {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: black;
  color: rgb(0, 182, 91);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Hide Utility */
.hidden {
  display: none !important;
  overflow: hidden;
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  max-height: 30px;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

}
 .preloader-text {
  font-size: 12px;
  font-weight: 800;
  font-family: 'orbitron' sans-serif;
  letter-spacing: 1px;
}  
      .p-sab {
      color: #ffffff;
}
      .p-karega {
      color:#00ff88;
}
      .p-ai {
      color: #00c3ff; 
}
      .preloader-text span {
       text-shadow: 0 0 8px durrentColor;

      opacity: 0;
  animation: fadeIn 2s ease forwards;
} 
  @keyframes fadeIn {
    to {
      opacity: 1;
  }
}
     .fade-out {
     animation: fadeOut 1.5s ease forwards;}
    
     @keyframes fadeOut {
      to {
        opacity: 0;
        visibility: hidden;

        .preloader-text { animation: pulse 1.5s infinite alternate; }
        @keyframes pules { from { transform: scale(1); }
        to { transform: scale(1.05);} 
          
        }
      
  }      
}   
      

/* LOGIN SCREEN */
#authContainer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  
}

body.login-active {
  overflow: hidden;
  height: 100dvh;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  border: 1px solid #00b65b;
}

.auth-box input {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  background: transparent;
  border: 1px solid #01b64f;
  color: white;
}

.auth-box button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  cursor: pointer;
  background: #01b64f;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.google-btn {
  background: #01b64f;
  color: rgb(0, 0, 0);
}

.error {
  color: red;
  margin-top: 8px;

}

#mainwebsite {
  display: none;
  overflow: hidden;
}

/* MAIN WEBSITE */
#mainWebsite {
  padding: 40px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-wrap: nowrap;
  width: 60;


    .brand-text {
      font-size: 14px;;
      font-family: 'poppins',sans-serif;
      letter-spacing: 1px;
       font-weight: bold;
    }
      .sab {
      color: #000000;
    }
      .karega{
      color:#00ff88;
    }
      .ai {
      color: #00c3ff; 
    }
  
    
    display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;

  background: linear-gradient(135deg, #02ff5a6b, #050183);
  /* Emerald Gradient */

  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);

  position: sticky;
  top: 0;
  z-index: 100;

}

/* =========================
   🚀 DASHBOARD BUTTON
========================= */

.dashboard-btn-wrapper {
  text-align: center;
  margin-top: 30px;
}

.dashboard-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(90deg,#00ff88,#00c3ff);
  color: black;
  transition: 0.3s ease;
}

.dashboard-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,255,136,0.6);
}

/* QR SECTION */
.qr-section {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.qr-container {
  background: linear-gradient(135deg, #02ff5a6b, #050183);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(10px);
  text-align: center;
}

.qr-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: rgb(255, 255, 255);
}

textarea {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  padding: 15px;
  border: none;
  resize: none;
  font-size: 16px;
  margin-bottom: 20px;
  background-color: #ffffff;
}

.qr-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.qr-controls button {
  padding: 12px 20px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #10b981;
  color: white;
  font-weight: bold;
  transition: 0.3s;

} 
  .qr-controls .select-btn {
    flex: 1 1 45%; 
}  
   .qr-controls .cenerate-btn {
    flex: 1 1 45%;
}
  .qr-controls .download-btn {
    flex: 1 1 100%;
}

.qr-controls button:hover {
  background: #059669;
  transform: scale(1.05);
}

#qrOutput {
  margin-top: 30px;
}





.section {
  height: 100dvh;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  border-bottom: 1px solid #222;
  background: linear-gradient(135deg, #0002016b, #000000);
}

/* ===== AI SECTION ===== */
.ai-section {
  display: flex;
  justify-content: center;
  padding: 100px 20px;
}

.ai-container {
  width: 100%;
  max-width: 700px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, #02ff5a6b, #050183);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(10px);
  text-align: center;
}

.ai-title {
  font-size: 28px;
  color: white;
  margin-bottom: 20px;
}

#aiInput {
  width: 100%;
  height: 120px;
  padding: 15px;
  border-radius: 12px;
  border: none;
  resize: none;
  font-size: 16px;
  margin-bottom: 20px;
}

.ai-btn {
  padding: 20px 30px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #10b981;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.ai-btn:hover {
  background: #059669;
  transform: scale(1.05);
}

.ai-output {
  margin-top: 25px;
  text-align: left;
  background: rgba(0,0,0,0.4);
  padding: 20px;
  border-radius: 12px;
  min-height: 80px;
  color: #e5e7eb;
  white-space: pre-wrap;
}

/* Loader */
.ai-loader {
  margin: 20px auto;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #10b981;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}


footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
  background: linear-gradient(135deg, #02ff5a6b, #050183);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);

}



/* ===============================
   🌌 BACKGROUND LAYERS
================================= */

/* Neon Grid */
body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(#001f4d 1px, transparent 1px),
    linear-gradient(90deg,#001f4d 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 10s linear infinite;
  z-index: -3;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 50px 50px; }
}

/* Particles */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* 3D Canvas */
#bg3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Sections */
.section {
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  border-bottom: 1px solid #222;
}

/* SECTION BUTTONS */
.section-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 100px;
}

.section-btn {
  padding: 15px 40px;
  font-size: 18px;
  background: black;
  border: 2px solid #00f0ff;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.section-btn:hover {
  background: #00f0ff;
  color: black;
}

/* POPUP */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: #111;
  padding: 30px;
  width: 60%;
  max-width: 600px;
  border: 1px solid #00f0ff;
  position: relative;
  color: white;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}

.hidden-content {
  display: none;
}

.switch-link {
  margin-top: 10px;
  cursor: pointer;
  color: #00f0ff;
}

.hero-section {
  height: 70dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: radial-gradient(circle at center,
              rgba(16,185,129,0.2),
              transparent 70%);

  text-align: center;
}

.hero-section h2 {
  font-size: 3rem;
  color: #10b981;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.8;
}

.section-btn {
  border: 2px solid #10b981;
}

.section-btn:hover {
  background: #10b981;
  color: black;
}

@media (max-width: 768px) {
  .brand-text {
    font-size: 22px;
  }
}


@media (max-width: 768px) {
  .preloader-text {
    font-size: 28px;
  }
}