@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #248e8e;
  --dark-color: #333;
  --container-normal: 1100px;
  --container-wide: 1400px;
  --container-narrow: 900px;
  --menu-text-color: #faf8f6;
  --button-bg-color: #248e8e;
  --text-color: #c7c7cc;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--menu-text-color);
}

ul {
  list-style: none;
}

img {
  height: 100%;
  max-width: 100%;
}

/* Utility Classes */
.bg-primary {
  background: var(--primary-color);
  color: #333;
}

.bg-dark {
  background: var(--dark-color);
  color: #fff;
}

.bg-dark .bg-primary {
  padding: 0 0.3rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid #333;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.btn:hover {
  background: #333;
  color: #fff;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.section-heading {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
}

#btn {
  padding: 1rem 2rem;
  border: 1px solid #333;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
#btn:hover {
  color: #fff;
}
/* Container */
.container {
  max-width: var(--container-normal);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-lg {
  max-width: var(--container-wide);
}

.container-sm {
  max-width: var(--container-narrow);
}

/* Header */
.header {
  height: 5rem;
  background-color: var(--dark-color);
  padding: 1.5rem;
}

.logo {
  cursor: pointer;
  color: #248e8e;
  width: 11rem; 
}
.logo:hover {
  background-color: #248e8e;
  border-radius: 5px;
}

.header .header-flex {
  display: flex;
  justify-content: space-between;
}

.header .main-menu {
  display: flex;
  gap: 1rem;
}

.header .main-menu a {
  padding: 0.5rem 1rem;
}

.header .main-menu a:hover {
  border-bottom: 1px solid var();
  transform: translateY(0);
  transition: 0.4s ease-in-out;
}
/*  menu hover effect */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;

  text-transform: uppercase;
  color: grey;
}
ul li {
  padding: 0 0.5em 0.25em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
}
ul li:hover {
  color: #fff;
}
ul li:before {
  content: '';
  position: absolute;
  inset: calc(100% - 2px) 0 0 0; /* 3px = the thickness */
  background: var(--button-bg-color); /* the color */
  scale: 0 1;
  transition: 0.6s, translate 0s 0.6s;
}
ul:hover li:before {
  scale: 1;
}
ul li:hover:before {
  translate: 0;
  transition: 0.6s;
}
ul:hover li:has(~ li:hover):before {
  translate: 100% 0;
  transition: 0.4s 0.4s, scale 0s 0.8s;
}
ul:hover li:hover ~ li:before {
  translate: -100% 0;
  transition: 0.4s 0.4s, scale 0s 0.8s;
}

/* gallery */
.gallery {
  text-align: center;
}

.gallery p,
h2,
h3 {
  margin-bottom: 1rem;
}

.gallery-flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery-item {
  width: calc(33.333% - 20px);
  border-radius: 10px;
}

.gallery-item img {
  border-radius: 10px;
}

.gallery-item:hover {
  opacity: 0.9;
}
/* Carousel*/
.carousel img {
  height: 50rem;
}

.carousel {
  /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); */
  height: 60rem;
  width: 60vw;
  overflow: hidden;
  margin: 3rem auto;
}

.image-container {
  display: flex;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

/*  Metric */
#about {
  text-align: center;
  padding: 2rem;
  font-size: 2rem;
}
.metrics {
  display: flex;
  justify-content: center;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 380px;
  text-align: left;
}
.metric p {
  font-size: 1.2rem;
  line-height: 1.5rem;
}

.metric h3 {
  font-size: 2rem;
}
.metric h2 {
  font-size: 3rem;
}

/* Galery button */
button {
  background-color: var(--button-bg-color);
  border: none;
  height: 2.75rem;
  width: 9rem;
  border-radius: 8px;
  color: var(--menu-text-color);
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  opacity: 0.9;
}

/* Galery header */
h1,
h2 {
  color: var(--button-bg-color);
}

p {
  font-size: 1.25rem;
  color: var(--text-color);
}

/* Footer */
.footer {
  border-top: 1px solid #aaa;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.footer .footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer img {
  width: 120px;
  height: 35px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer a {
  margin: 0.2rem;
  color: var(--dark-color);
}
.footer a:hover {
  opacity: 0.9;
}

/* Services */
.services {
  padding: 3rem 0 4rem;
}

.services-flex {
  display: flex;
  gap: 2rem;
}

.service-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .header .header-flex,
  .footer .footer-flex,
  .services .services-flex,
  .team .team-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  body {
    display: flex;
    flex-direction: column;
  }
  .header .main-menu a {
    color: var(--dark-color);
    display: flex;
    /* background-color: var(--button-bg-color); */
    height: 3rem;
    align-items: center;
    justify-content: center;

    width: 6.5rem;
  }
  .header .main-menu {
    gap: 0.4rem;
  }
  .header {
    margin-bottom: 10rem;
    display: flex;
    align-items: flex-start;
  }

  #btn {
    /* background-color: var(--button-bg-color); */
    color: var(--dark-color);
    border: none;
  }

  .gallery-item {
    width: calc(50% - 20px);
  }

  .footer .footer-flex {
    text-align: center;
  }
}
