/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles for body and navigation */
body {
    background: #080808;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    position: fixed; /* Fixing the navigation bar */
    top: 0;
    width: 100%;
    padding: 10px 10%;
    z-index: 1000; /* Ensures nav stays on top */
}

nav .fas {
    display: none; /* Hiding font awesome icons by default */
}

.logo {
    font-family: Calibri;
    width: auto;
    font-size: 30px;
    white-space:nowrap;
    color:#fff;
    margin-left:-30px;
}

.logo .last-name {
    color: #ff004f;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    display:inline-block;
    list-style:none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
}

nav ul a:hover {
    color: #ff004f;
}

/* Media query for smaller screens (mobile-first approach) */
@media (max-width: 768px) {
    nav .fas {
        display: block; /* Show bars icon for menu toggle */
        font-size:24px;
        cursor: pointer; /* Change cursor to pointer for better UX */
    }

    nav ul {
        position: fixed; /* Fix the nav menu */
        top: 0;
        right: -100%; /* Push it off-screen initially */
        width: 200px;
        height: 100vh; /* Full height of viewport */
        background: rgba(0, 0, 0, 0.9); /* Semi-transparent background */
        flex-direction: column; /* Stack links vertically */
        justify-content: center; /* Center align items */
        align-items: center; /* Center align items */
        transition: 0.3s; /* Smooth transition effect */
        z-index: 1000; /* Ensure nav menu stays on top */
    }

    nav ul li {
        margin: 20px 0; /* Adjust spacing between links */
    }
    nav ul li a::after {
        display: none; /* Remove underline effect on small screens */
    }
    nav .fas.fa-times {
        display: block; /* Show close icon */
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer; /* Change cursor to pointer for better UX */
    }

    /* Show nav menu when bars icon is clicked */
    nav .fas.fa-bars.active ~ ul {
        right: 0;
       
    }
}
