/******* GENERAL *******/
/* spacing on all sections */
#about,
#skills,
#portfolio,
#contact {
  margin-top: 4rem;
  padding-top: 4rem;
}
#about h2,
#skills h2,
#portfolio h2,
#contact h2 {
  margin-bottom: 3rem;
}
#contact {
  padding-bottom: 4rem;
}

h3 {
  color: #172bb2;
}
/* display background dark color on navbar scroll */
.navbar-brand {
  background-color: rgba(0, 0, 0, 0.4); /* capa oscura sutil */
  padding: 2rem;
  border-radius: 1rem;
}
.navbarScroll.navbarDark {
  background-color: #0b0c1a;
}
.nav-link {
  color: #ffffff !important; /* blanco puro, puedes cambiarlo por otro */
}
.nav-link {
  background-color: rgba(0, 0, 0, 0.4); /* capa oscura sutil */
  padding: 2rem;
  border-radius: 1rem;
}

.nav-link:hover {
  color: #00ffff !important; /* color al pasar el mouse, por ejemplo cian */
}

/* hero background image */
.bgimage {
  height: 100vh;
  max-height: 900px;
  background: url("images/skay.webp");
  background-size: cover;
  position: relative;
}
/* text css above hero image*/
.hero_title {
  font-size: 3.5rem;
}
.hero_desc {
  font-size: 2rem;
}
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
}
.hero-text {
  background-color: rgba(0, 0, 0, 0.4); /* capa oscura sutil */
  padding: 2rem;
  border-radius: 1rem;
}

/* about */
.imageAboutPage {
  width: 60%;
}
.imageAboutPage {
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
/* RESPONSIVE: centrar imagen y texto desde 768px hacia abajo */
@media (max-width: 768px) {
  #about .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #about .col-lg-4,
  #about .col-lg-8 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  #about .col-md-6 {
    width: 100%;
    text-align: center;
  }

  #about ul {
    padding-left: 0;
    list-style-position: inside;
  }
}
/* skills */

.skillsText.card {
  height: 350px;
  cursor: pointer;
}
.skillsText img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}
#skills p {
  text-align: center;
}
.skillsIcon {
  font-size: 36px;
  text-align: center;
  width: 100%;
}
.card-title {
  text-align: center;
}
.card:hover .skillsIcon {
  color: #008000;
}
.skillsText:hover {
  border: 2px solid #008000;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: red;
}

/* portfolio */
#portfolio p {
  text-align: center;

}
.iframe-wrapper {
  margin-top: 1rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .iframe-wrapper iframe {
    height: 200px;
  }
}

details {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  background-color: #f9f9f9;
  margin-top: 1rem;
}
details a{
  color: #024CBB !important;
}
code{
  color: #951D59 !important;
}

summary {
  cursor: pointer;
  font-weight: bold;
  color: #0056b3;
}

.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
}

.masonry-grid-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.masonry-grid-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.masonry-grid-item:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* contact */

.contactColumn {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contactColumn i {
  color: #198754;
}
.LinkedIn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.4); /* capa oscura sutil */
  padding: 2rem;
  border-radius: 1rem;
}
.LinkedIn a {
  color: white !important;
}
/* footer */
.footerimage {
  height: 100vh;
  max-height: 900px;
  background: url("images/footerimage.avif");
  background-size: cover;
  position: relative;
}
.contactContent .text-center {
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.4); /* capa oscura sutil */
  padding: 2rem;
  border-radius: 1rem;
}
