
/* --- Base Reset and Variables --- */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #881812;
    --menu-width: 19rem;
    --sticky-top: 5rem; /* Header height */
}

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

body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    background-color: #F7F7F7;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}



/* --- Navigation Bar --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: #FFFFFF42;

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    border-radius: 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--sticky-top); 
       padding: 60px 40px;
   
}

.nav-logo img {
    margin-top: 10px;
  height: auto;
  width: 433px;
  margin-left: 160px;
}


@media (max-width: 768px) {
  .nav-logo img {
  height: 50px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--sticky-top); 
    padding: 0 1.5rem;
    
    margin-right: 20px;
    margin-left: 10px;
}
.nav-logo img {
    margin-top: 10px;
  height: auto;
  width: 280px;
  margin-left: 0px;
}






}




.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Button ES */

.btn-eng-spa {

       width: 170px;
    height: 56px;
	text-align: center;
	font-weight: 400;
	display: flex;
	align-items: center;
    justify-content: center;
	border-radius: 10px;
	transition: background-color 0.3s ease, color 0.3s ease;
   font-family: "Inter", sans-serif;
   background-color: #881812;
   font-size: 18px;
   color: white;
}


.btn-eng-spa:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);}

/* --- "Hire Us" Button Styling --- */
.btn-hire-us {
    
    background-color: #6F696A;
       width: 170px;
    height: 56px;
	text-align: center;
	font-weight: 400;
	display: flex;
	align-items: center;
    justify-content: center;
	border-radius: 10px;
	transition: background-color 0.3s ease, color 0.3s ease;
   font-family: "Inter", sans-serif;
  
   font-size: 18px;
   color: white;
}



.btn-hire-us:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}



/* --- Hamburger Menu Icon --- */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
     gap: 5px;
    width: 54px;
    height: 54px;
    background: transparent;
   
    cursor: pointer;
    padding: 10px;
    
  
}

.hamburger-menu .bar {
    display: block;
    
    width: 60px;
    height: 20px;
    background: #881812;
    transition: all 0.3s ease-in-out;
    border-radius: 99px;
   
    
}

/* --- Side Menu --- */
.side-menu {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);

    z-index: 1100;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;

    transition: 0.4s ease;
}

.side-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 40px;

    background: none;
    border: none;

    font-size: 3rem;
    cursor: pointer;
    color: black;
}

.menu-grid {
    width: 90%;
    max-width: 450px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

.menu-card {
    height: 142px;
    width: 158px;

    background: rgba(255,255,255,0.7);

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    font-size: 18px;
    font-weight: 400;

    color: black;
    text-decoration: none;

    transition: 0.3s ease;
}

.menu-card:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(0.98);
}


/* --- Submenu Styling --- */


.has-submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}




.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.submenu li {
    margin-top: 8px;
    padding: 0.25rem 0;
    border-bottom: none;
    font-size: 1rem;
    
}

.has-submenu.submenu-open .submenu {
    max-height: 200px;
}

/* --- "Start your project" Button Styling --- */
.btn-start-project {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1rem;
    font-size: 1.2rem;
    transition: border-color 0.3s ease;
    border-radius: 100px;
}



.btn-start-project:hover {
    border-color: transparent; 
}

.btn-start-project .btn-text {
    display: inline-block;
    transition: transform 0.3s ease-out;
}

.btn-start-project:hover .btn-text,
.btn-start-project:hover .arrow-right {
    transform: translateX(5px);
}

.btn-start-project:hover .arrow-right {
    border: 2px solid var(--primary-color);  
}


@media (max-width: 768px) {


  .btn-eng-spa {
    display: none;
  }

  .btn-hire-us {
    display: none;
  }

.menu-card {
    height: 100px;
    width: 120px;

    background: rgba(255,255,255,0.7);

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    font-size: 14px;
    font-weight: 400;

    color: black;
    text-decoration: none;

    transition: 0.3s ease;
}


}

@media (max-width:768px){

    .main-nav{
        padding: 0;
    }

}


/* HERO CAROUSEL */

.hero-carousel{
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    
}

/* SLIDES */

.carousel-slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active{
    opacity: 1;
    z-index: 1;
}

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

/* DARK OVERLAY */

.carousel-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

/* CENTER TEXT */

.hero-content{
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    z-index: 3;

    padding: 20px;
}

.hero-content h1{
    color: white;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -2px;
    max-width: 1000px;
}


/* DOTS */

.carousel-dots{
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 12px;

    z-index: 5;
}

.dot{
    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: rgba(255,255,255,0.45);

    cursor: pointer;

    transition: all 0.3s ease;
}

.dot.active{
    background: white;
    transform: scale(1.2);
}

/* MOBILE */

@media (max-width:768px){

    .hero-carousel{
        height: 85vh;
        
    }

    .hero-content h1{
        font-size: 3rem;
        line-height: 1.1;
    }

}



/* =========================
   SERVICES SECTION
========================= */

.titleone{
    font-size: 50px;
    text-align: center;
    color: #2D2D2D;
    margin-bottom: 90px;
     text-decoration-line: underline;
  text-decoration-color: #881812;
  text-underline-offset: 15px;
   text-decoration-thickness: 7px; 
}

.services-section {
  background: #ffffff;
  padding: 70px 40px;
}

.services-container {

  max-width: 1300px;
  margin: auto;
  margin-top: 140px;

  display: grid;
 
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  justify-content: center;
  
}

/* CARD */

.service-card {
  position: relative;

  background: white;
  border: 1px solid #d9d9d9;
  border-radius: 14px;

  padding: 90px 28px 40px;

  transition: 0.3s ease;
  width: 274px;
  
}

.service-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* TOP CIRCLE */

.icon-circle {
  position: absolute;

  top: -50px;
  left: 50%;
  transform: translateX(-50%);

  width: 100px;
  height: 100px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* ICON IMAGE */

.icon-circle img {
  width: 80.5px;
  height: 80.5px;

  object-fit: contain;
}

/* TITLE */

.service-card h3 {
  text-align: center;

  color: #881812;

  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;

  margin-bottom: 25px;
}

/* TEXT */

.service-card p {
  color: #585757;

  font-size: 14px;
  line-height: 18px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {

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

}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  .services-container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    
  }

  .services-section {
    padding: 80px 20px;
  }

  

}



/* =========================
   CLIENTS SECTION
========================= */

.clients-section {
  background: #ffffff;
  padding: 70px 40px;
}

.clients-container {
  
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.clients-container img {
  width: 268px;
  height: 268px;
  object-fit: contain;

  transition: 0.3s ease;
}

.clients-container img:hover {
  transform: scale(1.05);
}

/* =========================
   FOOTER
========================= */

.main-footer {
  background: #881812;
  padding: 22px 40px;
}

.footer-container {
  max-width: 1400px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
}

/* LEFT */

.footer-left {
   color: #F7F7F7;
  text-decoration: none;

  font-size: 16px;
   gap: 10px;
  line-height: 21px;
  font-weight: 300;
  transition: 0.3s ease;
}

/* CENTER */

.footer-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-center a {
  color: #F7F7F7;
  text-decoration: none;

  font-size: 16px;
   gap: 10px;
  line-height: 21px;
  font-weight: 300;
  transition: 0.3s ease;

  display: flex;
  align-items: center;
 
}

.footer-center a:hover {
  opacity: 0.8;
}

/* RIGHT */

.footer-right {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 40px;
}

.footer-right a {
 color: #F7F7F7;
  text-decoration: none;

  font-size: 16px;
   gap: 10px;
  line-height: 21px;
  font-weight: 300;
  transition: 0.3s ease;
  
   text-align: end;
}

.footer-right a:hover {
  opacity: 0.8;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

  .footer-container {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }

  .footer-center a {
    justify-content: left;
  }

  .footer-right {
    
    grid-template-columns: 1fr;
   
  }

  .footer-right a{
     align-items: left;
    text-align: left!important;
  }

  .clients-container {
    justify-content: left;
  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  .clients-section {
    padding: 50px 20px;
  }

  .clients-container {
    display: flex;
  align-items: center;
  justify-content: center; /* ADD THIS */
  gap: 30px;
  flex-wrap: wrap; /* IMPORTANT FOR MOBILE */
    gap: 30px;
  }

  .clients-container img {
    width: 130px;
  }

  .main-footer {
    padding: 30px 20px;
  }

  .footer-container {
    gap: 25px;
  }

  .footer-left,
  .footer-center a,
  .footer-right a {
    font-size: 14px;
  }

}


.hero-imagebackground {
    width: 100%;
    height: 700px;

    background-image: url("images/background2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}


.hero-imagebackgroundtwo {
    width: 100%;
    height: 700px;

    background-image: url("images/background3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}


.service-cardtwo {
  position: relative;
  background: white;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 20px 28px 40px;
  transition: 0.3s ease;
  height: 591px;
  width: 425px;
}

.service-cardtwo h3 {
  margin-top: 30px;
  text-align: center;
  color: #881812;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 25px;
}


.service-cardtwo p {
  color: #585757;
  font-size: 14px;
  line-height: 18px;
}


.hero-imagebackgroundthree {
    width: 100%;
    height: 700px;

    background-image: url("images/background4.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}


.contact-section {
    width: 100%;
    padding: 80px 20px;
    background: white;
}

.contact-form {
    max-width: 1400px;
    margin: auto;
}

.form-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    padding: 18px;
    font-size: 18px;
    font-family: "Poppins", sans-serif;
    outline: none;
    background: white;
}

.contact-form textarea {
    min-height: 320px;
    resize: none;
    margin-bottom: 30px;
}

.form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-form button {
    background: #881812;
    color: white;
    border: none;
    padding: 22px 55px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 176px;
    height: 79px;
}

.contact-form button:hover {
    opacity: 0.9;
}

.contact-texto p{
 text-align: center;
 margin-bottom: 80px;
 font-size: 18px;
 font-weight: 400;
 color: #707070;
}

/* PHONE RESPONSIVE */
@media (max-width: 900px) {

    .form-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form textarea {
        min-height: 220px;
    }

    .form-bottom {
        flex-direction: column;
        align-items: center;
    }

    .contact-form button {
        width: 100%;
    }

    .g-recaptcha {
        transform: scale(0.90);
        transform-origin: left;
    }
}



.hero-imagebackgroundfour {
    width: 100%;
    height: 700px;

    background-image: url("images/background5.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}


.hero-imagebackgroundfive {
    width: 100%;
    height: 700px;

    background-image: url("images/background6.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

.hero-imagebackgroundsix {
    width: 100%;
    height: 700px;

    background-image: url("images/background7.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}