/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #eee;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px;
    gap: 70px;
    position: relative;
    z-index: 2;
}

.cyber-footer {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.85);
    border-top: 2px solid #00ff88;
    font-family: 'Orbitron';
    letter-spacing: 1px;
}

/* brilho matrix */
.footer-glow {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: glowRun 4s infinite;
}

@keyframes glowRun {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0; }
}

.cyber-footer p {
    opacity: .9;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #00ff88;
    text-decoration: none;
    opacity: .8;
    transition: .2s;
}

.footer-links a:hover {
    opacity: 1;
    text-shadow: 0 0 10px #00ff88;
    transform: translateY(-2px);
}



html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#page {
    flex: 1;        /* ISSO que empurra o footer pro inferno lá embaixo */
}



#typing {
    font-family: 'Orbitron';
    font-size: 48px;
    color: #00ff88;
    text-shadow: 0 0 12px #00ff88;
    margin-bottom: 10px;
}

.cursor {
    font-size: 48px;
    color: #00ff88;
    animation: blink 0.7s infinite alternate;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0; }
}

.hero p {
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 19px;
    opacity: .8;
}

.hero-photo img {
    width: 280px;
    height: 280px;
    border-radius: 10px;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px #00ff88;
    object-fit: cover;
}

/* button */

.btn {
    padding: 14px 28px;
    border: 2px solid #00ff88;
    color: #00ff88;
    text-decoration: none;
    font-family: 'Orbitron';
    transition: .2s;
}

.btn:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 12px #00ff88;
}

/* SEÇÕES */

section {
    padding: 90px 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Orbitron';
    font-size: 32px;
    text-shadow: 0 0 12px #00ff88;
    margin-bottom: 40px;
}

.sobre-text {
    font-size: 18px;
    opacity: .85;
    max-width: 800px;
    line-height: 1.6;
}

/* card 3d se mexendo */

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card3d {
    width: 100%;
    height: 200px;
    background: transparent;
    perspective: 800px;
}

.card-inner {
    width: 100%;
    height: 100%;
    border: 2px solid #00ff88;
    border-radius: 4px; /* QUADRADO */
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px #002e1f;
    padding: 20px;
    transition: transform .15s ease-out;
}

.card-inner h3 {
    font-family: 'Orbitron';
    margin-bottom: 10px;
}

.card-inner p {
    opacity: .85;
}

/* footer */

footer {
    text-align: center;
     margin-top: 100px;
    opacity: .7;
    margin-top: 250px;
}



/* matrix */

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* contato */
#contato {
    padding: 90px 60px;
    position: relative;
    z-index: 2;
}

.contato-descricao {
    max-width: 700px;
    opacity: .85;
    margin-bottom: 40px;
    font-size: 18px;
}

.contato-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-family: 'Orbitron';
    font-size: 16px;
    color: #00ff88;
    text-shadow: 0 0 8px #00ff88;
}

.input-group input,
.input-group textarea {
    padding: 14px;
    border: 2px solid #00ff88;
    background: rgba(0, 0, 0, 0.5);
    color: #eee;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: .2s;
}

.input-group input:focus,
.input-group textarea:focus {
    box-shadow: 0 0 12px #00ff88;
}

.input-group textarea {
    height: 140px;
    resize: none;
}

.btn-contato {
    font-size: 18px;
    width: fit-content;
}

/* card 3D no contato */
.contato-card {
    max-width: 650px;
    margin-top: 40px;
}

.contato-card .card-inner {
    padding: 35px;
    height: auto;
}

/* botão holo 3D */
.neon-btn {
    position: relative;
    overflow: hidden;
    padding: 16px 34px;
    border: 2px solid #00ff88;
    font-family: 'Orbitron';
    color: #00ff88;
    cursor: pointer;
    transition: 0.25s;
    background: transparent;
}

/* brilho animado */
.neon-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 120%;
    height: 100%;
    background: rgba(0, 255, 136, 0.2);
    transform: skewX(-20deg);
    transition: 0.4s;
}

.neon-btn:hover::before {
    left: 150%;
}

/* efeito ao passar o mouse */
.neon-btn:hover {
    background: #00ff88;
    color: #000;
    box-shadow: 0 0 18px #00ff88, 0 0 30px #00ff88 inset;
    transform: translateY(-3px);
}

/* efeito de clicar */
.neon-btn:active {
    transform: scale(0.96);
    box-shadow: 0 0 10px #00ff88 inset;
}

/* FOTO 3D */
.hero-photo {
    width: 280px;
    height: 280px;
    perspective: 900px;
}

.hero-photo-inner {
    width: 100%;
    height: 100%;
    border: 2px solid #00ff88;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px #00ff88;
    transition: transform .15s ease-out;
}

#contato {
    margin-bottom: 60px;      /* sobe o contato */
}

.contato-card {
    
    padding-bottom: 40px;
}




.hero-photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* responsivo */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 30px;
    }

    #typing {
        font-size: 34px;
    }

    .cursor {
        font-size: 34px;
    }

    .hero-photo img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 60px 25px;
    }

    #typing {
        font-size: 28px;
    }

    .cursor {
        font-size: 28px;
    }
}
