* {
    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: var(--page-bg);
    width: 100%;
    min-height: 100vh;
    padding: 2rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.8rem;
    }
}


a {
    text-decoration: none;
}


/* Variaveis Globais*/
:root {
    --color-destaque: #FF5800;
    --color-black: #101010;
    --color-white: #fafafa;
    --color-text-secondary: #fafafab4;
    --color-icon: #fafafa;
    --page-bg: #151515;
    --card-bg: #050505;
}

/* Tema claro */
[data-theme="light"] {
    --color-destaque: #FF5800;
    --color-black: #ffffff;
    --color-white: #111111;
    --color-text-secondary: #666666;
    --color-icon: #111111;
    --page-bg: #f3f4f6;
    --card-bg: #ffffff6b;
}

/* Transitions for theme changes */
* {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Botão de alternância de tema */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
}

.theme-toggle:focus {
    outline: 2px solid rgba(255, 88, 0, 0.3);
    outline-offset: 2px;
}

/* Container principal */
.container {
    display: inline;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    background-color: var(--card-bg);
    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: Informações do usuário */
.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 {
    max-width: 100%;
    width: auto;
    height: 47px;
    border-radius: 8px;
    object-fit: cover;
}

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

.img-user {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid var(--color-destaque);
}

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

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

@media (max-width: 480px) {
    .name-user h1 {
        font-size: 1rem;
        color: var(--color-white);
        padding-bottom: 0.2rem;
        font-weight: bold;
    }
}

.name-user span {
    color: var(--color-text-secondary);
    font-size: 0.8rem;
}

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

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

/* WIDGET 2: Informações CTA2 */
.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;
}

.skills-icons i {
    color: var(--color-icon);
    font-size: 30px;
    transition: color 0.3s;

}


.fa-brands,
.fab {
    font-weight: 400;
}

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

.cta-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0.4rem;
    color: var(--color-white);
    text-align: center;
}

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

@media (max-width: 480px) {
    .destaque {
        font-size: 0.90rem;
    }
}

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

.site {
    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-site {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

@media (max-width: 480px) {
    .text-site h1 {
        font-size: 0.90rem;
    }
}

.text-site span {
    color: var(--color-text-secondary);
    font-size: 0.7rem;
}

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

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

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

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

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

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

.redes-sociais .mail:hover i {
    color: #808080;
    transition: color 0.3s;
}

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

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

.meu-site img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
}

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

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

@media (max-width: 480px) {
    .meu-site h1 {
        font-weight: bold;
        font-size: 1.1rem;
        color: var(--color-white);
    }
}

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

.cta h1 {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-white);
}


/* WIDGET 5: Embeds do Spotify */
.widget5 {
    width: 100%;
    height: 32%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.widget5 span {
    color: var(--color-text-secondary);
    font-size: 1rem;
    padding-top: 1rem;
}

/* ANIMAÇÕES */
.widget1,
.widget2,
.site,
.box-social,
.widget4 {
    transition: transform 0.3s ease;
}

.widget1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 75px;
}

.widget1:hover,
.widget2:hover,
.site:hover,
.box-social:hover,
.widget4: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);
    }
}

/* WIDGET 5: Carrossel de Certificações */
.widget5 {
    width: 100%;
    background-color: var(--color-black);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget5>span {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-inner {
    width: 100%;
    position: relative;
}

.carousel-item {
    display: none;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-item.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.carousel-item img {
    width: 50%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}


.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 88, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--color-destaque);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* WIDGET 6: Spotify */
.widget6 {
    width: 100%;
    background-color: var(--color-black);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget6>span {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* MODAL DE CERTIFICAÇÕES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-black);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-destaque);
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-close {
    color: var(--color-destaque);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-content h2 {
    color: var(--color-destaque);
    margin: 1rem 0 1rem 0;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
    }
}