  /* === GLOBAL RESET & BASE STYLES === */
  *,
  *::before,
  *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

  html {
  scroll-behavior: smooth;
  }

  body {
  position: relative;
  width: 100%;
  height: 110vh;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: url("../Images/building.jpg") center/cover no-repeat #fff;
  overflow-x: hidden;
  color: #4d4d4d;
  }

  body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
  }

  /* === LAYOUT CONTAINERS === */
  main {
  display: flex;
  justify-content: center;
  align-items: center;
  }

  .container {
  display: flex;
  gap: 20px;
  }

  .container1 {
  flex: 1;
  border-right: 10px solid;
  padding-right: 20px;
  }

  .container2,
  .container3 {
  flex: 2;
  }

  .container2 {
  border-bottom: 10px solid #4d4d4d;
  }

  .container3 {
  border-bottom: 10px solid #4d4d4d;
  color: #4d4d4d;
  }

  /* === NAVBAR === */
  .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 15px 20px;
  position: relative;
  z-index: 999;
  }

  .nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  }

  .nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  }

  .nav-menu li a {
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding-bottom: 4px;
  }

  .nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: white;
  transition: width 0.3s ease;
  }

  .nav-menu a:hover::after {
  width: 100%;
  }

  .hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  position: absolute;
  top: 15px;
  right: 20px;
  }

  /* === ASIDE SECTION === */
  #home {
  margin-bottom: 50vh;
  }

  .aside-inner {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  }

  .aside-container {
  display: flex;
  align-items: center;
  }

  .logo-left img {
  height: 150px;
  width: auto;
  margin: 130px 20px 0 40px;
  position: relative;
  z-index: 10;
  }

  .company-name {
  font-size: 9vh;
  font-weight: 300;
  color: white;
  letter-spacing: 0.5vh;
  margin: 130px 0 0 40px;
  position: relative;
  max-width: 90%;
  line-height: 1.1;
  }

  .company-name p {
  font-size: inherit;
  font-weight: 300;
  letter-spacing: 0.5vh;
  color: white;
  }

  .company-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  }

  .company-description {
  position: relative;
  font-size: 8vh;
  font-weight: 350;
  top: 50px;
  left: 50px;
  letter-spacing: 0.5vh;
  color: white;
  line-height: normal;
  }

  .technology {
  color: #f74f6b;
  }

  .solutions {
  color: #f4b942;
  }

  .company-catchy-phrase {
  position: relative;
  font-size: 27px;
  font-weight: 100;
  letter-spacing: 0.5vh;
  color: white;
  margin: 60px 0 0 50px;
  }

  .join {
  color: white;
  letter-spacing: 0.5vh;
  font-weight: 500;
  padding: 10px 20px;
  margin: 20px 0 0 50px;
  width: fit-content;
  text-decoration: none;
  border-radius: 10px;
  border: solid #f74f6b;
  display: block;
  z-index: 10;
  }

  .join:hover {
  background-color: white;
  color: black;
  }

  /* === SERVICE SECTION === */
  #service {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
  }
  .service-header {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #f74f6b;
  }
  .images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  }
  .tooltip {
  position: relative;
  width: 220px;
  border: 3px solid #f74f6b;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  }

  .tooltip img {
  max-width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid #f74f6b;
  }

  .tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 16px;
  position: absolute;
  top: 100%; /* Tooltip below the image */
  left: 60%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  margin-top: 10px; 

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  }

  .tooltip:hover .tooltiptext {
  visibility: visible;
  }

  .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%; /* arrow at the top of tooltip */
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
  }

  .tooltiptext p {
  margin: 6px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  }

  /* === TECHNOLOGIES WE USE === */
  .center-container {
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
  width: 100%;
  }

  #technologies-use {
  background-color: #1a1a1a;
  color: white;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  }

  .techuse-header {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
  letter-spacing: 2px;
  border-bottom: 2px solid #f74f6b;
  padding-bottom: 10px;
  }

  /* Tabs */
  .tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 15px;
  }

  .tab {
  cursor: pointer;
  padding: 12px 20px;
  border: 1px solid #f74f6b;
  background-color: transparent;
  color: white;
  margin: 5px;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s ease;
  }

  .tab:hover,
  .tab.active {
  background-color: #f74f6b;
  color: #fff;
  font-weight: bold;
  }

  /* Tab Content */
  .tab-content {
  background-color: #1a1a1a;
  border-top: 2px solid #f74f6b;
  padding: 20px;
  }

  .tab-pane {
  display: none;
  }

  .tab-pane.active {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-start;
  font-size: 1rem;
  }

  .techlist {
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex: 1 1 200px;
  }

  .techlist li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  }

  .techlist li::before {
  content: "•";
  color: #f74f6b;
  font-weight: bold;
  position: absolute;
  left: 0;
  }

  /* === CAROUSEL === */
  #projects {
  background-color: white;
  }

  .carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
  }

  .carousel-inner {
  position: relative;
  width: 100%;
  }

  .carousel-item {
  display: none;
  width: 100%;
  height: auto;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  }

  .carousel-item.active {
  display: flex;
  }

  .carousel-item.command-center.active,
  .carousel-item.smart-center.active {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 30px;
  flex-wrap: wrap;
  text-align: left;
  }

  .carousel-item img {
  max-width: 90%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
  }

  .command-text,
  .smart-text {
  font-size: 18px;
  padding: 10px;
  color: #333;
  }

  .c3header,
  .smart-header {
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-size: 22px;
  }

  .Object,
  .Vehicle,
  .People,
  .Smart {
  color: #f74f6b;
  font-size: 20px;
  font-weight: 600;
  margin-top: 20px;
  }

  .cThree,
  .vehicleText,
  .peopleText,
  .smart {
  margin: 10px 0;
  padding: 0 10px;
  text-align: left;
  max-width: 800px;
  margin-inline: auto;
  }

  .cThree li,
  .vehicleText li,
  .peopleText li,
  .smart li {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 5px;
  font-size: 16px;
  }

  /* Carousel Controls */
  .carousel-control-prev,
  .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: black;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  }

  .carousel-control-prev {
  left: 10px;
  }

  .carousel-control-next {
  right: 10px;
  }

  /* Indicators */
  .carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  }

  .carousel-indicators button {
  width: 10px;
  height: 10px;
  background-color: #bbb;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  }

  .carousel-indicators button.active {
  background-color: #333;
  }

  /* === ABOUT US (container1 child blocks) === */
  .years25,
  .years15,
  .years12,
  .years10 {
  display: flex;
  align-items: center;
  gap: 10px;
  }

  .years25 img,
  .years15 img,
  .years12 img,
  .years10 img {
  width: 60px;
  height: 40px;
  }

  .child1 p,
  .child2 p,
  .child3 p,
  .child4 p {
  font-weight: bolder;
  }

  .child1,
  .child2,
  .child3 {
  margin-bottom: 10px;
  }

  .child2 div,
  .child4 div {
  text-align: end;
  }

  /* === ABOUT US (container2) === */
  .about-us h1 {
  color: gray;
  }

  .about-us span,
  .certified-professionals span,
  .why-get-certified span {
  color: red;
  }

  .container2 p {
  color: #595959;
  margin-bottom: 10px;
  }

  .short-border {
  display: block;
  width: 60px;
  height: 5px;
  background-color: gray;
  margin-bottom: 10px;
  border-radius: 5px;
  }

  .bestknowabout img,
  .why-get-certified img {
  width: 100%;
  height: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  }

  .three-columns {
  display: flex;
  gap: 10px;
  }

  .three-columns p {
  color: #4d4d4d;
  }

  .three-columns > div {
  flex: 1;
  background: #f9f9f9;
  }

  /* === CERTIFIED PROFESSIONALS (container3) === */
  .certified-professionals ul,
  .why-get-certified ul {
  padding-left: 20px;
  }

  ul {
  margin-top: 20px;
  }

  /* === FOOTER === */
  footer {
  position: relative;
  background-color: #1a1a1a;
  padding: 50px 20px;
  top: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  color: white;
  }

  .contacts-container,
  .social-container {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 200px;
  }

  .contact-us {
  font-size: 24px;
  font-weight: bold;
  }

  .contact-us,
  .contact-text,
  .contacts-container p,
  .social-container p,
  .social-media,
  .social-text {
  color: white;
  margin: 0;
  }

  .home-item {
  display: flex;
  align-items: center;
  gap: 10px;
  }

  .telephone i,
  .envelope i,
  .location i,
  .fb i {
  color: white;
  font-size: 24px;
  }

  .cebu {
  position: relative;
  left: 31px;
  }

  /* === MEDIA QUERIES === */
  @media (max-width: 1024px) {
  .container {
  flex-direction: column;
  }

  .container1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: none;
  padding-right: 0;
  }

  .child1,
  .child2,
  .child3,
  .child4 {
  text-align: center;
  }

  .child2 div,
  .child4 div {
  text-align: center;
  }

  .three-columns {
  flex-direction: column;
  }

  .three-columns > div {
  width: 100%;
  padding: 10px;
  }

  .bestknowabout img,
  .why-get-certified img {
  width: 100%;
  height: auto;
  }

  .certified-professionals ul,
  .why-get-certified ul {
  padding-left: 20px;
  }

  .aside-container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  }

  .logo-left img {
  margin: 30px 0 0 0;
  height: 100px;
  }

  .company-name {
  position: relative;
  left: 5px;
  margin: 25px 0 0 40px;
  font-size: 6vh;
  }

  .company-description {
  top: 20px;
  left: 0;
  font-size: 6vh;
  }

  .company-catchy-phrase {
  top: 30px;
  left: 0;
  font-size: 20px;
  }

  .join {
  position: relative;
  left: 0;
  top: 40px;
  padding: 8px 20px;
  font-size: 16px;
  }

  .images img {
  width: 200px;
  height: 200px;
  }

  .tab {
  padding: 10px 15px;
  font-size: 0.95rem;
  }

  .tab-pane.active,
  #Dekstop {
  gap: 30px;
  font-size: 18px;
  }
  }

  @media (max-width: 820px) {
  .hamburger {
  display: block;
  }
  .nav-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  text-align: center;
  position: static;
  transform: none;
  }
  .nav-menu.show {
  display: flex;
  }
  .aside-inner {
  display: flex;
  text-align: center;
  justify-content: center;
  max-width: 90%;
  }
  }

  @media (max-width: 780px) {
  footer {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 10px;
  gap: 30px;
  }

  .contacts-container,
  .social-container {
  margin-left: 0;
  align-items: center;
  width: 100%;
  }

  .home-item {
  justify-content: center;
  text-align: center;
  }

  .cebu {
  left: 0;
  text-align: center;
  }

  .contact-us,
  .social-media {
  font-size: 20px;
  }

  .contact-text,
  .social-text {
  padding: 0 10px;
  }
  }

  @media (max-width: 768px) {
  .hamburger {
  display: block;
  }

  .nav-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  text-align: center;
  position: static;
  transform: none;
  }

  .nav-menu.show {
  display: flex;
  }

  .company-name {
  position: relative;
  font-size: 4vh;
  left: -1px;
  top: 5px;
  }

  .company-text {
  flex-direction: column;
  align-items: center;
  text-align: center;
  }

  .company-description {
  position: relative;
  top: -5px;
  font-size: 4vh;
  left: 2px;
  }

  .solutions {
  text-align: center;
  letter-spacing: 2px;
  font-weight: 500;
  margin: 10px auto;
  width: 100%;
  }

  .company-catchy-phrase {
  font-size: 18px;
  left: 15px;
  top: 30px;
  position: relative;
  }

 .tooltip {
    width: 100%;
    max-width: 300px;
  }

  .tooltip .tooltiptext {
    width: 90vw;
    left: 50%;
    transform: translateX(-50%);
    max-width: 280px;
    font-size: 0.8rem;
  }

  .tooltiptext::after {
    left: 50%;
  }
  .images {
    flex-direction: column;
    align-items: center;
  }
  }

  @media (max-width: 480px) {
  .service-header {
    font-size: 1.8rem;
  }

  .tooltiptext p {
    font-size: 0.75rem;
  }
   .images {
    flex-direction: column;
    align-items: center;
  }
}
