@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Poppins:wght@400;600&display=swap');

/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* BODY */
body{
    min-height:100vh;
    background:linear-gradient(135deg,#1e3c72,#2a5298);
    font-family:'Poppins',sans-serif;
    color:white;
}

/* HEADER */
.main-header{
    width:100%;
    padding:20px 50px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:rgba(0,0,0,0.25);

    position:fixed;
    top:0;
    left:0;

    z-index:1000;
}

.logo-container{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo{
    width:40px;
    height:40px;
}

.brand-name{
    font-family:'Press Start 2P', cursive;
    font-size:14px;
}

nav ul{
    list-style:none;
    display:flex;
    gap:20px;
}

nav a{
    text-decoration:none;
    color:white;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:#38bdf8;
}

/* CONTEÚDO */
.landing-page{
    text-align:center;
    padding-top:100px;
    padding-left:20px;
    padding-right:20px;
}

/* HERO */
.hero{
    height:350px;

    background-image:url("images/Snake_Background.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    border-radius:15px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    position:relative;

    margin-bottom:40px;

    overflow:hidden;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;

    background:rgba(30,60,114,0.35);

    z-index:1;
}

.hero h1{
    position:relative;
    z-index:2;

    font-family:'Press Start 2P', cursive;
    font-size:28px;

    color:white;

    text-shadow:
        3px 3px 0 rgba(0,0,0,0.8);

    margin-bottom:20px;
}

.hero p{
    position:relative;
    z-index:2;

    font-size:18px;
    max-width:700px;

    color:white;

    text-shadow:
        2px 2px 0 rgba(0,0,0,0.8);
}

/* GAME */
.game-conteiner{
    display:inline-block;
}

.score-board{
    display:flex;
    justify-content:space-between;

    margin-bottom:15px;

    font-family:'Press Start 2P', cursive;
    font-size:12px;
}

/* CANVAS */
.canvas-wrapper{
    position:relative;
    width:400px;
    height:400px;
}

canvas{
    display:block;

    background:#000;

    border:4px solid #2a5298;
    border-radius:10px;
}

/* OVERLAY */
#game-overlay{
    position:absolute;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.85);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    border-radius:10px;

    z-index:10;

    transition:opacity .5s ease;
}

.hidden{
    opacity:0 !important;
    pointer-events:none !important;
}

#overlay-text{
    font-family:'Press Start 2P', cursive;
    color:#ff0000;
    margin-bottom:20px;
}

/* BOTÕES */
.button-group{
    margin-top:20px;

    display:flex;
    justify-content:center;
    gap:10px;
}

button{
    color:white;

    padding:12px 24px;

    font-size:12px;
    font-family:'Press Start 2P', cursive;

    background:#2a5298;

    border:none;
    border-radius:5px;

    cursor:pointer;

    transition:.3s;
}

button:hover{
    background:#1e3c72;
    transform:scale(1.05);
}

/* FOOTER */
footer{
    margin-top:20px;
    padding:10px;

    font-size:12px;

    background:rgba(0,0,0,0.3);
    border-radius:8px;
}
.social-links{
    display:flex;
    justify-content:center;
    gap:16px;
    margin-top:10px;
}

.social-links a{
    color:white;
    font-size:20px;
    transition:.3s;
}

.social-links a:hover{
    color:#38bdf8;
    transform:scale(1.15);
}
.contact-form{
    max-width:420px;
    margin:0 auto;
    background:rgba(0,0,0,.25);
    border-radius:10px;
    padding:24px;
    display:flex;
    flex-direction:column;
}

.contact-form label{
    font-size:12px;
    margin-bottom:6px;
    color:#cfe0f7;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:10px;
    margin-bottom:16px;
    border-radius:6px;
    border:none;
    font-family:'Poppins',sans-serif;
    font-size:13px;
}

.contact-form button{
    width:100%;
}
.contact-text {
    font-family:'Press Start 2P', cursive;    
    margin-bottom: 20px;
}
.contact-section {
    margin-top: 50px;
}
/* SEÇÃO DE TECNOLOGIAS */
.tech-section{
    max-width:900px;
    margin:60px auto;
}

.tech-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:16px;
}

.tech-card{
    background:rgba(0,0,0,0.25);
    border-radius:10px;
    padding:24px;
    text-align:center;
    transition:.3s;
}

.tech-card:hover{
    transform:translateY(-5px);
    background:rgba(0,0,0,0.35);
}

.tech-card i{
    font-size:32px;
    margin-bottom:12px;
    color:#38bdf8;
}

.tech-card h3{
    font-size:15px;
    margin-bottom:8px;
}

.tech-card p{
    font-size:12px;
    color:#cfe0f7;
    line-height:1.5;
}

/* SEÇÃO DO ALGORITMO */
.algorithm-section{
    max-width:900px;
    margin:60px auto;
}

.algorithm-steps{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap:16px;
}

.step-card{
    background:rgba(0,0,0,0.25);
    border-radius:10px;
    padding:20px;
}

.step-number{
    display:block;
    font-family:'Press Start 2P', cursive;
    font-size:11px;
    color:#38bdf8;
    margin-bottom:10px;
}

.step-card p{
    font-size:13px;
    line-height:1.6;
}

.step-card strong{
    color:#38bdf8;
}
.tech-card:nth-child(1) i{ color:#e34c26; }
.tech-card:nth-child(2) i{ color:#1572b6; }
.tech-card:nth-child(3) i{ color:#f0db4f; }

.section-title {
    margin-top: 20px;
    margin-bottom: 20px;
    font-family:'Press Start 2P', cursive;
}
/* SEÇÃO DO ALGORITMO */
.algorithm-section{
    max-width:900px;
    margin:60px auto;
}

.algorithm-steps{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap:16px;
}

.step-card{
    background:rgba(0,0,0,0.25);
    border-radius:10px;
    padding:20px;
}

.step-number{
    display:block;
    font-family:'Press Start 2P', cursive;
    font-size:11px;
    color:#38bdf8;
    margin-bottom:10px;
}

.step-card p{
    font-size:13px;
    line-height:1.6;
}

.step-card strong{
    color:#38bdf8;
}
.board-example{
    max-width:640px;
    margin:0 auto 30px;
    background:rgba(0,0,0,0.3);
    border-radius:10px;
    padding:20px;
}

.board-example svg{
    width:100%;
    height:auto;
    display:block;
}
.section-subtitle {
    padding: 1rem;
}
a, button, .tech-card, .step-card{
    transition:all .3s ease;
}
.reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .6s ease, transform .6s ease;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}
.tech-card:nth-child(1){ transition-delay:0s; }
.tech-card:nth-child(2){ transition-delay:.15s; }
.tech-card:nth-child(3){ transition-delay:.3s; }

.main-header{
    transition:background .3s ease, padding .3s ease;
}

.main-header.scrolled{
    background:rgba(0,0,0,0.6);
    padding:12px 50px;
}
