/* Sección About con fondo distinto */
.about-section {
    background: linear-gradient(135deg, #0a0f1a, #112e4f, #1d4d72);
    padding: 5rem 2rem;
    text-align: center;
}

/* Título centrado con brillo */
.section-title {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Contenedor de tarjetas */
.about-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tarjetas giratorias */
.about-card {
    perspective: 1000px;
    width: 300px;
    height: 250px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.about-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #0a0f1a;
    border: 1px solid #4ea8de44;
    box-shadow: 0 0 20px rgba(78, 168, 222, 0.15);
    color: #fff;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
}

.icon {
    font-size: 2.5rem;
    color: #4ea8de;
    margin-bottom: 1rem;
}

.card-front h3 {
    font-size: 1.5rem;
    color: #4ea8de;
}

.card-back p {
    font-size: 1rem;
    color: #ccc;
    text-align: center;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .about-cards {
        flex-direction: column;
        align-items: center;
    }
}

/*Habilities*/

.skills-wrapper {
    border: 2px solid rgba(78, 168, 222, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(50px);
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    backdrop-filter: blur(0px);
}


.skills-section {
    padding: 4rem 2rem;
    text-align: center;
    background: transparent;
}

.skills-section .section-title {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-box {
    width: 90px;
    height: 90px;
    background-color: rgba(10, 15, 26, 0.6);
    border: 1px solid #4ea8de66;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(78, 168, 222, 0.15);
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(78, 168, 222, 0.3);
}

.skill-box img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.skill-box p {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

/*Proyects*/

.project-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
}


.projects-section {
    background: linear-gradient(160deg, #0a0f1a, #1d2b3a);
    padding: 4rem 2rem;
    text-align: center;
}

.projects-section .section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #ffffff80;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #101d2c;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(78, 168, 222, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    color: white;
}

.project-description {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #cccccc;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.project-techs span {
    background-color: #4ea8de;
    color: #0a0f1a;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

/*Contact*/

.contact-section {
  color: white;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px white;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.contact-info {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.contact-description {
  font-size: 1.2rem;
  color: #cccccc;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
}

.icon-circle {
  background-color: #4ea8de;
  color: #0a0f1a;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.icon-circle:hover {
  background-color: #3a90c6;
}

.contact-form {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  background-color: #1e2a3a;
  color: white;
  font-size: 1rem;
  resize: none;
}

.btn-submit {
  background-color: #4ea8de;
  color: #0a0f1a;
  padding: 0.75rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background-color: #3a90c6;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

#toastMessage {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: -100px;
    padding: 14px 26px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    opacity: 0;
    z-index: 9999;
}

