/* Base */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: rgb(240, 248, 255);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
    background-color: #0f100f;
    line-height: 1.6;

    position: relative;
    z-index: 0;
}

/* Layout */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 3.5rem 1.5rem;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    margin-bottom: 1.25rem;
}


/* Titulos */
h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.4rem;
    margin: 2.5rem 0 1rem;
}

h3 {
    font-size: 1.1rem;
}

/* Texto */
p {
    margin: 0.5rem 0 1.2rem;
    color: rgb(226, 232, 238)
}

/* Separadores */
hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    width: 80%;
    margin: 3rem auto;
}

/* nav */
nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    padding: 0.5rem 1.5rem;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
}

nav a:hover {
    color: rgb(144, 212, 8);
    opacity: 1;
    transform: translateY(-2px);
}

/* Yo */
h1 {
    font-size: 2.25rem;
    color: rgb(144, 212, 8);
}

h1:hover {
    transform: translateY(-2px);
    
}

.mi-nombre {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.mi-nombre h2 {
    font-size: 1em;
    margin: 0;
}

.mi-nombre p {
    margin-top: 0.25rem;
    margin-bottom: 4rem;
}

.mi-nombre h3 {
    font-size: 0.9em;
}

/* Links */
a {
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

/* Technologies */
.tech-list {
    margin: 0 auto;
    max-width: 100%;
    font-weight: 500;
    list-style: none;

    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 8px;
}

.tech-list li {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    opacity: 0.9;

        transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.tech-list li:hover {
    border: 1px solid rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Proyectos */
.projects-grid {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);

    display: flex;
    flex-direction: column;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.project-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.project-tech {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech li {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    transition:
        border-color 0.4s ease;
}

.project-tech li:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.project-link {
    margin-top: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.85;
}

.project-link:hover {
    color: rgb(144, 212, 8);
    opacity: 1;
}

/* Video de fondo */
.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;

    object-fit: cover;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

@media (max-aspect-ratio: 16/9) {
    .bg-video {
        object-fit: contain;
    }
}

.sound-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 10;
}

.sound-btn:hover {
    color: rgb(144, 212, 8);
}

footer {
    text-align: center;
    margin-bottom: 1.5rem;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
}
