/* ===========================================
   GreenShore Talent Recruitment - Style Sheet
   Optimized & Responsive Version (Rubik Font)
=========================================== */

/* Import Rubik Font */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap");

/* ===========================================
   Brand Color Palette
=========================================== */
:root {
  --primary-color: #0d6b68;
  --secondary-color: #e6f0ef;
  --dark-bg: #1c2733;
  --text-color: #222;
}

/* ===========================================
   Global Settings
=========================================== */
body {
  font-family: "Rubik", sans-serif;
  scroll-behavior: smooth;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.7;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 600;
}

/* ===========================================
   Navbar Styling
=========================================== */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.nav-link {
  color: #333 !important;
  font-weight: 500;
  margin: 0 10px;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(13, 107, 104, 0.08);
}

.nav-link.active {
  background-color: rgba(13, 107, 104, 0.15);
  color: var(--primary-color) !important;
  box-shadow: 0 0 8px rgba(13, 107, 104, 0.25);
  font-weight: 600;
}

.nav-link.active::after {
  display: none !important;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ===========================================
   Hero Section
=========================================== */
.hero {
  background: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  padding: 140px 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 15px;
  color: #333;
}

/* ===========================================
   Buttons
=========================================== */
.btn-main {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-main:hover {
  background-color: #095b57;
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ===========================================
   Section Layout
=========================================== */
section {
  padding: 80px 0;
}

/* ===========================================
   Service Cards
=========================================== */
.service-card {
  background: white;
  border: none;
  border-radius: 12px;
  padding: 30px;
  transition: 0.3s ease;
  height: 100%;
}

.service-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

/* ===========================================
   About Section
=========================================== */
#about {
  background-color: #f8fbfb;
}

.mission-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.impact-section {
  background: var(--primary-color);
  border-radius: 16px;
  color: #fff;
}

.impact-section h2 {
  font-size: 2.5rem;
}

/* ===========================================
   How It Works Section
=========================================== */
.step-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 107, 104, 0.08);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(13, 107, 104, 0.1);
}

.step-number {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(13, 107, 104, 0.3);
}

/* ===========================================
   Jobs Section
=========================================== */
.job-card {
  border: 1px solid rgba(13, 107, 104, 0.08);
  transition: all 0.3s ease;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(13, 107, 104, 0.12);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(13, 107, 104, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: 0.3s ease;
}

.explore-link:hover {
  color: #095b57;
  text-decoration: underline;
}

/* ===========================================
   Popup Modal
=========================================== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.popup-card {
  background: #f8fbfb;
  width: 90%;
  max-width: 950px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  animation: fadeIn 0.3s ease;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   Why Choose Section
=========================================== */
#why p {
  font-size: 16px;
  font-weight: 400;
  color: #555;
  letter-spacing: 0.2px;
}

/* ===========================================
   Apply Form Section
=========================================== */
#apply .form-container {
  background-color: var(--dark-bg);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

#apply .form-control,
#apply .input-group-text,
#apply .form-select {
  background-color: #243343;
  border: 1px solid #344556;
  color: #fff;
}

#apply .form-control::placeholder {
  color: #aaa;
}

#apply .form-control:focus,
#apply .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(13, 107, 104, 0.5);
  background-color: #243343;
  color: #fff;
}

#apply .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Dropdown arrow */
#apply select.form-select {
  color: #fff;
  background-color: #243343;
  border: 1px solid #344556;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658c-.566-.64-.106-1.658.753-1.658h9.592c.86 0 1.32 1.018.754 1.658l-4.796 5.482a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}

/* ===========================================
   Footer Section
=========================================== */
.footer-section {
  background-color: var(--dark-bg);
  color: #ccc;
}

.footer-section h5,
.footer-section h6 {
  color: #fff;
  font-weight: 600;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

/* ===========================================
   Mobile Responsive Tweaks
=========================================== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 18px !important;
  }

  .hero h1 {
    font-size: 2rem !important;
    line-height: 1.1;
  }

  .hero p {
    font-size: 0.95rem;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero .btn-main,
  .hero .btn-outline-primary {
    width: 85%;
    max-width: 300px;
    margin: 10px auto;
    padding: 14px 28px;
    border-radius: 50px;
  }
}

@media (max-width: 420px) {
  .hero .btn-main,
  .hero .btn-outline-primary {
    width: 100%;
    max-width: 100%;
  }
}

/* === Fix: Prevent Navbar from Overlapping Hero Section === */
body {
  padding-top: 70px; /* Adjust this if your navbar height changes */
}

/* Smooth anchor scroll offset for fixed navbar */
html {
  scroll-padding-top: 80px; /* Ensures anchor links don't hide under navbar */
}

/* For small screens, adjust slightly */
@media (max-width: 768px) {
  body {
    padding-top: 65px;
  }
  html {
    scroll-padding-top: 75px;
  }
}

/* Full Background Hero Banner */
.hero-banner {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url("../assets/hero.jpg") center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Shadow Overlay */
.hero-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Adjust shadow strength */
    backdrop-filter: blur(2px); /* Optional soft blur */
}

/* Text Content */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.welcome-text {
    font-size: 1rem;
    letter-spacing: 4px;
    color: #ddd;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.2rem;
    color: #e8e8e8;
    margin-bottom: 30px;
}

/* Button Style */
.hero-btn {
    padding: 12px 35px;
    background: transparent;
    border: 2px solid var(--primary-color);

    color: #fff;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.3s;
}

.hero-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
