/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a192f;
    color: #ccd6f6;
    line-height: 1.6;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.language-selector select {
    padding: 10px;
    border-radius: 5px;
    background-color: #112240;
    color: #ccd6f6;
    border: 1px solid #64ffda;
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3 {
    color: #64ffda;
}

section {
    padding: 60px 20px;
    text-align: center;
}

/* Estilos para la Hero Section */
#hero {
    position: relative;
    background: url('assets/AI - imagen.jpg') no-repeat center center/cover; /* Imagen de fondo */
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ccd6f6;
    min-height: 100vh; /* Ocupa toda la altura de la pantalla */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7); /* Fondo semi-transparente */
}

.hero-content {
    position: relative;
    z-index: 1; /* Asegura que el contenido esté encima del overlay */
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0;
    color: #64ffda;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    animation: fadeIn 1.5s ease-in-out;
}

.subtitle {
    font-size: 1.5rem;
    margin: 20px 0;
    color: #8892b0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    animation: fadeIn 2s ease-in-out;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #a8b2d1;
    margin: 30px 0;
    font-family: 'Merriweather', serif;
    animation: fadeIn 2.5s ease-in-out;
}

.btn {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 30px;
    background-color: #64ffda;
    color: #0a192f;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeIn 3s ease-in-out;
}

.btn:hover {
    background-color: #52d1b2;
    transform: translateY(-5px);
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Me */
#about {
    padding: 60px 20px;
    background-color: #0a192f;
    color: #ccd6f6;
}

#about h2 {
    font-size: 2.5rem;
    color: #64ffda;
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #64ffda;
}

.about-text {
    flex: 1;
    text-align: justify; /* Texto justificado */
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
}

.about-text strong {
    color: #64ffda;
    font-size: 1.2rem;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 20px;
    color: #a8b2d1;
}

/* Portfolio */
#portfolio {
    padding: 60px 20px;
    background-color: #112240;
}

#portfolio h2 {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 40px;
}

.projects {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.project {
    background-color: #0a192f;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
}

.project h3 {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 10px;
}

.project p {
    font-size: 1rem;
    color: #a8b2d1;
    margin-bottom: 15px;
}

.project a {
    color: #64ffda;
    text-decoration: none;
    font-weight: bold;
}

/* Estilos para la sección de habilidades */
#skills {
    padding: 60px 20px;
    background-color: #0a192f;
    color: #ccd6f6;
}

#skills h2 {
    font-size: 2.5rem;
    color: #64ffda;
    text-align: center;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    grid-template-rows: repeat(5, auto); /* 5 filas */
    gap: 20px; /* Espacio entre elementos */
    max-width: 1000px;
    margin: 0 auto;
}

.skill {
    background-color: #112240;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    color: #ccd6f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

/* Centrar la última habilidad en la quinta fila */
.skills-grid .skill:nth-child(16) {
    grid-column: 2 / 3; /* Centrar en la segunda columna */
}

/* Contacto */
#contact {
    padding: 60px 20px;
    background-color: #112240;
}

#contact h2 {
    font-size: 2.5rem;
    color: #64ffda;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #64ffda;
    border-radius: 5px;
    background-color: #0a192f;
    color: #ccd6f6;
}

.contact-form button {
    background-color: #64ffda;
    color: #0a192f;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #52d1b2;
}

.social-links {
    margin-top: 40px;
    text-align: center;
}

.social-links h3 {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 20px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-item {
    background-color: #0a192f;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #ccd6f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.social-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.social-item span {
    font-size: 1rem;
    color: #64ffda;
}

/* Footer */
footer {
    background-color: #112240;
    padding: 20px;
    text-align: center;
    color: #ccd6f6;
}

footer p {
    margin: 0;
    font-size: 1rem;
}
