/* --- VARIABLES & PALETTE (Pastel Thema) --- */
:root {
    --bg-color: #fcfbf9; /* Crème wit */
    --text-dark: #4a4a4a; /* Zacht donkergrijs, niet zwart */
    --text-light: #7a7a7a;
    
    /* Pastels */
    --pastel-peach: #ffe5d9;
    --pastel-lilac: #e7e0f9;
    --pastel-sage: #e0ece4;
    --pastel-blue: #dbebf9;
    
    --accent-color: #bfaac1; /* Oud roze/paars */
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.03);
    --shadow-hover: 0 15px 50px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- ACHTERGROND VORMEN (Decoratief) --- */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}
.shape-1 { width: 500px; height: 500px; background: var(--pastel-peach); top: -100px; right: -100px; }
.shape-2 { width: 600px; height: 600px; background: var(--pastel-lilac); bottom: -100px; left: -100px; }

/* --- TYPOGRAFIE --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: #2c2c2c; font-weight: 600; }

h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 10px; }
.subtitle { font-size: 1.2rem; color: var(--text-light); font-weight: 300; margin-bottom: 40px; font-style: italic; }

/* --- NAVIGATION --- */
.navbar { padding: 30px 5%; display: flex; justify-content: center; }
.nav-container { 
    width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; 
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-dark); text-decoration: none; font-weight: 700; letter-spacing: -0.5px; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

/* --- HERO SECTION --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.upload-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 500px;
    transition: 0.3s;
}

/* Upload Styling */
input[type="file"] { display: none; }
.upload-area {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px dashed #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: 0.3s;
    background: #fafafa;
}
.upload-area:hover { border-color: var(--accent-color); background: #fff; }
.upload-icon { font-size: 2rem; color: var(--accent-color); margin-bottom: 10px; }
.upload-text { font-size: 0.9rem; color: var(--text-light); font-weight: 600; }

.file-name { margin-top: 15px; font-size: 0.85rem; color: var(--text-dark); opacity: 0; transition: 0.3s; height: 20px; }
.file-name.visible { opacity: 1; }

.primary-btn {
    background-color: #2c2c2c; /* Contrast */
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    font-family: var(--font-body);
    font-weight: 700;
    transition: 0.3s;
    opacity: 0.5;
    pointer-events: none;
}
.primary-btn.active { opacity: 1; pointer-events: all; }
.primary-btn:hover { background-color: var(--accent-color); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.disclaimer { font-size: 0.75rem; color: #aaa; margin-top: 15px; }

/* --- RESULTAAT --- */
.hidden { display: none; }
.fade-in { animation: fadeIn 0.8s ease; }

.result-card {
    background: #fff;
    margin-top: 40px;
    padding: 50px;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.result-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--pastel-peach), var(--pastel-lilac)); border-top-left-radius: 20px; border-top-right-radius: 20px; }

.divider { font-family: var(--font-heading); font-size: 2rem; color: var(--accent-color); margin: 20px 0; }
.result-text { text-align: left; font-size: 1.05rem; color: var(--text-dark); }
.result-text h4 { margin-top: 25px; color: var(--accent-color); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

.secondary-btn {
    background: transparent; border: 1px solid #ddd; color: var(--text-light);
    padding: 10px 25px; border-radius: 30px; margin-top: 30px; cursor: pointer; transition: 0.3s;
}
.secondary-btn:hover { border-color: var(--text-dark); color: var(--text-dark); }

/* --- INFO & SECTIONS --- */
.info-section, .lines-section {
    max-width: 1100px; margin: 100px auto; padding: 0 20px;
}

.section-title { text-align: center; margin-bottom: 60px; }
.section-title span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); margin-bottom: 10px; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.pastel-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}
.pastel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* Kleuraccenten per kaart */
.card-earth { border-color: #d4a373; }
.card-earth h4 { color: #d4a373; }
.card-air { border-color: #a2d2ff; }
.card-air h4 { color: #7ab6eb; }
.card-fire { border-color: #ffb5a7; }
.card-fire h4 { color: #e08e7d; }
.card-water { border-color: #bde0fe; }
.card-water h4 { color: #9bb1ff; }

.tag { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; color: var(--text-light); }

/* --- LIJNEN SECTIE --- */
.clean-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.clean-item { padding: 20px; }
.big-number { font-family: var(--font-heading); font-size: 4rem; color: var(--pastel-lilac); opacity: 0.5; display: block; line-height: 1; margin-bottom: 10px; }

/* --- FOOTER --- */
.footer { text-align: center; padding: 50px 0; color: #999; font-size: 0.9rem; }
.separator { margin: 0 10px; color: #ddd; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .clean-grid { grid-template-columns: 1fr; }
    .hero-section { padding-top: 100px; }
    .nav-links { display: none; } /* Mobiel menu verbergen voor eenvoud */
}

/* Spinner */
.spinner { width: 40px; height: 40px; border: 3px solid #f3f3f3; border-top: 3px solid var(--accent-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }