/* Base styles for navigation */
nav {
    background-color: #fff; /* Background color for the navigation bar */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around; /* Space out links evenly */
}

nav ul li {
    position: relative; /* For positioning the pseudo-elements */
}

nav ul li a {
    text-decoration: none;
    color: #218838; /* Link color */
    padding: 10px 20px; /* Space around the text */
    font-weight: bold;
    transition: color 0.3s ease; /* Smooth color transition */
    perspective: 1000px; /* 3D effect perspective */
}

/* 3D effect on hover */
nav ul li a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(33, 136, 56, 0.7); /* Background color for the hover effect */
    transform: translateZ(-1px) scale(0.9); /* Initial scaling effect */
    transition: transform 0.3s ease; /* Smooth transition */
    z-index: -1; /* Place behind the text */
}

nav ul li a:hover:before {
    transform: translateZ(0) scale(1); /* Scale up on hover */
}

nav ul li a:hover {
    color: #fff; /* Change text color on hover */
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    position: relative;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
}

nav ul li:hover .dropdown {
    display: block;
}
