:root {
    --primary-gold: #FFD700;
    --primary-red: #C41E3A;
    --dark-bg: #0A0A0A;
    --text-color: #FFFFFF;
    --text-secondary: #CCCCCC;
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

#app {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/background.png') center/cover no-repeat;
    filter: blur(8px) brightness(1.1);
    transform: scale(1.05);
    z-index: -1;
}

.profile-section {
    position: relative;
    width: 100%;
    height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.profile-img-container {
    position: absolute;
    top: 0;
    left: 50;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.profile-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/perfil.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    /* Degradê ajustado - transparência apenas na parte inferior */
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 0.8) 90%,
            rgba(0, 0, 0, 0.6) 95%,
            rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 1) 85%,
            rgba(0, 0, 0, 0.8) 90%,
            rgba(0, 0, 0, 0.6) 95%,
            rgba(0, 0, 0, 0) 100%);
}

.profile-img-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    align-items: center;
    justify-content: center;
    mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 85%, 
        rgba(0,0,0,0.8) 90%, 
        rgba(0,0,0,0.6) 95%, 
        rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 85%, 
        rgba(0,0,0,0.8) 90%, 
        rgba(0,0,0,0.6) 95%, 
        rgba(0,0,0,0) 100%);
}

.fallback-text {
    color: var(--primary-gold);
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.profile-text {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    margin-top: -15vh !important;
}

.profile-name {
    color: var(--primary-gold);
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.5);
    line-height: 0.9;
}

.profile-bio {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 0 !important;
}

.separator {
    width: 80%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    margin: 10px auto 30px;
}

.social-section {
    width: 100%;
    max-width: 500px;
    margin: 30px auto 25px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.social-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 14px;
    padding: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-height: 75px;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold), 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-gold);
}

.social-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.social-label {
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.apps-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.app-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.app-icon-link:hover {
    transform: translateY(-5px);
}

.app-icon-container {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 
        0 0 0 1px rgba(255, 215, 0, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.app-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%,
        rgba(255, 215, 0, 0.02) 50%,
        rgba(255, 215, 0, 0.05) 100%);
    border-radius: 25px;
    z-index: 1;
}

.app-icon-container svg {
    width: 64px;
    height: 64px;
    position: relative;
    z-index: 2;
}

.app-label {
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-top: 10px;
}

.footer {
    padding: 15px 0 40px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.visits-counter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.eye-icon {
    color: var(--primary-gold);
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.counter-number {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

@media (min-width: 1024px) {
  .profile-section {
    height: 55vh; /* Reduz a altura em telas grandes */
  }

  .profile-img-bg {
    background-size: contain; /* Ou podemos manter cover, mas com um posicionamento melhor */
    background-position: center top;
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 70%,
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.6) 90%,
        rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 70%,
        rgba(0, 0, 0, 0.8) 80%,
        rgba(0, 0, 0, 0.6) 90%,
        rgba(0, 0, 0, 0) 100%);
  }

  .profile-text {
    margin-top: -10vh !important; /* Ajuste para posicionar o texto mais próximo da imagem */
  }
}

@media (max-width: 768px) {
            .profile-section {
                height: 52vh;
            }
            
            .profile-name {
                font-size: 3.5rem;
                letter-spacing: 3px;
                line-height: 0.85;
                margin-bottom: 10px !important;
            }
            
            .profile-bio {
                font-size: 1.3rem;
                line-height: 1;
            }
            
            .profile-text {
                margin-top: -12vh !important;
            }
            
            .social-section {
                margin: 25px auto 20px;
            }
            
            .social-grid {
                gap: 10px;
            }
            
            .social-card {
                padding: 12px;
                min-height: 70px;
                border-radius: 12px;
            }
            
            .social-icon {
                width: 32px;
                height: 32px;
            }
            
            .social-label {
                font-size: 1rem;
            }
            
            .apps-grid {
                gap: 35px;
            }
            
            .app-icon-container {
                width: 110px;
                height: 110px;
                border-radius: 22px;
            }
            
            .app-icon-container svg {
                width: 64px;
                height: 64px;
            }
            
            .app-label {profile-img-bg
                font-size: 1.3rem;
            }
            
            .eye-icon {
                font-size: 22px;
            }
            
            .counter-number {
                font-size: 1.3rem;
            }
        }

@media (max-width: 480px) {
    .profile-section { height: 50vh; }
    .profile-name { font-size: 2.8rem; letter-spacing: 2px; line-height: 0.8; margin-bottom: 8px !important; }
    .profile-bio { font-size: 1.1rem; padding: 0 15px; line-height: 0.9; }
    .profile-text { margin-top: -8vh !important; }
    .social-section { margin: 20px auto 15px; }
    .social-grid { gap: 8px; }
    .social-card { padding: 10px; min-height: 65px; border-radius: 10px; }
    .social-label { font-size: 0.95rem; }
    .apps-grid { gap: 30px; }
    .app-icon-container { width: 100px; height: 100px; border-radius: 20px; }
    .app-icon-container svg { width: 64px; height: 64px; }
    .app-label { font-size: 1.2rem; }
    .visits-counter { padding: 10px 20px; gap: 10px; }
    .eye-icon { font-size: 20px; }
    .counter-number { font-size: 1.2rem; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-text { animation: fadeIn 1s ease-out; }
.separator { animation: fadeIn 1.5s ease-out; }
.social-card { animation: slideUp 0.6s ease-out backwards; }
.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }
.app-icon-link { animation: slideUp 0.6s ease-out backwards; }
.app-icon-link:nth-child(1) { animation-delay: 0.5s; }
.app-icon-link:nth-child(2) { animation-delay: 0.6s; }

}

