.home {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

.home-content h3 {
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    font-size: 2.5rem;
    font-weight: 400;
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-top: 1rem;
    line-height: 1.2;
}

.home-img {
    border-radius: 50%;
    margin-top: 3rem;
}

.home-img img {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
    cursor: pointer;
    transition: 0.3s ease-in-out;
    object-fit: cover;
}

.home-img img:hover {
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.6);
    transform: scale(1.05);
}

.home-content p {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 700px;
    color: var(--text-color);
    opacity: 0.9;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: var(--main-color);
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.location-badge i {
    font-size: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--main-color);
    font-size: 2rem;
    border-radius: 8px;
    color: var(--main-color);
    margin: 2rem 1rem 2rem 0;
    transition: 0.3s ease-in-out;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-3px);
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--main-color);
    border-radius: 8px;
    font-size: 1.5rem;
    color: white;
    border: 2px solid transparent;
    letter-spacing: 0.05rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-group a:nth-of-type(2):hover {
    background-color: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.email-link {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    width: auto !important;
    height: auto !important;
    padding: 1rem 1.5rem !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid var(--main-color) !important;
    border-radius: 8px !important;
    color: var(--main-color) !important;
    margin: 0 !important;
    font-size: 1.5rem !important;
    white-space: nowrap;
    transition: 0.3s ease-in-out;
}

.email-link:hover {
    background: var(--main-color) !important;
    color: white !important;
}

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

.email-link span {
    color: inherit;
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: ".";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words {
    0%, 20% {
        content: "Backend Developer";
    }
    21%, 40% {
        content: "Data Bases";
    }
    41%, 60% {
        content: "Data Analysis";
    }
    61%, 80% {
        content: "Cibersecurity";
    }
    /* 81%, 100% {
        content: "Programador";
    } */
}

@keyframes typing {
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% {
        width: 0;
    }
    5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% {
        width: calc(100% + 8px);
    }
}
