/* =========================
   GLOBAL STYLES
   ========================= */
body {
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
  font-family: Titillium Web;
  font-weight: 400;
  line-height: 1.6;
}


/* =========================
   INDUSTRIES INTRO SECTION
   ========================= */
.industries-intro {
  background: 
    radial-gradient(ellipse at top left, rgba(0, 178, 255, 0.15) 0%, transparent 40%) top -50px left -50px,
    radial-gradient(ellipse at bottom right, rgba(0, 178, 255, 0.15) 0%, transparent 40%) bottom -50px right -50px,
    linear-gradient(90deg, #0A0A0A 0%, #101A19 100%);
  background-repeat: no-repeat;
  padding: 110px 5% 60px;
  position: relative;
  z-index: 1;
  border-radius: 0 0 80px 80px;
  color: #fff;
  text-align: center;
}

.industries-intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, #000 100%);
  pointer-events: none;
}

/* =========================
   Carousel Grid Layout
   ========================= */
.industries-carousel {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.industries-grid-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
  justify-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 100px auto 10px;
}

/* =========================
   Text Styling
   ========================= */
.industries-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
}

.industries-tag {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00DD87;
  display: inline-flex;
  align-items: center;
  text-shadow: 0 0 6px rgba(0, 178, 255, 0.6),
               0 0 12px rgba(0, 178, 255, 0.4);
}

.industries-heading {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  margin: 10px 0 10px;
  color: #fff;
}

.industries-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: #aaa;
  max-width: 800px;
}

/* =========================
   Images Styling
   ========================= */
.industries-images {
  width: 400px;
  height: 400px;
  margin: 0 auto;
  position: relative;
}

.industries-images img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.industries-images img:hover {
  transform: translateY(-6px);
}

/* =========================
   INDUSTRIES MENU (PILLS)
   ========================= */
.industries-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  max-width: 2000px;
  margin: 0 auto;
  padding: 15px 5% 0 5%;
  z-index: 2;
}

.industries-menu-item {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #00ff005f;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  z-index: 3;
  width: 210px;
}

.industries-menu-item:hover,
.industries-menu-item.active {
  background: #fff;
  color: #000;
  border-color: #489b1e; 
  font-weight: 600;
  transform: translateY(-2px);
  opacity: 0.95;
}

/* =========================
   MAIN INDUSTRIES SECTION
   ========================= */
.industries-section {
  width: 100%;
  /* display: flex; */
  align-items: flex-start;
  justify-content: center;
  background-color: #000;
  padding: 5px 5% 2px;
  box-sizing: border-box;
  margin-bottom: 65px;
}

.industries-section-inner {
  width: 100%;
  max-width: 1400px;
  padding: 0 5%;
  box-sizing: border-box;
}

.industries-grid {
  display: grid;
  grid-template-columns: 0.6fr 2.2fr 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
  background-color: #000;
  padding: 15px 15px;
  border-radius: 16px;
  box-sizing: border-box;
}

.industries-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.industries-grid li {
  cursor: default;
  color: #bbb;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 0;
  transition: none;
}

.industries-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 15px 0;
  color: #fff;
}

.industries-content p {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  color:  #bbb;
  margin: 0 0 15px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.industries-submenu ul {
  list-style: none;
  padding-left: 10px;
  margin: 0;
  display: block;
  width: 100%;
}

.industries-submenu li {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 8px 0;
  cursor: pointer;
  transition: color 0.3s ease, font-weight 0.3s ease;
  display: block;
}

.industries-submenu li:hover,
.industries-submenu li.active {
  color: #6BB745;
  font-weight: 600;
}

.industries-image img {
  object-fit: cover;
  display: block;
  margin: 0 auto;
  width: 300.114px;
  height: 320px;
  border-radius: 17.565px;
  border: 1.756px solid #8A8A8A;
}

/* =========================
   ROTATOR (SLIDES)
   ========================= */
.industries-rotator {
  position: relative;
  margin: 30px auto 0 auto;
  background: #000;
  padding: 30px 20px;
  color: #fff;
  max-width: 100%;
  display: none; /* will be toggled via JS */
  z-index: 2;
  overflow: visible; /* allow full slide height */
  margin-left: calc((0.3 / 2.8 + 1 / 2.1) * 27%);
}

.industries-slide {
  display: none; /* hide inactive slides */
  flex-direction: row; /* image left, content right */
  align-items: flex-start;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  width: 100%;
  position: relative;
  flex-wrap: wrap; /* allow text wrapping */
}

.industries-slide.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* .slide-left {
  flex: 0 0 30%; 
  max-width: 30%;
}  */

.slide-left img {
  border-radius: 12px;
  width: 260px;        /* your exact width */
  height: 240px;       /* your exact height */
  object-fit: cover;       /* keeps proper cropping */
  border-radius: 13.322px; /* your new rounded corners */  
}

.slide-right {
  /* flex: 1 1 70%; 70% width for content */
  max-width: 60%;
  text-align: left;
  box-sizing: border-box;
}

.industries-slide h4 {
  color: #6BB745;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.industries-slide p,
.industries-slide li {
  font-size: 14px;
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: normal;
}

.industries-slide ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
  width: 100%;
}

.industries-slide li {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 8px;
}

/* ROTATOR ARROWS */
.rotator-arrows {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  z-index: 5;
}

.industries-arrow {
  cursor: pointer;
  user-select: none;
  width: 30px;         /* adjust size as needed */
  height: 30px;
  transition: transform 0.3s ease;
  background-color: #ffffff;
}

.industries-arrow img {
  display: block;
  width: 100%;
  height: 100%;
}

.industries-arrow-left{
transform: rotate(180deg);
}

.industries-arrow:hover {
  transform: scale(1.2);
  background: #00DD87;
}

.industries-arrow-left:hover {
  transform: rotate(180deg) scale(1.2);
  background: #00DD87;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
   ========================= */
@media screen and (max-width: 1024px) {
  .industries-slide {
    flex-direction: column; /* stack image above content on smaller screens */
  }

  .slide-left,
  .slide-right {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .slide-left img {
    max-height: 300px;
    margin-bottom: 20px;
  }
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */
/* Large Screens (>1200px) */
@media(min-width:1025px) and (max-width:1399px){
  .industries-intro {
    padding: 70px 5% 40px;
  }
}

/* Tablet / iPad landscape: center only the tag, keep other text left */
@media (max-width: 1024px) {
  .industries-grid {
    grid-template-columns: 0.6fr 2fr 0.8fr;
  }
  .industries-intro {
    padding: 60px 5% 40px;
  }

  .industries-grid-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: start; /* align content to left */
  }

  .industries-tag {
    display: block;
    margin: 0 auto 10px;
    text-align: center;
  }

   .industries-menu {
    padding-left: 5%;
   }

  /* Keep all other text left-aligned */
  .industries-text h2,
  .industries-text h3,
  .industries-text p {
    text-align: left;
  }

  .industries-images {
    width: 400px;
    height: 400px;
  }
}

/* iPads portrait / small tablets */
@media (max-width: 992px) {
  .industries-intro {
    padding: 60px 5% 30px;
  }

  .industries-grid-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: start;
  }

  .industries-tag {
    display: block;
    margin: 0 auto 10px;
    text-align: center;
  }

   .industries-menu {
     padding-left: 5%;
  }

  .industries-text h2,
  .industries-text h3,
  .industries-text p {
    text-align: left;
  }

  .industries-images {
    width: 400px;
    height: 400px;
  }

  .industries-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    text-align: left;
  }

  .industries-rotator {
    padding: 25px;
  }

  .industries-slide {
    flex-direction: column;
    gap: 10px;
  }

  .industries-slide img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
  }
    .industries-rotator{
    padding: 2px;
    margin: 0 20px;  /* centers the block horizontally */
    width: fit-content; 
  }
  .industries-slide img{
    width: 40%;
    margin: 0 230px;
  }
  .rotator-arrows{justify-content: center;}
  
}

/* Mobile */
@media (max-width: 768px) {
  .industries-intro {
    padding: 50px 5% 25px;
  }

  .industries-grid-wrap {
    gap: 25px;
    justify-items: center;
  }

  .industries-text {
    text-align: center;
  }

  .industries-images {
    width: 300px;
    height: 300px;
  }

.industries-menu {
padding-left: 5%;
}
  .industries-slide h4 {
    font-size: 16px;
  }

  .industries-slide p,
  .industries-slide li {
    font-size: 14px;
  }

    .industries-rotator{
    padding: 2px;
    margin: 0 20px;  /* centers the block horizontally */
    width: fit-content; 
  }
  .industries-slide img{
    width: 50%;
    margin: 0 140px;
  }
  .rotator-arrows{justify-content: center;}
}

/* Small mobile */
@media (max-width: 480px) {
  .industries-intro {
    padding: 40px 5% 20px;
  }

  .industries-grid-wrap {
    gap: 20px;
    justify-items: center;
  }

  .industries-text {
    text-align: center;
  }

  .industries-images {
    width: 250px;
    height: 250px;
  }
  .industries-rotator{
    padding: 2px;
    margin: 0 20px;  /* centers the block horizontally */
    width: fit-content; 
  }
  .industries-slide img{
    width:70%;
    margin: 0 40px;
  }

  .rotator-arrows{justify-content: center;}

  .industries-slide h4 {
    font-size: 14px;
  }

  .industries-slide p,
  .industries-slide li {
    font-size: 12px;
  }

  .industries-arrow {
    font-size: 16px;
  }

  .industries-content + .industries-rotator {
    margin-top: -20px;
  }
}

/* Wide Screens (≥1400px) for better responsiveness on 1920px+ */
@media (min-width: 1400px) {
  /* .industries-intro { padding: 110px 5% 20px; } */

  .industries-grid-wrap {
    max-width: 1700px; /* Increase max-width to utilize wider screens */
    grid-template-columns: 2.5fr 1fr; /* Adjust grid to give more space to text */
    gap: 80px; /* Increase gap for better spacing */
    margin: 120px auto 10px;
  }

  .industries-text {max-width: 1200px; /* Allow text to expand more */  }

  .industries-heading {   font-size: 28px; /* Slightly larger heading for wide screens */ }

  .industries-sub {font-size: 1.1rem; /* Slightly larger subtext */}

  .industries-images {
    width: 500px; /* Larger image container */
    height: 500px;
  }

  .industries-grid {
    grid-template-columns: 0.5fr 4fr 1fr; /* Reduce first column width to bring sections closer */
    max-width: 1700px; /* Increase overall grid max-width */
    margin: 0 auto; /* Center the grid */
  }

  .industries-content {
    padding: 0 30px; /* More padding for content */
  }

  .industries-content h2 {
    font-size: 32px; /* Larger title */
  }

  .industries-content p {
    font-size: 16px; /* Larger paragraph text */
  }

  .industries-rotator {
    max-width: 1000px; /* Wider rotator */
    margin-left: 11%;;
  }

  .industries-slide {
    gap: 50px; /* More gap between image and text */
  }

  /* .slide-left {
    flex: 0 0 25%; /* Slightly larger image flex */
    /* max-width: 35%;
  } */

  /* .slide-right {
    flex: 1 1 75%; Adjust text flex accordingly
    max-width: 75%;
  } */

  .industries-slide h4 {
    font-size: 20px; /* Larger subheading */
  }

  .industries-slide p,
  .industries-slide li {
    font-size: 16px; /* Larger text */
  }
}
