* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg-primary: #f8fafc;
    --bg-secondary: #fff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
/* cores das redes sociais */

    --github-color: #24292e;
    --linkedin-color: #0077b5;
    --whatsapp-color: #25d366;

/* gradientes */

--gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
--gradient-accent: linear-gradient(135deg, #4facf3 0%, #00f2fe 100%);
}

[data-theme="dark"] {
    --bg-primary : #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #475569;
    --accent-color: #60a5fa;
    --accent-hover: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

body{
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Toggle de Tema */
.theme-toggle{
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-track{
    width: 60px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.toggle-thumb{
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .toggle-thumb{
    transform: translateX(28px);
}

.toggle-thumb .sun-icon{
    display: block;
}

.toggle-thumb .moon-icon{
    display: none;
}

[data-theme="dark"] .toggle-thumb .sun-icon{
    display: none;
}

[data-theme="dark"] .toggle-thumb .moon-icon{
    display: block;
}

.theme-toggle:hover .toggle-track{
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

/* Card principal */

.profile-card{
    background: var(--bg-secondary);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 600px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.profile-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* lado esquerdo */

.card-left{
    background: var(--gradient-primary);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-left::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.profile-section{
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-avatar{
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 2rem;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    object-fit: contain;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-avatar:hover img{
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.status-indicador{
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border: 3px solid #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);}
    70% {box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);}
    100%{box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);}
}

.profile-info{
    color: #fff;
}

.profile-name{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.profile-role{
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.profile-location{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* sessão social */

.social-section{
    position: relative;
    z-index: 1;
}

.social-section h3{
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-grid{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-btn:hover::before{
    left: 100%;
}

.social-btn:hover{
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-btn svg{
    flex-shrink: 0;
}

/* lado direito */

.card-right{
    padding: 3rem;
    background: var(--bg-secondary);
}

.content-section{
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-section h2::after{
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.about-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-section p:last-child{
    margin-bottom: 0;
}

/* sessão skils */

.skills-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.skills-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.skill-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.skill-item:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.skill-icon i {
    font-size: 1.6rem;
}

.skill-item span{
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* sessão estatisticas */

.stats-section{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
    margin-top: auto;
}

.stat-item{
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number{
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label{
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Animações */

@keyframes slideInLeft {
    from{
        opacity: 0;
        transform: translateX(-30px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight{
    from{
        opacity: 0;
        transform: translateX(30px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

.card-left{
    animation: slideInLeft 0.6s ease-out;
}

.card-right{
    animation: slideInRight 0.6s ease-out;
}

.social-btn{
    animation: slideInLeft 0.6s ease-out;
}

.social-btn:nth-child(1){
    animation-delay: 0.1s;
}
.social-btn:nth-child(2){
    animation-delay: 0.2s;
}
.social-btn:nth-child(3){
    animation-delay: 0.3s;
}

.skill-item{
    animation: slideInRight 0.6s ease-out;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }

/* responsividade */

@media (max-width: 1024px) {
    .profile-card{
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .card-left{
        padding: 2rem;
    }

    .card-right{
        padding: 2rem;
    }

    .social-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-btn{
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body{
        padding: 1rem;
    }

    .theme-toggle{
        top: 1rem;
        right: 1rem;
    }

    .profile-card{
        border-radius: 16px;
    }

    .card-left,
    .card-right{
        padding: 1.5rem;
    }

    .profile-avatar{
        width: 120px;
        height: 120px;
    }

    .profile-name{
        font-size: 1.75rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .skills-container{
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section{
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .social-grid{
        flex-direction: column;
    }

    .social-btn{
        min-width: auto;
    }
}

@media(max-width: 480px) {
    .card-left,
    .card-right{
        padding: 1rem;
    }

    .profile-avatar{
        width: 100px;
        height: 100px;
    }

    .profile-name{
        font-size: 1.5rem;
    }

    .skills-container{
        grid-template-columns: 1fr;    
    }

    .skill-item{
        padding: 1rem;
    }
}

/* estados de foco para acessibilidade */
.theme-toggle:focus,
.social-btn:focus,
.skill-item:focus{
    outline: 2px solid var(--accent-color);
}

/* melhorias para impressão */

@media print{
    .theme-toggle{
        display: none;
    }

    .profile-card{
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .card-left{
        background: #f5f5f5 !important;
        color: #333 !important;
    }

    .social-btn{
        background: #f0f0f0 !important;
        color:#333 !important;
    }
}




