:root {
    --bg-color: #282c34; /* Darker background */
    --second-bg-color: #21252b; /* Slightly different dark for header/items */
    --text-color: #abb2bf; /* Soft off-white text */
    --main-color: #61afef; /* Muted blue accent */
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    outline: none;
    border: none;
    scroll-behavior: smooth;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1.6rem; /* Default font size for body */
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--second-bg-color); /* Use second-bg-color for header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none; /* Hidden by default on larger screens */
}

@media (max-width: 768px) {
    #menu-icon {
        display: block; /* Visible on small screens */
    }

    .navbar {
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        padding: 1rem 9%;
        background: var(--second-bg-color); /* Background for dropdown */
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none; /* Hidden by default on small screens */
    }

    .navbar.active {
        display: block; /* Visible when active */
    }

    .navbar a {
        display: block; /* Stack links vertically */
        font-size: 2rem;
        margin: 3rem 0;
    }
}