/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Algemene pagina-instellingen */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(13, 27, 42, 1) 45%);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Transitions */
.page-transition {
    animation: fadeIn 0.4s ease-in-out;
}

.page-transition-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Triangle Animation Container */
.triangle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid white;
    opacity: 1;
    animation: moveTriangle linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.triangle::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    border-radius: 50%;
    filter: blur(4px);
    animation: fadeAndNarrowTrail linear infinite;
}

@keyframes moveTriangle {
    0% {
        transform: translateY(100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

@keyframes fadeAndNarrowTrail {
    0% {
        opacity: 0.8;
        width: 8px;
    }
    100% {
        opacity: 0;
        width: 2px;
    }
}

/* Topbar Styling */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background-color: rgba(41, 63, 99, 0.95);
    padding: 0 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease;
}

.topbar-hidden {
    transform: translateY(-100%);
}

.topbar .menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.topbar .menu li a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
    border: 2px solid transparent;
    border-radius: 5px;
}

.topbar .menu li a:hover {
    color: #293f63;
    background-color: #ffffff;
}

.topbar .menu li a.active {
    border-color: #ffffff;
}

/* Logo Styling */
.logo {
    width: 80px;
    height: auto;
}

.icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.lang-switch:hover {
    color: #293f63;
    background-color: #ffffff;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 5px;
}

/* Dropdown */
.dropdown {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(41, 63, 99, 0.98);
    text-align: center;
    z-index: 999;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dropdown.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown ul {
    list-style: none;
    padding: 20px 0;
}

.dropdown ul li a {
    display: block;
    color: white;
    padding: 15px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.dropdown ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-top: 80px;
    width: 100%;
    transition: opacity 0.2s ease;
}

.main-content.is-loading {
    opacity: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Footer */
.site-footer {
    background-color: #293f63;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

.site-footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #ffd700;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

/* Generic buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    color: #fff;
    border: 2px solid #fff;
    background-color: transparent;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.04);
}

.btn-primary {
    background-color: #007acc;
    border-color: #007acc;
}

.btn-primary:hover {
    background-color: #005fa3;
    border-color: #005fa3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .topbar {
        padding: 0 20px;
    }

    .topbar .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .main-content {
        margin-top: 80px;
    }

    .container {
        padding: 30px 15px;
    }
}

/* Scrollbar hiding */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #293f63;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e2d47;
}
