/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
}

/* HTML */
html {
  scroll-behavior: smooth;
}

/* BODY */
body {
  background: linear-gradient(135deg, #0f172a, #1e293b, #312e81, #6366f1);
  color: white;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* ───────── NAVBAR ───────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 80px;
  background: #020617;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* ================= USER LOGIN ================= */

#user-area a {
    color: #facc15;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

#user-area a:hover {
    color: #fde047;
}


/* ================= LOGOUT ================= */

#logout-area {
    margin-left: 8px;
}

#logout-area a {
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 13px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: 0.25s;
}

#logout-area a:hover {
    color: white;
    border-color: #6366f1;
    background: rgba(99,102,241,0.12);
}
/* LOGO */
.logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: #b026ff;
}

/* NAV LINKS */
nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

/* LINKS */
nav ul li a {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: all 0.2s;
  position: relative;
}

/* HOVER COLOR */
nav ul li a:hover {
  color: white;
}

/* UNDERLINE EFFECT */
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #b026ff;
  transition: width 0.25s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ── HERO ── */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 100px 40px 50px;
}

/* hide scrollbar but still scrollable */
.hero::-webkit-scrollbar { display: none; }

/* ── HERO BUTTONS ── */
.hero button {
  min-width: 148px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 13px 16px;
  border-radius: 30px;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.hero button:hover {
  background: #6366f1;
  border-color: #6366f1;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

/* ── RESPONSIVE ── */

/* Tablet: 2 buttons per row */
@media (max-width: 900px) {
  nav {
    padding: 16px 30px;
  }

  .hero {
    flex-wrap: wrap;
    padding: 60px 20px 30px;
    gap: 12px;
  }

  .hero button {
    min-width: calc(50% - 8px);
    font-size: 0.82rem;
    padding: 12px 10px;
  }
}
/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {

  nav {
    padding: 14px 20px;
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    font-size: 2rem;
  }

  nav ul {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li a {
    font-size: 0.82rem;
  }

}


/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {

  nav {
    padding: 12px 15px;
  }

  .logo {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 12px;
  }

  nav ul li a {
    font-size: 0.76rem;
  }

}

/* ── RESULT BOX ── */
#resultbox {
  margin: 10px auto 0;
  padding: 0 20px;
  max-width: 500px;
  text-align: center;
}

#resultbox:empty {
  display: none;
}

#output {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.7;
}

#output:empty {
  display: none;
}

/* ── PHOTO ── */
.photo {
  margin-top: 50px;
  position: relative;
}

.photo img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* dark overlay on image */
.photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 1;
}

.photo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.photo-text h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f8fafc;
}

.photo-text p {
  font-size: 1rem;
  color: #94a3b8;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ── SECTIONS ── */
section {
  scroll-margin-top: 90px;
  padding: 60px 20px;
}

/* ── ABOUT ── */
#about {
  max-width: 750px;
  margin: auto;
  text-align: center;
}

#about h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #e2e8f0;
}

#about p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.85;
}

#about p span {
  color: #c4b5fd;
}

/* ── FAQS ── */
#faqs {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

#faqs h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px 18px;
  margin: 10px 0;
  border-radius: 12px;
  text-align: left;
}

.faq-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ── CONTACT ── */
#contact {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

#contact h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 20px;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: auto;
}

#contact input,
#contact textarea {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

#contact input:focus,
#contact textarea:focus {
  border-color: #6366f1;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: #132135;
}

#contact textarea {
  resize: vertical;
  min-height: 100px;
}

form button {
  width: 140px;
  align-self: center;
  padding: 12px;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}   

/* ================= LOGGED IN USER ================= */

#user-area {
    margin-left: 5px;
}

#user-area .user-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1.1 !important;
}


/* Welcome Name */

#user-area #user-name {
    display: block !important;
    color: #facc15 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
}


/* Logout */

#user-area #logout-link {
    display: block !important;
    color: #94a3b8 !important;
    font-size: 0.68rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    margin-top: 4px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    white-space: nowrap;
}

#user-area #logout-link:hover {
    color: #ef4444 !important;
}