/* ==========================================================================
   Design System & CSS Variables - Mts Astro Bio Page
   ========================================================================== */
:root {
    --color-bg-main: #0B0B0B;
    --color-bg-card: #1A1A1A;
    --color-border: #2B2B2B;
    --color-text-sec: #A6A6A6;
    --color-text-pri: #E5E5E5;
    --color-text-white: #FFFFFF;
    
    /* Chrome / Metallic Gradient */
    --gradient-chrome: linear-gradient(135deg, #a6a6a6 0%, #2b2b2b 50%, #e5e5e5 100%);
    --gradient-chrome-soft: linear-gradient(135deg, rgba(166,166,166,0.15) 0%, rgba(43,43,43,0.3) 50%, rgba(229,229,229,0.15) 100%);
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #050505;
    font-family: var(--font-body);
    color: var(--color-text-pri);
    overflow-x: hidden;
}

/* Background Blur Concept for Desktop */
.bg-blur-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('mts.jfif');
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.2);
    z-index: 1;
    opacity: 0.7;
}

/* App Main Container (Mobile Framed on Desktop) */
.app-container {
    position: relative;
    z-index: 2;
    max-width: 480px;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg-main);
    margin: 0 auto;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.95);
    border-left: 1px solid rgba(43, 43, 43, 0.3);
    border-right: 1px solid rgba(43, 43, 43, 0.3);
    display: flex;
    flex-direction: column;
}

/* Header Banner & Transition Gradient */
.profile-header {
    position: relative;
    height: 280px;
    width: 100%;
    overflow: hidden;
}

.banner-image {
    background-image: url('mts.jfif');
    background-size: cover;
    background-position: center 45%; /* Ajustado para mover a foto para cima e reduzir espaço superior */
    width: 100%;
    height: 100%;
    transform: scale(1.38);
    transition: transform 8s ease-out;
}

.app-container:hover .banner-image {
    transform: scale(1.44);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
                rgba(11, 11, 11, 0) 0%, 
                rgba(11, 11, 11, 0.1) 20%, 
                rgba(11, 11, 11, 0.3) 45%, 
                rgba(11, 11, 11, 0.55) 65%, 
                rgba(11, 11, 11, 0.8) 80%, 
                var(--color-bg-main) 92%, 
                var(--color-bg-main) 100%);
}

/* Profile Details */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    margin-top: -95px; /* Centraliza a logo na transição do banner */
    position: relative;
    z-index: 5;
}

.logo-wrapper {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0px; /* Encostar mais o título na logo */
    position: relative;
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin: 0 0 10px 0; /* Remove margem superior para aproximar da logo */
    line-height: 1.2;
}

.profile-title span {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-sec);
    margin-top: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-sec);
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-bottom: 8px; /* Reduzir espaçamento abaixo do subtítulo */
    padding-left: 0;
}

/* Decorator Badge (Star) */
.badge-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 12px 0; /* Compactar separador */
    width: 100%;
    position: relative;
}

.badge-separator::before,
.badge-separator::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    max-width: 80px;
}

.badge-separator::before {
    margin-right: 15px;
}

.badge-separator::after {
    margin-left: 15px;
}

.star-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
    animation: rotateStar 12s infinite linear;
}

@keyframes rotateStar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Links Container */
.links-container {
    padding: 10px 20px 24px 20px; /* Reduzir margens laterais e inferiores */
    display: flex;
    flex-direction: column;
    gap: 14px; /* Menor espaçamento entre os botões */
    flex-grow: 1;
}

/* Link Card */
.bio-link-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 16px 20px; /* Cartão mais compacto */
    background-color: rgba(26, 26, 26, 0.55);
    border: 1px solid rgba(43, 43, 43, 0.7);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 76px; /* Altura um pouco menor */
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 43, 43, 0.4);
    color: var(--color-text-pri);
    margin-right: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(166, 166, 166, 0.08);
    transition: all 0.4s ease;
}

.card-icon svg {
    width: 22px;
    height: 22px;
    transition: transform 0.4s ease;
}

.card-content {
    flex-grow: 1;
    text-align: left;
}

.card-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-text-white);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.card-desc {
    font-size: 0.76rem;
    color: var(--color-text-sec);
    line-height: 1.35;
    font-weight: 300;
}

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.arrow-symbol {
    font-size: 1.25rem;
    color: var(--color-text-sec);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover and Active Interactions */
.bio-link-card:hover,
.bio-link-card.active:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(229, 229, 229, 0.35);
    background-color: rgba(30, 30, 30, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 229, 229, 0.03);
}

.bio-link-card:hover .card-icon {
    background: var(--gradient-chrome);
    color: #0B0B0B;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(229, 229, 229, 0.35);
}

.bio-link-card:hover .card-icon svg {
    transform: scale(1.05);
}

.bio-link-card:hover .arrow-symbol {
    transform: translateX(5px);
    color: var(--color-text-white);
}

.bio-link-card:active,
.bio-link-card.active:active {
    transform: translateY(1px) scale(0.99);
    background-color: rgba(20, 20, 20, 0.9);
    border-color: rgba(229, 229, 229, 0.2);
}

/* Shimmer Efx overlay */
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, 
                transparent 0%, 
                rgba(255, 255, 255, 0.08) 50%, 
                transparent 100%);
    transform: skewX(-25deg);
    pointer-events: none;
}

/* Active animation class for automatic running shimmers */
.btn-shimmer.shimmer-active::after {
    animation: runShimmer 1.5s ease-out;
}

@keyframes runShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Fade In Loading Transitions - Custom dynamic entry animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.active {
    opacity: 1;
}

/* 1. Banner image entry zoom-out */
.banner-image.fade-in {
    opacity: 0;
    transform: scale(1.52);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.banner-image.fade-in.active {
    opacity: 1;
    transform: scale(1.38);
}

/* 2. Logo wrapper pop-in */
.logo-wrapper.fade-in {
    opacity: 0;
    transform: scale(0.5) rotate(-15deg);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-wrapper.fade-in.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* 3. Text transitions (title and subtitle) */
.profile-title.fade-in,
.profile-subtitle.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.profile-title.fade-in.active,
.profile-subtitle.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Badge Separator horizontal line expand and star scaling */
.badge-separator.fade-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.badge-separator.fade-in.active {
    opacity: 1;
    transform: scale(1);
}
.badge-separator.fade-in::before,
.badge-separator.fade-in::after {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.badge-separator.fade-in.active::before,
.badge-separator.fade-in.active::after {
    transform: scaleX(1);
}

/* 5. Link Cards pop-up elásticos */
.bio-link-card.fade-in {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bio-link-card.fade-in.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 6. Footer fade-in from bottom */
.profile-footer.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.profile-footer.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer & Socials */
.profile-footer {
    padding: 20px 24px 24px 24px; /* Reduzir espaçamento do rodapé */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(43, 43, 43, 0.25);
}

.footer-tagline {
    font-size: 0.68rem;
    color: #4A4A4A;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}



/* Desktop layout optimizations */
@media (min-width: 481px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }
    
    .app-container {
        border-radius: 24px;
        min-height: calc(100vh - 80px);
        max-height: 920px;
        overflow: hidden;
        border: 1px solid rgba(229, 229, 229, 0.08);
    }
    
    .app-container::-webkit-scrollbar {
        width: 6px;
    }
    
    .app-container::-webkit-scrollbar-track {
        background: var(--color-bg-main);
    }
    
    .app-container::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 10px;
    }
}
