/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px; /* adjust based on navbar height */
}

body {
  font-family: 'Lato', sans-serif;
  color: #fff;
  background: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: transparent; /* Make navbar background transparent */
  position: absolute; /* Place it over hero image */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.sticky {
  position: fixed;
  background: rgba(0, 0, 0, 0.8); /* Solid background on scroll */
  box-shadow: 0px 4px 6px rgba(0,0,0,0.3);
}
.navbar .logo img {
  height: 150px;
  max-width: 100%;
  transition: height 0.3s ease;
}

.navbar.sticky .logo img {
  height: 80px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.navbar ul li {
  background: black;
  border-radius: 4px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.navbar ul li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.navbar ul li:hover {
  background: rgba(0,0,0,0.7);
}

/* Hero Section */
.hero {
  position: relative;
  background: url('highrise.jpg') no-repeat center center/cover;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 138, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
  animation: fadeIn 1.5s ease-in;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: #2563eb;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #1e40af;
}

/* Section Styling */
section {
  padding: 4rem 5%;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Us Section Split */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 5%;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 400px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1E3A8A;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

#jobseekers-section h2 {
  color: #1E3A8A; /* Blue, same as About Us title */
}

#jobseekers-section p {
  color: #333; /* Black/dark text, same as About Us description */
}

#employers-section h2 {
  color: #1E3A8A; /* Blue, same as About Us title */
}

#employers-section p {
  color: #333; /* Black/dark text, same as About Us description */
}

/* Contact Section */
.contact {
  padding: 4rem 5%;
  background: #1E3A8A;
  color: #fff;
  text-align: center;
  transition: opacity 0.4s;
  padding: 2rem 5%; /* Reduced padding */
  min-height: auto; /* Remove forced 100vh height */

}

.contact h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.contact button {
  background: #2563eb;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #1e40af;
}
/* Keep the form centered */
.contact-container {
  display: flex;
  justify-content: left;
  position: relative; /* for positioning the HR box */
}

/* Move HR info to bottom right */
.contact-info {
  position: absolute;
  right: 5%;
  bottom: 5%;
  background: #f9f9f9;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  max-width: 300px;
}

.contact-info h3 {
  color: #1E3A8A;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #333;
  margin-bottom: 0.75rem;
}

.contact-info a {
  color: #d0021b;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}


/* After Submission Freeze */
.contact.submitted {
  opacity: 0.6;
  pointer-events: none;
}


/* Statistics Section */
.stats-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 2rem auto;
}

.stat-tile {
  flex: 1 1 300px;
  background: white;
  border-radius: 8px;
  padding: 4rem;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stat-tile.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-size: 48px;
  font-weight: bold;
  color: #d0021b;
}

.stat-label {
  font-size: 18px;
  color: #555;
  margin-top: 10px;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Extra Job Seekers Description */
.jobseekers-extra {
  max-width: 800px;
  margin: 6rem auto 0;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #333;
}

.jobseekers-extra p {
  margin-bottom: 1rem;
}

.jobseekers-extra a {
  color: #d0021b;
  font-weight: bold;
  text-decoration: none;
}

.jobseekers-extra a:hover {
  text-decoration: underline;
}

.resume-callout {
  font-size: 1.6rem;
  margin-top: 1rem;
  color: #1E3A8A;
  font-weight: 600;
}
/* Employers Section */
.employers-section {
  position: relative;
  padding: 6rem 5%;
  background: url('employers.png') no-repeat center center/cover;
  color: #333;
}

.employers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay for contrast */
  z-index: 1;
}

.employers-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(243, 244, 246, 0.95); /* light gray card with slight transparency */
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.employers-content h2 {
  font-size: 2.5rem;
  color: #1E3A8A;
  margin-bottom: 1rem;
  text-align: center;
}

.employers-content p,
.employers-content ul {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

.employers-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}