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

:root {
  --primary-color: #002e5f;
  --secondary-color: #00bfff;
  --text-color: #fff;
  --background-color: #f4f4f4;
  --accent-color: #ffcc00;
  --transition-speed: 0.3s ease-in-out;
}

* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  transition: all var(--transition-speed);
}

body {
  overflow-x: hidden;
  background: var(--background-color);
  color: #333;
  font-size: 1.6rem;
  line-height: 1.6;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 3rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header .logo img {
  width: auto;
  height: 70px;
}

.header .navbar {
  display: flex;
}

.header .navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header .navbar ul li a {
  font-size: 1.6rem;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.header .navbar ul li a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.1);
}

/* Padding fix for fixed header */
main,
section {
  padding-top: 9rem;
}

/* Intro Section */
.payroll-intro {
  background: #e6f2ff;
  padding: 9rem 2rem 6rem 2rem;
  text-align: center;
  color: var(--primary-color);
}

.payroll-intro h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.payroll-intro p {
  font-size: 1.6rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Navigation Button */
nav.text-center.my-3 a.btn {
  background: var(--secondary-color);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 5px;
  font-size: 1.6rem;
  font-weight: 500;
  transition: background var(--transition-speed);
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

nav.text-center.my-3 a.btn:hover {
  background: #009acd;
}

/* Hero Section */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-color);
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.feature {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border-top: 5px solid var(--secondary-color);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
}

.feature p {
  font-size: 1.4rem;
  color: #555;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
  }

  .header .navbar ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header .navbar ul li a {
    padding-left: 0;
  }

  .hero h1,
  .payroll-intro h1 {
    font-size: 2.4rem;
  }

  .hero p,
  .payroll-intro p {
    font-size: 1.4rem;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  nav.text-center.my-3 a.btn {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }
}
