/* Background and base styles */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('images/bg.png');
    background-size: cover;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Content container */
.container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

/* Modern Topbar Styling */
#topbar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Navbar Styling */
#navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    height: 70px;
}

/* Update logo and text colors */
.text-indigo-600 {
    color: #ffffff !important;
    font-weight: 700;
}

/* Navbar links */
.text-gray-700 {
    color: #e5e7eb !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hover\:text-indigo-600:hover {
    color: #a5b4fc !important;
}

/* Mobile menu background */
#mobile-menu {
    background-color: rgba(31, 41, 55, 0.95) !important;
}

/* Smooth transitions for mobile menu */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    transform-origin: top;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px; /* Adjust based on your content */
    opacity: 1;
    padding-bottom: 1rem;
}

/* Smooth hover effect for nav items */
.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4f46e5; /* indigo-600 */
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Custom scrollbar for mobile menu */
#mobile-menu::-webkit-scrollbar {
    width: 5px;
}

#mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#mobile-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

#mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}