/* ==================== RESET ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}


/* ==================== HEADER ==================== */

.header {
    width: 100%;
    height: 75px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #111827;
}

.logo span {
    color: #2563eb;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;

    transition: 0.3s;
}

nav a:hover {
    color: #2563eb;
}


/* ==================== HERO ==================== */

.hero {
    min-height: calc(100vh - 75px);

    display: flex;
    align-items: center;

    background: #ffffff;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-text {
    max-width: 650px;
}

.small-title {
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;

    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 78px);
    line-height: 1;
    letter-spacing: -3px;

    margin-bottom: 15px;
}

.hero h2 {
    font-size: 25px;
    color: #4b5563;

    margin-bottom: 20px;
}

.hero-description {
    max-width: 580px;

    color: #6b7280;
    font-size: 17px;

    margin-bottom: 30px;
}


/* ==================== FOTO ==================== */

.hero-photo {
    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-circle {
    width: 330px;
    height: 330px;

    border-radius: 50%;

    padding: 7px;

    background: #2563eb;

    box-shadow:
        0 20px 50px rgba(37, 99, 235, 0.20);

    overflow: hidden;
}

.photo-circle img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}


/* ==================== BOTÕES ==================== */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;

    padding: 13px 22px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    border: 1px solid transparent;

    cursor: pointer;

    transition: 0.3s;
}

.btn.primary {
    background: #2563eb;
    color: white;
}

.btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn.secondary {
    background: white;
    border-color: #d1d5db;
    color: #111827;
}

.btn.secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
}


/* ==================== SEÇÕES ==================== */

.section {
    padding: 100px 0;
}

.gray-section {
    background: #f8fafc;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
}

.section-title span {
    color: #2563eb;

    font-size: 14px;
    font-weight: 800;
}

.section-title h2 {
    font-size: 38px;
    letter-spacing: -1px;
}

.section-description {
    max-width: 650px;

    color: #6b7280;

    margin-bottom: 45px;
}


/* ==================== SOBRE ==================== */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 70px;
}

.about-text p {
    color: #4b5563;
    margin-bottom: 20px;
}

.about-card {
    padding: 30px;

    border: 1px solid #e5e7eb;
    border-radius: 15px;

    background: #ffffff;
}

.about-item {
    display: flex;
    flex-direction: column;

    padding: 18px 0;

    border-bottom: 1px solid #e5e7eb;
}

.about-item:last-child {
    border-bottom: none;
}

.about-item strong {
    margin-bottom: 5px;
}

.about-item span {
    color: #6b7280;
    font-size: 14px;
}


/* ==================== TECNOLOGIAS ==================== */

.tech-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.tech-card {
    padding: 25px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    transition: 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);

    border-color: #2563eb;

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.05);
}

.tech-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;

    margin-bottom: 18px;
}

.tech-card h3 {
    margin-bottom: 8px;
}

.tech-card p {
    color: #6b7280;
    font-size: 14px;
}


/* ==================== PROJETOS ==================== */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    position: relative;

    padding: 30px;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    background: #ffffff;

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);

    border-color: #2563eb;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.06);
}

.project-number {
    color: #2563eb;

    font-size: 13px;
    font-weight: 800;

    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.project-card p {
    color: #6b7280;
    font-size: 14px;

    margin-bottom: 20px;
}


/* ==================== TAGS ==================== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 20px;
}

.tags span {
    padding: 5px 9px;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;
}

.project-button {
    border: none;

    background: transparent;

    color: #2563eb;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    padding: 0;
}

.project-button:hover {
    text-decoration: underline;
}


/* ==================== SHOWCASE ==================== */

.showcase {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.showcase-label {
    color: #2563eb;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.showcase-text h2 {
    font-size: 38px;
    line-height: 1.15;

    margin: 12px 0 20px;
}

.showcase-text p {
    color: #6b7280;

    margin-bottom: 25px;
}


/* ==================== JANELA DE CÓDIGO ==================== */

.code-window {
    overflow: hidden;

    background: #111827;

    border-radius: 12px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15);
}

.window-header {
    height: 40px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 15px;

    background: #1f2937;
}

.window-header span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #9ca3af;
}

.code-window pre {
    padding: 25px;

    overflow-x: auto;
}

.code-window code {
    color: #e5e7eb;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 14px;

    line-height: 1.7;
}


/* ==================== JAVA ==================== */

.details-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.details-grid h3 {
    font-size: 27px;

    margin-bottom: 15px;
}

.details-grid p {
    color: #6b7280;
}

.details-list {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    list-style: none;
}

.details-list li {
    padding: 12px;

    background: #f8fafc;

    border-radius: 7px;

    color: #374151;

    font-size: 14px;
}


/* ==================== MER ==================== */

.mer-content > p {
    color: #6b7280;

    margin-bottom: 30px;
}

.mer-items {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.mer-items div {
    padding: 25px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 10px;
}

.mer-items strong {
    display: block;

    margin-bottom: 8px;
}

.mer-items span {
    color: #6b7280;

    font-size: 13px;
}


/* ==================== CONTATO ==================== */

.contact-section {
    background: #111827;

    color: white;
}

.contact-section .section-title span {
    color: #60a5fa;
}

.contact-section .section-title h2 {
    color: white;
}

.contact-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}

.contact-text h2 {
    font-size: 40px;

    margin-bottom: 15px;
}

.contact-text p {
    color: #9ca3af;
}

.contact-links {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    border: 1px solid #374151;

    border-radius: 10px;

    transition: 0.3s;
}

.contact-item:hover {
    border-color: #60a5fa;
}

.contact-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #1f2937;

    color: #60a5fa;

    font-weight: 800;
}

.contact-item div {
    display: flex;

    flex-direction: column;
}

.contact-item span {
    color: #9ca3af;

    font-size: 14px;
}


/* ==================== MODAL ==================== */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;

    width: 100%;
    max-width: 750px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 40px;

    background: white;

    border-radius: 15px;
}

.modal-close {
    position: absolute;

    top: 15px;
    right: 20px;

    border: none;

    background: transparent;

    font-size: 30px;

    color: #6b7280;

    cursor: pointer;
}

.modal-category {
    color: #2563eb;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}

.modal-content h2 {
    font-size: 32px;

    margin: 10px 0 15px;
}

.modal-content > p {
    color: #6b7280;

    margin-bottom: 20px;
}

.modal-tags {
    margin-bottom: 25px;
}


/* ==================== MODAL CÓDIGO ==================== */

.modal-code {
    overflow: hidden;

    background: #111827;

    border-radius: 10px;
}

.modal-code-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 12px 15px;

    background: #1f2937;

    color: white;

    font-size: 13px;
    font-weight: 700;
}

.modal-code-header button {
    border: 1px solid #4b5563;

    background: transparent;

    color: white;

    padding: 6px 10px;

    border-radius: 5px;

    cursor: pointer;
}

.modal-code-header button:hover {
    background: #374151;
}

.modal-code pre {
    padding: 20px;

    overflow-x: auto;
}

.modal-code code {
    color: #e5e7eb;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 13px;

    line-height: 1.7;
}


/* ==================== FOOTER ==================== */

footer {
    padding: 25px;

    text-align: center;

    background: #0b1120;

    color: #6b7280;

    font-size: 13px;
}


/* ==================== RESPONSIVO ==================== */

@media (max-width: 900px) {

    .hero-container {
        flex-direction: column-reverse;

        text-align: center;

        padding: 70px 0;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .photo-circle {
        width: 260px;
        height: 260px;
    }

    .tech-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .about-content,
    .showcase,
    .details-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .mer-items {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .header {
        height: auto;
    }

    .nav-container {
        flex-direction: column;

        gap: 15px;

        padding: 18px 0;
    }

    nav {
        width: 100%;

        justify-content: center;

        gap: 15px;

        flex-wrap: wrap;
    }

    nav a {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .photo-circle {
        width: 220px;
        height: 220px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .tech-grid,
    .projects-grid,
    .mer-items {
        grid-template-columns: 1fr;
    }

    .details-list {
        grid-template-columns: 1fr;
    }

    .showcase-text h2 {
        font-size: 30px;
    }

    .contact-text h2 {
        font-size: 32px;
    }

    .modal-content {
        padding: 30px 20px;
    }

}