:root {
  --primary-color: #d17e29;
  --secondary-color: #28235b;
  --fill-color: #f4f4f4;
  --secondary-fill-color: #d9d9d9;
  --text-color: #3a3a3b;
  --headline-color: #1e1e1e;
  --hover-color: #ee8924e7;
  --secondary-hover-color: #241c86ea;
}

body {
  background-color: var(--fill-color);
}

/*NavBar*/

.custom-navbar {
  font-family: "Archivo Black", Archivo Narrow, sans-serif;
  box-shadow: 1px 2px 8px #3030301a;
}

.logo {
  width: 155px !important;
  object-fit: cover;
}

.nav-link:hover {
  color: var(--hover-color) !important;
}

/*homepage hero section*/

.hero-container {
  padding: 80px 60px;
  background-color: var(--fill-color);
  overflow: visible;
}

.hero-headline {
  font-family: "Archivo Black", Archivo Narrow, sans-serif;
  line-height: 1;
  font-size: 56px;
  margin-bottom: 18px;
  color: var(--headline-color);
  font-weight: 700;
}

.hero-subtext {
  font-size: 16px;
  font-family: "Archivo Narrow", sans-serif;
  line-height: 1.6;
  max-width: 70ch;
  color: var(--text-color);
}

.color-block {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40vw;
  min-width: 360px;
  background-color: var(--primary-color);
  z-index: 1;
}

/* image card that sits above the color block */
.hero-image {
  width: 460px;
  height: 360px;
  overflow: hidden;
  position: relative;
  transform: translateX(-90px);
  z-index: 3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-actions .btn {
  min-width: 180px;
  font-family: "Archivo Black", sans-serif;
  font-size: 0.8rem;
  border-radius: 0;
  transition: transform 0.3s;
}

.btn-1:hover,
.btn-2:hover {
  transform: translateY(-3px);
  background-color: var(--hover-color) !important;
}

.btn-2:hover {
  background-color: var(--secondary-hover-color) !important;
  color: var(--fill-color) !important;
}

@media (max-width: 1200px) {
  .hero-image {
    width: 420px;
    height: 320px;
    transform: translateX(-70px);
  }
  .hero-headline {
    font-size: 48px;
  }
}

@media (max-width: 991px) {
  /* Stack layout on tablets and phones */
  .hero-container {
    padding: 48px 0;
  }
  .hero-headline {
    font-size: 34px;
  }
  .hero-image {
    width: 100%;
    height: auto;
    transform: translateX(0);
  }

  .color-block {
    position: absolute;
    height: 56px;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    min-width: unset;
  }

  .hero-actions {
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .hero-headline {
    font-size: 28px;
  }
  .hero-subtext {
    font-size: 15px;
  }
}

/*Home about*/

.heading {
  font-family: "Archivo Black", Archivo Narrow, sans-serif;
  padding: 15px 40px !important;
  line-height: 1.3;
  font-size: 36px;
  color: var(--headline-color);
  font-weight: 400;
}

.paragraph-text {
  font-size: 22px;
  padding: 15px 40px !important;
  font-family: "Archivo Narrow", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  text-align: justify;
}

.about-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  border-radius: 120px 0 0 120px;
  display: block;
  margin: 25px auto;
  animation: fadeIn 3s ease-in-out infinite;
  overflow: hidden;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.mission-block {
  background-color: var(--secondary-hover-color);
}

.mission-block p {
  color: var(--fill-color);
  font-size: 20px;
}

.value-block {
  background-color: var(--secondary-fill-color);
}

.value-block p {
  color: var(--secondary-color);
  font-size: 20px;
}

.about-mission .heading {
  font-family: "Archivo Black", Archivo Narrow, sans-serif;
  padding: 15px 40px !important;
  line-height: 1.3;
  font-size: 26px;
  color: var(--primary-color);
  font-weight: 400;
}

.about-mission .paragraph-text br {
  line-height: 0.35;
}

@media (max-width: 992px) {
  .about-mission.m-5 {
    margin: 1.5rem 0 !important;
  }
  .about-mission {
    gap: 18px;
  }
  .about-mission > .col-md-6 {
    flex: 1 1 100%;
    min-width: 0;
  }
  .mission-block,
  .value-block {
    padding: 14px 16px;
  }
  .about-mission .paragraph-text {
    font-size: 15px;
  }
  .about-mission .heading {
    font-size: 20px;
    padding: 6px 0 !important;
  }

  .about-img {
    border-radius: 90px 0 0 90px;
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 520px) {
  .about-mission.m-5 {
    margin: 1rem 0 !important;
  }
  .about-mission {
    gap: 12px;
  }
  .mission-block,
  .value-block {
    padding: 12px 12px;
  }
  .about-mission .paragraph-text {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
  }

  .about-paragraph {
    text-align: left;
  }

  .operations-text li p {
    text-align: left !important
  ;
  }

  .about-mission .heading {
    font-size: 18px;
    padding: 6px 0 !important;
    text-align: center;
  }
  .about-mission > .col-md-6 {
    padding-left: 6px;
    padding-right: 6px;
  }

  .about-img {
    width: 90%;
    border-radius: 60px 0 0 60px;
    aspect-ratio: 16 / 9;
    margin: 15px auto;
  }
}

/*chemical-icons section*/

.chemical-icons {
  width: 100%;
  max-width: 1200px;
  padding: 14px;
  aspect-ratio: 16 / 5;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 18px rgba(60, 42, 15, 0.473),
    0 2px 6px rgba(60, 44, 15, 0.521);
}

.homepage-container {
  overflow-x: hidden;
}

/*Our fleet section */
:root {
  --slider-max-width: 1200px; /* max container width */
  --slide-aspect-ratio: calc(16 / 9); /* just for reference, enforced via CSS */
  --slide-gap: 20px;
  --active-scale: 1.09;
  --inactive-scale: 0.96;
  --shadow-color: rgba(6, 12, 34, 0.45);
  --transition-time: 3ms;
}

.fleet-wrapper {
  overflow-x: hidden;
}

.fleet-section {
  background-color: rgba(209, 126, 41, 30%);
  width: 100%;
  padding: 40px 0;
}

.fleet-block {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto;
  padding: 40px 25px;
  text-align: center;
  background-color: #fff;
  border-radius: 0 20% 0 0;
}

.fleet-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
}

/* Each logo */
.fleet-logos img {
  width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .fleet-block {
    padding: 35px 20px;
  }

  .fleet-logos {
    gap: 30px;
  }

  .fleet-logos img {
    width: 160px;
  }
}

/* Small Tablets & Large Phones (768px and below) */
@media (max-width: 768px) {
  .fleet-block p {
    text-align: center;
  }

  .fleet-logos {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .fleet-logos img {
    width: 150px;
  }
}

/* Phones (420px and below) */
@media (max-width: 420px) {
  .fleet-block {
    padding: 28px 16px;
    border-radius: 0 25% 0 0;
  }

  .fleet-logos {
    flex-direction: column;
    gap: 18px;
  }

  .fleet-logos img {
    width: 130px;
  }
}

/* Very small devices (320px range) */
@media (max-width: 320px) {
  .fleet-block {
    padding: 20px 14px;
  }

  .fleet-logos img {
    width: 110px;
  }
}

/* Slider outer wrapper - centers the whole thing */
.slider-wrap {
  width: 100%;
  max-width: var(--slider-max-width);
  box-sizing: border-box;
  padding: 28px;
  display: flex;
  justify-content: center;
}

/* Viewport: visible window showing slides, hides overflow */
.slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  perspective: 1200px; /* enables 3D depth */
  -webkit-perspective: 1200px;
}

/* Track with horizontal flex layout */
.slider-track {
  display: flex;
  gap: var(--slide-gap);
  align-items: center;
  will-change: transform;
  transition: transform var(--transition-time) cubic-bezier(0.2, 0.9, 0.3, 1);
  padding: 12px 0; /* vertical breathing room for shadows */
}

/* Slide card */
.slide {
  flex: 0 0 56%; /* base slide width (responsive) - see media queries */
  box-sizing: border-box;
  display: block;
  transform-origin: center center;
  transition: transform var(--transition-time) cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow var(--transition-time);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
  backface-visibility: hidden;
}

/* The image itself - cover the slide area */
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 16 / 9; /* ensure consistent aspect ratio */
  transform-origin: center center;
  transition: transform var(--transition-time) ease;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

/* Inactive state: slightly smaller */
.slide.inactive {
  transform: translateZ(0) scale(var(--inactive-scale));
  box-shadow: 0 8px 22px rgba(241, 129, 1, 0.356);
  filter: saturate(0.96) contrast(0.98);
  opacity: 0.95;
}

/* Active state: scales up and lifts visually using translateZ */
.slide.active {
  transform: translateZ(22px) scale(var(--active-scale));
  box-shadow: 0 30px 80px var(--shadow-color);
  opacity: 1;
  z-index: 10;
}

/* Make sure neighbors do not overlap too much */
.slide:not(.active) {
  z-index: 1;
}

/* Ensure the track is vertically centered inside viewport */
.slider-viewport {
  display: flex;
  align-items: center;
}

/* Responsive breakpoints - tweak slide width at various sizes */
@media (min-width: 1400px) {
  .slide {
    flex: 0 0 38%;
  } /* show more of neighbors on very wide screens */
}

@media (min-width: 1000px) and (max-width: 1399px) {
  .slide {
    flex: 0 0 44%;
  }
}

@media (max-width: 999px) and (min-width: 700px) {
  .slide {
    flex: 0 0 60%;
  }
}

@media (max-width: 699px) {
  .slide {
    flex: 0 0 80%;
  } /* single large centered slide on phones */
}

@media (max-width: 420px) {
  .slide {
    flex: 0 0 92%;
    border-radius: 10px;
  }
}

/* subtle focus outline if navigating via keyboard (accessibility) */
.slide:focus {
  outline: 3px solid rgba(255, 255, 255, 0.14);
  outline-offset: 6px;
}

/* small accessibility helper — hidden for visuals but readable by assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

li svg {
  flex-shrink: 0; /* Prevent shrinking */
  width: 48px; /* Force width */
  height: 48px; /* Force height */
}

/*Our Team Section*/

.team-block .mission-block {
  background-color: var(--primary-color);
}

.team-block .team-section-heading {
  color: var(--secondary-hover-color);
}

.team-block p {
  color: var(--fill-color);
}

.team-block .team-section-text {
  color: var(--secondary-color);
}

.team-wrapper {
  background-color: #f7f7f7;
  overflow-x: hidden;
}

.team-wrapper img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  padding: 14px;
  aspect-ratio: 16 / 7;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transform: scale(1.25) !important; /* makes image 25% larger everywhere */
  transform-origin: center;
}

@media (max-width: 520px) {
  .team-wrapper img {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
  }
}

/*Contact section*/

 .contact-section {
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

.address-block .heading {
  font-size: 25px;
  line-height: 1.4 !important;
}

.contact-banner-container {
  position: relative;
  width: 100%;
  height: 100vh; /* adjust to control how much of the viewport it takes */
  min-height: 250px; /* ensures it doesn’t get too small on mobile */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* prevents any accidental overflow */
}

.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* fill parent container only */
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url("/media/PHOTO-2025-11-17-10-42-50.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -1; /* behind text */
}

.contact-banner-container + .row {
  position: absolute;
  left: 0;
  right: 0;
  margin:0 auto;
  top: 35%; /* controls vertical placement - tweak if needed */
  transform: translate(0, -50%);
  width: min(1100px, 94%); /* responsive max width that avoids overflow */
  z-index: 3;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 0 10px;
}

.contact-banner-container + .row .col-md-3 {
  flex: 1 1 300px;
  min-width: 240px;
  max-width: 360px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.contact-banner-container .paragraph-text {
  color: var(--headline-color) !important;
  font-size: 25px !important;
}

.contact-info-block {
  background-color: rgba(37, 28, 134, 0.678);
  box-shadow: 0 3px 5px rgba(209, 126, 41, 0.45);
  color: var(--fill-color);
  width: 100;
}

.contact-info-block .title {
  font-family: "Archivo Black", Archivo Narrow, sans-serif;
}

.contact-info-block .details {
  font-family: "Archivo Narrow", sans-serif;
}

@media (max-width: 992px) {
  .contact-banner-container {
    height: auto;
    min-height: 640px;
    padding-bottom: 20px;
  }

  /* Keep .row absolute (desktop look preserved) but center it vertically in the banner */
  .contact-banner-container .row {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 50%; /* center vertically inside the banner */
   transform:translate(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(720px, 94%);
    align-items: center;
    z-index: 3;
    box-sizing: border-box;
    padding: 0 !important;
  }
}

@media (max-width: 576px) {
  .contact-banner-container {
    min-height: 860px;
    padding-bottom: 48px;
  }

  .contact-banner-container .row {
    top: 54%;
    gap: 12px;
    width: 94%;
    padding: 0;
    left: 0 !important; 
    right:0;
    margin: 0 auto;
  }

  .contact-banner-container .row .col-md-3 {
    max-width: 420px;
    padding: 0;
  }

  .contact-info-block {
    max-width: 400px;
    padding: 12px 14px;
    font-size: 0.98rem;
    width: 100%;
  }
}

/*Footer Section*/
footer {
  width: 100%;
  padding: 35px 25px 0;
  background-color: var(--secondary-color);
}

footer h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: "Archivo Black", Archivo Narrow, sans-serif;
  color: var(--fill-color);
}

.footer-text {
  font-family: "Archivo Narrow", sans-serif;
  color: var(--fill-color);
  margin: 15px 2px 15px 2px;
  line-height: 1.3;
  cursor: pointer;
}

.footer-text a {
  text-decoration: none;
  color: var(--fill-color);
}

.footer-text a:hover {
  color: var(--hover-color);
}

.footer-copyright {
  width: 100% !important;
  margin: 0;
  padding: 10px 0;
  text-align: center;
  font-family: monospace;
  font-size: 14px;
  color: var(--fill-color) !important;
}

.footer-text:hover {
  color: var(--hover-color);
  transform: translateY(-3px);
}

/*Whatsapp Floating Icon*/
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: "Archivo Narrow", sans-serif;
}

/* Main button */
.whatsapp-btn {
  background-color: var(--primary-color);
  color: var(--fill-color);
  border-radius: 50px;
  display: flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: width 0.3s ease, transform 0.3s, box-shadow 0.3s;
  width: 60px;
}

/* Icon */
.whatsapp-btn i {
  font-size: 2rem;
  padding: 15px;
}

/* Text container (hidden by default) */
.whatsapp-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 15px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show text on hover */
.whatsapp-btn:hover,
.whatsapp-btn:focus {
  width: 200px; /* expanded width */
}

.whatsapp-btn:hover .whatsapp-text,
.whatsapp-btn:focus .whatsapp-text {
  opacity: 1;
}

/* Text style */
.whatsapp-text .title {
  font-weight: bold;
  font-size: 1rem;
}

.whatsapp-text .subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Hover animation */
.whatsapp-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Slide-in animation */
.whatsapp-widget {
  transform: translateY(100px);
  opacity: 0;
  animation: floatIn 0.5s forwards;
  animation-delay: 1s;
}

@keyframes floatIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 992px) {
  footer .col-md-4 {
    flex: 1 1 45%;
    min-width: 200px;
  }
  footer {
    padding: 28px 16px 0;
  }
  footer .row.social-icons {
    margin-top: 20px;
  }
}

@media (max-width: 680px) {
  footer .row {
    flex-direction: column;
    gap: 14px;
  }
  footer .col-md-4 {
    flex: 1 1 100%;
    min-width: 0;
    text-align: center;
  }
  .footer-text {
    margin: 6px 0;
  }
  footer h4 {
    text-align: center;
  }

  footer .row.social-icons {
    justify-content: center;
    padding-bottom: 8px;
  }

  .footer-copyright {
    padding: 10px 12px;
    font-size: 10px;
  }

  .whatsapp-btn {
    font-size: 1rem;
    padding: 15px auto;
  }

  .whatsapp-btn:active .whatsapp-text {
    opacity: 1;
  }
}
