﻿/****************** TAG SELECTORS ******************/

body {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;  /*Weights: 300, 400, 700*/
    font-weight: 300;
    font-size: 1.2rem;
    text-align: left;
    background-color: #252A34;
    color: #EAEAEA;
}

h3 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5rem;
}

button {
    border: none;
    background-color: transparent;
    color: #EAEAEA;
}

hr {
    margin: 0;
    border-width: 3px;
    border-style: solid;
    border-color: #EAEAEA;
}

/****************** CLASS SELECTORS ******************/

.hero {
    position: relative;
    height: 100vh; /* ocupa toda la pantalla */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* para que el navbar quede abajo */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.5); /* oscurece para leer el texto */
    z-index: -1;
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.hero-navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    background: transparent;
}

.hero-navbar .nav-link,
.hero-navbar .navbar-brand {
    color: #fff !important;
    transition: color 0.4s ease;
}

.hero-navbar.scrolled {
    background: #111; /* sólido al scrollear */
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-navbar.scrolled .nav-link,
.hero-navbar.scrolled .navbar-brand {
    color: #fff !important;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.scroll-down .chevron {
    border: solid white;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 8px;
    transform: rotate(45deg);
    margin: 3px;
    animation: scroll-bounce 2s infinite;
    opacity: 0.8;
}

.scroll-down .chevron:nth-child(2) {
    animation-delay: .2s;
}

.scroll-down .chevron:nth-child(3) {
    animation-delay: .4s;
}

.my-name {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 600;
    font-family: 'Ubuntu Mono', monospace;
}

.subtitle {
    font-size: 2rem;
}

.title-panel {
    cursor: pointer;
}

.contact-bar {
    margin:  0;
    position: absolute;
    right: 20px;
    top: 35px;
}

.top-block {
    height: 50px;
}

.main-body {
    margin: 0 auto;
    text-align: center;
    width: 80%;
}

.games-panel {
    height: 350px;
    margin-bottom: 30px;
}

.games-panel, .skills-panel {
    display: block;
    margin: 0 auto;
    width: 90%;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Ubuntu', sans-serif;
}

.game-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.game-card img {
    object-fit: cover;
    width: 100%;
}

.game {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin: 0 auto;
    position: relative;
    width: 300px;
}

.game-thumbnail {
    width: 100%;
    border-radius: 20px;
    margin: 20px 0;
}

.skill {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin: 0 auto;
    padding: 0 0 0 50px;
}

.skill-thumbnail {
    width: 150px;
    margin-bottom: 20px;
}

.secondary-skill {
    margin: 0 0 0 20px;
    display: inline-block;
    font-family: 'Ubuntu', sans-serif;
}

.job-block {
    background-position: center;
    background-size: 100% auto;
    min-height: 300px;
}

.achievement-block {
    background-position: center;
    background-size: 100% auto;
    min-height: 200px;
}

.block-right {
    padding: 30px 90px 30px 45%;
    text-align: right;
}

.block-left {
    padding: 30px 45% 30px 90px;
    text-align: left;
}

@media only screen and (max-width: 992px) {
    .block-right {
        padding: 30px 90px;
        text-align: left;
    }

    .block-left {
        padding: 30px 90px;
        text-align: left;
    }
}

/****************** ANIMATIONS ******************/

@keyframes scroll-bounce {
    0% { transform: rotate(45deg) translateY(0); opacity: 0.8; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 0.4; }
    100% { transform: rotate(45deg) translateY(0); opacity: 0.8; }
}