body{
  width: 100%;
  height: 100%;
  background-color:rgba(23, 34, 50);
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight:600;
}
html {
  scroll-behavior: smooth;
}

header{
  width: 100%;
  background-color:#ffffff;
}
.header-container {
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#logo {
  font-size: 1.8rem;
  font-weight: bold;
  color:rgba(58, 113, 182);
}
nav.main-menu {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color:rgba(227, 142, 62);
  z-index: 1000;
  padding: 15px 20px;
  border-radius: 22px;
}

nav.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

nav.main-menu li {
  display: inline-block;
}

nav.main-menu a.menu-sections {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
}

nav.main-menu a.menu-sections:hover {
  color: #b4b4b4 !important;
   transform: scale(1.1) !important;
}

.head-info h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.head-info h3 {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 1rem;
  color: #555;
}

.about-style{
  border-color: #555;
  padding: 12%;
  padding-right: 0;
  background-color:rgba(23, 34, 50);
  width: 100%;
}

.about-text h1, p{
  color: white;
  margin-right: 20%;
}
.about-text h2{
  color:rgba(58, 113, 182);
}
.btn-og{
  background-color: rgba(227, 142, 62);
  color: white;
  font-weight: 500;
}

.btn-og:hover{
  transform: scale(1.1);
  color: white;
  background-color: rgba(227, 142, 62);
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.main-menu li a.menu-sections {
  text-decoration: none;
  background-color: #4c84fc;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.service{
  background-color: rgba(227, 142, 62);
}
.service h5{
  color: white;
  text-align: center;
}

.card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(0, 0, 0, 0.05) inset; 
}


.card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.25), 
    0 0 30px rgba(0, 0, 0, 0.1) inset; 
}

.card-body {
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 20px 20px;
}

.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.2), transparent 70%);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 20px;
}

.card:hover::before {
  opacity: 1;
}

.project-card:hover .card-img {
  transform: scale(1.1);
}

.project-card {
  position: relative;
  overflow: hidden; 
  border-radius: 12px;
  cursor: pointer;
  height: auto;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; 
  transition: transform 0.5s ease;
}
.project-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 50, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 20px;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-card .card-text {
  margin-bottom: 15px;
  align-items: center;
}

.project-card .overlay > * {
  margin-left: auto;
  margin-right: auto;
}
.space{
  margin-top: 8% !important;
}
.ft-style{
  background-color: rgb(236, 104, 104);
  height: 10%;
  width: 100%;
}

.ft-terms{
  text-decoration: none;
  color: #fff;
}

.ft-terms:hover{
  color: #b4b4b4;
}

.desktop-only { 
  display: block; 
}
.mobile-only { 
  display: none; 
}

@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
@media (max-width: 767px) {
   header {
    background-color: rgba(23, 34, 50);
  }
  .desktop-only { 
    display: none; 
  }
  .mobile-only { 
    display: block; 
  }

  #logo {
    color: transparent; 
  }
  .about-img {
    max-width: 80%;
  }
  nav.main-menu {
    background-color: rgba(227, 142, 62, 0.9); 
  }

  nav.main-menu a.menu-sections {
    color: white !important;
  }
  /* About me */
  .aboutme {
    text-align: center;
    padding: 5% 2%;
  }
  .about-text h1 { font-size: 1.8rem; margin-right: 0; }
  .about-text h2 { font-size: 1.2rem; }
  .about-text p { font-size: 0.95rem; margin-right: 0; }
  .btn-og { font-size: 0.9rem; padding: 0.5rem 1rem; }
  .about-img { max-width: 80%; margin: 0 auto 1rem auto; }

  .project-card .overlay { padding: 15px; }
  .project-card .card-title { font-size: 1.2rem; }
  .project-card .card-text { font-size: 0.9rem; }

  #mobileServicesCarousel .card-mobile { width: 90% !important; }

  .card-mobile {
    max-width: 260px;
  }

  .card-mobile img {
    max-height: 140px;
    object-fit: contain;
  }

  .card-mobile .card-body {
    padding: 1rem;
  }
}

@keyframes movimientoGradiente {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (min-width: 768px) {
  .project-card {
    height: 399px; 
    border-radius: 12px;
  }

  .project-card img {
    height: 100%; 
  }
}