@import url("https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");

:root {
    /* Tema escuro (padrão) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-tertiary: #cccccc;
    --border-color: #ffffff;
    --shadow-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --active-bg: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
    /* Tema claro */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #2d2d2d;
    --text-tertiary: #666666;
    --border-color: #1a1a1a;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-bg: rgba(0, 0, 0, 0.05);
    --active-bg: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Transições suaves para mudança de tema */
body,
body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
}

section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 25%, var(--bg-primary) 50%, var(--bg-secondary) 75%, var(--bg-primary) 100%),
        radial-gradient(circle at 20% 80%, var(--shadow-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--shadow-color) 0%, transparent 50%);
}



body {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    margin: 0;
    padding: 0;
}



.content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    padding: 2rem;
    width: 100%;
}

.profile-section {
    margin-bottom: 3rem;
}



.name-container {
    display: inline-block;
}

.name {
    font-size: 4rem;
    font-weight: 600;
    font-family: 'Playfair Display', 'Times New Roman', serif;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    line-height: 1.3;
    user-select: none;
    position: relative;
    z-index: 2;
}

/* Ajustes para exibir a logo dentro do título de forma fluida */
.name .logo {
    display: block;
    height: 1.5em;
    /* acompanha o tamanho do h1 */
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}



.languages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}



.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.95;
}

.text-container {
    position: relative;
    display: inline-block;
    overflow: visible;
    height: 1.5em;
    min-width: 500px;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.text-slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    width: auto;
    opacity: 0;
    transition: all 0.2s ease-out;
    filter: blur(8px);
    pointer-events: none;
    visibility: hidden;
    white-space: nowrap;
    user-select: none;
}



.text-slide.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0px);
    visibility: visible;
    transition: all 0.2s ease-out;
}

.text-slide.next {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    filter: blur(8px);
    visibility: hidden;
}

/* Efeito de motion blur durante transição */
.text-slide.transitioning {
    filter: blur(15px);
    transform: translateX(-50%) translateY(15px) scale(0.85);
    transition: all 0.15s ease-out;
}







.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Botão de alternância de tema - Switch elegante */
.theme-toggle {
    width: 64px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translateX(0);
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(32px);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-color: var(--text-secondary);
}

.theme-toggle:active {
    transform: translateY(0);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.8px;
}

.email-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.email-link:hover {
    color: var(--text-primary);
}

/* Estilos do rodapé */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 100;
    opacity: 0.6;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    white-space: nowrap;
    overflow: hidden;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: nowrap;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.footer-link:hover {
    color: var(--text-secondary);
    opacity: 1;
}

.footer-separator {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    opacity: 0.4;
}






@media (max-width: 768px) {
    .content {
        padding: 1.5rem;
        max-width: 100%;
    }

    .name {
        font-size: 3rem;
        font-family: 'Playfair Display', 'Times New Roman', serif;
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
        line-height: 1.3;
    }



    .languages {
        gap: 0.4rem;
        margin-bottom: 1.8rem;
    }



    .tagline {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .text-container {
        min-width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .social-links {
        margin-bottom: 2.5rem;
    }

    .theme-toggle {
        width: 56px;
        height: 28px;
    }

    .theme-toggle::before {
        width: 20px;
        height: 20px;
    }

    [data-theme="light"] .theme-toggle::before {
        transform: translateX(28px);
    }

    .contact-info {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        font-size: 1.1rem;
    }

    .footer {
        padding: 0.8rem 0;
    }

    .footer-content {
        gap: 1.5rem;
        padding: 0 1.5rem;
        max-width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-text {
        font-size: 0.85rem;
        text-align: center;
    }

    .footer-link {
        font-size: 0.8rem;
    }
}

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

    .name {
        font-size: 2.5rem;
        font-family: 'Playfair Display', 'Times New Roman', serif;
        margin-bottom: 0.6rem;
        letter-spacing: 0.8px;
        line-height: 1.3;
    }





    .tagline {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .text-container {
        min-width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .social-links {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .theme-toggle {
        width: 48px;
        height: 24px;
    }

    .theme-toggle::before {
        width: 18px;
        height: 18px;
    }

    [data-theme="light"] .theme-toggle::before {
        transform: translateX(24px);
    }

    .contact-info {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-item {
        font-size: 1rem;
    }

    .footer {
        padding: 0.7rem 0;
    }

    .footer-content {
        gap: 1.2rem;
        padding: 0 1rem;
        max-width: 100%;
        flex-direction: column;
        gap: 0.6rem;
    }

    .footer-text {
        font-size: 0.8rem;
        text-align: center;
    }

    .footer-link {
        font-size: 0.75rem;
    }
}

/* Media query para dispositivos muito pequenos */
@media (max-width: 360px) {
    .footer {
        padding: 0.6rem 0;
    }

    .footer-content {
        padding: 0 0.8rem;
        gap: 0.5rem;
    }

    .footer-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .footer-link {
        font-size: 0.7rem;
    }

    .footer-separator {
        font-size: 0.7rem;
    }
}

/* Correções para dispositivos móveis - botões voltam ao estado normal */
@media (hover: none) and (pointer: coarse) {

    .theme-toggle:active {
        transform: translateY(0) !important;
        transition: all 0.1s ease-out !important;
        background: var(--bg-primary) !important;
        color: var(--text-primary) !important;
        box-shadow: none !important;
    }

    .theme-toggle:focus {
        outline: none;
    }
}

/* Correções adicionais para touch devices */
@media (max-width: 768px) {

    .theme-toggle:active {
        transform: translateY(0);
        transition: all 0.1s ease-out;
        background: var(--bg-primary);
        color: var(--text-primary);
        box-shadow: none;
    }
}

/* Classe para indicar quando botão está sendo tocado */
.theme-toggle.touching {
    transform: translateY(0);
    transition: all 0.1s ease-out;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: none;
}