* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 50px;
    min-height: 100vh;
    background: linear-gradient(45deg, #0a2ca8, #0aedb0);
}

.heading {
    flex: 0.2;
    font-size: 2rem;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #000000;
    text-align: center;
}

.navbar {
    position: relative;
    width: 320px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar li {
    position: absolute;
    left: 0;
    list-style: none;
    transform-origin: 200px;
    transition: 0.5s;
    transition-delay: calc(0.1s * var(--i));
    transform: rotate(0deg) translateX(130px);
}

.navbar.active li {
    transform: rotate(calc(360deg / 8 * var(--i)));
}

.navbar li a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: rotate(calc(360deg / -8 * var(--i)));
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
    color: #111111;
    transition: 0.5s;
}

.navbar li a:hover {
    color: #ff1252;
    transition: transform 0.2s ease-in-out;
    transform: scale(1.3);
}

.toggle {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    font-size: 2em;
    transition: 1.25s;
}

.navbar.active .toggle {
    transform: rotate(315deg);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 20px;
        gap: 20px;
    }

    .heading {
        font-size: 1.5rem;
    }

    .navbar {
        width: 250px;
        height: 250px;
    }

    .navbar li {
        transform-origin: 150px;
        transform: rotate(0deg) translateX(100px);
    }

    .navbar li a {
        width: 50px;
        height: 50px;
    }

    .toggle {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        gap: 10px;
    }

    .heading {
        font-size: 1.2rem;
    }

    .navbar {
        width: 200px;
        height: 200px;
    }

    .navbar li {
        transform-origin: 100px;
        transform: rotate(0deg) translateX(80px);
    }

    .navbar li a {
        width: 40px;
        height: 40px;
    }

    .toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
}