/* Manpower Page Styles */

/* Color Variables */
:root {
  --primary-orange: #dd4e4e;
  --secondary-orange: #dd4e4e;
  --dark-orange: #cc5500;
  --light-orange: #ec4141;
  --gradient-orange: linear-gradient(315deg, #ff0000 0%, #ff0000 74%);
  --hover-orange: linear-gradient(315deg, #ff0000 0%, #ff0000 74%);
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #fff5eb;
  --bg-hover: #fff0e6;
}

/* Hero Section */
.manpower-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('../img/bg/manpower-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 79px;
}

.manpower-hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.manpower-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(315deg, #ffffff 0%, #ffd6b3 74%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manpower-hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Services Section */
.manpower-services {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 20px;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--primary-orange);
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Why Choose Us Section */
.manpower-why-us {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateX(10px);
}

.feature i {
  font-size: 2rem;
  color: var(--primary-orange);
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-content h3 {
  font-size: 1.3rem;
  color: var(--primary-orange);
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.feature-content p {
  color: #666;
  line-height: 1.6;
}

/* Process Section */
.manpower-process {
  padding: 80px 0;
  background: linear-gradient(315deg, var(--bg-light) 0%, #fff0e6 74%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  position: relative;
}

.step {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.3rem;
  color: var(--primary-orange);
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
}

.step p {
  color: #666;
  line-height: 1.6;
}

/* Contact Section */
.manpower-contact {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
              url('../img/bg/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.contact-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Labor List Section */
.manpower-labor-list {
  padding: 80px 0;
  background: white;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.table-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.table-container:hover::after {
  opacity: 1;
}

.labor-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}

.labor-table th {
  background: var(--gradient-orange);
  color: white;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 20px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
}

.labor-table th:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.labor-table th.serial-col {
  width: 80px;
  text-align: center;
}

.labor-table th.position-col {
  width: 40%;
}

.labor-table th.quantity-col {
  width: 20%;
  text-align: center;
}

.labor-table th.schedule-col {
  width: 25%;
  text-align: center;
}

.labor-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.labor-table td:first-child {
  text-align: center;
  font-weight: 600;
  color: var(--primary-orange);
}

.labor-table td:nth-child(3),
.labor-table td:nth-child(4) {
  text-align: center;
}

.labor-table tbody tr:hover {
  background-color: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(255, 107, 0, 0.05);
}

/* Responsive Table Styles */
@media (max-width: 1200px) {
  .labor-table {
    min-width: 900px;
  }
}

@media (max-width: 992px) {
  .labor-table {
    min-width: 850px;
  }
  
  .labor-table th {
    padding: 15px 12px;
  }
  
  .labor-table td {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .table-container {
    margin: 15px -15px;
    border-radius: 0;
    box-shadow: none;
  }

  .labor-table {
    min-width: 800px;
  }

  .labor-table th {
    padding: 12px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .labor-table td {
    padding: 10px;
    font-size: 0.9rem;
  }

  /* Column Widths for Mobile */
  .labor-table th.serial-col {
    width: 60px;
    position: sticky;
    left: 0;
    background: var(--gradient-orange);
    z-index: 2;
  }

  .labor-table td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
  }

  .labor-table th.position-col {
    min-width: 200px;
  }

  .labor-table th.quantity-col,
  .labor-table th.schedule-col {
    min-width: 120px;
  }

  /* Hover effect for sticky columns */
  .labor-table tbody tr:hover td:first-child {
    background: var(--bg-hover);
  }
}

@media (max-width: 480px) {
  .labor-table {
    min-width: 700px;
  }

  .labor-table th {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .labor-table td {
    padding: 8px;
    font-size: 0.85rem;
  }

  .labor-table th.serial-col {
    width: 50px;
  }

  .labor-table th.position-col {
    min-width: 180px;
  }

  .labor-table th.quantity-col,
  .labor-table th.schedule-col {
    min-width: 100px;
  }
}

@media (max-width: 360px) {
  .labor-table {
    min-width: 650px;
  }

  .labor-table th {
    font-size: 0.75rem;
    padding: 8px 6px;
  }

  .labor-table td {
    font-size: 0.8rem;
    padding: 6px;
  }

  .labor-table th.serial-col {
    width: 40px;
  }

  .labor-table th.position-col {
    min-width: 160px;
  }

  .labor-table th.quantity-col,
  .labor-table th.schedule-col {
    min-width: 90px;
  }
}

/* Add horizontal scroll indicator for touch devices */
@media (hover: none) {
  .table-container::after {
    display: none;
  }
  
  .table-container {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) var(--bg-light);
  }
  
  .table-container::-webkit-scrollbar {
    height: 6px;
  }
  
  .table-container::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
  }
  
  .table-container::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 3px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .manpower-hero-content h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .manpower-hero {
    height: 50vh;
  }

  .manpower-hero-content h1 {
    font-size: 2.2rem;
  }

  .manpower-hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid,
  .features-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-buttons .button-material {
    width: 100%;
    max-width: 300px;
  }

  .labor-table th {
    padding: 15px 10px;
    font-size: 0.8rem;
  }
  
  .labor-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  
  .labor-table th.serial-col {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .manpower-hero-content h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-card,
  .feature,
  .step {
    padding: 20px;
  }
}

/* Animation Classes */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .manpower-hero {
    height: 50vh;
    margin-top: 70px;
  }

  .manpower-hero-content h1 {
    font-size: 2.8rem;
  }

  .manpower-hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .service-card {
    padding: 25px;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .feature {
    padding: 15px;
  }

  .feature-content h3 {
    font-size: 1.2rem;
  }

  .step {
    padding: 25px;
  }

  .step h3 {
    font-size: 1.2rem;
  }

  .contact-content h2 {
    font-size: 2.2rem;
  }

  .contact-buttons {
    gap: 15px;
  }

  .button-material {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .manpower-hero {
    height: 40vh;
  }

  .manpower-hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .manpower-hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .services-grid,
  .features-grid,
  .process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card i {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .feature {
    padding: 15px;
    gap: 15px;
  }

  .feature i {
    font-size: 1.8rem;
  }

  .feature-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .step {
    padding: 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .contact-content {
    padding: 0 20px;
  }

  .contact-content h2 {
    font-size: 2rem;
  }

  .contact-content p {
    font-size: 1.1rem;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .button-material {
    width: 100%;
    max-width: 300px;
    margin: 5px 0;
  }

  /* Table Responsive Improvements */
  .table-container {
    margin: 15px -15px;
    border-radius: 0;
    box-shadow: none;
  }

  .labor-table {
    min-width: 100%;
  }

  .labor-table th {
    padding: 12px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .labor-table td {
    padding: 10px;
    font-size: 0.9rem;
  }

  .labor-table th.serial-col {
    width: 50px;
  }

  .labor-table th.position-col {
    width: auto;
  }

  .labor-table th.quantity-col,
  .labor-table th.schedule-col {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .manpower-hero {
    height: 35vh;
  }

  .manpower-hero-content h1 {
    font-size: 1.8rem;
  }

  .manpower-hero-content p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .container {
    padding: 0 15px;
  }

  .service-card,
  .feature,
  .step {
    padding: 15px;
  }

  .service-card i {
    font-size: 1.8rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .feature i {
    font-size: 1.5rem;
  }

  .feature-content h3 {
    font-size: 1rem;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  .step h3 {
    font-size: 1rem;
  }

  .contact-content h2 {
    font-size: 1.8rem;
  }

  .contact-content p {
    font-size: 1rem;
  }

  /* Table Mobile Improvements */
  .labor-table th {
    padding: 10px 8px;
    font-size: 0.75rem;
  }

  .labor-table td {
    padding: 8px;
    font-size: 0.85rem;
  }

  .labor-table th.serial-col {
    width: 40px;
  }

  .labor-table th.quantity-col,
  .labor-table th.schedule-col {
    width: 80px;
  }
}

/* Fix for very small screens */
@media (max-width: 360px) {
  .manpower-hero-content h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .labor-table th {
    font-size: 0.7rem;
    padding: 8px 6px;
  }

  .labor-table td {
    font-size: 0.8rem;
    padding: 6px;
  }
}

/* Additional Orange Theme Enhancements */
.service-card:hover i,
.feature:hover i {
  background: var(--hover-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step:hover .step-number {
  background: var(--hover-orange);
}

.labor-table th:hover {
  background: var(--hover-orange);
}

/* Focus States for Accessibility */
.button-material:focus,
.service-card:focus,
.feature:focus,
.step:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

/* Selection Color */
::selection {
  background: var(--light-orange);
  color: var(--text-dark);
}

/* Link Colors */
a {
  color: var(--primary-orange);
}

a:hover {
  color: var(--dark-orange);
} 