@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #f5f5f5;
  --text: #222;
  --accent: #007bff;
  --card: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
}

html, body {
  height: 100%;
  min-height: 100vh;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(120deg, #e3efff 0%, #f7faff 60%, #f5f5f5 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  animation: animatedBackground 25s ease infinite;
}

/* Navbar */
.top-nav {
  width: 100%;
  background: var(--card);
  box-shadow: 0 2px 6px var(--shadow);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-nav .brand {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.top-nav .nav-links {
  display: flex;
  align-items: center;
}

.top-nav .nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.top-nav .nav-links a:hover {
  color: var(--accent);
}

/* Frosted Glass Card Styles */
.landing-hero,
#auth-section,
main.form-section {
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 40px 0 rgba(40,60,120,0.10);
  border-radius: 22px;
  backdrop-filter: blur(12px) saturate(155%);
  -webkit-backdrop-filter: blur(12px) saturate(155%);
  border: 1.2px solid rgba(255,255,255,0.33);
}

/* Auth Section */
#auth-section {
  margin: 2.2rem auto 2.8rem auto;
  padding: 2rem 2rem 1.6rem 2rem;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInSlide 0.6s;
}

#auth-section h3 {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.trust-badge {
  font-size: 0.98rem;
  color: #3177c4;
  background: #e9f6fd;
  border-radius: 7px;
  padding: 0.32em 1em;
  margin-bottom: 1.1em;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(30,150,220,0.07);
}

#auth-section input[type="email"],
#auth-section input[type="password"] {
  width: 94%;
  max-width: 320px;
  padding: 0.7em 1em;
  margin: 0.2em 0 0.9em 0;
  border: 1.2px solid #ced4da;
  border-radius: 7px;
  font-size: 1.05rem;
  background: var(--card);
  color: var(--text);
  transition: border 0.18s, background 0.2s;
}

#auth-section input:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

#auth-section button {
  margin: 0 0.4em 0.7em 0;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.62em 1.22em;
  border-radius: 6px;
  font-size: 1.03rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  min-width: 108px;
}

#auth-section button:hover {
  background: #0056b3;
  transform: translateY(-1px) scale(1.04);
}

#auth-section #auth-message {
  margin-top: 0.5em;
  color: #e33c43;
  font-size: 1rem;
  min-height: 1.2em;
  text-align: center;
  padding-bottom: 0.1em;
}

#auth-section .auth-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7em 0.6em;
  width: 100%;
  margin-bottom: 0.4em;
}

#forgot-password-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
  font-size: 1.02rem;
  margin: 0.3em 0 0.7em 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  cursor: pointer;
}
#forgot-password-link:hover {
  color: #0056b3;
  text-decoration: none;
}

#auth-section .auth-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.8em;
}

#auth-section .auth-inputs input {
  margin-bottom: 0.6em;
}

/* App Main Section */
main {
  padding: 2rem;
  max-width: 960px;
  margin: auto;
}

main.form-section {
  margin-bottom: 2rem;
  animation: fadeInSlide 0.9s;
}

/* Forms */
textarea,
select,
input[type="file"] {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

textarea:focus,
select:focus,
input[type="file"]:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

/* Buttons */
button,
.btn {
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  margin-right: 0.7em;
}

button:hover,
.btn:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

button:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  transform: none;
}

/* ATS Score Bar */
.score-bar {
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
}

.score-bar-fill {
  height: 100%;
  width: 0;
  background: #28a745;
  text-align: center;
  color: #fff;
  line-height: 20px;
  font-weight: 600;
  transition: width 0.5s ease;
}

/* Results Section */
.results-section {
  margin-top: 2rem;
  display: none;
}

ul#atsFeedback {
  margin-top: 1rem;
  padding-left: 1rem;
}

ul#atsFeedback li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.96rem;
  margin-top: 2.5rem;
  color: #888;
  letter-spacing: 0.01em;
}

/* Landing Page Section */
#landing-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3.5rem;
  position: relative;
  animation: fadeInSlide 1.1s;
}

.landing-hero {
  text-align: center;
  padding: 2.5rem 1.2rem 2.2rem 1.2rem;
  max-width: 540px;
  margin: 0 auto;
}

.landing-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
  line-height: 1.13;
}

.landing-tagline {
  font-size: 1.18rem;
  margin-bottom: 2.0rem;
  color: #35506d;
}

/* CTA Button in Hero */
.cta-btn {
  margin-top: 1.3rem;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 0.88em 2.2em;
  border-radius: 9px;
  background: linear-gradient(90deg, #007bff 60%, #33beff 100%);
  color: #fff;
  border: none;
  box-shadow: 0 6px 32px 0 rgba(20, 80, 180, 0.09);
  cursor: pointer;
  transition: background 0.22s, transform 0.15s;
}
.cta-btn:hover {
  background: linear-gradient(90deg, #0056b3 60%, #33aaff 100%);
  transform: translateY(-2px) scale(1.04);
}

.how-it-works {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.3rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.how-it-works li {
  font-size: 1.08rem;
  background: #f4f8fc;
  color: #222;
  border-radius: 8px;
  padding: 0.57em 1.2em;
  box-shadow: 0 1px 8px rgba(60,90,170,0.04);
  width: fit-content;
  min-width: 190px;
  font-weight: 500;
}

/* Frosted Glass Scroll Arrow */
.scroll-arrow {
  margin: 2.3rem auto 0 auto;
  width: 34px; height: 44px;
  cursor: pointer;
  background: none;
  position: relative;
  animation: bounceDown 1.4s infinite;
}
.scroll-arrow:before, .scroll-arrow:after {
  content: '';
  display: block;
  position: absolute;
  left: 16px;
  border-radius: 3px;
}
.scroll-arrow:before {
  top: 4px; width: 4px; height: 22px; background: var(--accent); opacity: 0.82;
}
.scroll-arrow:after {
  top: 13px;
  left: 7px;
  width: 18px; height: 18px;
  border-bottom: 4px solid var(--accent);
  border-right: 4px solid var(--accent);
  transform: rotate(45deg);
}

/* USP Badges */
.usp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em 1em;
  justify-content: center;
  align-items: center;
  margin: 1.2rem auto 2rem auto;
  max-width: 720px;
}

.usp-badge {
  display: inline-block;
  background: #eef6fe;
  color: #2263ab;
  border-radius: 2rem;
  padding: 0.42em 1.15em;
  font-size: 1.07rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(40,70,180,0.06);
  letter-spacing: 0.02em;
  margin-bottom: 0.3em;
}
.usp-badge.free { background: #e6faea; color: #259a5a; }
.usp-badge.cheap { background: #fffae7; color: #c6901b;}
.usp-badge.privacy { background: #eef6fe; color: #2263ab; }

/* Testimonials */
.testimonials-section {
  max-width: 880px;
  margin: 0 auto 2.3rem auto;
  text-align: center;
  animation: fadeInSlide 0.9s;
}
.testimonials-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.testimonials-cards {
  display: flex;
  gap: 1.3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.testimonial-card {
  background: rgba(255,255,255,0.9);
  border-radius: 19px;
  box-shadow: 0 4px 28px rgba(60,70,130,0.13);
  max-width: 290px;
  padding: 1.2rem 1.1rem 1.1rem 1.1rem;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.3px solid #e2e9f2;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  border: 2.2px solid #aad6ff;
  object-fit: cover;
}
.testimonial-text {
  font-size: 1.04rem;
  color: #283c4a;
  margin-bottom: 0.78em;
  font-style: italic;
}
.testimonial-name {
  font-size: 1.01rem;
  color: #315884;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Responsive for Testimonials & Badges */
@media (max-width: 900px) {
  .testimonials-cards { flex-direction: column; align-items: center; }
  .usp-badges { flex-direction: column; }
}

@media (max-width: 650px) {
  .landing-hero h1 { font-size: 1.38rem; }
  .landing-hero { padding: 1.3rem 0.1rem 1.1rem 0.1rem; }
  .cta-btn { font-size: 1rem; padding: 0.75em 1.3em; }
}

/* Animations */
@keyframes animatedBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInSlide {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(10px); }
  50% { transform: translateY(18px);}
}

.toast {
  visibility: hidden;
  min-width: 260px;
  background: #007bff;
  color: #fff;
  text-align: center;
  border-radius: 7px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 42px;
  font-size: 1.1rem;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.35s, visibility 0.35s;
  box-shadow: 0 8px 24px rgba(40,60,120,0.15);
}
.toast.show {
  visibility: visible;
  opacity: 1;
}

