.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: white !important;
    width: 100%;
    text-align: center;
}

.nav-link:hover {
    color: #A8D600 !important;
}

/* Desktop menu styles */
.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px; /* Sesuaikan dengan tinggi navbar */
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    padding: 1rem;
    z-index: 50;
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
}

.mobile-menu.show {
    transform: translateY(0);
    display: block;
}

.mobile-menu a {
    display: block;
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #A8D600;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .desktop-menu {
        display: none;
    }
}

/* Responsive breakpoints */
@media (max-width: 991px) {
    .desktop-menu {
        display: none;
    }

    .navbar-toggler {
        display: block;
    }

    .mobile-menu.show {
        display: block;
    }
}

/* Adjust content padding to prevent overlap with fixed navbar */
h3 {
    font-size: 1.25rem;
    margin: 5px 0;
    text-align: center;
    color: #0095B7;
}

/* Hexagon styles */
/* Background for the hexagon section */
.hexagon-background {
    background-image: url('{{ asset('background/backgorund.jpg') }}');
    background-size: cover;
    background-position: center;
}
.hexagon {
    position: relative;
    margin: 28.87px 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    text-shadow: 1px 1px 2px #000000;

}

.hexagon:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hexagon:focus {
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0095B7;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #0095B7 !important;
}

.nav-link.active::after {
    width: 100%;
}

/* Dark mode adjustments */
.dark .nav-link {
    color: white !important;
}

/* Ensure content doesn't hide behind navbar */
main {
    margin-top: 120px; /* Sesuaikan dengan total tinggi kedua navbar */
}

/* Loader styles */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.page-transition {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page-visible {
    opacity: 1;
}

/* Navbar Styles */
.nav-link {
    color: #1a202c;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #4299e1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4299e1;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: #4299e1;
}

.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Styles */
.nav-link-mobile {
    display: block;
    padding: 0.75rem 1rem;
    color: #1a202c;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-link-mobile:hover {
    background-color: #f7fafc;
    color: #4299e1;
}

@media (prefers-color-scheme: dark) {
    .nav-link {
        color: #fff;
    }

    .nav-link-mobile {
        color: #fff;
    }

    .nav-link-mobile:hover {
        background-color: #2d3748;
    }
}

/* Navbar Background */
.nav-background {
    background-color: #1a1a1a !important; /* Dark background */
    background-image: linear-gradient(to right, #1a1a1a, #2d3748);
}

/* Navbar Styles */
.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    color: #4299e1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #4299e1;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link.active {
    color: #4299e1;
}

.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Styles */
.nav-link-mobile {
    display: block;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link-mobile:hover {
    background-color: #2d3748;
    color: #4299e1;
    border-left-color: #4299e1;
}

/* Dark mode is now default */
.nav-link, .nav-link-mobile {
    color: #ffffff;
}

.nav-link-mobile:hover {
    background-color: #2d3748;
}

/* Glassmorphism effect */
.nav-background {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Shadow effect */
.shadow-lg {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Tambahan style untuk tombol login */
.login-button {
    background-color: #4299e1;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-button:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Style untuk login di mobile menu */
.login-mobile {
    background-color: #4299e1;
    color: white !important;
    border-radius: 0.375rem;
    margin: 0.5rem 1rem;
}

.login-mobile:hover {
    background-color: #3182ce !important;
    border-left-color: transparent !important;
}

/* Memastikan icon font-awesome sejajar dengan teks */
.fas {
    display: inline-flex;
    align-items: center;
}

/* Adjust body and main content positioning */
body {
    margin: 0;
    padding-top: 100px;
    min-height: calc(100vh - 100px);
    overflow-x: hidden;
}

main {
    margin-top: 80px; /* Sesuaikan dengan tinggi navbar */
}