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

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
    font-family: "Roboto", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #151515;
    width: 100%;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

a {
    text-decoration: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #151515;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-green);
}

#loading-text {
    position: absolute;
    color: var(--color-white);
    font-size: 3rem;
    z-index: 10;
}


:root {
    --color-green: #8FE20E;
    --color-black: #202020;
    --color-white: #fafafa;
}

.container {
    display: inline;
    border-radius: 20px;
    width: 95%;
    max-width: 400px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .8rem;
}

.content {
    min-width: 320px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/****************** WIDGET 1 */
.widget1 {
    width: 100%;
    height: 16%;
    background-color: var(--color-black);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.widget1 img {
    width: 100%;
    border-radius: 8px;
}

.info-user {
    width: 80%;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    text-align: left;
    gap: 0.6rem;
}

.img-user {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
}

.img-user img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-user h1 {
    font-size: 1.2rem;
    color: var(--color-white);
    padding-bottom: 0.2rem;
    font-weight: bold;
}

.name-user span {
    color: #fafafab4;
    font-size: 0.8rem;
}

.info-icon {
    width: 35px;
    display: flex;
    justify-content: right;
    align-items: center;
}

.info-icon img {
    width: 100%;
    animation: rotate 5s linear infinite;
}

/****************** WIDGET 2 */
.widget2 {
    width: 100%;
    height: 16%;
    background-color: var(--color-black);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hard-skills {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0.4rem;
}

.destaque {
    color: var(--color-green);
    font-weight: bold;
    font-size: 1rem;
    padding-bottom: 0.3rem;
}

.skills-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skills-icons i {
    color: #fff;
    font-size: 1.4rem;
    transition: color 0.3s;
}

.skills-icons i:hover {
    cursor: pointer;
}

/* Cores específicas para cada ícone */
.skills-icons .fa-html5:hover {
    color: #e34f26;
}

.skills-icons .fa-css3-alt:hover {
    color: #1572b6;
}

.skills-icons .fa-js:hover {
    color: #f7df1e;
}

.skills-icons .fa-bootstrap:hover {
    color: #7952b3;
}

.skills-icons .fa-react:hover {
    color: #61dafb;
}

.skills-icons .fa-node:hover {
    color: #339933;
}

.skills-icons .fa-php:hover {
    color: #777bb4;
}

.skills-icons .fa-java:hover {
    color: #007396;
}

.skills-icons .fa-github:hover {
    color: #181717;
}

.skills-icons .fa-wix:hover {
    color: #ff5722;
}

.skills-icons .fa-wordpress:hover {
    color: #21759b;
}

/****************** WIDGET 3 */
.widget3 {
    height: 100%;
    height: 32%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.tread {
    border-radius: 12px;
    background-color: var(--color-black);
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 0.8rem;
}

.text-tread {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-tread h1 {
    padding-bottom: 0.3rem;
    color: var(--color-white);
    font-weight: bold;
    font-size: 1rem;
}

.text-tread span {
    color: #fafafab4;
    font-size: 0.8rem;
}

.img-tread {
    width: 100%;
    height: 100px;
    background-image: url(/img/tread-skateboard.jpg);
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.img-tread img {
    width: 50%;
}

.redes-sociais {
    border-radius: 12px;
    width: 50%;
    height: 185px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.redes-sociais a {
    background-color: var(--color-black);
    border-radius: 10px;
    width: 45%;
    height: 45%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.redes-sociais i {
    font-size: 2.8rem;
    color: var(--color-white);
}

.redes-sociais .tiktok:hover i {
    color: #000;
    transition: color 0.3s;
}

.redes-sociais .instagram:hover i {
    color: #E1306C;
    transition: color 0.3s;
}

.redes-sociais .github:hover i {
    color: #000;
    transition: color 0.3s;
}

.redes-sociais .linkedin:hover i {
    color: #0077B5;
    transition: color 0.3s;
}

/****************** WIDGET 4 */
.widget4 {
    width: 100%;
    height: 16%;
    background-color: var(--color-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    padding: 1rem;
}

.meu-site {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: .8rem;
}

.meu-site img {
    width: 50px;
    height: 50px;
}

.meu-site h1 {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-black);
}

/****************** WIDGET 5 */
.widget5 {
    width: 100%;
    height: 16%;
    background-color: var(--color-black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    padding: 1rem;
}

.freelancer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: .8rem;
}

.freelancer img {
    width: 50px;
    height: 50px;
}

.freelancer h1 {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-white);
}
/* ANIMAÇÕES */
.widget1,
.widget2,
.tread,
.box-social,
.widget4,
.widget5 {
    transition: transform 0.3s ease;
}

.widget1:hover,
.widget2:hover,
.tread:hover,
.box-social:hover,
.widget4:hover,
.widget5:hover {
    transform: translateY(-5px);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.meu-site img,
.freelancer img {
    animation: pulse 3s infinite ease-in-out;
}

/* ============================================================
   CAMADA DE COR E VIDA (mantém a estrutura original)
   ============================================================ */

/* Fundo com gradiente animado */
body {
    background: linear-gradient(-45deg, #151515, #1d2b12, #0f2a1d, #241232, #151515);
    background-size: 400% 400%;
    animation: bgFlow 18s ease infinite;
}

@keyframes bgFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Entrada dos widgets em cascata */
.content > div { animation: riseIn 0.7s ease both; }
.content > div:nth-child(1) { animation-delay: 0.05s; }
.content > div:nth-child(2) { animation-delay: 0.15s; }
.content > div:nth-child(3) { animation-delay: 0.25s; }
.content > div:nth-child(4) { animation-delay: 0.35s; }
.content > div:nth-child(5) { animation-delay: 0.45s; }
.content > div:nth-child(6) { animation-delay: 0.55s; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(26px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* Brilho neon nos widgets escuros */
.widget1, .widget2, .tread, .widget5, .widget6 {
    border: 1px solid rgba(143, 226, 14, 0.18);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Ícones de skills sempre coloridos */
.skills-icons .fa-html5 { color: #e34f26; }
.skills-icons .fa-css3-alt { color: #1572b6; }
.skills-icons .fa-js { color: #f7df1e; }
.skills-icons .fa-bootstrap { color: #7952b3; }
.skills-icons .fa-react { color: #61dafb; }
.skills-icons .fa-node { color: #339933; }
.skills-icons .fa-php { color: #777bb4; }
.skills-icons .fa-java { color: #007396; }
.skills-icons .fa-github { color: #fafafa; }
.skills-icons .fa-wix { color: #ff5722; }
.skills-icons .fa-wordpress { color: #21759b; }
.skills-icons i { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15)); }
.skills-icons i:hover { transform: translateY(-4px) scale(1.15); }

/* Redes sociais coloridas */
.redes-sociais .tiktok i { color: #25f4ee; }
.redes-sociais .instagram i { color: #E1306C; }
.redes-sociais .github i { color: #fafafa; }
.redes-sociais .linkedin i { color: #0a66c2; }
.redes-sociais a { border: 1px solid rgba(255, 255, 255, 0.1); }

/* Imagem quebrada do tread vira banner DNC */
.img-tread {
    background-image: none;
    background: linear-gradient(135deg, #8fe20e, #00c853 45%, #00b0ff);
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-tread::after {
    content: "DNC";
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.35em;
    color: rgba(0, 0, 0, 0.55);
    padding-left: 0.35em;
}

/* Gradiente vivo no widget portfólio */
.widget4 {
    background: linear-gradient(135deg, #8fe20e, #d4f542);
    box-shadow: 0 8px 28px rgba(143, 226, 14, 0.35);
}

/* ============ LOADING: carinha + CD ============ */
#loading-screen {
    background: radial-gradient(circle at 50% 40%, #1e2b12 0%, #151515 70%);
    flex-direction: column;
}
.loader-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 10;
}
.vinyl {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #8fe20e 0 16%, transparent 17%),
        repeating-radial-gradient(circle, #2a2a2a 0 2px, #161616 2px 4px);
    border: 2px solid #333;
    box-shadow: 0 0 40px rgba(143, 226, 14, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 2.5s linear infinite;
    position: relative;
}
.vinyl::after {
    content: "♪";
    position: absolute;
    top: -14px;
    right: 6px;
    font-size: 1.6rem;
    color: #8fe20e;
    animation: pulse 1s infinite ease-in-out;
}
.vinyl-hole {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #8fe20e;
    border: 3px solid #101010;
}
#smiley { width: 92px; height: 92px; }
#smiley .face { fill: #202020; stroke: #8fe20e; stroke-width: 4; }
#smiley .eye { fill: #fafafa; }
#smiley .cheek { fill: #ff6b81; opacity: 0; transition: opacity 0.4s; }
#smiley .mouth { stroke: #fafafa; stroke-width: 5; stroke-linecap: round; fill: none; transition: all 0.4s; }
#smiley.happy .cheek { opacity: 0.85; }
#smiley.happy { animation: pulse 0.8s ease-in-out 2; }
#loading-text {
    position: static;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: bold;
    z-index: 10;
}
#loading-bar { opacity: 0.35; }

/* ============ WIDGET 6: música ============ */
.widget6 {
    width: 100%;
    background-color: var(--color-black);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.music-player {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.cd-mini {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #8fe20e 0 18%, transparent 19%),
        repeating-radial-gradient(circle, #333 0 2px, #141414 2px 4px);
    border: 2px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cd-mini span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8fe20e;
    border: 2px solid #101010;
}
.cd-mini.spinning { animation: rotate 1.8s linear infinite; box-shadow: 0 0 18px rgba(143, 226, 14, 0.5); }
.music-info { flex: 1; display: flex; flex-direction: column; }
.music-info small { color: #fafafab4; font-size: 0.75rem; }
#btnPlay {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #8fe20e, #00c853);
    color: #101010;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(143, 226, 14, 0.4);
    transition: transform 0.2s;
}
#btnPlay:hover { transform: scale(1.08); }
.spotify-embed iframe { border-radius: 8px; display: block; }