@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e0f7f4, #77aaff);
    color: #333;
    overflow-x: hidden
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh; 
}

section {
    width: 90%;
    margin: 20px 0;
}

.intro {
    background-color: #fff;
    padding: 50px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.intro:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.intro-content h1 {
    font-size: 3em;
    font-family: 'Raleway', sans-serif;
    margin: 0;
    color: #333;
}

.intro-content p {
    font-size: 1.5em;
    color: #666;
}

.about {
    background-color: #fff;
    padding: 50px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about span{
    font-weight: bold;
}


.about:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    text-align: left;
}

.about img {
    width: 300px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-content {
    max-width: 650px;
}

.text-content h2 {
    font-size: 2.3em;
    font-family: 'Raleway', sans-serif;
    margin: 0 0 20px 0;
    color: #333;
}

.text-content p {
    font-size: 1.2em;
    margin: 10px 0;
    color: #666;
}

.project {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project h2 {
    font-size: 2.3em;
    font-family: 'Raleway', sans-serif;
    margin: 0 0 20px 0;
    color: #333;
    margin-bottom: 1em;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-box {
    width: 320px;
    height: 320px;
    background-color: #77aaff;
    border-radius: 12px;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-link {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-link .default-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s;
}

.project-link .hover-text {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-size: 1.2em;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
}

.project-link:hover .default-image {
    opacity: 0;
}

.project-link:hover .hover-text {
    opacity: 1;
}
.social {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-links a {
    color: #333;
    margin: 0 10px;
    text-decoration: none;
    font-size: 2em;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #77aaff;
    transform: translateY(-5px);
}

/* Add this to your existing CSS */

nav {
    margin-top: 20px;
    margin-bottom: 20px;
   
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

nav ul a {
    text-decoration: none;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul a:hover {
    background-color: #77aaff;
    color: #fff;
    transform: translateY(-2px);
}


/* Media Queries for Mobile Devices */
@media (max-width: 768px) {

    .intro, .about, .project {
        width: 85%; /* Reduce un poco el ancho */
        max-width: 600px; /* Para que no crezca demasiado */
        padding: 20px;
        margin: 40px auto; /* Espacio arriba/abajo y centra horizontalmente */
    }
    
    .intro-content h1 {
        font-size: 2em;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about img {
        width: 100%;
        max-width: 200px;
        margin-bottom: 20px;
    }

    .text-content {
        max-width: 100%;
    }

    .text-content h2 {
        font-size: 2em;
    }

    .text-content p {
        font-size: 1em;
    }

    .project-box {
        width: 100%;
        max-width: 200px;
        height: 200px;
    }

    .social-links a {
        font-size: 1.5em;
    }

    nav {
        top: 10px;
        right: 10px;
    }

    nav ul a {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
}