/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

/*=============== CSS VARIABLES ===============*/
:root {
    --neon-blue: #00ffff;
    --dark-blue: #0a0a1f;
    --white-color: #f0f0f0;
    --light-gray: #a0a0a0;
    
    --body-font: 'Open Sans', sans-serif;
    --title-font: 'Montserrat', sans-serif;

    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--dark-blue);
    color: var(--white-color);
}

h1, h2, h3, h4 {
    font-family: var(--title-font);
    color: var(--white-color);
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--white-color);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 3rem;
}

/*=============== HEADER & NAV ===============*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(10, 10, 31, 0.5);
    backdrop-filter: blur(10px);
}

.nav {
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: var(--title-font);
    font-weight: 700;
    color: var(--neon-blue);
    transition: 0.3s;
}

.nav__logo:hover {
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 600;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--neon-blue);
}

.nav__buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    background: none;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--body-font);
    transition: 0.3s;
}

.lang-switch:hover {
    background: var(--neon-blue);
    color: var(--dark-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}

/*=============== HERO ===============*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4.5rem; /* Header height */
    background: linear-gradient(rgba(10, 10, 31, 0.8), rgba(10, 10, 31, 1)), url('https://images.unsplash.com/photo-1531770332960-b96916892185?q=80&w=1974') no-repeat center center/cover;
}

.hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: var(--h3-font-size);
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    text-shadow: none;
}

.button {
    display: inline-block;
    background-color: transparent;
    color: var(--neon-blue);
    padding: 1rem 2rem;
    border: 2px solid var(--neon-blue);
    font-weight: 600;
    transition: 0.4s;
}

.button:hover {
    background-color: var(--neon-blue);
    color: var(--dark-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

/*=============== WORK ===============*/
.work__subtitle {
    text-align: center;
    font-size: var(--h3-font-size);
    margin: 4rem 0 2rem;
}

.work__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.work__card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.4s;
    aspect-ratio: 16 / 9; /* Garante que os cards mantenham a proporção de vídeo */
}

.work__card:hover {
    border-color: var(--neon-blue);
}

.work__img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vídeo/imagem cobrir todo o espaço do card */
    transition: transform 0.4s;
}

.work__card:hover .work__img {
    transform: scale(1.1);
}

.work__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 10, 31, 0.9), transparent);
    padding: 2rem 1.5rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.work__card:hover .work__overlay {
    transform: translateY(0);
}

.work__title {
    text-shadow: none;
    font-size: 1.25rem;
}

.work__description {
    color: var(--light-gray);
}

/*=============== ABOUT ===============*/
.about__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 3rem;
}

.about__image {
    width: 300px;
    justify-self: center;
    border: 4px solid var(--neon-blue);
    box-shadow: 0 0 25px var(--neon-blue);
}

.about__img {
    width: 100%;
}

.about__content .section__title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about__text {
    line-height: 1.7;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.about__skills-title {
    margin-bottom: 1rem;
    text-shadow: none;
}

.about__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.about__skills span {
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--neon-blue);
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-blue);
    font-size: 0.9rem;
}

/*=============== CONTACT ===============*/
.contact__form {
    max-width: 600px;
    margin: 0 auto;
}

.contact__group {
    position: relative;
    margin-bottom: 2rem;
}

.contact__input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--light-gray);
    color: var(--white-color);
    font-size: var(--normal-font-size);
    outline: none;
    transition: 0.3s;
}

.contact__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--light-gray);
    pointer-events: none;
    transition: 0.3s;
}

.contact__input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown) + .contact__label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    background-color: var(--dark-blue);
    padding: 0 0.5rem;
    color: var(--neon-blue);
}

textarea.contact__input {
    resize: vertical;
    min-height: 150px;
}

.contact__form .button {
    width: 100%;
    border: 2px solid var(--neon-blue);
}

/*=============== FOOTER ===============*/
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--light-gray);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin-top: 4rem;
}

/*=============== LIGHTBOX ===============*/
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.show {
    visibility: visible;
    opacity: 1;
}

.lightbox__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    padding: 1.5rem;
    background: var(--dark-blue);
    border: 2px solid var(--neon-blue);
}

.lightbox__close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 40px;
    height: 40px;
    background: var(--neon-blue);
    color: var(--dark-blue);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    border-radius: 50%;
}

.lightbox__body .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.lightbox__body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightbox__body img {
    width: 100%;
    height: auto;
}

/*=============== MEDIA QUERIES (RESPONSIVENESS) ===============*/
@media screen and (max-width: 768px) {
    .nav__list {
        display: none; /* Simplificando para o exemplo, um menu mobile seria ideal */
    }

    .about__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__content .section__title {
        text-align: center;
    }
    
    .about__image {
        width: 250px;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        height: 4rem;
    }
    
    .work__grid {
        grid-template-columns: 1fr;
    }
}
/*=============== CONTACT (MODIFICADO) ===============*/
.contact__socials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact__social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--light-gray);
    font-size: var(--normal-font-size);
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.contact__social-link i {
    font-size: 2.5rem;
    border: 2px solid var(--light-gray);
    width: 80px;
    height: 80px;
    line-height: 76px;
    text-align: center;
    border-radius: 50%;
    transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.contact__social-link:hover {
    color: var(--neon-blue);
}

.contact__social-link:hover i {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}