/* Importeer een strak, modern lettertype van Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Moderne kleuren en variabelen */
:root {
    --primary: #4f46e5;      /* Modern indigo/blauw */
    --primary-hover: #4338ca;
    --accent: #ec4899;       /* Levendig roze voor details */
    --dark: #0f172a;         /* Diep donkerblauw in plaats van hard zwart */
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Inlaad Animaties --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Het Nieuwe Menu (Zwevend & Glassmorphism) --- */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--dark);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    /* Gradient tekst voor de titel */
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--dark);
    margin-left: 30px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

/* Geanimeerde lijn onder de links */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary);
}

/* --- Content & Padding (Conform Master Template) --- */
main {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
}

.content-section {
    background: #ffffff;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    /* Animatie bij het laden */
    animation: fadeUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Laat de secties na elkaar inladen */
.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.3s; }

.content-section h2 {
    margin-top: 0;
    color: var(--dark);
    font-size: 28px;
    margin-bottom: 20px;
}

.content-section p {
    padding-bottom: 15px; /* Belangrijke padding tussen tekstalinea's behouden */
    line-height: 1.8;
    margin: 0;
    font-size: 16px;
    color: #475569;
}

/* --- De Zoekbalk (Modern en Geanimeerd) --- */
.search-box {
    display: flex;
    gap: 15px;
    padding-top: 25px;
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    font-size: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.search-box button {
    padding: 18px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.search-box button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
}

/* --- Moderne Knoppen voor Domein.php --- */
.btn-modern {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #10b981, #059669); /* Groen verloop */
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* --- De Nieuwe Footer --- */
footer {
    background-color: var(--dark);
    color: #94a3b8;
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
}

/* --- Mobiele Responsiveness (Smartphones & Tablets) --- */
@media (max-width: 768px) {
    /* Header en Menu: netjes centreren en onder elkaar zetten */
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        margin-left: 0;
        font-size: 14px;
    }

    /* Content secties: padding iets terugschroeven zodat het op een smal scherm past */
    main {
        padding: 20px 15px;
    }

    .content-section {
        padding: 25px 20px;
    }

    .content-section h2 {
        font-size: 22px;
    }

    /* De zoekbalk: knop en invoerveld onder elkaar voor makkelijker typen */
    .search-box {
        flex-direction: column;
        gap: 10px;
    }

    .search-box input, 
    .search-box button {
        width: 100%;
        box-sizing: border-box;
    }

    /* Marktplaats lijst: items en knoppen onder elkaar op mobiel */
    #portfolio ul li {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    #portfolio ul li a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}