* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #2D1B1B 0%, #3D2B2B 50%, #4A3A3A 100%);
    color: #E8D5B7;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Partículas de fundo animadas */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: #D4A574;
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header */
.header {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8B4513, #A0522D, #CD853F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #E8D5B7;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: avatarPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: avatarShine 2s linear infinite;
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes avatarShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.name {
    font-size: 3rem;
    font-weight: 700;
    color: #E8D5B7;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title {
    font-size: 1.5rem;
    color: #D4A574;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Seção principal */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.description-section {
    background: rgba(139, 69, 19, 0.1);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    backdrop-filter: blur(10px);
}

.description-section h2 {
    font-size: 2rem;
    color: #D4A574;
    margin-bottom: 20px;
    font-weight: 600;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #E8D5B7;
    margin-bottom: 20px;
    min-height: 120px;
}

.edit-btn {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.description-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #D4A574;
    border-radius: 10px;
    background: rgba(45, 27, 27, 0.8);
    color: #E8D5B7;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    margin-bottom: 15px;
}

.description-input:focus {
    outline: none;
    border-color: #CD853F;
    box-shadow: 0 0 10px rgba(205, 133, 63, 0.3);
}

.save-btn,
.cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: white;
}

.cancel-btn {
    background: transparent;
    color: #D4A574;
    border: 2px solid #D4A574;
}

.save-btn:hover,
.cancel-btn:hover {
    transform: translateY(-1px);
}

/* Seção de código animado */
.code-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.code-section h2 {
    font-size: 2rem;
    color: #D4A574;
    margin-bottom: 20px;
    font-weight: 600;
}

.code-display {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #E8D5B7;
    position: relative;
    overflow: hidden;
}

.code-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: typeIn 0.5s ease forwards;
}

.code-line:nth-child(1) {
    animation-delay: 0.5s;
}

.code-line:nth-child(2) {
    animation-delay: 1s;
}

.code-line:nth-child(3) {
    animation-delay: 1.5s;
}

.code-line:nth-child(4) {
    animation-delay: 2s;
}

.code-line:nth-child(5) {
    animation-delay: 2.5s;
}

.code-line:nth-child(6) {
    animation-delay: 3s;
}

.code-line:nth-child(7) {
    animation-delay: 3.5s;
}

.code-line:nth-child(8) {
    animation-delay: 4s;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #D4A574;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.keyword {
    color: #CD853F;
}

.string {
    color: #D4A574;
}

.comment {
    color: #8B7355;
}

.function {
    color: #A0522D;
}

/* Skills section */
.skills-section {
    background: rgba(139, 69, 19, 0.1);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.skills-section h2 {
    font-size: 2rem;
    color: #D4A574;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.skill-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(212, 165, 116, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: #D4A574;
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    color: #D4A574;
    margin-bottom: 15px;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #E8D5B7;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .avatar {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }
}

/* Loading animation */
.loading {
    display: none;
    text-align: center;
    color: #D4A574;
    font-size: 1.1rem;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #D4A574;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Social section */
.social-section {
    background: rgba(139, 69, 19, 0.1);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    backdrop-filter: blur(10px);
    margin-top: 40px;
    text-align: center;
}

.social-section h2 {
    font-size: 2rem;
    color: #D4A574;
    margin-bottom: 30px;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.social-link {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    color: #E8D5B7;
    border: 1px solid rgba(212, 165, 116, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    flex: 1;
    max-width: 200px;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: #D4A574;
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.2);
    background: rgba(212, 165, 116, 0.1);
}

.social-link i {
    font-size: 2rem;
    color: #D4A574;
}

.social-link span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: rgba(139, 69, 19, 0.1);
    margin-top: 40px;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-text,
.footer-date,
.footer-copyright {
    color: #E8D5B7;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-text i.fa-heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.footer-copyright {
    color: #8B7355;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .social-links {
        gap: 20px;
    }

    .social-link {
        min-width: 100px;
        padding: 15px 20px;
    }

    .social-link i {
        font-size: 2rem;
    }

    .social-link span {
        font-size: 1rem;
    }
}

.skill-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.skill-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}