/* General Styles for the Skills Page */
body {
    font-family: 'Poppins', sans-serif;
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
}

nav {
    width: 100%;
    height: 10vh;
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.logo span {
    color: rgb(211, 3, 3);
    text-shadow: 0 0 10px rgb(211, 3, 3);
}

.hamburg,
.cancel {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 20px;
    color: white;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
    display: none;
}

.nav-container .links {
    display: flex;
}

.nav-container .links a {
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a:hover {
    color: rgb(211, 3, 3);
    border-bottom: 2px solid rgb(211, 3, 3);
}

/* Dropdown Menu (Initially Hidden) */
.dropdown {
    z-index: 100;
    position: absolute;
    top: 0;
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-500px);
    backdrop-filter: blur(4px) brightness(40%);
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px black;
    display: none;
}

.dropdown .links a {
    display: flex;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    justify-content: center;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover {
    background-color: rgb(211, 3, 3);
}

section {
    padding: 50px;
}

h1 {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.skill-sections {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 0 auto;
    max-width: 1100px;
}

.skill-section {
    flex: 1;
}

.skill-section h2 {
    font-size: 1.8rem;
    color: rgb(211, 3, 3);
    border-bottom: 2px solid rgb(211, 3, 3);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.skill {
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    background-color: rgb(211, 3, 3);
    border-radius: 5px;
    width: 0; /* Start at 0 width for animation */
    transition: width 2s ease-in-out;
    /* animation: progress 7s linear forwards; */
}
.skill span {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.progress-bar {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
}

/* .progress {
    background-color: rgb(211, 3, 3);
    height: 100%;
    width: 0;
    transition: width 0.4s ease;
} */

.skill-level {
    margin-top: 5px;
    font-size: 0.9rem;
    color: white;
}

/* Define the width for different skill progress bars */
.skill.python .progress {
    width: 90%;
}

.skill.ml .progress {
    width: 85%;
}

.skill.sql .progress {
    width: 80%;
}

.skill.data-analysis .progress {
    width: 75%;
}

.skill.problem-solving .progress {
    width: 90%;
}

.skill.communication .progress {
    width: 85%;
}

.skill.teamwork .progress {
    width: 80%;
}.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid rgb(211,3,3);
    border-radius: 50%;
    color: rgb(211,3,3);
    margin: 0 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    filter: drop-shadow(0 0 10px rgb(211,3,3));
    color: black;
    background-color: rgb(211,3,3);
}


/* Mobile Styles */
@media (max-width: 884px) {
    .logo {
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    .nav-container .links {
        display: none; /* Hide desktop navigation links on mobile */
    }

    .hamburg,
    .cancel {
        display: block; /* Show hamburger icon on mobile */
    }

    .social-links i {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .dropdown {
        display: block; /* Dropdown menu hidden initially */
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .skill-sections {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    nav .logo {
        font-size: 1.5rem;
    }

    nav .links a {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .skill-section h2 {
        font-size: 1.5rem;
    }
}
