/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE LAYOUT */
html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1c1c1c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Shapes */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    z-index: 0;
}

body::before {
    width: 300px;
    height: 300px;
    background: white;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

body::after {
    width: 400px;
    height: 400px;
    background: white;
    bottom: -150px;
    left: -150px;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

main {
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 999;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-100%); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand img.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img.logo {
    transform: rotate(360deg) scale(1.1);
}

.navbar-brand span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover::after {
    width: 80%;
}

.nav-menu li a:hover {
    color: #667eea;
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 70%;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem 2rem;
        gap: 1rem;
        border-radius: 0 0 0 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from { 
            opacity: 0;
            transform: translateX(100%);
        }
        to { 
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* HERO voor Over Ons */
.about-hero {
    background: linear-gradient(rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)),
                url("../clubfoto.jpg") no-repeat center center;
    background-size: cover;
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.about-hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* Bestuur lijst */
.board-list {
    list-style: none;
    padding: 0;
}

.board-list li {
    margin: 0.8rem 0;
    color: #333;
    padding-left: 1.5rem;
    position: relative;
}

.board-list li::before {
    content: '♟';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1.2rem;
}

/* Hero voor Home */
.home-hero {
    background: linear-gradient(rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95)),
                url("../background.jpg") no-repeat center center;
    background-size: cover;
    color: white;
    padding: 6rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.home-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.home-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.cta-btn {
    background: white;
    color: #667eea;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.cta-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Intro sectie */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro p {
    color: white;
    line-height: 1.7;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Links in kaarten */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.card-link:hover {
    color: #764ba2;
    gap: 1rem;
}

/* GRID CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    animation: fadeInUp 1.2s ease 0.5s backwards;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.card:hover::before {
    opacity: 0.1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card p {
    color: #444;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* NEWS PAGE */
.news-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* News cards */
.news-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-card h3 {
    color: #333;
    margin: 1rem 1rem 0.5rem 1rem;
    font-size: 1.3rem;
}

.news-card p {
    color: #444;
    margin: 0 1rem 1rem 1rem;
    flex-grow: 1;
}

.read-more {
    margin: 0 1rem 1.2rem 1rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(0,0,0,0.7);
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    margin: 4% auto;
    padding: 2rem;
    border-radius: 20px;
    max-width: 650px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #667eea;
    font-weight: bold;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.modal h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    color: #666;
    font-size: 0.95rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

/* TIMELINE (Jeugd Kalender) */
.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
    padding: 2rem 0;
}

/* The vertical line (desktop only) */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-event {
    padding: 1.5rem 2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    width: 45%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.timeline-event:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.timeline-event.left {
    left: 0;
}

.timeline-event.right {
    left: 55%;
}

/* Connector circles */
.timeline-event::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 4px solid #fff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.timeline-event.right::before {
    left: -10px;
    right: auto;
}

.event-date {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.event-type {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.les { background: linear-gradient(135deg, #ffca28, #ffa726); color: #1a237e; }
.tornooi { background: linear-gradient(135deg, #e91e63, #c2185b); }

.event-description {
    color: #333;
    line-height: 1.6;
}

/* Mobile-friendly timeline */
@media (max-width: 768px) {
    .timeline::after {
        display: none;
    }

    .timeline-event,
    .timeline-event.right,
    .timeline-event.left {
        width: 90%;
        left: 5% !important;
    }

    .timeline-event::before {
        left: -12px !important;
        right: auto !important;
    }
}

/* Calendar styles */
.calendar-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

main h1 {
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2rem 0;
    font-size: 2.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

.club-competitie { background: linear-gradient(135deg, #ffca28, #ffa726); color: #1a237e; }
.interclub { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.beker { background: linear-gradient(135deg, #4caf50, #388e3c); }
.rapid { background: linear-gradient(135deg, #e91e63, #c2185b); }
.algemene { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }

/* Contact page styles */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.contact-card p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: #333;
}

.mail-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.mail-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.directions {
    background: rgba(102, 126, 234, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2rem;
    }

    .home-hero p {
        font-size: 1rem;
    }

    iframe {
        height: 300px;
    }

    main h1 {
        font-size: 2rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }
}