/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #b74b4b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 2.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

header nav {
    display: flex;
    gap: 1.5rem;
}

header nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

header nav a:hover {
    color: #f4f4f9;
    background-color: rgba(255, 255, 255, 0.1);
}

header nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 30rem;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 8rem;
        background-color: #b74b4b;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        display: block;
        margin: 1.5rem 0;
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
    }
}

/* Skills Section */
.skills {
    max-width: 80rem;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.skills h1 {
    color: #b74b4b;
    margin-bottom: 2rem;
    font-size: 3rem;
}

.skill-category {
    margin-bottom: 3rem;
}

.skill-category h2 {
    color: #b74b4b;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.skill-category ul li {
    font-size: 1.6rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category ul li:hover {
    transform: translateY(-0.3rem);
}

.skill-category ul li i {
    color: #b74b4b;
    font-size: 1.8rem;
}

/* Progress Bars */
.skill {
    margin-bottom: 2rem;
    width: 100%;
}

.skill h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

.progress-bar {
    background: #ddd;
    border-radius: 0.8rem;
    overflow: hidden;
    height: 2rem;
}

.progress {
    background: #b74b4b;
    height: 100%;
    border-radius: 0.8rem;
    transition: width 1s ease;
}

@media (max-width: 768px) {
    .skills {
        margin: 1.5rem;
        padding: 1.5rem;
    }
    
    .skills h1 {
        font-size: 2.5rem;
    }
    
    .skill-category h2 {
        font-size: 1.8rem;
    }
    
    .skill-category ul {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-category ul li {
        width: 100%;
        justify-content: center;
    }
    
    .skill h2 {
        text-align: center;
    }
}