/* Global Reset */
html { scroll-behavior: smooth; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #121212;
    color: #eaeaea;
    line-height: 1.6;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed; /* Menú fijo */
    width: 100%;
    top: 0;
    background-color: rgba(18, 18, 18, 0.95); /* Transparente */
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.brand h2 {
    font-size: 2rem;
    color: #fff;
}

.brand span {
    color: #00d4ff;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu li {
    list-style: none;
}

.menu a {
    color: #eaeaea;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.menu a:hover,
.menu .active {
    color: #fff;
    background-color: #232323;
    border-radius: 20px;
}

/* Hero Section */
.main {
    margin: 0 auto;
    width: 85%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: 6rem; /* Ajustar espacio para header fijo */
}

.info-content h1 {
    font-size: 3.5rem;
    color: #eaeaea;
    margin-bottom: 1rem;
}

.info-content h1 span {
    color: #00fff5;
}

.info-content p {
    margin-bottom: 2rem;
    color: #b5b5b5;
}

.download-cv {
    padding: 12px 25px;
    font-size: 1rem;
    background-color: #00fff5;
    color: #121212;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 245, 0.4);
    transition: all 0.3s ease;
}

.download-cv:hover {
    background-color: #00d4ff;
    box-shadow: none;
}


/* Technologies Section */
.technologies {
    padding: 5rem 10%;
    background-color: #1e1e1e;
    text-align: center;
    color: #eaeaea;
}

.technologies-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.technologies-heading .divider {
    height: 4px;
    width: 60px;
    background-color: #00fff5;
    margin: 1rem auto;
}

.technologies-heading p {
    margin-top: 1rem;
    color: #b5b5b5;
    font-size: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background-color: #121212;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: #eaeaea;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.tech-card img {
    width: 70px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.tech-card img:hover {
    transform: rotate(360deg);
}

.tech-card h3 {
    font-size: 1.2rem;
    color: #00fff5;
    margin-top: 0.5rem;
}


.main img {
    border: 5px solid #00fff5;
    border-radius: 10px;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.main img:hover {
    transform: scale(1.05);
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    align-items: center;
    padding: 5rem 10%;
    gap: 2rem;
    background-color: #1e1e1e;
}

.about img {
    width: 100%;
    border-radius: 10px;
}

.about-info h2 {
    font-size: 2.5rem;
    color: #eaeaea;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: #00fff5;
    margin: 1rem 0 2rem;
}

.about-info p {
    margin-bottom: 1.5rem;
    color: #b5b5b5;
}

.about-info button {
    padding: 12px 25px;
    background-color: #00fff5;
    color: #121212;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.about-info button:hover {
    background-color: #00d4ff;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 10%;
    background-color: #121212;
}

.portfolio-heading h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #eaeaea;
}

.portfolio .divider {
    margin: 1rem auto 2rem;
}

.container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background-color: #1e1e1e;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card__img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card__title h2 {
    padding: 1rem;
    color: #eaeaea;
    font-size: 1.5rem;
}

.card__proyect-links {
    display: flex;
    justify-content: space-evenly;
    padding: 1rem;
}

.card__proyect-links i {
    font-size: 1.5rem;
    color: #00fff5;
    transition: color 0.3s ease;
}

.card__proyect-links i:hover {
    color: #00d4ff;
}

/* Contact Section */
.contact-section {
    padding: 5rem 10%;
    background-color: #1e1e1e;
}

.contact-heading h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #eaeaea;
}

.container-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.contact-section img {
    max-width: 50%;
    border-radius: 10px;
}

.form-group {
    width: 40%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #00fff5;
    border-radius: 5px;
    background: transparent;
    color: #eaeaea;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00d4ff;
    outline: none;
}

.btn-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background-color: #00fff5;
    color: #121212;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: #00d4ff;
}

/* Botón para subir */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00fff5;
    color: #121212;
    padding: 12px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 255, 245, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    display: none; /* Oculto inicialmente */
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #00d4ff;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background-color: #121212;
    color: #ffff;
}

.sotial-networks {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sotial-networks i {
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s ease;
}

.sotial-networks i:hover {
    color: #007bff;
}

/* Responsivo */
@media screen and (max-width: 768px) {
    #inicio{
        margin-top: 100px;
    }
    .menu {
        font-size: 12px;
        align-items: center;
        gap: 1rem;
    }

    .main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .container-contact {
        flex-direction: column;
    }

    .form-group {
        width: 90%;
    }
}

/* Botón para subir */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00fff5;
    color: #121212;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
}

.scroll-top i {
    font-size: 1.5rem;
}

/* Animación de envío */
.sending-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    display: none; /* Oculto por defecto */
    text-align: center;
    z-index: 1000;
}

.sending-animation .spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #00d4ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
