/* RESET E BASE MINIMALISTA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #01B5AE;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow-x: hidden;
    position: relative;
}

/* EFEITO DE GRADIENTE NO FUNDO */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(1, 181, 174, 0.95) 0%, rgba(0, 150, 144, 0.95) 100%);
    z-index: -1;
    pointer-events: none;
}

/* CONTROLES SUPERIORES VISÍVEIS - 3 QUADRADINHOS */
.controls {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 1000;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* SELEÇÃO DE IDIOMAS - 3 QUADRADOS LADO A LADO */
.language-selector {
    display: flex;
    gap: 4px;
}

/* BOTÕES QUADRADOS COM BANDEIRAS */
.lang-btn {
    width: 34px;
    height: 24px;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.lang-btn:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* ÍCONES DAS BANDEIRAS DENTRO DOS QUADRADOS */
.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.lang-btn.active .flag-icon {
    transform: scale(1.05);
}

.lang-btn:hover .flag-icon {
    transform: scale(1.08);
}

/* CONTAINER PRINCIPAL COMPACTO */
.container {
    max-width: 420px;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* CONTEÚDO POR IDIOMA */
.language-content {
    display: none;
}

.language-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* LOGO - TAMANHO AUMENTADO */
.profile-pic {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(255, 255, 255, 0.2);
}

/* TÍTULO */
.title-container {
    margin-bottom: 20px;
}

h1 {
    font-size: 26px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    min-height: 35px;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* EFEITO DE DIGITAÇÃO */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 26px;
    background-color: #fff;
    margin-left: 1px;
    animation: blink 1s infinite;
    vertical-align: bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* DESCRIÇÃO COMPACTA */
.description-compact {
    margin: 20px auto 25px;
    max-width: 380px;
}

.main-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 0 5px;
}

/* BALÕES/BOBINHAS COMPACTAS COM ANIMAÇÃO DE PULSO */
.bubbles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    max-width: 100%;
}

.bubble {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
    animation: bubblePulse 3s infinite ease-in-out;
    animation-delay: calc(var(--i) * 0.2s);
}

/* ANIMAÇÃO DE PULSO PARA AS BOLHAS */
@keyframes bubblePulse {
    0%, 100% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.15);
    }
    50% {
        transform: scale(1.05);
        background: rgba(255, 255, 255, 0.25);
    }
}

.bubble:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* BOTÕES COMPACTOS */
.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 20px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 45px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    height: 55px;
    width: 100%;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
    padding: 0 20px;
}

/* BOTÕES COM TEXTO PRETO - PORTFÓLIO E CAP */
.link-button.portfolio,
.link-button.cap {
    color: #000000 !important;
}

.link-button.portfolio i,
.link-button.cap i {
    color: #000000 !important;
}

/* BOTÃO NORMAL (TERCEIRO BOTÃO) */
.link-button:not(.portfolio):not(.cap) {
    color: #01B5AE;
}

.link-button:not(.portfolio):not(.cap) i {
    color: #01B5AE;
}

/* HOVER PARA TODOS OS BOTÕES */
.link-button:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.link-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
}

.link-button i {
    font-size: 15px;
}

.button-text {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    font-size: 14px;
}

/* REDES SOCIAIS COMPACTAS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #01B5AE;
    transition: all 0.2s ease;
    font-size: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

.social-icon:hover {
    background: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ANIMAÇÕES RÁPIDAS */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.language-content.active .profile-pic {
    animation: slideUp 0.4s ease 0.1s both;
}

.language-content.active .title-container {
    animation: slideUp 0.4s ease 0.2s both;
}

.language-content.active .description-compact {
    animation: slideUp 0.4s ease 0.3s both;
}

.language-content.active .link-button:nth-child(1) {
    animation: slideUp 0.4s ease 0.4s both;
}

.language-content.active .link-button:nth-child(2) {
    animation: slideUp 0.4s ease 0.5s both;
}

.language-content.active .link-button:nth-child(3) {
    animation: slideUp 0.4s ease 0.6s both;
}

.language-content.active .social-links {
    animation: slideUp 0.4s ease 0.7s both;
}

/* RESPONSIVO ESPECIAL PARA MOBILE */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    /* 3 QUADRADINHOS NO MOBILE TAMBÉM */
    .controls {
        top: 10px;
        right: 10px;
        padding: 5px;
        gap: 4px;
    }
    
    .lang-btn {
        width: 30px;
        height: 22px;
    }
    
    .container {
        padding: 25px 15px;
        max-width: 100%;
    }
    
    .profile-pic {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 22px;
        min-height: 30px;
        margin-bottom: 10px;
    }
    
    .main-description {
        font-size: 14px;
        margin-bottom: 12px;
        padding: 0;
    }
    
    .bubbles-container {
        gap: 5px;
        margin-bottom: 5px;
    }
    
    .bubble {
        padding: 5px 8px;
        font-size: 10px;
        border-radius: 12px;
    }
    
    .buttons-container {
        gap: 10px;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .link-button {
        height: 50px;
        font-size: 13px;
        padding: 0 15px;
    }
    
    .link-button i {
        font-size: 14px;
    }
    
    .button-text {
        font-size: 13px;
    }
    
    .social-links {
        gap: 12px;
        margin-top: 20px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* PARA TELAS MUITO PEQUENAS */
@media (max-width: 350px) {
    .controls {
        top: 8px;
        right: 8px;
        padding: 4px;
    }
    
    .lang-btn {
        width: 28px;
        height: 20px;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .profile-pic {
        width: 130px;
        height: 130px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .main-description {
        font-size: 13px;
    }
    
    .bubble {
        padding: 4px 6px;
        font-size: 9px;
    }
    
    .link-button {
        height: 46px;
        font-size: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* AJUSTE PARA BOTÕES LONGO */
@media (max-width: 380px) {
    .button-text {
        font-size: 12px;
    }
    
    .link-button i {
        font-size: 13px;
    }
}