.richard-header {
    position: relative;
    overflow: visible !important;
    background-color: #FFFFFF;
}

/* Animaties */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Topbar styling */
.richard-topbar {
    font-size: 14px;
    background-color: #FFFFFF;
    animation: fadeInDown 0.8s ease-out;
}

.richard-topbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
}

.richard-topbar a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease-in-out;
}

.richard-topbar a:hover {
    color: #45AC34;
}

.richard-social-icons {
    display: flex;
    gap: 15px;
}

.richard-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #000;
    color: #fff !important;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

/* Social media icons vertraagd inladen */
.richard-social-icons a:nth-child(1) { animation-delay: 0.2s; }
.richard-social-icons a:nth-child(2) { animation-delay: 0.4s; }
.richard-social-icons a:nth-child(3) { animation-delay: 0.6s; }

.richard-social-icons a:hover {
    background-color: #45AC34;
    color: #fff !important;
    transform: scale(1.1);
}

.richard-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    position: relative;
    z-index: 1002;
    gap: 50px;
    background-color: #FFFFFF;
}

/* Logo animatie */
.richard-header-logo {
    animation: fadeInRight 0.8s ease-out;
}

/* Menu styling */
.richard-header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.richard-header-menu li {
    position: relative;
    animation: fadeInDown 0.8s ease-out;
    animation-fill-mode: both;
}

/* Menu items vertraagd inladen */
.richard-header-menu li:nth-child(1) { animation-delay: 0.1s; }
.richard-header-menu li:nth-child(2) { animation-delay: 0.2s; }
.richard-header-menu li:nth-child(3) { animation-delay: 0.3s; }
.richard-header-menu li:nth-child(4) { animation-delay: 0.4s; }
.richard-header-menu li:nth-child(5) { animation-delay: 0.5s; }
.richard-header-menu li:nth-child(6) { animation-delay: 0.6s; }
.richard-header-menu li:nth-child(7) { animation-delay: 0.7s; }
.richard-header-menu li:nth-child(8) { animation-delay: 0.8s; }

/* Verwijder alle link decoraties */
.richard-header a,
.richard-header-menu a {
    text-decoration: none !important;
    color: black;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

.richard-header-menu a:hover {
    color: #45AC34;
}

/* Active menu item styling */
.richard-header-menu .current-menu-item > a,
.richard-header-menu .current-menu-ancestor > a,
.richard-header-menu .current-menu-parent > a {
    color: #45AC34 !important;
}

/* Contact button styling - alleen voor hoofdmenu */
.richard-header-menu > li:last-child > a {
    position: relative;
    color: white!important;
    padding: 5px 20px;
    border-radius: 25px;
    overflow: hidden;
    z-index: 1;
}

.richard-header-menu > li:last-child > a::before,
.richard-header-menu > li:last-child > a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
}

.richard-header-menu > li:last-child > a::before {
    background: linear-gradient(90deg, rgba(69, 172, 52, 0.98) 0%, rgba(28, 70, 21, 0.98) 100%);
    opacity: 1;
    z-index: -2;
}

.richard-header-menu > li:last-child > a::after {
    background: linear-gradient(270deg, rgba(69, 172, 52, 0.98) 0%, rgba(28, 70, 21, 0.98) 100%);
    opacity: 0;
    z-index: -1;
}

.richard-header-menu > li:last-child > a:hover::before {
    opacity: 0;
}

.richard-header-menu > li:last-child > a:hover::after {
    opacity: 1;
}

/* Hamburger menu styling */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1003;
    animation: fadeIn 1s ease-out;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

/* Mobile menu styles */
@media screen and (max-width: 1248px) {
    .hamburger-menu {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .richard-header.menu-open nav {
        right: 0;
    }

    .richard-header-menu {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* Hamburger menu animation */
    .richard-header.menu-open .hamburger-menu span:first-child {
        transform: translateY(9px) rotate(45deg);
    }

    .richard-header.menu-open .hamburger-menu span:nth-child(2) {
        opacity: 0;
    }

    .richard-header.menu-open .hamburger-menu span:last-child {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 400px) {
    /* Topbar responsiveness */
    .richard-topbar-right {
        display: none;
    }
}
