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


@font-face {
  font-family: BMW;
  src: url('../fonts/BMWTypeNextCondensedPro-Regular.otf');
}


body {
  font-family: BMW;
  background: #FAF9F6	;
  color: #000;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: #262626;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  opacity: 0; 
  transition: opacity 0.5s ease-in-out;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 20px 0;
  font-size: 13px;
  z-index: 1;
}

.main-nav .logo {
  width: 50px;
}

.main-nav ul {
  display: flex;
}

.main-nav ul li {
  padding: 0 10px;
}

.main-nav ul li a {
  padding-bottom: 2px;
}

.main-nav ul li a:hover {
  border-bottom: 2px solid rgb(7, 153, 237);
}

.main-nav ul.main-menu {
  flex: 1;
  margin-left: 20px;
  z-index: 1;
}

.menu-btn {
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 2;
  display: none;
}

.btn {
  cursor: pointer;
  display: inline-block;
  border: 0;
  font-weight: bold;
  padding: 10px 20px;
  background: #262626;
  color: #fff;
  font-size: 15px;;
}

.btn:hover {
  opacity: 0.9;
}

.dark {
  color: #fff;
}

.dark .btn {
  background: #f4f4f4;
  color: #333;
}

.showcase {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  padding-bottom: 50px;
  margin-bottom: 20px;
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.showcase:hover{
  transform: scale(1.03);
  object-fit: cover;
}

.slide {
  height: 400px;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0; 
  left: 0;
  object-fit: cover;
  display: flex;
  justify-content: center;
  align-items: center;


}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.slide:first-child {
  opacity: 1;
}

.showcase h2, .showcase p {
  margin-bottom: 10px;
  color: #fff;
}

.showcase .btn {
  margin-top: 20px;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin-bottom: 40px;
}

.home-cards .card {
  width: 100%;
  transition: transform 0.3s;
  overflow: hidden; 
}

.home-cards .card:hover {
  transform: scale(1.1);
}

.home-cards img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s; 
  filter: brightness(100%);
}

.home-cards .card:hover img {
  filter: brightness(100%);
}

.home-cards .card:hover img {
  transform: scale(1.1);
  object-fit: cover;
}

.home-cards h3 {
  margin-bottom: 5px;
}

.home-cards a {
  display: inline-block;
  padding-top: 10px;
  color: rgb(7, 153, 237);
  text-transform: uppercase;
  font-weight: bold;
}

.home-cards a:hover i {
  margin-left: 10px;
}

.services {
  position: relative;
  width: 100%;
  height: 350px;
  margin-bottom: 20px;
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
  background: url('../images/ULTIMACP/service.jpeg') no-repeat center center/cover;
}


.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100%; 
  background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); 
  z-index: -1;
  transition: transform 0.3s ease-in-out, left 0.3s ease-in-out; 
  transform-origin: right; 
  transform: scaleX(0); 
  pointer-events: none; 
}

.services .content {
  width: 100%;
  padding: 50px 0 0 30px;
  display: flex;
  justify-content: space-between;
}


.services .content .left-column {
  margin-top: 50px;
  width: 50%;
  position: relative; 
}

.services .content .right-column {
  width: 50%;
  position: relative; 
}

.services .content .left-column a {
  margin-top: 20px;
}


.services .content .right-column::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; 
  z-index: -1;
}

.services:hover {
  transform: scale(1.03);
  object-fit: cover;
}

.services .content h2,
.services .content p,
.services .content h3 {
  color: #fff;
}

.services p,
.services h3 {
  margin: 10px 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, left 0.3s ease-in-out; 
  transform: translateX(100%); 
  opacity: 0; 
}


.services .content .right-column .hidden-description {
  position: relative;
  z-index: 1;
  margin: 10px 20px; 
  text-align: justify; 
}


.services .content .right-column .hidden-description p h3 {
  margin: 0; 
}

.services:hover::before {
  transform: scaleX(1); 
  left: 0; 
}

.services:not(:hover)::before {
  transform: scaleX(0); 
  left: 100%; 
}


.services:hover .hidden-description {
  transform: translateX(0); 
  opacity: 1; 
}

.services:not(:hover) .hidden-description {
  transform: translateX(100%); 
  opacity: 0; 
  pointer-events: none; 
}


.home-cards-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin-bottom: 40px;
}

.home-cards-2 .card {
  width: 100%;
  transition: transform 0.3s;
  overflow: hidden; 
}

.home-cards-2 .card:hover {
  transform: scale(1.1);
}
.home-cards-2 img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s; 
  filter: brightness(100%); 
}

.home-cards-2 .card:hover img {
  filter: brightness(100%); 
}

.home-cards-2 .card:hover img {
  transform: scale(1.1);
  object-fit: cover;
}

.home-cards-2 h3 {
  margin-bottom: 5px;
}

.home-cards-2 a {
  display: inline-block;
  padding-top: 10px;
  color: rgb(7, 153, 237);
  text-transform: uppercase;
  font-weight: bold;
}

.home-cards-2 a:hover i {
  margin-left: 10px;
}



.about {
  position: relative; 
  width: 100%;
  height: 350px;
  margin-bottom: 20px;
  transition: transform 0.3s ease-in-out;
  overflow: hidden; 
  background: url('../images/ULTIMACP/FA-IMG_9787.jpg') no-repeat center center/cover;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100%; 
  background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); 
  z-index: -1;
  transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
  transform-origin: right;
  transform: scaleX(0); 
  pointer-events: none; 
}

.about .content {
  width: 100%;
  padding: 50px 0 0 30px;
  display: flex;
  justify-content: space-between;
}

.about .content .left-column {
  margin-top: 50px;
  width: 50%;
  position: relative; 
}

.about .content .right-column {
  width: 50%;
  position: relative;
}

.about .content .left-column a {
  margin-top: 20px;
}


.about .content .right-column::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; 
  z-index: -1;
}

.about:hover {
  transform: scale(1.03);
  object-fit: cover;
}

.about .content h2,
.about .content p,
.about .content h3 {
  color: #fff;
}

.about p,
.about h3 {
  margin: 10px 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, left 0.3s ease-in-out; 
  transform: translateX(100%); 
  opacity: 0; 
}


.about .content .right-column .hidden-description {
  position: relative;
  z-index: 1;
  margin: 20px 20px; 
  text-align: justify; 
}


.about .content .right-column .hidden-description p h3 {
  margin: 0; 
}


.about:hover::before {
  transform: scaleX(1); 
  left: 0; 
}


.about:not(:hover)::before {
  transform: scaleX(0); 
  left: 100%;
}

.about:hover .hidden-description {
  transform: translateX(0); 
  opacity: 1; 
}


.about:not(:hover) .hidden-description {
  transform: translateX(100%); 
  opacity: 0; 
  pointer-events: none; 
}


.content h2, .content p{
  color: #fff;
}

    .follow {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      margin: 30px 0 30px;
  }
  
  .follow * {
      margin-right: 10px;
  }
  
  .follow img {
      height: 30px;
      transition: transform 0.3s ease-in-out; 
  }
  
  .follow img:hover {
      transform: scale(1.3); 
  }

.links {
  background: #eaeaec;
  color: #616161;
  font-size: 12px;
  padding: 35px 0;
}

.links-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
  align-items: flex-start;
  justify-content: center;
}

.links li {
  line-height: 2.8;
}

.links ul li a:hover {
  border-bottom: 2px solid rgb(7, 153, 237);
}


.footer {
  background: #FAF9F6	;
  color: #616161;
  font-size: 12px;
  padding: 20px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer div {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer div i {
  margin-right: 10px;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
}

.footer li {
  margin-right: 30px;
  margin-bottom: 20px;
}

@media(max-width: 700px) {
  .menu-btn {
    display: block;
  }

  .menu-btn:hover {
    opacity: 0.5;
  }

  .main-nav ul.right-menu {
    margin-right: 50px;
  }

  .main-nav ul.main-menu {
    display: block;
    position: absolute;
    top:0;
    left: 0;
    background: #f2f2f2;
    width: 50%;
    height: 100%;
    border-right: #ccc 1px solid;
    opacity: 0.9;
    padding: 30px;
    transform: translateX(-500px);
    transition: transform 0.5s ease-in-out;
  }

  .main-nav ul.main-menu li {
    padding: 10px;
    border-bottom: #ccc solid 1px;
    font-size: 14px;
  }

  .main-nav ul.main-menu li:last-child {
    border-bottom: 0;
  }

  .main-nav ul.main-menu.show {
    transform: translateX(-20px);
  }

  .home-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-cards-2 {
      grid-template-columns: repeat(2, 1fr);
    }

  .services .content p h3{
    display: none;
  }

  .services .content h2 {
    margin-bottom: 20px;
    
  }

  .about .content p h3{
    display: none;
  }

  .about .content h2 {
    margin-bottom: 20px;
    
  }

  .links .links-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 500px) {
  .home-cards {
    grid-template-columns: 1fr;

    
  } 
  .home-cards-2 {
      grid-template-columns: 1fr;

      
    } 
  .links .links-inner {
    grid-template-columns: 1fr;
  }

  .links .links-inner ul {
    margin-bottom: 20px;
  }
}

