:root {
  --env-green: #5fa834;
  --env-blue: #1b6fa1;
  --env-dark: #0b3c5d;
}

body {
  font-family: "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */

/* Logo */
.navbar-brand img {
  height: 90px;
}

/* Brand text */
.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Initial overlay navbar (on hero) */
.navbar-transparent {
  background: transparent;
  transition: all 0.4s ease;
}

/* Initial text colors */
.navbar-transparent .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  margin-left: 12px;
}

.navbar-transparent .nav-link i {
  color: var(--env-green);
  margin-right: 6px;
}

.navbar-transparent .brand-env,
.navbar-transparent .brand-safe,
.navbar-transparent .brand-solutions {
  color: #ffffff;
}

/* Scrolled navbar */
.navbar-scrolled {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #eef7fb 50%,
    #eaf6ef 100%
  );
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

/* Scrolled text colors */
.navbar-scrolled .nav-link {
  color: var(--env-dark) !important;
  margin-left: 25px;
  font-weight: 500;
}

.navbar-scrolled .brand-env {
  color: var(--env-blue);
}

.navbar-scrolled .brand-safe {
  color: var(--env-green);
}

.navbar-scrolled .brand-solutions {
  color: var(--env-blue);
}

/* Toggler Customization */
.navbar-transparent .navbar-toggler {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-transparent .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-scrolled .navbar-toggler {
  color: var(--env-dark);
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2811, 60, 93, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ================= CAROUSEL ================= */

.carousel-item {
  position: relative;
}

/* Full image overlay */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.carousel-item img {
  height: 60vh;
  object-fit: cover;
}

@media (min-width: 992px) {
  .carousel-item img {
    height: 90vh;
  }
}

.carousel-caption {
  z-index: 2;
}

.carousel-caption h1 {
  color: #ffffff;
  font-weight: 700;
}

.carousel-caption p {
  color: #dff3ff;
}

/* ================= ACTIVE NAV ITEM ================= */

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

/* Active / clicked state */
.nav-link.active {
  transform: translateY(-4px);
  font-weight: 600;
}

/* Underline indicator */
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background-color: var(--env-green);
  border-radius: 2px;
}

/* Active color on hero (dark overlay) */
.navbar-transparent .nav-link.active {
  color: #ffffff !important;
}

/* Active color after scroll */
.navbar-scrolled .nav-link.active {
  color: var(--env-green) !important;
}

/* ================= ABOUT SECTION ================= */

.about-title {
  font-size: 3.5rem; /* Increased size */
  font-weight: 800;
  background: linear-gradient(to right, var(--env-green), var(--env-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.2;
}

/* ================= FLOATING ARC STYLE ================= */

#arc {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  height: 400px; /* Increased height for arc */
  margin: 2rem 0;
  overflow: visible;
}

.arc-spinner {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.arcCard {
  position: absolute;
  width: 200px;
  height: 280px;
  left: -100px; /* Center horizontally */
  top: -140px; /* Center vertically */
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 4px solid #fff;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: arcRotate 25s infinite linear;
}

/* Animation Delays for Continuous Rotation */
.arcCard:nth-child(1) { animation-delay: 0s; }
.arcCard:nth-child(2) { animation-delay: -5s; }
.arcCard:nth-child(3) { animation-delay: -10s; }
.arcCard:nth-child(4) { animation-delay: -15s; }
.arcCard:nth-child(5) { animation-delay: -20s; }

@keyframes arcRotate {
  /* Left Outer: Hold 0-15% */
  0%, 15% { transform: translate3d(-450px, 0, -80px) scale(0.8); z-index: 1; opacity: 0.6; filter: blur(2px); border-color: #fff; }
  
  /* Left Inner: Hold 20-35% */
  20%, 35% { transform: translate3d(-225px, 0, -40px) scale(0.9); z-index: 5; opacity: 0.9; filter: blur(0.5px); border-color: #fff; }
  
  /* Center: Hold 40-55% */
  40%, 55% { transform: translate3d(0, 0, 0) scale(1.1); z-index: 10; opacity: 1; filter: blur(0); border-color: var(--env-green); }
  
  /* Right Inner: Hold 60-75% */
  60%, 75% { transform: translate3d(225px, 0, -40px) scale(0.9); z-index: 5; opacity: 0.9; filter: blur(0.5px); border-color: #fff; }
  
  /* Right Outer: Hold 80-95% */
  80%, 95% { transform: translate3d(450px, 0, -80px) scale(0.8); z-index: 1; opacity: 0.6; filter: blur(2px); border-color: #fff; }
  
  /* Reset Path (Hidden behind) */
  98% { transform: translate3d(0, 0, -100px) scale(0.7); z-index: 0; opacity: 0; filter: blur(5px); border-color: #fff; }
  
  100% { transform: translate3d(-450px, 0, -80px) scale(0.8); z-index: 1; opacity: 0.6; filter: blur(2px); border-color: #fff; }
}

/* Responsive Scaling */
@media (max-width: 992px) {
  #arc { transform: scale(0.8); }
}

@media (max-width: 768px) {
  #arc { transform: scale(0.55); }
}

@media (max-width: 576px) {
  #arc { transform: scale(0.32); margin: -60px 0; }
}

/* Experience badge */
.experience-badge {
  background: linear-gradient(135deg, var(--env-blue), var(--env-green));
  color: #fff;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Feature boxes */
.feature-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8f9fa;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.icon-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--env-blue), var(--env-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}

.feature-box h5 {
  margin-bottom: 4px;
  font-weight: 600;
}

/* ================= NEW SECTIONS ================= */

.section-title {
  font-weight: 800;
  background: linear-gradient(90deg, var(--env-blue), var(--env-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Common Card Styles */
.mission-card,
.value-box,
.choose-card,
.product-card,
.blog-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%; /* Equal height */
  border: 1px solid rgba(0,0,0,0.03);
}

.mission-card:hover,
.value-box:hover,
.choose-card:hover,
.product-card:hover,
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--env-green);
}

.mission-card i {
  font-size: 2.5rem;
  color: var(--env-green);
  margin-bottom: 15px;
  display: block;
}

/* ================= CIRCULAR INFOGRAPHIC UI ================= */

/* Dark Section for Services to match the UI */
#services {
  background-color: #ffffff;
  color: var(--env-dark);
  overflow: hidden;
}

#services .section-title {
  background: linear-gradient(90deg, var(--env-blue), var(--env-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ig-wrapper {
  position: relative;
  width: 900px;
  height: 500px;
  margin: 0 auto;
}

/* CENTER */
.ig-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  text-align: center;
  padding-top: 45px;
  border: 4px solid var(--env-green);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 5;
}

.ig-center i {
  font-size: 40px;
  color: var(--env-blue);
}

.ig-center h3 {
  margin-top: 15px;
  color: var(--env-dark);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* DOTTED CIRCLE */
.ig-circle-dotted {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  border: 2px dashed var(--env-blue);
  opacity: 0.2;
  border-radius: 50%;
}

/* COMMON ITEM */
.ig-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0;
  transform: translateY(-50%);
}

.ig-icon {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.7);
  border: 2px solid var(--env-green);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: var(--env-blue);
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ig-dot {
  width: 10px;
  height: 10px;
  background: var(--env-green);
  border-radius: 50%;
}

.ig-line {
  width: 80px;
  height: 2px;
  background: var(--env-green);
}

.ig-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--env-blue);
}

.ig-right .ig-text { margin-left: 15px; }
.ig-left .ig-text { margin-right: 15px; }

.ig-text p {
  font-size: 13px;
  color: #6c757d;
  max-width: 180px;
  margin: 0;
}

/* LEFT */
.ig-left {
  flex-direction: row-reverse;
  text-align: right;
}

.ig-l1 { top: 140px; right: 545px; left: auto; }
.ig-l2 { top: 225px; right: 590px; left: auto; }
.ig-l3 { top: 305px; right: 575px; left: auto; }

/* TOP ITEM (Up & Left) */
.ig-top {
  top: 80px; /* Moved up to clear circle */
  right: calc(50% - 5px);
  left: auto;
  align-items: flex-start;
}

.ig-top .ig-line {
  width: 40px; height: 40px;
  background: transparent;
  border-top: 2px solid var(--env-green);
  border-right: 2px solid var(--env-green);
  margin-top: 25px;
  margin-right: -6px; /* Center line on dot */
}

.ig-top .ig-dot {
  margin-top: 60px; /* Aligns with circle top at 110px */
}

/* RIGHT */
.ig-right {
  flex-direction: row;
}

.ig-r1 { top: 145px; left: 565px; right: auto; }
.ig-r2 { top: 225px; left: 590px; right: auto; }
.ig-r3 { top: 305px; left: 575px; right: auto; }

/* BOTTOM ITEM (Down & Right) */
.ig-bottom {
  top: 430px; /* Aligns with circle bottom */
  left: calc(50% - 5px);
  right: auto;
  align-items: flex-start;
}

.ig-bottom .ig-line {
  width: 40px; height: 50px;
  background: transparent;
  border-bottom: 2px solid var(--env-green);
  border-left: 2px solid var(--env-green);
  margin-top: 5px;
  margin-left: -6px; /* Center line on dot */
}

.ig-bottom .ig-icon { margin-top: 30px; margin-left: -2px; }
.ig-bottom .ig-text { margin-top: 35px; }

/* Responsive Scaling */
@media (max-width: 991px) {
  .ig-wrapper {
    transform: scale(0.8);
    transform-origin: center top;
    left: 50%;
    margin-left: -450px;
    margin-bottom: -100px;
  }
}

@media (max-width: 768px) {
  .ig-wrapper {
    transform: scale(0.6);
    margin-bottom: -200px;
  }
}

@media (max-width: 500px) {
  .ig-wrapper {
    transform: scale(0.4);
    margin-bottom: -300px;
  }
}

@media (max-width: 380px) {
  .ig-wrapper {
    transform: scale(0.33);
    margin-bottom: -350px;
  }
}

/* Footer */
.footer {
  position: relative;
  background: url('images/water.jpeg') no-repeat center center;
  background-size: cover;
  color: #000000;
  padding-top: 150px;
  padding-bottom: 50px;
  font-weight: 700;
}

@media (max-width: 991px) {
  .footer {
    background-position: center -150px;
  }
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
  opacity: 0.8;
  transition: 0.3s;
  cursor: pointer;
}

.footer-links li:hover {
  opacity: 1;
  color: var(--env-green);
  padding-left: 5px;
}

/* Footer Icons */
.footer-contact-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  
}

.footer-icon {
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.footer-icon i,
.social-icon-gradient i {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--env-blue), var(--env-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.social-icon-gradient { text-decoration: none; }

/* ================= WHY CHOOSE ENV ================= */
.why-env-section {
 
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.caption {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--env-dark);
  margin-top: 10px;
}

.arrow-svg {
  margin: 18px 0 25px;
  max-width: 260px;
}

.hourglass-wrapper {
  position: relative;
  max-width: 450px;
  margin: auto;
  perspective: 1000px;
}

@media (min-width: 992px) {
  .hourglass-wrapper {
    margin-left: auto;
    margin-right: 0;
  }
}

.hourglass-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.2));
  transform-origin: center;
  animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
  0%, 100% { transform: rotateZ(10deg) rotateY(-15deg) translateY(0); }
  50% { transform: rotateZ(10deg) rotateY(15deg) translateY(-15px); }
}

.typing-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.typing-list li {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--env-dark);
  display: flex;
  align-items: center;
}

/* ================= CORE VALUES (VERTICAL FLOW) ================= */
.core-values-flow {
  position: relative;
  max-width: 100%;
  margin: 50px 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: "Segoe UI", sans-serif;
}

.line {
  position: absolute;
  top: 34px;
  left: 0;
  width: 100%;
  height: 0;
  border-top: 2px dotted #b0bec5;
  border-left: none;
  z-index: 0;
}

.item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  z-index: 1;
  gap: 15px;
}

.step {
  width: auto;
  text-align: center;
  font-weight: 700;
  color: #26a6a6;
  margin-bottom: 0;
  background: #fff;
  padding: 0 5px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #26a6a6;
  flex-shrink: 0;
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-top: 5px;
}

.content {
  max-width: 100%;
  padding: 0 10px;
}

.content h4 {
  margin: 0;
  font-weight: 700;
}

.content p {
  margin: 4px 0 0;
  color: #607d8b;
  font-size: 14px;
}

/* COLORS */
.teal { background: #26a6a6; }
.green { background: #6bbf59; }
.red { background: #e45b5b; }
.orange { background: #f1a43c; }
.purple { background: #9b59b6; }
.blue { background: #3498db; }

.step.green { color: #6bbf59; }
.dot.green { background: #6bbf59; }

.step.red { color: #e45b5b; }
.dot.red { background: #e45b5b; }

.step.orange { color: #f1a43c; }
.dot.orange { background: #f1a43c; }

.step.purple { color: #9b59b6; }
.dot.purple { background: #9b59b6; }

.step.blue { color: #3498db; }
.dot.blue { background: #3498db; }

/* Responsive: Stack vertically on mobile */
@media (max-width: 991px) {
  .core-values-flow {
    flex-direction: column;
    padding-left: 50px;
    margin: 40px auto;
    max-width: 500px;
  }
  .line {
    width: 0;
    height: 100%;
    left: 24px;
    top: 0;
    border-top: none;
    border-left: 2px dotted #b0bec5;
  }
  .item {
    flex-direction: row;
    text-align: left;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
  }
  .content {
    padding: 0;
    text-align: left;
  }
  .step {
    display: none; /* Hide numbers on small screens */
  }
}

@media (max-width: 576px) {
  .core-values-flow { padding-left: 30px; }
  .line { left: 14px; }
}

@media (max-width: 991px) {
  .arrow-svg {
    display: none;
  }
}

/* ================= GLOBAL RESPONSIVE TYPOGRAPHY ================= */
@media (max-width: 768px) {
  .display-5 { font-size: 2rem; }
  .about-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
}

@media (max-width: 450px) {
  .brand-text { font-size: 1rem; }
  .navbar-brand img { height: 65px; }
  .carousel-caption h1 { font-size: 1.5rem; }
  .carousel-caption p { font-size: 0.9rem; }
}

/* ================= ABOUT PAGE STYLES ================= */
.page-header {
  background: linear-gradient(rgba(11, 60, 93, 0.8), rgba(95, 168, 52, 0.8)), url('images/carousel-3.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 0;
  margin-top: 70px; /* Offset for fixed navbar */
}


/* ================= 3D & ANIMATIONS ================= */

/* Perspective Container for 3D Images */
.perspective-ctx {
  perspective: 1500px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-img {
  width: 100%;
  height: 100%;
  min-height: 400px; /* Increased min-height for better visual */
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
  transform-style: preserve-3d;
}

/* 3D Rotation on Hover */
.content-img:hover {
  transform: rotateY(-8deg) rotateX(5deg) scale(1.02);
  box-shadow: 20px 30px 60px rgba(0,0,0,0.25);
  z-index: 10;
}

/* Entry Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-entry {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0; /* Start hidden */
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ================= SERVICES TIMELINE ================= */
.services-timeline {
  background: #f9fbfd;
}

.timeline {
  position: relative;
  padding: 40px 0;
}

/* BLUE RECTANGLE STRIP */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 100%;
  background: #dbeff8; /* Light blue strip */
  border-radius: 20px;
  z-index: 0;
}

/* ITEM */
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 80px 0;
  z-index: 1;
}

/* LEFT / RIGHT ALIGNMENT */
.timeline-item.left {
  justify-content: flex-end;
  padding-right: 55%;
}zz
.timeline-item.right {
  justify-content: flex-start;
  padding-left: 55%;
}

/* CONTENT BOX */
.timeline-item .content {
  width: auto;
  flex: 1;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0,0,0,0.03);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-item .content h5 {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--env-dark);
}

/* IMAGE BOX */
.timeline-item .image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 25%;
  margin: 0;
  z-index: 5;
}

.timeline-item.left .image {
  left: 52%;
}

.timeline-item.right .image {
  right: 52%;
}

.timeline-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .timeline::before {
    width: 80px;
  }
  .timeline-item {
    flex-direction: column;
    text-align: center;
    margin: 50px 0;
  }
  .timeline-item .content,
  .timeline-item .image {
    width: 90%;
    margin: 15px 0;
  }
  .timeline-item.left,
  .timeline-item.right {
    justify-content: center;
    padding: 0;
  }
  .timeline-item .image {
    position: relative;
    left: auto;
    right: auto;
    transform: none;
    width: 90%;
    margin: 15px 0;
  }
  .timeline-item img {
    height: 250px;
  }
}
