:root{
    --primary-color: #6c63ff;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --ligt-test: #f5f5f5;
    --grey-text: #aaaaaa;
    --card-bg: #1e1e1e;
    --border-color: #2d2d2d;
    --transition: all .3s easy;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--primary-color) var(--dark-bg);


}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--ligt-test);
    line-height: 1.6;
}

*{
    text-decoration: none;
    color: inherit;
}

ul{
    list-style: none;
}

img{
    max-width: 100%;
    height: auto;
    display: block;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 10x, solid,var(--border-color);
}
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-link {
    display: flex;
    gap: 2rem;
}

.nav-link a {
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link a::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link a:hover {
    color: var(--primary-color);
}

.nav-link a:hover::after {
    width: 100%;
}

section{
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    background-color: #5651d8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.hero {
    max-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;

}

.hero-text {
    margin-top: 50px;
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-text p {
    margin-bottom: 1.5rem;
    color: var(--grey-text);
    font-size: 1.1rem;
    max-width: 600px;
}

.social-link {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: 5px 5px;
    align-items: center;
}

.social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    transition: var(--transition);
    font-size: 1.2rem;
    border-radius: 50%;
}

.social-link a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 310px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 25 rgba(108, 99, 255, 0.5rem);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.01);
    box-shadow: 0 0 30 rgba(108, 99, 255, 0.5rem);
    border: 5px solid green;
}

.projects-conten {
    display: grid;
    grid-template-columns: repeat(auto-filt, minmax(300px, 1fr));
    gap: 2rem;
}

.projects-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projects-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30 rgba(108, 99, 255, 0.5rem);
}

.projects-img {
    overflow: hidden;
}

.projects-img img {
    transition: var(--transition);
    width: 100%;
}

.projects-card:hover .projects-img img {
    transform: scale(1.05);
}

.projects-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.projects-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.projects-info p {
    color: var(--grey-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.projects-text {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.projects-text span {
    font-size: 0.8rem;
    padding: 0.3rem, 0.8rem;
    background-color: var(--darker-bg);
    border-radius: 20px;
}

.projects-link {
    display: flex;
    gap: 1rem;
}

.projects-link a {
    font-size: 0.9rem;
    color: var(--grey-text);
    transition: var(--transition);
    align-items: center;

}

.projects-link a:hover {
    color: var(--primary-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 50px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
}

.timeline-conten {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);

}

.date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(108, 99, 255, 0.2);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-conten h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-conten h4{
    color: var(--grey-text);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.skill {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.skill li {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background-color: var(--darker-bg);
    border-radius: 20px;
}

.lenguajes {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tecnology h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    align-content: center;
}

footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
}

.footer-conten {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 autos;
}

@media (max-width: 480px){
    header{
        position: static;
    }
    .nav-link{
        flex-direction: column;
    }
    #navbar{
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    margin-bottom: 100px;
    }

    .hero-content{
        margin-top: 150px;
        flex-direction: column;
    }

    .projects{
        margin-top: 150px;
    }

}