* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
}

/* ================= TOP BAR ================= */
.top-bar {
  background: #3689dc;
  height: 35px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
}

.top-bar a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.top-bar a:hover {
  color: #ddd;
}

.top-bar i {
  margin-right: 5px;
}

/* ================= HEADER ================= */
.header {
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}


.logo {
  position: absolute;
  top: 2px;
  left: 30px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 65px;      /* Desktop size */
  width: auto;
  transition: 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: 42px;
  list-style: none;
}

.nav-menu a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu a:hover {
  color: #3689dc;
}

/* ================= DROPDOWN ================= */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 140%;
  left: 0;
  width: 210px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.dropdown.active {
  max-height: 500px;
}

.dropdown {
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.dropdown.active {
  opacity: 1;
}

.dropdown li a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}

/* ================= SUB HEADER ================= */
.sub-header {
  background: #3689dc;
  padding: 6px 30px;
  
}

.sub-header p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 50%;
  height: 120vh;
  background: #3689dc;
  padding: 80px 25px;
  transition: right 0.4s ease;
  border-radius: 8px;
  z-index: 2000;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.mobile-submenu {
  display: none;
  margin-top: 10px;
  margin-left: 15px;
}

.mobile-submenu.active {
  display: block;
}

.menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .top-bar,
  .navbar {
    display: none;
  }

    .logo {
  display: flex;
  position: absolute;
  top: 10px;
  left: 30px;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

  .hamburger {
    display: flex;
  }
}

@media (min-width: 769px) {
  .mobile-menu,
  .hamburger {
    display: none;
  }
}

/*=======hero1=======*/
.hero1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.443), rgba(0, 0, 0, 0.406)), url("images/herico-about-backgro-page1.png");
    background-size: cover;       /* Fill the entire area */
    background-position: center;  /* Center the image */
    background-repeat: no-repeat; /* No repeating */  
    color: #ffffff;
    height: 500px;
    padding-top: 20px;
}

.hero1 h1 {
    text-align: center;
  font-size: 70px;
  font-weight: 400;
  margin-top: 180px;
  line-height: 1.1;
  text-decoration: underline;
  text-underline-offset: 25px; /* space */
  text-decoration-thickness: 3px;
  
}

/*======hero2=====*/
.hero2 {
    background-color: #ffffff;
    color: #000000;
    height: 400px;
}


.about-sections {
   width: 100%;
   display: flex;
   gap: 100px;
}

.column-1 {
  width: 500px;
  height: 300px;
  border: 2px solid #ffffff;
  margin-top: 60px;
  margin-left: 90px;
}

.column-1 p {
  font-size: 32px;
  font-weight: 200;
  margin-right: 100px;
}
 

.column-2 {
  width: 500px;
  height: 300px;
  border: 2px solid #ffffff;
  margin-top: 60px; 
}

.column-2 h4 {
   font-size: 16px;
   font-weight: 700;
   text-decoration: underline;
  text-underline-offset: 8px; /* space */
  text-decoration-thickness: 2px;
}

.column-2 p {
  font-size: 17px;
  margin-top: 25px;
  line-height: 1.6;
}

/*======hero3=====*/
.hero3 {
  height: 100vh;
  background: linear-gradient(135deg, #000000, #252525, #454545);
  clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
  display: flex;
  align-items: center;
  padding: 0 10%;
  color: white;
}

.core-products {
  color: #fff;
  padding: 20px;
  width: 100%;
}

.section-title {
  font-size: 30px;
  margin-bottom: 60px;
 
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 50px;
}

.product-box {
  position: relative;
  padding-left: 50px;
  width: 300px;
}

.product-box .number {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 40px;
  font-weight: 700;
  color: #f2c200;
}

.product-box h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.product-box p {
  font-size: 16px;
  line-height: 1.7;
  
}

/*=====hero4=====*/
.hero4 {
  background-color: #ffffff;
  color: #000000;
  height: 200px;
}

.hero4 h3 {
  font-size: 35px;
  font-weight: 400;
  margin-left: 60px;
  margin-bottom: 0;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 90px;
}

.certificate-card {
  text-decoration: none;
  color: #000;
  width: 90%;
  margin-left: 20px;
  transition: 0.3s;
}

.certificate-card img {
  width: 100%;
  height: 450px;
  object-fit: center;
  
}

.certificate-card span {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  font-family: 'nunito';
  text-align: center;
}


.hero5 {
  background-color: #3689dc;
  color: #ffffff;
  height: 200px;
  display: flex;
}

.hero5 h2 {
  font-size: 25px;
  font-weight: 200;
  margin-top: 90px;
  margin-left: 400px;
  
}
.btn-1 {
  font-size: 12px;
  font-weight: 400;
  padding: 15px 18px;
  background-color: #3689dc;
  color: #ffffff;
  text-decoration: none;
  border:  2px solid#ffffff;
  border-radius: 25px;
  margin-top: 85px;
  margin-bottom: auto;
  transition: 0.5s ease;
}

.btn-1:hover {
  background-color: #ffffff;
  color: #000000;
}

@media (max-width: 1024px) {

  /* ===== HERO 1 ===== */
  .hero1 {
    height: 400px;
  }

  .hero1 h1 {
    font-size: 55px;
    margin-top: 150px;
  }

  /* ===== HERO 2 ===== */
  .hero2 {
    height: auto;
    padding-bottom: 40px;
  }

  .about-sections {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .column-1,
  .column-2 {
    width: 80%;
    margin-left: 0;
    height: auto;
  }

  .column-1 p {
    margin-right: 0;
    font-size: 28px;
  }

  /* ===== HERO 3 ===== */
  .hero3 {
    height: auto;
    clip-path: none;
    padding: 80px 5%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .product-box {
    width: 100%;
  }

  /* ===== HERO 4 ===== */
  .hero4 {
    height: auto;
    padding-bottom: 60px;
  }

  .certificate-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* ===== HERO 5 ===== */
  .hero5 {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 40px 0;
  }

  .hero5 h2 {
    margin: 0 0 20px 0;
  }

  .btn-1 {
    margin-top: 0;
  }
}


@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* ===== HERO 1 ===== */
  .hero1 {
    height: 300px;
  }

  .hero1 h1 {
    font-size: 38px;
    margin-top: 120px;
    text-underline-offset: 15px;
  }

  /* ===== HERO 2 ===== */
  .hero2 {
    height: auto;
    padding: 30px 20px;
  }

  .about-sections {
    flex-direction: column;
    gap: 30px;
  }

  .column-1,
  .column-2 {
    width: 100%;
    margin: 0;
  }

  .column-1 p {
    font-size: 22px;
    margin-right: 0;
  }

  .column-2 h4 {
    font-size: 14px;
  }

  .column-2 p {
    font-size: 15px;
  }

  /* ===== HERO 3 ===== */
  .hero3 {
    height: auto;
    clip-path: none;
    padding: 60px 20px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 40px;
    text-align: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .product-box {
    width: 100%;
  }

  /* ===== HERO 4 ===== */
  .hero4 {
    height: auto;
    padding: 40px 20px;
  }

  .hero4 h3 {
    margin-left: 0;
    text-align: center;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }

  .certificate-card img {
    height: auto;
  }

  /* ===== HERO 5 ===== */
  .hero5 {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    text-align: center;
  }

  .hero5 h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
  }

  .btn-1 {
    margin: 0;
  }
}



.site-footer {
  background-color: #ffffff;
  color: #000000;
  height: 400px;
}

.footer-section {
  display: flex;
  margin: 60px;
  gap: 50px;

}

.column-a {
  width: 700px;
  height: 300px;
  border: 2px solid#ffffff;
} 


.column-a h3 {
    font-size: 40px;
    font-weight: 500;
    margin-left: 10px;
}

.column-a p {
  font-size: 17px;
  font-weight: 500;
  margin-left: 10px;
  margin-top: 60px;
  line-height: 1.5;
}

.column-a a {
  color: #000000;
  text-decoration: none;
}
.column-b {
  width: 400px;
  height: 300px;
  border: 2px solid#ffffff;
}

.column-b h4 {
   font-size: 28px;
    font-weight: 600;
    margin-left: 10px;
}

.column-b p {
   font-size: 17px;
  font-weight: 500;
  margin-left: 10px;
  margin-top: 30px;
  line-height: 1.5;
}

.column-b a {
  display: block;
  color: #000000;
  text-decoration: none;
  margin-bottom: 5px;
  margin-left: 10px;

}


/* ---------- Mobile Responsive Footer ---------- */
@media (max-width: 768px) {

  .site-footer {
    height: auto; /* allow footer to expand */
    padding-bottom: 30px;
  }

  .footer-section {
    flex-direction: column; /* stack columns */
    margin: 20px;
    gap: 30px;
  }

  .column-a,
  .column-b {
    width: 100%;
    height: auto;
  }

  .column-a h3 {
    font-size: 28px;
    margin-left: 0;
    text-align: left;
  }

  .column-a p {
    font-size: 15px;
    margin-left: 0;
    margin-top: 20px;
  }

  .column-b h4 {
    font-size: 22px;
    margin-left: 0;
  }

  .column-b p {
    font-size: 15px;
    margin-left: 0;
    margin-top: 15px;
  }

  .column-b a {
    margin-left: 0;
    font-size: 15px;
  }
}

/* ---------- Extra Small Devices (phones < 480px) ---------- */
@media (max-width: 480px) {

  .footer-section {
    margin: 15px;
  }

  .column-a h3 {
    font-size: 24px;
  }

  .column-b h4 {
    font-size: 20px;
  }

  .column-a p,
  .column-b p,
  .column-b a {
    font-size: 14px;
  }
}
