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

:root {
  --red: #e60012;
  --red-dark: #cc0010;
  --dark: #111111;
  --darker: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-800: #333333;
  --gray-700: #555555;
  --gray-300: #b0b0b0;
  --gray-200: #d9d9d9;
  --gray-100: #f2f2f2;
  --silver: #c0c0c0;
  --silver-light: #e8e8e8;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.97);
  padding: 12px 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 180px;
  width: auto;
  max-width: 810px;
  transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
  height: 70px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-nav {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.btn-nav:hover {
  background: var(--red-dark) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('/images/shovel-boom-assembly.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.88) 0%, rgba(17, 17, 17, 0.75) 50%, rgba(26, 26, 26, 0.85) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-300);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  font-family: var(--font);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 0, 18, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.hero-badges {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
}

.badge-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
}

.badge-label {
  font-size: 0.8rem;
  color: var(--gray-300);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Sections === */
.section {
  padding: 100px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--silver-light) 100%);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.section-dark .section-lead {
  color: var(--gray-300);
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.about-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.about-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Services === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.service-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.3;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* === Equipment === */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.equip-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--red);
}

.equip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.equip-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.equip-card li {
  color: var(--gray-700);
  font-size: 0.9rem;
  padding-left: 16px;
  position: relative;
}

.equip-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* === Timeline === */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 60px;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--silver-light);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-content ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-content li {
  color: var(--gray-700);
  font-size: 0.9rem;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--gray-300);
  border-radius: 50%;
}

/* === Certifications === */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
}

.cert-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.cert-card p {
  color: var(--gray-700);
  font-size: 0.9rem;
}

.cert-detail {
  margin-top: 8px;
  font-style: italic;
  color: var(--gray-700);
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.contact-card a,
.contact-card p {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--white);
}

/* === Footer === */
.footer {
  padding: 24px 0;
  background: var(--darker);
  text-align: center;
}

.footer-logo {
  height: 240px;
  width: auto;
  max-width: 1080px;
  margin-bottom: 16px;
}

.footer p {
  color: var(--gray-700);
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 968px) {
  .about-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--darker);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 16px;
  }

  .logo-img {
    height: 105px;
  }

  .navbar.scrolled .logo-img {
    height: 84px;
  }

  .logo {
    margin-left: -12px;
  }

  .footer-logo {
    height: 100px;
  }

  .hero-badges {
    gap: 32px;
  }

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

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

  .section {
    padding: 72px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    flex-direction: column;
    gap: 20px;
  }
}
