/* ===== CSS Variables ===== */
:root {
  --green: #18A558;
  --green-dark: #14934a;
  --blue-dark: #1F479C;
  --blue-darker: #2C3E50;
  --blue-indigo: #313A7F;
  --blue-light: #33B5E5;
  --text-dark: #212B36;
  --text-gray: #555;
  --text-muted: #6c757d;
  --bg-light: #F8F9FA;
  --bg-off-white: #f8f8f8;
  --white: #ffffff;
  --border-gray: #e9ecef;
  --shadow: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-subtle: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  font-family: 'Nasalization Rg', sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo span {
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-weight: 400;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--green);
}

.btn-login {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover {
  background: var(--green-dark);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 184, 134, 0.75) 0%,
    rgba(31, 71, 156, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: #6DBFFC;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--white);
  max-width: 500px;
  margin: 0 auto 28px;
  opacity: 0.95;
}

.btn-hero {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--white);
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-hero:hover {
  background: transparent;
  color: var(--white);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.5rem;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ===== About Section ===== */
.about {
  padding: 80px 0;
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 48px;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  border-left: 3px solid var(--text-dark);
  border-top: 3px solid var(--text-dark);
  z-index: 1;
}

.about-image {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-content .accent {
  color: #2E8B57;
}

.about-content p {
  color: var(--text-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.btn-green {
  background: #4CAF50;
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-green:hover {
  background: #45a049;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--blue-darker);
  padding: 48px 32px;
  gap: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--white);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Featured Projects Section ===== */
.projects {
  padding: 80px 0;
  background: var(--bg-off-white);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-darker);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.filter-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--border-gray);
  color: var(--text-muted);
  transition: all 0.2s;
}

.pill:hover {
  background: #dee2e6;
}

.pill.active {
  background: #28a745;
  color: var(--white);
}

.projects-slider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.slider-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s;
}

.slider-arrow:hover {
  background: #e9ecef;
}

.projects-slider-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.projects-slider-wrapper::-webkit-scrollbar {
  height: 6px;
}

.projects-slider-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  border: 2px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  border-color: #007bff;
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.25);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: var(--white);
}

.project-tag {
  display: inline-block;
  background: #28a745;
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-info p {
  font-size: 0.9rem;
  opacity: 0.95;
}

.project-card.hidden {
  display: none;
}

.section-cta {
  text-align: center;
}

.btn-outline {
  background: var(--white);
  color: var(--blue-darker);
  border: 1px solid var(--text-muted);
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--blue-darker);
}

/* ===== Machinery Section ===== */
.machinery {
  padding: 80px 0;
  background: var(--white);
}

.machinery-header {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.machinery-intro .section-title .accent-blue {
  color: var(--blue-light);
}

.machinery-desc {
  color: var(--text-dark);
  margin-top: 12px;
  line-height: 1.7;
}

.equipment-summary {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-header i {
  color: var(--blue-darker);
  font-size: 1.25rem;
}

.summary-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.summary-item span:last-child {
  font-weight: 600;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.equipment-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  padding: 0;
  position: relative;
}

.equipment-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.equipment-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 16px 20px 0;
  margin-bottom: 12px;
}

.equipment-specs {
  padding: 0 20px 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.view-specs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-light);
  font-size: 0.9rem;
  padding: 0 20px 20px;
  transition: color 0.2s;
}

.view-specs:hover {
  color: var(--blue-darker);
}

.status-dot {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: #28A745;
  border-radius: 50%;
}

.btn-outline-dark {
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: var(--white);
}

/* ===== Careers Section ===== */
.careers {
  padding: 80px 0;
  background: var(--blue-indigo);
}

.careers-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
}

.careers-subtitle {
  font-size: 1rem;
  color: var(--white);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
  opacity: 0.95;
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.openings-panel {
  background: #5D6399;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.openings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.openings-header i {
  color: var(--white);
  font-size: 1.5rem;
}

.openings-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.job-item {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.job-item:hover {
  background: rgba(255,255,255,0.15);
}

.job-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.job-type {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.job-location {
  font-size: 0.9rem;
  color: var(--white);
}

.btn-white {
  width: 100%;
  background: var(--white);
  color: var(--blue-indigo);
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-white:hover {
  opacity: 0.95;
}

.careers-image-wrapper {
  position: relative;
}

.careers-image-frame {
  position: absolute;
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid #6DBFFC;
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
}

.careers-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.8) hue-rotate(-5deg);
}

/* ===== Contact Section ===== */
.contact {
  padding: 80px 0;
  background: var(--bg-light);
}

.contact .section-title {
  color: var(--blue-indigo);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.contact-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-indigo);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.btn-contact {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-contact:hover {
  background: var(--green);
  color: var(--white);
}

.contact-info-card {
  background: #e9ecef;
  border-radius: 12px;
  padding: 32px;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.info-item i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.info-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.info-item p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.info-item a {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-item a:hover {
  color: var(--green);
}

/* ===== Footer ===== */
.footer {
  font-family: 'Nasalization Rg', sans-serif;
  color: var(--white);
}

.footer-main {
  background: linear-gradient(90deg, #1a5f3a 0%, var(--blue-indigo) 100%);
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 340px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.2s;
}

.social-icons a:hover {
  background: var(--white);
  color: var(--blue-indigo);
}

.footer-links h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  background: #252d5e;
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.9;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-links a {
  font-size: 0.9rem;
  opacity: 0.9;
}

.legal-links .separator {
  opacity: 0.5;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .machinery-header {
    grid-template-columns: 1fr;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .careers-grid {
    grid-template-columns: 1fr;
  }

  .careers-image-wrapper {
    order: -1;
    max-height: 300px;
  }

  .careers-image {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-slider {
    flex-direction: column;
  }

  .slider-arrow {
    display: none;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-tagline {
    max-width: none;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
