/* Huisstijl Kleurenpalet (Zakelijk Blue & Creative Orange) */
:root {
    --primary-color: #2c3e50; /* Diep donkerblauw (Betrouwbaar/Zakelijk) */
    --accent-color: #e17055;  /* Koraal Oranje (Creatief/Start-up) */
    --light-bg: #f9f9f9;
    --text-color: #333;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Better Box Sizing */
* {
    box-sizing: border-box;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

header {
    background: var(--primary-color);
    border-bottom: 4px solid var(--accent-color); /* Creatieve rand */
    color: #fff;
    padding: 1rem 0;
}

/* Modern Flexbox Navigation */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    letter-spacing: -1px; /* Modern, strakker */
    font-weight: 400; /* Iets lichter voor het tweede deel */
}

/* Typografisch Logo Accent  */
.brand-accent {
    font-weight: 700;
    color: var(--accent-color);    
}

/* Headings Font */
h1, h2, h3 {
    font-family: 'Inter',sans-serif;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 0;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: var(--accent-color);
    transition: color 0.3s;
}

#hero {
    /* Achtergrond met donkere overlay zodat tekst leesbaar blijft */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

section {
    padding: 3rem 0;
}

/* Fade-in on Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
}

.service i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* About Me Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem; /* Ruimte tussen tekst en foto */
}

.about-text {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    width: 350px; /* Of pas aan naar wens */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 4px solid #fff;
    /* Zorg dat de foto niet vervormt */
    object-fit: cover;
}

/* Portfolio Image */
.portfolio-item img {
    width: 100%;
    border-radius: 8px;
}
/* Portfolio Grid System */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.portfolio-item {
    background: var(--light-bg);
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-top: 4px solid var(--accent-color); /* Subtiel kleuraccent bij hover */
}

.portfolio-item h3 {
    margin-top: 0;
    color: #333;
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-button {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
}

.filter-button.active,
.filter-button:hover {
    color: var(--accent-color);
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    cursor: pointer;
    color: var(--primary-color);
}

.modal-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: contain;
}

.modal-info h3 {
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

/* Compacte, gecentreerde kaart voor login.php */
.login-card {
    max-width: 360px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.login-card h2 {
    margin-top: 0;
    text-align: center;
}

.login-card label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.login-card input {
    width: 100%;
}

.login-card button {
    margin-top: 0.5rem;
}

/* Honeypot spamval: onzichtbaar voor mensen, blijft aanwezig voor bots die
   blind elk formulierveld invullen (zie contact.php). */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    opacity: 0;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

/* Buttons & CTA's */
button, .cta-button {
    padding: 0.5rem;
    background: var(--accent-color); /* Opvallende CTA knop */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    border-radius: 4px;
}

button:hover, .cta-button:hover {
    background: #c05b42; /* Iets donkerder tintje voor interactie */
    transition: background 0.3s ease;
}

/* Mobile Responsiveness for About Section */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}