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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.navbar-custom {
  background-color: #2c3e50;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.navbar-custom .nav-link {
  font-weight: 500;
  margin-left: 1.5rem;
  transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.hero-section {
  background-color: #1abc9c;
  min-height: 100vh;
  padding-top: 100px;
}

.profile-img-container {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.star-divider .divider-line {
  height: 4px;
  width: 100px;
  background-color: white;
  border-radius: 2px;
}

.star-divider.dark .divider-line {
  background-color: #2c3e50;
}

.star-divider .star-icon {
  font-size: 2rem;
  margin: 0 1rem;
  color: white;
}

.star-divider.dark .star-icon {
  color: #2c3e50;
}

#portfolio {
  background-color: white;
}

.portfolio-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(87, 99, 97, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-overlay i {
  color: white;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-overlay i {
  transform: scale(1);
}

.portfolio-item:hover .portfolio-img-wrapper img {
  transform: scale(1.1);
}

.portfolio-item h5 {
  color: #2c3e50;
  margin-top: 1rem;
}

.sobre-mi-section {
  background-color: #1abc9c;
}

.sobre-mi-section p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.sobre-mi-section .btn-outline-light {
  border-width: 2px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sobre-mi-section .btn-outline-light:hover {
  background-color: white;
  color: #1abc9c;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#contacto {
  background-color: white;
}

#contacto .form-control {
  border: none;
  border-bottom: 2px solid #dee2e6;
  border-radius: 0;
  padding: 1rem 0;
  transition: border-color 0.3s ease;
}

#contacto .form-control:focus {
  box-shadow: none;
  border-bottom-color: #1abc9c;
}

#contacto .btn-primary {
  background-color: #1abc9c;
  border: none;
  padding: 0.75rem 3rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

#contacto .btn-primary:hover {
  background-color: #16a085;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}

.footer-section {
  background-color: #2c3e50;
}

.footer-section h5 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-icons a {
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  transform: translateY(-5px);
  opacity: 0.7;
}

.modal-content {
  border: none;
  border-radius: 10px;
}

.modal-body h3 {
  color: #2c3e50;
}

.modal-body .btn-primary {
  background-color: #1abc9c;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-body .btn-primary:hover {
  background-color: #16a085;
  transform: translateY(-3px);
}

.modal-body .btn-primary a {
  color: white;
}

.icono-red {
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: 0.3s ease;
}

.icono-red:hover {
  background-color: #fff;
  color: #0d1b2a;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px;
  }

  .profile-img-container {
    width: 200px;
    height: 200px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .navbar-custom .nav-link {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .star-divider .divider-line {
    width: 80px;
  }

  .footer-section .col-md-4 {
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .profile-img-container {
    width: 180px;
    height: 180px;
  }

  .star-divider .divider-line {
    width: 60px;
  }

  .star-divider .star-icon {
    font-size: 1.5rem;
  }

  #contacto .btn-primary {
    padding: 0.75rem 2rem;
  }

  .sobre-mi-section .btn-outline-light {
    padding: 0.6rem 1.5rem;
  }

  .social-icons a {
    margin: 0 0.5rem !important;
  }
}

@media (max-width: 380px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .profile-img-container {
    width: 150px;
    height: 150px;
  }

  .navbar-brand {
    font-size: 1.2rem !important;
  }

  .texto-auxiliar {
    text-align: center;
  }
}

html {
  scroll-behavior: smooth;
}

a,
button,
.btn {
  transition: all 0.3s ease;
}
