/* --- Algemene Styling & Variabelen --- */
:root {
    --primary-color: #ff577f;
    --primary-glow: rgba(255, 87, 127, 0.4);
    --secondary-color: #ff884b;
    --secondary-glow: rgba(255, 136, 75, 0.4);
    --background-dark: #0f0f13;
    --background-gradient: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0f0f13 100%);
    --text-light: #f0f0f0;
    --text-dim: #b0b0b0;
    
    /* Modern Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    
    /* Shadows & Glows */
    --neon-glow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-glow);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    background-image: var(--background-gradient);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* --- Navigatie --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(15, 15, 19, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--primary-color);
}

.main-nav ul li a:hover {
    color: var(--text-light);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* --- Hero Sectie --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    background-image: url('media/Paginavullende-header.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15,15,19,0.3) 0%, rgba(15,15,19,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(22, 22, 29, 0.4);
    padding: 4rem 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--card-shadow);
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: var(--text-dim);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff2e63 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

/* --- Games Sectie --- */
.games-section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.games-section h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, var(--text-light), var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-color: var(--glass-highlight);
    background: rgba(255, 255, 255, 0.05);
}

.game-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.game-card:hover img {
    transform: scale(1.03);
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.game-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.play-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Footer --- */
.main-footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-content p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- PWA Install Button --- */
#pwa-install-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
    cursor: pointer;
    z-index: 2000;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Responsiviteit --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .hero-content { padding: 2.5rem 1.5rem; }
    
    .main-nav { flex-direction: column; gap: 1rem; }
    .main-nav ul { gap: 1.5rem; margin-top: 0.5rem; }
    
    .games-grid { grid-template-columns: 1fr; }
}
