/* Importa fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #d9e4ea;
    overflow-x: hidden;
    padding-top: 72px;
    /* espacio para navbar fijo */
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #000000;
    /* fondo sólido */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* sombra suave */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.navbar-left .logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tech-icon {
    width: 24px;
    height: 24px;
    color: #00f5d4;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #c2e9f3;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 245, 212, 0.2);
}

.social-link:hover {
    color: #ffffff;
    background: rgba(0, 245, 212, 0.1);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.35);
}

.social-link .icon {
    width: 20px;
    height: 20px;
    color: #00f5d4;
}

.menu-toggle {
    display: none;
}

.about.section {
    background-color: #121212;
    padding: 3rem 2rem 3rem;
    max-width: 1000px;
    margin: 0.5rem auto;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.15);
    text-align: center;
}

.about.section h2 {
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 800;
    border-bottom: 2px solid rgba(0, 245, 212, 0.4);
    padding-bottom: 0.6rem;
    margin-bottom: 3rem;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5rem;
    gap: 1rem;
}

.carousel-track-wrapper {
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    align-items: center;
}


.carousel-section {
    padding-top: 2rem;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 0.5rem;
}

.arrow:hover {
    color: #00f5d4;
}

.arrow.left {
    left: -0.05rem;
}

.arrow.right {
    right: -0.2rem;
}

.arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Flashcard pequeña */
.project-card {
    min-width: 800px;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
    padding: 2.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.3s ease;
    margin: auto;

}

.project-card:hover {
    transform: translateY(-4px);
}

.project-img {
    width: 40%;
    height: 60%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 200px;
}

.project-info h4 {
    font-size: 1.2rem;
    color: #00f5d4;
    margin: 0.5rem 0;
}

.github-icon {
    width: 20px;
    height: 20px;
    color: #00f5d4;
    outline-style: none;
    transition: transform 0.3s ease;
}

.github-icon:hover {
    transform: scale(1.2);
    color: #00f5d4;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
        background: none;
        border: none;
        color: #00f5d4;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .hero-split {
        margin-top: 80px;
        min-height: calc(100dvh - 80px);
        height: 100svh;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 1rem;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-left {
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
        display: flex;
    }

    .navbar-right {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        width: 100%;
    }

    .social-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.6rem 0.8rem;
        padding: 0.6rem 1rem;
    }

    .social-link:hover {
        color: #ffffff;
        background: rgba(0, 245, 212, 0.1);
        box-shadow: 0 0 10px rgba(0, 245, 212, 0.35);
    }

    .project-card {
        min-width: 280px;
        flex-direction: column;
    }

    .project-img,
    .project-info {
        width: 100%;
    }
}