:root {
  --red: #b21f2d;
  --red-hover: #8e1924;
  --steel: #8a8a8a;
  --black: #1a1c22;
  --dark-gray: #333333;
  --light-gray: #e5e5e5;
  --white: #ffffff;
  --glass-dark: rgba(26, 28, 34, 0.85);
  --glass-light: rgba(255, 255, 255, 0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Barlow", sans-serif;
  color: var(--black);
  background: linear-gradient(180deg, #1a1c22 0%, #ffffff 45%, #1a1c22 75%, #b21f2d 100%);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Oswald", sans-serif;
  color: var(--black);
  letter-spacing: 0;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 40px;
  text-align: center;
}

.section-title p {
  color: #444;
}

.section-title.light h2,
.section-title.light p {
  color: var(--white);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 28, 34, 0.98);
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--white);
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  margin-bottom: 6px;
}

.logo-placeholder {
  width: 140px;
  height: 40px;
  border: 2px dashed var(--steel);
  margin-bottom: 6px;
}

.logo-text {
  font-size: 0.75rem;
  max-width: 280px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

.hero {
  position: relative;
  height: 600px;
  background:
    linear-gradient(90deg, rgba(10, 14, 20, 0.86) 0%, rgba(10, 14, 20, 0.48) 45%, rgba(10, 14, 20, 0.08) 100%),
    url("img/principal3.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
  margin-top: 109px;
}

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

.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.16;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

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

.btn-secondary {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-secondary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
}

.services {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(26, 28, 34, 0.08);
  border-bottom: 1px solid rgba(26, 28, 34, 0.08);
}

.services-grid,
.grid-4,
.grid-3 {
  display: grid;
  gap: 24px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

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

.card {
  background: rgba(255, 255, 255, 0.9);
  padding: 0 0 24px;
  border-left: 6px solid var(--red);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-image {
  width: 100%;
  height: 145px;
  margin-bottom: 18px;
  background: var(--light-gray);
  object-fit: cover;
  display: block;
}

.card h3,
.card p {
  padding-inline: 24px;
}

.experience {
  background: rgba(26, 28, 34, 0.92);
  backdrop-filter: blur(6px);
  color: var(--white);
}

.stats-strip {
  background: rgba(26, 28, 34, 0.92);
  backdrop-filter: blur(6px);
  padding-top: 60px;
  padding-bottom: 20px;
}

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

.stat {
  text-align: center;
  padding: 24px 16px;
  background: rgba(26, 28, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat h3 {
  color: var(--red);
  font-size: 2.2rem;
}

.stat p {
  color: rgba(255, 255, 255, 0.85);
}

.stat:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
  border-color: rgba(198, 40, 40, 0.6);
}

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

.experience-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
  margin-bottom: 32px;
}

.experience-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

.safety-gallery {
  margin-bottom: 26px;
}

.safety-gallery img {
  border-color: rgba(26, 28, 34, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.panel {
  background: rgba(26, 28, 34, 0.85);
  padding: 28px;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 220px;
}

.panel h3 {
  margin-bottom: 10px;
  color: var(--white);
}

.panel p {
  color: rgba(255, 255, 255, 0.85);
}

.panel:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  border-color: var(--red-hover);
}

.panel-list {
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.panel-list li::before {
  content: \"• \";
  color: var(--red);
}

.projects .project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-image {
  width: 100%;
  height: 200px;
  background: var(--light-gray);
  border-bottom: none;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 20px;
}

.projects .project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.projects-note {
  margin-top: 20px;
  text-align: center;
  color: #555;
}

/* PORTAFOLIO */
.portfolio-page .projects {
  min-height: 100vh;
  padding-top: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 245, 245, 0.9) 100%);
}

.portfolio-page .section-title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-bottom: none;
}

.portfolio-card .card-body {
  padding: 18px 20px 22px;
}

.portfolio-card .card-body h3 {
  margin-bottom: 6px;
}

.portfolio-card .project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--red);
  font-weight: 700;
}

.project-detail {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(26, 28, 34, 0.08);
  border-bottom: 1px solid rgba(26, 28, 34, 0.08);
  min-height: 100vh;
  padding-top: 150px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.detail-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(26, 28, 34, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.detail-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.detail-meta {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-meta li strong {
  color: var(--black);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--red);
  font-weight: 700;
}

.safety {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(26, 28, 34, 0.08);
  border-bottom: 1px solid rgba(26, 28, 34, 0.08);
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-content: center;
  font-weight: 600;
}

.checklist li {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.checklist li:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(178, 31, 45, 0.5);
}

.clients {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(26, 28, 34, 0.08);
  border-bottom: 1px solid rgba(26, 28, 34, 0.08);
}

.client-logos {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  flex: 1 1 0;
  min-width: 160px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.logo-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  border-color: rgba(178, 31, 45, 0.55);
  background: rgba(255, 255, 255, 0.98);
}


.logo-box img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
}

.client-page {
  background: linear-gradient(180deg, #1a1c22 0%, #ffffff 35%, #ffffff 100%);
}

.client-detail {
  min-height: 100vh;
  padding-top: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 245, 245, 0.92) 100%);
}

.client-heading {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.client-heading img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.client-heading h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.client-heading p {
  color: #444;
  max-width: 760px;
}

.client-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.client-summary .stat {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 28, 34, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.client-summary .stat h3 {
  color: var(--red);
  font-size: 1.8rem;
}

.client-summary .stat p {
  color: #444;
}

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

.client-projects.single {
  grid-template-columns: minmax(0, 720px);
}

.project-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.project-list-item {
  background: rgba(255, 255, 255, 0.94);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.project-list-item h3 {
  margin-bottom: 8px;
}

.project-list-item p {
  color: #444;
}

.project-list-item .detail-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}

.contact {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(26, 28, 34, 0.08);
  border-bottom: 1px solid rgba(26, 28, 34, 0.08);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-info p {
  margin-bottom: 12px;
}

.contact-info {
  display: grid;
  gap: 12px;
}

.info-box {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.location {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(26, 28, 34, 0.08);
  border-bottom: 1px solid rgba(26, 28, 34, 0.08);
}

.map-embed {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  display: block;
}

.contact-form {
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.contact-form iframe {
  width: 100%;
  height: 760px;
  border: 0;
  border-radius: 6px;
  background: var(--white);
}

.footer {
  background: linear-gradient(135deg, #2a2d34 0%, #333843 100%);
  color: var(--white);
  padding: 40px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-careers {
  display: grid;
  gap: 12px;
}

.careers h2,
.careers p,
.footer h3,
.footer p {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .services-grid,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .client-heading,
  .client-projects,
  .client-projects.single {
    grid-template-columns: 1fr;
  }

  .mission-vision,
  .experience-gallery,
  .contact-grid,
  .stats,
  .client-logos,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .careers-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 560px;
    margin-top: 72px;
  }

  .contact-form iframe {
    height: 980px;
  }

  .map-embed iframe { height: 320px; }

  .client-heading {
    padding: 22px;
    text-align: center;
  }

  .client-heading img {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .services-grid,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .logo-text {
    display: none;
  }

  .logo-placeholder {
    width: 110px;
  }
}
