/* GERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "JetBrains Mono", monospace;
}

body {
    background-color: #1E1E1E;
    min-height: 100vh;
}

.interface {
    max-width: 1280px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.btn-contato button {
    padding: 10px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: #CCCCCC;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    box-shadow: 0px 0px 8px #cccccc;
    transform: scale(1.05);
}

h2.titulo {
    padding: 40px 4%;
    color: #CCCCCC;
    text-align: center;
}

.btn-abri-menu-mobile {
    display: none;
}

/* ACCENT */
.accent-prefix {
    background: linear-gradient(to right, #fe4701, #ff0054);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 6px;
}

/* ANIMAÇÃO DE ENTRADA */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CABEÇALHO */
header {
    padding: 30px 4%;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-bottom 0.4s;
}

header.scrolled {
    background: rgba(30, 30, 30, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 4%;
}

header a {
    color: #CCCCCC;
    text-decoration: none;
    display: inline-block;
    transition-duration: 0.2s;
}

header a:hover {
    color: #fff;
    transform: scale(1.05);
}

header nav ul {
    list-style-type: none;
}

header nav ul li {
    display: inline-block;
    padding: 0 30px;
}

header nav ul li a {
    position: relative;
    padding-bottom: 4px;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #fe4701, #ff0054);
    transition: width 0.3s ease;
    border-radius: 2px;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a:hover {
    transform: none;
}

header > .interface {
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}

.labellogo {
    color: #CCCCCC;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.labellogo:hover {
    color: #fff;
}

/* MENU MOBILE FULL-SCREEN */
.menu-mobile {
    position: fixed;
    inset: 0;
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.menu-mobile.abrir-menu {
    opacity: 1;
    pointer-events: all;
}

.menu-close {
    position: absolute;
    top: 28px;
    right: 28px;
    background: none;
    border: none;
    color: #CCCCCC;
    font-size: 26px;
    cursor: pointer;
    transition: color 0.2s, transform 0.3s;
    padding: 8px;
    line-height: 1;
    box-shadow: none !important;
}

.menu-close:hover {
    color: #ff0054;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: none !important;
}

.menu-mobile nav ul {
    list-style: none;
    text-align: center;
}

.menu-mobile nav ul li {
    margin: 4px 0;
}

.menu-mobile nav ul li a {
    display: block;
    color: #888;
    font-size: 36px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 48px;
    letter-spacing: 1px;
    transition: color 0.2s;
    position: relative;
}

.menu-mobile nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #fe4701, #ff0054);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu-mobile nav ul li a:hover {
    color: #fff;
}

.menu-mobile nav ul li a:hover::after {
    width: 50%;
}

.menu-mobile-social {
    position: absolute;
    bottom: 44px;
    display: flex;
    gap: 28px;
}

.menu-mobile-social a {
    color: #444;
    font-size: 22px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.menu-mobile-social a:hover {
    color: #fe4701;
    transform: scale(1.15);
}

/* HERO */
section.topo-do-site {
    padding: 60px 4%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-flex {
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.txt-topo-site {
    flex: 1;
    max-width: 580px;
}

.hero-tag {
    display: block;
    color: #fe4701;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.topo-do-site .txt-topo-site h1 {
    color: #CCCCCC;
    font-size: 32px;
    line-height: 46px;
    margin-bottom: 24px;
}

.typed-text {
    background: linear-gradient(to right, #fe4701, #ff0054);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    color: #fe4701;
    animation: blink 1s step-end infinite;
    -webkit-text-fill-color: #fe4701;
}

@keyframes blink {
    50% { opacity: 0; }
}

.topo-do-site .txt-topo-site p {
    color: #999;
    margin: 0 0 40px 0;
    line-height: 1.8;
    font-size: 15px;
}

/* CODE DECORATION */
.code-decoration {
    flex: 0 0 auto;
}

.code-window {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    min-width: 320px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.code-window-bar {
    background: #2a2a2a;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.code-block {
    padding: 24px;
    font-size: 14px;
    line-height: 2;
}

.code-block p {
    color: #CCCCCC;
    opacity: 0;
    animation: fadeInLine 0.3s ease forwards;
}

.code-block p:nth-child(1) { animation-delay: 0.3s; }
.code-block p:nth-child(2) { animation-delay: 0.7s; }
.code-block p:nth-child(3) { animation-delay: 1.1s; }
.code-block p:nth-child(4) { animation-delay: 1.5s; }
.code-block p:nth-child(5) { animation-delay: 1.9s; }
.code-block p:nth-child(6) { animation-delay: 2.3s; }
.code-block p:nth-child(7) { animation-delay: 2.7s; }

@keyframes fadeInLine {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.c-keyword { color: #fe4701; }
.c-string  { color: #ce9178; }
.c-green   { color: #6bcb77; }

.blink-cursor {
    animation: blink 1s step-end infinite;
    color: #CCCCCC;
}

/* SOBRE MIM */
section.sobre-mim {
    padding: 60px 4%;
}

.sobre-flex {
    align-items: center;
    gap: 70px;
}

.sobre {
    flex: 1;
}

.sobre-mim .sobre p {
    padding: 8px 0;
    color: #999;
    text-align: justify;
    line-height: 1.8;
    font-size: 15px;
}

section.sobre-mim .interface a {
    text-decoration: underline;
    color: #CCCCCC;
}

.sobre-mim .sobre .btn-social button {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 22px;
    background-color: transparent;
    color: #CCCCCC;
    cursor: pointer;
    margin: 0;
    transition: all 0.2s;
}

.sobre-mim .sobre .btn-social button:hover {
    color: #fff;
    border-color: #fe4701;
    box-shadow: 0 0 16px rgba(254, 71, 1, 0.3);
    transform: scale(1.08);
}

.btn-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* AVATAR */
.sobre-avatar {
    flex: 0 0 260px;
    position: relative;
    width: 260px;
    height: 260px;
}

.sobre-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fe4701, #ff0054);
    z-index: 0;
}

.avatar-img {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: rgba(254, 71, 1, 0.2);
    overflow: hidden;
    z-index: 1;
}

.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* HABILIDADES */
section.habilidades .flex {
    justify-content: center;
    align-items: center;
    padding: 20px 4% 60px;
}

.skills {
    width: 540px;
    padding: 40px;
    border-radius: 16px;
    background-color: #ffffff0a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.skills h2 {
    text-align: center;
    color: #CCCCCC;
    margin-bottom: 10px;
}

.skills h3 {
    color: #CCCCCC;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills h3 i {
    color: #fe4701;
    font-size: 16px;
}

.skills ul {
    list-style: none;
    margin-top: 16px;
}

.skills ul li {
    margin: 20px 0;
}

.skills .barras {
    background-color: rgba(255, 255, 255, 0.1);
    display: block;
    height: 8px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.barras > span {
    height: 8px;
    background: linear-gradient(to right, #fe4701, #ff0054);
    position: absolute;
    border-radius: 10px;
}

.delphi  { width: 60%; animation: delphi  3s ease-out; }
.python  { width: 50%; animation: python  3s ease-out; }
.html    { width: 30%; animation: html    3s ease-out; }
.css     { width: 30%; animation: css     3s ease-out; }
.csharp  { width: 45%; animation: csharp  3s ease-out; }
.sql     { width: 50%; animation: sql     3s ease-out; }

@keyframes delphi { 0% { width: 0%; } 100% { width: 60%; } }
@keyframes python { 0% { width: 0%; } 100% { width: 50%; } }
@keyframes html   { 0% { width: 0%; } 100% { width: 30%; } }
@keyframes css    { 0% { width: 0%; } 100% { width: 30%; } }
@keyframes csharp { 0% { width: 0%; } 100% { width: 45%; } }
@keyframes sql    { 0% { width: 0%; } 100% { width: 50%; } }

/* PROJETOS */
section.projetos {
    padding: 0 4% 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 4%;
}

.project-card {
    background: #ffffff0a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 28px;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    border-color: rgba(254, 71, 1, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(254, 71, 1, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-icon {
    color: #fe4701;
    font-size: 28px;
}

.card-link {
    color: #666;
    font-size: 20px;
    text-decoration: none !important;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
    z-index: 1;
    position: relative;
}

.card-link:hover {
    color: #fe4701 !important;
    transform: scale(1.1) !important;
}

.project-card h3 {
    color: #CCCCCC;
    margin-bottom: 10px;
    font-size: 17px;
}

.project-card p {
    color: #777;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: rgba(254, 71, 1, 0.08);
    color: var(--lang-color, #fe4701);
    border: 1px solid rgba(254, 71, 1, 0.2);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-star {
    --lang-color: #e8c840;
    background: rgba(232, 200, 64, 0.08);
    border-color: rgba(232, 200, 64, 0.25);
}

.projects-loading {
    color: #555;
    font-size: 14px;
    padding: 40px;
    grid-column: 1 / -1;
}

/* CONTATO */
section.contato {
    padding: 0 4% 80px;
}

.contato-wrapper {
    display: flex;
    gap: 60px;
    padding: 0 4%;
    align-items: flex-start;
}

.contato-info {
    flex: 1;
    max-width: 380px;
}

.contato-info h3 {
    color: #CCCCCC;
    font-size: 22px;
    margin-bottom: 16px;
}

.contato-info p {
    color: #777;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contato-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contato-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #888;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s, gap 0.2s;
}

.contato-links a i {
    font-size: 20px;
    color: #fe4701;
}

.contato-links a:hover {
    color: #CCCCCC;
    gap: 14px;
}

.contato-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contato-form input,
.contato-form textarea {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
    color: #CCCCCC;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.contato-form input::placeholder,
.contato-form textarea::placeholder {
    color: #444;
}

.contato-form input:focus,
.contato-form textarea:focus {
    border-color: rgba(254, 71, 1, 0.4);
    box-shadow: 0 0 0 3px rgba(254, 71, 1, 0.08);
}

.contato-form button {
    align-self: flex-start;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(to right, #fe4701, #ff0054);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.contato-form button:hover {
    box-shadow: 0 0 20px rgba(254, 71, 1, 0.4);
    transform: scale(1.04);
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-folder-icon {
    color: #fe4701;
    font-size: 28px;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 4px;
    box-shadow: none !important;
}

.modal-close:hover {
    color: #ff0054;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: none !important;
}

.modal-box h3 {
    color: #CCCCCC;
    font-size: 20px;
    margin-bottom: 12px;
}

.modal-box p {
    color: #888;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    color: #666;
    font-size: 13px;
}

.modal-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-stats i {
    color: #fe4701;
}

.modal-btn {
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.Made {
    padding: 10px 4%;
    color: #555;
    text-align: center;
    font-size: 13px;
}

.Made a {
    color: #777;
    text-decoration: none;
}

.Made a:hover {
    color: #CCCCCC;
    transition-duration: 0.2s;
}

/* MOBILE */
@media screen and (max-width: 900px) {

    .flex {
        flex-direction: column;
    }

    .btn-abri-menu-mobile {
        display: block;
    }

    .btn-abri-menu-mobile i {
        color: #CCCCCC;
        font-size: 36px;
    }

    .menu-desktop, .btn-contato {
        display: none;
    }

    .labellogo a {
        font-size: large;
    }

    section.topo-do-site {
        padding: 40px 8%;
        min-height: auto;
    }

    .hero-flex { gap: 0; }
    .code-decoration { display: none; }

    .topo-do-site .txt-topo-site h1 {
        font-size: 26px;
        line-height: 38px;
    }

    .topo-do-site .txt-topo-site p {
        margin: 30px 0 40px;
    }

    section.sobre-mim {
        padding: 40px 6%;
    }

    .sobre-flex {
        align-items: center;
        gap: 40px;
    }

    .sobre-avatar {
        width: 180px;
        height: 180px;
        flex: 0 0 180px;
        align-self: center;
    }

    .avatar-img {
        width: 180px;
        height: 180px;
        font-size: 70px;
    }

    .sobre-mim .sobre p {
        text-align: center;
    }

    .btn-social {
        justify-content: center;
    }

    h2.titulo {
        padding: 30px 8%;
        font-size: 22px;
    }

    .skills {
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .contato-wrapper {
        flex-direction: column;
        padding: 0;
        gap: 40px;
    }

    .contato-info {
        max-width: 100%;
    }

    .modal-box {
        padding: 24px;
    }

    .menu-mobile nav ul li a {
        font-size: 28px;
        padding: 10px 32px;
    }
}
