/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #070d19;
    --bg-lighter: #0f172a;
    --primary-blue: #0ea5e9;
    --accent-cyan: #22d3ee;
    --accent-green: #10b981;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}


/* Statische Globale Achtergrond */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(7, 13, 25, 0.6), rgba(7, 13, 25, 0.95)), url('assets/hero-bg.png') no-repeat center center/cover;
    z-index: -100;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

h1 span, h2 span {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.6), 0 2px 5px rgba(0,0,0,0.8);
    display: inline-block;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(7, 13, 25, 0.9) 0%, rgba(7, 13, 25, 0) 100%);
}

#navbar.scrolled {
    background: rgba(7, 13, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px; /* Optioneel voor vierkante/scherpe logo's */
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5); /* Zorgt dat het logo ook opvalt */
}

.logo span {
    color: var(--primary-blue);
    font-weight: 300;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
}

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: 0px 0px 12px rgba(34, 211, 238, 0.6);
}

/* Buttons */
.btn-primary, .btn-primary-small {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-primary-small {
    padding: 10px 24px;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent-cyan);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
    background: rgba(7, 13, 25, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.8), 0px 0px 10px rgba(7, 13, 25, 0.9);
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0; /* Lichter gemaakt voor contrast */
    margin-bottom: 40px;
    font-weight: 400; /* Iets dikker voor leesbaarheid */
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(34, 211, 238, 0.3);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 60px 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    max-width: 1000px;
    width: 100%;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px;
    display: flex;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding: 40px 20px 40px;
    text-align: center;
    background: var(--bg-dark);
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero { height: auto; min-height: 100vh; padding-top: 140px; padding-bottom: 40px; }
    .hero-content { margin-top: 0; padding: 25px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .nav-links { display: none; } /* V2: Add hamburger menu */
    .about-container { padding: 40px 20px; }
}

/* Jurisprudentie Blog Sectie */
.blog-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-container {
    display: grid;
    grid-template-columns: 250px 1fr 280px; /* Vaste zijbalken, brede middenkolom */
    gap: 40px;
    align-items: start;
}

.blog-sidebar {
    padding: 25px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Subtiele scrollbar voor de sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}
.blog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.blog-sidebar::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}
.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.blog-sidebar h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

#blog-history-list {
    list-style: none;
}

#blog-history-list li {
    margin-bottom: 15px;
}

#blog-history-list a {
    text-decoration: none;
    color: var(--text-main);
    display: block;
    transition: color 0.3s ease;
    cursor: pointer;
}

#blog-history-list a:hover, #blog-history-list a.active {
    color: var(--accent-cyan);
}

#blog-history-list .post-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

#markdown-content {
    padding: 40px 50px; /* Iets meer ademruimte in de brede kolom */
}

#markdown-content h1 { font-size: 2.2rem; margin-bottom: 25px; color: var(--accent-cyan); }
#markdown-content h2 { font-size: 1.7rem; margin-top: 40px; margin-bottom: 15px; color: #fff; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }
#markdown-content h3 { font-size: 1.3rem; margin-top: 35px; margin-bottom: 15px; color: var(--accent-cyan); letter-spacing: 0.5px; }
#markdown-content p { margin-bottom: 15px; line-height: 1.8; font-size: 1.05rem; }
#markdown-content ul, #markdown-content ol { margin-left: 20px; margin-bottom: 20px; }
#markdown-content li { margin-bottom: 8px; line-height: 1.7; font-size: 1.05rem; }
#markdown-content blockquote {
    border-left: 4px solid var(--accent-cyan);
    padding: 15px 20px;
    background: rgba(4, 217, 255, 0.05);
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
#markdown-content strong { color: #fff; font-weight: 600; }
#markdown-content a { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px dashed var(--accent-cyan); transition: all 0.3s ease; }
#markdown-content a:hover { color: #fff; border-bottom: 1px solid #fff; }

.blog-cta {
    padding: 30px;
    text-align: center;
}
.blog-cta h3 { margin-bottom: 15px; color: var(--accent-cyan); }
.blog-cta p { margin-bottom: 20px; font-size: 0.95rem; }

/* Podcast Player */
.podcast-player {
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-cyan);
}

.podcast-player h4 {
    margin-bottom: 5px;
    color: var(--accent-cyan);
}

.podcast-player p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.podcast-player audio {
    width: 100%;
    outline: none;
    border-radius: 30px;
}

@media (max-width: 900px) {
    .blog-container { grid-template-columns: 1fr; }
    .blog-cta { position: relative; top: 0; }
}

/* Accordion Styles */
.expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
}

.expanded-content.show {
    max-height: 1500px;
    opacity: 1;
}

.toggle-btn {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    align-self: flex-start;
}

.toggle-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

.toggle-btn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.toggle-btn.active .arrow {
    transform: rotate(180deg);
}

.service-list {
    margin-top: 15px;
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-list li {
    margin-bottom: 8px;
}


/* Contact Modal Styles */
.contact-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 13, 25, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.contact-modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-cyan);
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-section { background: transparent !important; }


/* Custom Audio Player */
.custom-audio-player {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.player-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-artwork {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.4);
}

.player-info {
    flex-grow: 1;
}

.player-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.player-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.player-speed {
    display: flex;
    align-items: center;
}

.speed-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.speed-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.play-btn {
    font-size: 2.2rem;
    color: var(--accent-cyan);
}

.player-progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-display {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Native Range Slider Styling */
.progress-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.progress-slider:hover {
    background: rgba(255, 255, 255, 0.2);
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
    transition: transform 0.1s;
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}


/* Fix for CMS button alignment */
.markdown-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


/* Foolproof alignment for buttons wrapped in <p> tags by Markdown */
.markdown-container > p:last-child {
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
}







/* Zorg dat de secties niet verborgen raken achter de vaste navigatiebalk bij het klikken op het menu */
section, header, .hero, #markdown-content {
    scroll-margin-top: 100px;
}
