/* ========== General Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    background: radial-gradient(circle at center, #122441 0%, #0b1222 100%);
    overflow-x: hidden;
    overflow-y: auto;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

main {
    display: flex;
    justify-content: space-between;
    padding: 5% 10%;
    align-items: center;
}

h1 {
    color: #f0f0f0;
    text-shadow: 6px 6px 4px #000;
    font-size: 45px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 20px;
}

h2 {
    color: #e0e0e0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-top: 20px;
    font-size: 20px;
}

h3 {
    color: #e0e0e0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

p {
    color: #e0e0e0;
    font-size: 21px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: justify;
    line-height: 1.6;
}

ul {
    color: #e0e0e0;
}

a {
    color: #A7EBF2;
}

header {
    background-color: #101518;
    border-bottom: 3px solid #2d3747;
    text-align: center;
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif;
}

.acesso-inicio {
    width: 30px;
    height: 30px;
    margin-left: 30px;
}

.links {
    display: center;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    cursor: pointer;
}

.links a:hover {
    color: #f0f0f0;
    text-decoration-color: #039930;
    transform: translateY(-8px);
    box-shadow: 0 2px 0px #039930;
}



/* ========== Homepage Styles ========== */
.foto-container {
    width: 450px;
    height: 450px;
    perspective: 1000px;
}

.foto-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.foto-container:hover .foto-inner {
    transform: rotateY(180deg);
}

.foto-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    backface-visibility: hidden;
}

.foto-frente {
    object-position: center 5%;
}

.foto-verso {
    transform: rotateY(180deg);
    object-position: center 5%;
}

:root {
    --cursor-color: #f1f1f1;
}

.typing-text {
    display: inline-block;
    min-height: 3.6em;
    border-right: 3px;
    padding-right: 5px;
    white-space: pre-line;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--cursor-color); }
}

.presentation-content { 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    width: 50%;
}

.button_contato, .button_servicos {
    background-color: #02591c;
    padding: 10px;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transition: transform 3.0s ease, box-shadow 0.3s ease;
}

.button_contato:hover {
    background-color: #046e24;
    box-shadow: 0px 5px 5px #000;
}

.button_servicos:hover {
    background-color: #046e24;
    box-shadow: 0px 5px 5px #000;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}


/* ========== About Styles ========== */
.container-flex {
    width: 500px;
    height: 200px;
    font-size: 22px;
    display: flex;
    flex-direction: column;
}

    /* State & Country */
.localizacao {
    text-align: center;
}

.localizacao::before {
    content: "-------------------  "
}

.localizacao::after {
    content: "  -------------------";
}



/* ========== Skills Styles ========== */
.skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    min-height: auto;
    width: 100%;
}



/* ========== Contacts Styles ========== */
.contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    min-height: auto;
    width: 100%;
}

/* ========== Services Styles ========== */

.layout-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card {
    background-color:#111827;
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9ca3af;
    font-size: 18px;
    margin-bottom: 60px;
}

.service-card h3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    color: #9ca3af;
    margin-bottom: 8px;
}

.cta {
    margin-top: 80px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.btn {
    background: #02591c;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #046e24;
}

/* ========== Cards ========== */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    width: 180px;
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px #0000001a;
    transition: transform 3.0s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.card img {
    width: 60px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 18px;
    color: #333;
}

.card h3 {
    font-size: 18px;
    color: #333;
}

/* Hover Effect */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card.html:hover {
    border-left: 5px solid #e44d26;
    box-shadow: 0 0 10px #e44d26;
}

.card.css:hover {
    border-left: 5px solid #264de4;
    box-shadow: 0 0 10px #264de4;
}

.card.js:hover {
    border-left: 5px solid #f0db4f;
    box-shadow: 0 0 10px #f0db4f;
}

.card.git:hover {
    border-left: 5px solid #f34f29;
    box-shadow: 0 0 10px #f34f29;
}

.card.chrome:hover {
    border-left: 5px solid #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.card.vercel:hover {
    border-left: 5px solid #000;
    box-shadow: 0 0 10px #000;
}

.card.github:hover {
    border-left: 5px solid #1b1b1b;
    box-shadow: 0 0 10px #1b1b1b;
}

.card.linkedin:hover {
    border-left: 5px solid #0A66C2;
    box-shadow: 0 0 10px #0A66C2;
}

.card.whatsapp:hover {
    border-left: 5px solid #25d366;
    box-shadow: 0 0 10px #25d366;
}


/*! ========== Media Query for Smartphones and Tablets (screen up to 600px) ========== */
@media (max-width: 600px) {

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        outline: 1px solid red !important; /* temporary command: delete before push */
    }

    .links {
        width: 100%;
        padding: 20px;
        flex-direction: column;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 15px;
    }

    .card {
        width: 140px;
        padding: 20px 10px;
    }

    .card img {
        width: 50px;
    }

    .card h3 {
        font-size: 16px;
    }
}