/* =====================
   Groups Page Styling
   ===================== */

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #333;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  background: url("companies-bg.jpg") center center / cover no-repeat; /* Replace with your actual image */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dark gradient overlay (top to bottom) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

/* "COMPANIES" heading — outlined text */
.hero h1 {
  position: relative;
  z-index: 2;
  font-size: 120px;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: transparent;
  -webkit-text-stroke: 2px #ffffff; /* white stroke */
  font-weight: 700;
  text-align: center;
  opacity: 0.9;
}

/* Content Section */
.content {
  padding: 80px 10%;
  text-align: center;
}

.content h2 {
  font-size: 28px;
  color: #222;
  margin-bottom: 20px;
}

.content p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 80px;
    -webkit-text-stroke: 1.5px #ffffff;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 55px;
    letter-spacing: 4px;
    -webkit-text-stroke: 1px #ffffff;
  }

  .content {
    padding: 60px 8%;
  }
}

.hero {
  position: relative;
  height: 90vh;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 8%;
  color: #fff;
}

.hero-content {
  max-width: 650px;
}

#sliding-text {
  font-size: 70px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 3px;
  text-align: left;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: transform 0.7s ease, opacity 0.7s ease;
}

#sliding-text.show {
  opacity: 1;
  transform: translateX(0);
}

#sliding-text.hide {
  opacity: 0;
  transform: translateX(-50px);
}

#company-number {
  font-size: 26px;
  font-weight: 700;
  color: #00e0c6;
  margin-bottom: 15px;
  display: block;
  text-align: left;
}


#explore-btn {
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid #00e0c6;
  padding-bottom: 5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

#explore-btn span {
  transition: transform 0.3s ease;
  margin-left: 6px;
}

#explore-btn:hover span {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  #sliding-text {
    font-size: 42px;
  }
}


.hero-text-box {
  position: absolute;
  top: 45%;
  left: 7%;   /* ✅ move more left */
  transform: translateY(-50%);
  color: #fff;
  z-index: 3;
  width: 45%; /* ✅ prevent shifting */
}

#company-number {
  font-size: 30px;
  font-weight: 700;
  color: #00e0c6;
  margin-bottom: 15px;
}

#sliding-text {
  font-size: 60px; /* ✅ more impactful */
  font-weight: 800;
  font-family: 'Poppins', sans-serif; /* ✅ modern font */
  line-height: 1.2;
  opacity: 0;
  transform: translateX(70px);
  transition: 0.7s ease;
}

#sliding-text.show {
  opacity: 1;
  transform: translateX(0);
}

#sliding-text.hide {
  opacity: 0;
  transform: translateX(-70px);
}

.hero .explore-btn {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 2px solid #fff;
  padding: 12px 30px;
  border-radius: 35px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: 0.3s ease;
}

.hero .explore-btn:hover {
  background: #00e0c6;
  color: #000;
}

#company-text {
  opacity: 0;
  transition: opacity .6s ease-in-out, transform .6s ease-in-out;
  transform: translateY(10px);
}

#company-text.show {
  opacity: 1;
  transform: translateY(0);
}

#company-text.hide {
  opacity: 0;
  transform: translateY(-10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

/* Hero Section */
.companies-hero {
    width: 100%;
    height: 90vh;
    background: url("images/hero-groups2.jpg")
    center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Gradient Overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

/* Title */
.companies-hero h1 {
    position: relative;
    font-size: 120px;
    font-weight: 900;
    letter-spacing: 10px;
    color: transparent;
    -webkit-text-stroke: 3px #ffffff;
    text-transform: uppercase;
}

/* Content Section */
.content {
    padding: 60px 10%;
    text-align: center;
    color: #222;
}

.content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .companies-hero {
        height: 45vh;
    }
    .companies-hero h1 {
        font-size: 55px;
        -webkit-text-stroke: 2px #fff;
    }
    .content h2 {
        font-size: 24px;
    }
}


/* =========================
   Section Heading Styling
   ========================= */
.section-heading {
  text-align: center;
  padding: 100px 10% 60px;
  background: url(images/megaproject-groups.jpg) center/cover no-repeat;
  position: relative;
}


.heading-container h4 {
  color: #1abc9c;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.heading-container h2 {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.heading-container p {
  font-size: 16px;
  color: #fff;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-heading {
    padding: 80px 8% 40px;
  }

  .heading-container h2 {
    font-size: 32px;
  }

  .heading-container p {
    font-size: 15px;
  }
}


/* =========================
   Info Section Styling
   ========================= */
.info-section {
  padding: 100px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1300px;
  width: 100%;
}

.info-text {
  flex: 1;
}

.info-text h4 {
  font-size: 20px;
  font-weight: 600;
  color: #1abc9c;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-text h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.info-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.info-image {
  flex: 1;
  text-align: right;
}

.info-image img {
  width: 100%;
  height: 80vh;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.info-image img:hover {
  transform: scale(1.03);
}

/* Alternate Layout (reverse order) */
.info-section.alternate .info-container {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 992px) {
  .info-container {
    flex-direction: column;
    text-align: center;
  }

  .info-image {
    text-align: center;
  }

  .info-image img {
    width: 90%;
  }

  .info-text {
    padding: 20px 0;
  }
}

ul {
  padding-left: 30px;
}

a {
  color: #000;
}

a:hover {
  color: #1abc9c;
}




/* ==============================
   ACCREDITATION SECTION STYLING
================================= */
.accreditation-section {
  position: relative;
  background: url("images/megaprojects-groups1.jpg") center/cover no-repeat;
  text-align: center;
  color: #fff;
  padding: 140px 10%;
  overflow: hidden;
}

/* Background overlay */
.accreditation-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Content */
.accreditation-content {
  position: relative;
  z-index: 2;
}

.accreditation-content h4 {
  color: #00e0c6;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.accreditation-content h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #fff;
}

/* Accreditation Logos */
.accreditation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.accreditation-logos img {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.accreditation-logos img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Know More Button */
.know-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50px;
  padding: 12px 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.know-more-btn:hover {
  background: #00e0c6;
  color: #000;
  border-color: #00e0c6;
}

.know-more-btn span {
  transition: transform 0.3s ease;
}

.know-more-btn:hover span {
  transform: translateX(6px);
}

/* Responsive */
@media (max-width: 992px) {
  .accreditation-content h2 {
    font-size: 32px;
  }

  .accreditation-logos img {
    width: 80px;
  }
}

.accreditation-section a {
  color: #fff;
}

.accreditation-section  {
  font-size: 20px;
}


/* ================================
   RESPONSIVE RULES (1440px → 360px)
================================ */

/* Large Screens (≤1440px) */
@media (max-width: 1440px) {
  .hero h1, 
  .companies-hero h1 {
    font-size: 100px;
  }

  .info-image img {
    height: 70vh;
  }
}

/* Medium Screens (≤1200px) */
@media (max-width: 1200px) {
  .hero h1, 
  .companies-hero h1 {
    font-size: 85px;
  }

  .info-container {
    gap: 40px;
  }

  .info-text h2 {
    font-size: 30px;
  }
}

/* Tablets (≤992px) */
@media (max-width: 992px) {
  .hero {
    height: 70vh;
    padding-left: 5%;
    text-align: center;
    justify-content: center;
  }

  .hero-text-box {
    width: 80%;
    left: 10%;
    top: 50%;
  }

  .hero h1, 
  .companies-hero h1 {
    font-size: 70px;
    -webkit-text-stroke: 1.5px #fff;
  }

  .section-heading {
    padding: 80px 8% 40px;
  }

  .info-container {
    flex-direction: column;
    text-align: center;
  }

  .info-image img {
    width: 85%;
    height: auto;
  }

  .accreditation-content h2 {
    font-size: 32px;
  }

  .accreditation-logos img {
    width: 80px;
  }
}

/* Small Tablets (≤768px) */
@media (max-width: 768px) {
  .hero h1, 
  .companies-hero h1 {
    font-size: 55px;
    letter-spacing: 4px;
  }

  #sliding-text {
    font-size: 38px;
  }

  .info-text h2 {
    font-size: 26px;
  }

  .info-text p {
    font-size: 15px;
  }

  .accreditation-section {
    padding: 100px 6%;
  }

  .accreditation-content h2 {
    font-size: 28px;
  }

  .accreditation-logos img {
    width: 70px;
  }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
  .hero {
    height: 60vh;
    padding-left: 0;
  }

  .hero h1, 
  .companies-hero h1 {
    font-size: 45px;
    letter-spacing: 2px;
  }

  .hero-text-box {
    width: 90%;
    left: 5%;
  }

  #company-number {
    font-size: 22px;
  }

  #sliding-text {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero .explore-btn {
    font-size: 16px;
    padding: 10px 25px;
  }

  .info-section {
    padding: 60px 5%;
  }

  .info-text h2 {
    font-size: 24px;
  }

  .section-heading {
    padding: 60px 5% 30px;
  }

  .heading-container h2 {
    font-size: 26px;
  }

  .heading-container p {
    font-size: 14px;
  }

  .accreditation-content h2 {
    font-size: 26px;
  }

  .accreditation-logos img {
    width: 60px;
  }
}

/* Extra Small (≤400px) */
@media (max-width: 400px) {
  .hero h1, 
  .companies-hero h1 {
    font-size: 38px;
    -webkit-text-stroke: 1px #fff;
  }

  #sliding-text {
    font-size: 26px;
  }

  .info-text h2 {
    font-size: 20px;
  }

  .accreditation-content h2 {
    font-size: 22px;
  }
}

/* Smallest Devices (≤360px) */
@media (max-width: 360px) {
  .hero h1, 
  .companies-hero h1 {
    font-size: 32px;
  }

  #sliding-text {
    font-size: 22px;
  }

  .hero .explore-btn {
    font-size: 14px;
    padding: 8px 20px;
  }

  .accreditation-logos img {
    width: 50px;
  }
}
