/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: white;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 400px; /* Ajusta la altura según lo que necesites */
    background-color: #007bff; /* Color de fondo */
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;

}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 2s forwards;
    font-family: 'Playfair Display', serif;
}



.hero-subtitle {
    font-size: 24px;
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
}

.animate-text {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

/* Project Cards */
.card {
    margin-bottom: 20px;
    background-color: #1f1f1f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}




.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
    filter: brightness(50%);


}

.card-body {
    background-color: #1f1f1f;
}

/* Hover Effect */
.card:hover {
    transform: translateY(-10px) scale(1.05); /* Mover hacia arriba y agrandar */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* Añadir sombra */
}

.card:hover img {
    filter: brightness(100%); /* Oscurece la imagen */
    transition: 0.5s ease-in-out;
}

.carousel-item img {
    width: 100%; /* Ajusta el ancho de la imagen al contenedor */
    height: 500px; /* Define una altura fija para todas las imágenes */
    object-fit: cover; /* Ajusta la imagen para que se recorte y ocupe todo el espacio */
}

.img-fluid {
    filter: brightness(0.9);
}



.diagonal-section {
    position: relative;
    width: 100%;
    height: 400px; /* Ajusta la altura según sea necesario */
    background-color: #007bff; /* Color de fondo */
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.5s ease, background-color 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

#welcomeToast {
    z-index: 9999;
}
.toast {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.9); /* Fondo semitransparente */
    color: #333;
}

.toast-header {
    background-color: #007bff; /* Color de fondo del encabezado */
    color: white;
    border-radius: 10px 10px 0 0; /* Redondeado solo en la parte superior */
}

.toast-body {
    font-size: 16px;
    line-height: 1.5;
}

.toast {
    opacity: 0;
    transform: translateY(-20px); /* Comienza un poco más arriba */
    animation: slideIn 1s forwards; /* Animación de entrada */
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0); /* Se desplaza a su posición final */
    }
}

.toast {
    background-color: #2c2c2c; /* Fondo oscuro */
    color: white;
}

.toast-header {
    background-color: #444; /* Encabezado oscuro */
    color: #f8f9fa;
}

.toast-body {
    background-color: #333;
}

.about-me-section {
    padding: 60px 0; /* Espaciado arriba y abajo */
    background-color: #f4f4f4; /* Fondo claro */
    color: #333; /* Texto oscuro */
}

.about-image img {
    width: 100%; /* Imagen ajustada al 100% del contenedor */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.about-text h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6; 
    color: #555; 
}

.about-me-section {
    background-color: #1a1a1a; /* Color de fondo oscuro */
    color: #ffffff; /* Texto en color claro */
    padding: 40px 0;
    font-family: 'Playfair Display', serif;
}
.about-text h2 {
    color: #ffffff; /* Asegura que los títulos también sean blancos */
}

.about-text p {
    color: #dcdcdc; /* Color de texto para los párrafos */
    font-family: 'Merriweather', serif;
}


.diagonal-section {
    position: relative;
    width: 100%;
    height: 300px; 
    background-color: #007bff; /* Color de fondo */
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.5s ease, background-color 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-content {
    text-align: center;
}

footer {
    color: white;
    font-size: 16px;
}

.footer-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0a3c86; 
}


.contact-section {
    padding: 60px 0;
    background-color: #1f1f1f; 
    color: white; 
}

.contact-form {
    margin-bottom: 20px;
}

.contact-form h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #007bff; 
}

.contact-form p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #ccc; 
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-label {
    color: #fff; 
}

.contact-form .form-control {
    padding: 10px;
    font-size: 16px;
    background-color: #333; 
    border: 1px solid #555; 
    color: white; 
}

.contact-form .form-control::placeholder {
    color: #bbb; 
}

.contact-form button {
    background-color: #007bff; 
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}

.contact-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); 
}


@media (max-width: 768px) {
    .contact-image {
        margin-top: 20px;
    }

    .contact-form, .contact-image {
        text-align: center;
    }
}


    .contact-form, .contact-image {
        text-align: center;
    }










@media (max-width: 768px) {
    .about-image, .about-text {
        text-align: center;
        margin-bottom: 20px;
    }
}




/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .card {
        flex-direction: column;
    }
}

/* Estilo para el fondo de partículas */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

#particles-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* asegura que las partículas estén detrás del contenido */
}

.typewriter {
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: .15em solid rgb(24, 105, 255); /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em; /* Adjust as needed */
    animation: 
      typing 4s steps(30, end),
      blink-caret .75s step-end infinite;
  }
  
  /* The typing effect */
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  /* The typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgb(255, 255, 255); }
  }