@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playwrite+AU+NSW:wght@100..400&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    scroll-behavior: smooth;
    min-width: 400px; 
    overflow-x: hidden;
}

@media (max-width: 720px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

.background {
    position: fixed;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background-image: url('../img/beauchef851.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(50%) blur(4px);
}

.container {
    position: relative;
    z-index: 1;
    padding: 0;
    color: white;
    box-sizing: border-box;
    max-width: 100%;
}

.content {
    font-size: 1.5rem;
}

.navbar {
    top: 0;
    left: 0;
    width: 100%;
    font-size: 1.5rem;
    background-color: rgb(0, 0, 0);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 1000;
    box-sizing: border-box;
    position: fixed;
}

.navbar ul {
    list-style: none;
    display: flex;
    width: auto;
    max-width: 100%;
    gap: 3rem;
    margin: 0 auto;
    padding: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
}

.navbar ul a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    white-space: nowrap;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.navbar ul a:hover {
    border: 1px solid white;
}

@media (max-width: 720px) {
    .navbar {
        position: relative;
    }

    .navbar ul {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 1rem 3rem;
        justify-content: center;
        padding: 1rem 0;
    }

    .navbar ul li {
        display: flex;
        justify-content: center;
    }
}


.home-section {
    min-height: 100vh;
    display: flex;
    padding: 1rem;
    flex-wrap: wrap;
}

.home-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.home-text h1 {
    margin: 0;
    font-size: 5rem;
}

.home-text p {
    margin: 0.5rem;
    font-size: 1.5rem;
    font-weight: 300;
}

.about-section {
    min-height: 100vh;
    display: flex;
    padding: 3rem;
    flex-wrap: wrap;
    font-size: 1.5rem;
    background-color: rgba(0, 0, 0, 0.25);
}

.about-section h1 {
    width: 100%;
    text-align: center;
    font-size: 4rem;
    font-weight: 500;
}

.caligrafia {
    font-family: "Playwrite AU NSW", cursive, sans-serif;
    background: linear-gradient(to right, #ff0000, #ff8c00, #f6ff00, #2bff00, #00eaff, #0062ff, #5100ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-text 5s linear infinite;
    background-size: 400% 100%;
}

@keyframes rainbow-text {
    0% { background-position: 0% 0%; }
    100% { background-position: 400% 0%; }
}

.about-text-skills {
    display: block;
    width: 100%;
}

.about-text-skills h2 {
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
}

.about-text-skills-columns {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    justify-content: space-evenly;
    align-items: center;
}

.about-text-skills-columns div {
    flex: 1;
    width: 100%;
    margin: 1rem;
    padding: 0 1rem;
    border-radius: 1rem;
    border: 1px solid white;
}

.about-text-skills-columns div h3 {
    text-align: center;
    width: 100%;
    font-size: 2rem;
}

.no-dot {
    display: block;
    list-style-type: none;
}

.about-text-cv {
    width: 100%;
    text-align: center;
    margin: 2rem;
}

@media (max-width: 720px) {
    .about-text-skills-columns {
        flex-direction: column;
        align-items: stretch;
    }
    .about-text-skills-columns div {
        width: 100%;
        margin: 0.5rem 0;
    }
}

.project-section {
    min-height: 100vh;
    display: flex;
    padding: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.project-section h1 {
    width: 100%;
    text-align: center;
    font-size: 4rem;
    font-weight: 500;
}

.project-text {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.project-text h2 {
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    padding: 0;
    margin: 0;
    margin-top: 2rem;
}

.project-college-list, .project-work-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.project-card {
    padding: 1rem;
    border: 1px solid white;
    border-radius: 1rem;
    min-width: 20rem; /* Equivalente a 720/3 px */
    max-width: 30rem; /* Equivalente a ~1920/3 px */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.5);
}

.project-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.project-card img {
    width: 15rem;
    height: 15rem;
    object-fit: cover;
    border-radius: 1rem;
}

.project-card ul {
    text-align: left;
}

@media (max-width: 66rem) {
    .project-college-list, .project-work-list {
        display: block;
    }
    .project-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

.contact-section {
    min-height: 50vh;
    display: flex;
    padding: 1rem;
    flex-wrap: wrap;
    background-color: rgba(0, 0, 0, 0.25);
}

.contact-section h1 {
    width: 100%;
    text-align: center;
    font-size: 4rem;
    font-weight: 500;
}

.contact-info {
    list-style: none;
    display: flex;
    width: auto;
    max-width: 100%;
    gap: 3rem;
    row-gap: 0;
    margin: 0 auto;
    padding: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.contact-text {
    width: 100%;
    text-align: center;
}

.contact-info li, .contact-info a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    border: 1px solid white;
}

.contact-info li i {
    margin-right: 1rem;
}

@media (max-width: 720px) {
    .contact-info {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .contact-info li {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
    }
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid white;
    border-radius: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 3rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.download-button {
    width: auto;
    height: fit-content;
    background-color: transparent;
    color: white;
    border: white 1px solid;
    border-radius: 1rem;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.download-button:active {
    background-color: rgba(255, 255, 255, 0.2);
}