*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    list-style: none;
    outline: none;
    scroll-behavior: smooth;
    
}
:root{
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --bg-color: #ddeeff;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.25rem; /* 20px */
    --font-size-sm: 0.875rem; /* 14px */
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    margin-top: 0;
}

.header{
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--info-color);
    padding: 2rem 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
    transition: all 0.3s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
    @media (max-width: 768px) {
        padding: 1rem 5%;
    }
}

.name{
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    &:hover{
        transform: scale(1.03);
    }
}
.navbar{
    display: flex;
    gap: 2rem;
    @media (max-width: 768px) {
        display: none;
    }
}
.navbar a{
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    &:hover{
        text-decoration: underline;
        text-decoration-color: var(--primary-color);
        color: var(--light-color);
    }
}
.navbar a.active{
    color: var(--light-color);
}
.navbar a i{
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: var(--light-color);
    transition: all 0.3s ease-in-out;
    &:hover{
        color: var(--primary-color);
        transform: scale(1.1);
    }
}
.navbar a i.active{
    color: var(--light-color);
}
.navbar a i:hover{
    color: var(--primary-color);
    transform: scale(1.1);
}
 
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--light-color)
}
.home-img{
    width: 25vw;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-bottom: 2rem;
    animation: floatImage 3s ease-in-out infinite;
    transition: all 0.3s ease;
    @media (max-width: 768px) {
        width: 50vw;
        height: 200px;
    }
}
.home-img:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--info-color),
    0 0 20px var(--info-color),
    0 0 20px var(--info-color);
    animation: floatImage 3s ease-in-out infinite alternate;
    ;
}
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}
.home-container{
    margin-left: 5rem;
    animation: fadeIn 0.5s ease-in-out;
}
.home-container h1{
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    @media (max-width: 768px) {
        font-size: var(--font-size-lg);
    }
}
.home-container h1 span{
    color: var(--primary-color);
    font-weight: 700;
}
.home-subtitle{
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 1rem;
    @media (max-width: 768px) {
        font-size: var(--font-size-sm);
    }
}
span{
    color: var(--primary-color);
    font-weight: 700;
}
p{
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    @media (max-width: 768px) {
        font-size: var(--font-size-sm);
    }
}

social-icons{
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    a{
        font-size: var(--font-size-lg);
        color: var(--dark-color);
        padding: 0.5rem 1rem;
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
        &:hover{
            background-color: var(--primary-color);
            color: var(--light-color);
        }
    }
}
.social-icons i{
    font-size: 2rem;
    color: var(--dark-color);
    transition: all 0.3s ease-in-out;
    &:hover{
        color: var(--primary-color);
        transform: scale(1.1);
    }
}
.btn{
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--dark-color);
    background-color: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    &:hover{
        background-color: var(--primary-color);
        color: var(--light-color);
        border: 2px solid var(--light-color);
    }
}
.btn i{
    margin-left: 0.5rem;
    font-size: 1.5rem;
    color: var(--light-color);
    transition: all 0.3s ease-in-out;
    &:hover{
        color: var(--primary-color);
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .home-container{
        margin-left: 0;
        text-align: center;
    }
    .home-img{
        width: 50vw;
        height: 200px;
    }
    .home-subtitle{
        font-size: var(--font-size-sm);
    }
    p{
        font-size: var(--font-size-sm);
    }
}
@media (max-width: 768px) {
    .header{
        flex-direction: column;
        align-items: center;
        padding: 1rem 5%;
    }
    .navbar{
        display: none;
    }
    .home-container h1{
        font-size: var(--font-size-lg);
    }
    .home-subtitle{
        font-size: var(--font-size-sm);
    }
    p{
        font-size: var(--font-size-sm);
    }
}
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem; 
    background-color: var(--bg-color);
}

.about-img {
    width: 25vw; /* Matches the width of .home-img */
    height: 25vw; /* Ensures the height matches the width */
    max-width: 200px; /* Limits the size for larger screens */
    max-height: 200px; /* Ensures it doesn't exceed the max width */
    border-radius: 50%; /* Makes the image circular */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-bottom: 2rem;
    animation: floatImage 3s ease-in-out infinite;
    transition: all 0.3s ease;
    object-fit: cover; /* Ensures the image fits within the circle */
    display: block; /* Ensures the image behaves as a block element */
    @media (max-width: 768px) {
        width: 50vw; /* Adjusts for smaller screens */
        height: 50vw; /* Matches the width for smaller screens */
    }
}

.about-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--info-color),
                0 0 20px var(--info-color),
                0 0 20px var(--info-color);
    animation: floatImage 3s ease-in-out infinite alternate;
}

.about-container {
    flex:1;
    display: flex;
    justify-content: center;
    align-items: last baseline;
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
    text-align: left; /* Aligns text to the left */
    @media (max-width: 768px) {
        text-align: center; /* Centers text on smaller screens */
    }
}
.about-container h1{
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}
.about-container h1 span{
    color: var(--primary-color);
    font-weight: 700;
}
.about-subtitle{
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}
p{
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    @media (max-width: 768px) {
        font-size: var(--font-size-sm);
    }
}
.Skills{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-color);
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
}
.skills-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}
.skills-tittle{
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}
.skills-tittle span{
    color: var(--primary-color);
    font-weight: 700;
}
.skills-list li{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--bg-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;    cursor: pointer;
    transition: all 0.3s ease-in-out;
    &:hover{
        transform: scale(1.05);
        box-shadow: 0 0 20px var(--info-color),
        0 0 20px var(--info-color),
        0 0 20px var(--info-color);
        animation: floatImage 3s ease-in-out infinite alternate;    
    }
    i{
        font-size: 3rem;
        color: var(--dark-color);
        margin-bottom: 1rem;
        transition: all 0.3s ease-in-out;
        &:hover{
            color: var(--primary-color);
            transform: scale(1.1);
        }
    }
    h3{
        font-size: var(--font-size-base);
        font-weight: 500;
        color: var(--dark-color);
        text-align: center;
        margin-top: 1rem;
        @media (max-width: 768px) {
            font-size: var(--font-size-sm);
        }
    }
    p{
        font-size: var(--font-size-sm);
        font-weight: 400;
        color: var(--dark-color);
        text-align: center;
        margin-top: 1rem;
        @media (max-width: 768px) {
            font-size: var(--font-size-sm);
        }
    }
}
.skills-list li:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--info-color),
    0 0 20px var(--info-color),
    0 0 20px var(--info-color);
    animation: floatImage 3s ease-in-out infinite alternate;    
}

.projects{
    justify-content:left;
    align-items: last baseline;
    background-color: var(--bg-color);
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
}

.projects-tittle{
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4rem;
}
.project-card{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 5rem 0;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background-color: var(--bg-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;    
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    &:hover{
        box-shadow: 0 0 20px var(--info-color),
        0 0 20px var(--info-color),
        0 0 20px var(--info-color);  
    }
}
.Dataset{
    padding: 2px 2px;
    justify-content: center;
    flex-direction: column;
    border-radius: 20px;
    background-color: var(--bg-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;    cursor: pointer;
    transition: all 0.3s ease-in-out;
    &:hover{
        box-shadow: 0 0 20px var(--info-color),
        0 0 20px var(--info-color),
        0 0 20px var(--info-color);  
    }
}

.contact{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
}
.contact-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
.contact-container h1{
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}
.contact-container h1 span{
    color: var(--primary-color);
    font-weight: 700;
}
.contact-subtitle{
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}
.contact-subtitle span{
    color: var(--primary-color);
    font-weight: 700;
}
.contact-form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 20px;
    background-color: var(--bg-color);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    &:hover{
        box-shadow: 0 0 20px var(--info-color),
        0 0 20px var(--info-color),
        0 0 20px var(--info-color);  
    }
    input, textarea{
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 5px;
        border: 2px solid var(--primary-color);
        font-size: var(--font-size-base);
        font-weight: 400;
        color: var(--dark-color);
        background-color: var(--light-color);
        transition: all 0.3s ease-in-out;
        &:focus{
            border: 2px solid var(--info-color);
            outline: none;
            box-shadow: 0 0 20px var(--info-color),
            0 0 20px var(--info-color),
            0 0 20px var(--info-color);  
        }
    }
    button{
        padding: 1rem;
        font-size: var(--font-size-base);
        font-weight: 500;
        color: var(--dark-color);
        background-color: var(--light-color);
        border: 2px solid var(--primary-color);
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s ease-in-out;
        &:hover{
            background-color: var(--primary-color);
            color: var(--light-color);
            border: 2px solid var(--light-color);
        }
    }

    button i{
        margin-left: 0.5rem;
        font-size: 1.5rem;
        color: var(--light-color);
        transition: all 0.3s ease-in-out;
        &:hover{
            color: var(--primary-color);
            transform: scale(1.1);
        }
    }
    @media (max-width: 768px) {
        padding: 1rem;
        width: 90%;
    }
}






