@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header {
    margin-top: 20px;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

#skills {
    text-align: center;
    padding: 2rem 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills img {
    max-width: 100px;
    height: auto;
}

.h3 {
    font-size: 3rem;
    font-family: cursive;
    padding: 2rem;
    text-align: center;
}

#achievements-section {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 1rem;
}

.achievements-container {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: auto;
    max-width: 90%;
    padding: 10px;
    background: linear-gradient(135deg, #615e5e 0%, #000000 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    justify-content: center; /* Center content horizontally within the container */
}

.achievements-row {
    display: flex;
    transition: transform 0.3s ease;
    white-space: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    justify-content: center; /* Center badges horizontally within the row */
}

.badge-container {
    position: relative;
    display: inline-block;
    margin: 0 10px; /* Adjust margin for spacing between badges */
    padding: 10px;
    background: linear-gradient(135deg, #615e5e 0%, #000000 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-container img {
    width: 60px; /* Adjust size as needed */
    display: block;
    margin: auto;
    border-radius: 50%;
}

.badge-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.badge-quantity {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff6b6b;
    color: white;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/* nav bar hamberger */

.hamburger {
    display: none; /* Hidden by default */
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .logo {
        font-size: 2.5rem; /* Reduce logo size */
    }

    nav a {
        font-size: 1.6rem; /* Reduce font size of nav links */
    }
}

@media (max-width: 995px) {
    .hamburger {
        display: block; /* Show hamburger menu */
    }

    nav {
        flex-direction: column; /* Stack items */
        background-color: #161616;
        padding: 1rem;
        position: absolute;
        top: 100%; /* Position below header */
        right: 0;
        width: 100%; /* Full width */
        border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
        display: none; /* Hide initially */
    }

    nav.active {
        display: block; /* Show when active */
    }

    nav a {
        display: block; /* Stack nav items */
        margin: 1.5rem 0; /* Space between items */
        padding: 0.5rem 1rem; /* Padding for clickable area */
    }
}