
/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #02030F;
    --secondary-bg: #080A1F;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-pink: #ec4899;
    --accent-orange: #f59e0b;
    --whatsapp: #25d366;
    --instagram: #e4405f;
    --youtube: #ff0000;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

/* ===== EFEITO MATRIX/CÓDIGO CAINDO OBRIGATORIO FICAR PARA NAO ESTRAGAR O MEU SITE ===== */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

/* ===== CURSOR PERSONALIZADO ===== */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent-cyan);
}

.cursor-follower.hover {
    border-color: var(--accent-cyan);
    transform: translate(-50%, -50%) scale(1.5);
}

/* ===== CONTAINER PRINCIPAL ===== */
.phone-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(145deg, rgba(8, 10, 31, 0.95), rgba(15, 20, 50, 0.9));
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Glow effect atrás do phone */
.phone-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== STATUS BAR ===== */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 8px;
}

.status-icons i {
    font-size: 14px;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.content {
    padding: 20px 24px 40px;
}

/* ===== SEÇÃO DE PERFIL ===== */
.profile-section {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

.profile-image {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)) border-box;
    padding: 3px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background-color: var(--secondary-bg);
}

.name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 400;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    color: white;
    font-size: 10px;
}

/* ===== SEÇÃO DE LINKS ===== */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.link-button {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.link-button:hover::before {
    opacity: 1;
}

/* Cores específicas para cada botão */
.link-button.whatsapp:hover {
    border-color: var(--whatsapp);
    box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.3);
}

.link-button.whatsapp .icon-wrapper {
    background: rgba(37, 211, 102, 0.2);
    color: var(--whatsapp);
}

.link-button.instagram:hover {
    border-color: var(--instagram);
    box-shadow: 0 10px 30px -10px rgba(228, 64, 95, 0.3);
}

.link-button.instagram .icon-wrapper {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.2), rgba(188, 42, 141, 0.2));
    color: var(--instagram);
}

.link-button.youtube:hover {
    border-color: var(--youtube);
    box-shadow: 0 10px 30px -10px rgba(255, 0, 0, 0.3);
}

.link-button.youtube .icon-wrapper {
    background: rgba(255, 0, 0, 0.2);
    color: var(--youtube);
}

.link-button.portfolio:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px -10px rgba(0, 212, 255, 0.3);
}

.link-button.portfolio .icon-wrapper {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
}

.link-button.curriculo:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.3);
}

.link-button.curriculo .icon-wrapper {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-orange);
}

.icon-wrapper {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 16px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.link-button:hover .icon-wrapper {
    transform: scale(1.1);
}

.button-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s ease;
}

.link-button:hover .arrow {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateX(3px);
}

/* ===== SEÇÃO DE CRÉDITOS ===== */
.credits-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.credits-text {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.credits-text i {
    color: var(--accent-pink);
    font-size: 12px;
}

.credit-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.credit-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.credit-link:hover::after {
    width: 100%;
}

.credits-sub {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 6px;
}

/* ===== HOME INDICATOR ===== */
.home-indicator {
    width: 134px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    margin: 8px auto 16px;
}

/* ===== FOOTER ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    z-index: 0;
    opacity: 0.6;
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section {
    animation: fadeInUp 0.6s ease forwards;
}

.link-button {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.2s; }
.link-button:nth-child(3) { animation-delay: 0.3s; }
.link-button:nth-child(4) { animation-delay: 0.4s; }
.link-button:nth-child(5) { animation-delay: 0.5s; }

.credits-section {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 480px) {
    .phone-container {
        padding: 0;
    }

    .phone-frame {
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .content {
        padding: 20px 20px 40px;
    }

    .footer {
        display: none;
    }
}

/* Esconder cursor em dispositivos touch */
@media (hover: none) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
