/* styles.css */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 48px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #001F3F;
    background: linear-gradient(to bottom, #F4EBD0 0%, #E0F7FA 20%, #47b3e3 60%, #001F3F 100%);
    transition: background 0.3s ease;
}

.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 600ms linear;
}

.top-bar:hover {
    background: rgba(255, 255, 255, 0.7);
}

.top-bar.active {
    cursor: pointer;
}

.top-bar nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar nav ul li {
    margin: 0 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

.top-bar nav ul li a {
    color: #167AC3;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    height: 100%;
    line-height: 3rem;
    padding: 0 0.5rem;
}

.top-bar nav ul li a:hover {
    color: #11588b;
    background: rgba(255, 255, 255, 0.7);
}

.language-selector {
    color: white;
    cursor: pointer;
    position: relative;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.5rem;
    z-index: 11;
}

.language-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.25rem 0;
}

.language-menu a:hover {
    color: #E0F7FA;
}

.language-selector:hover .language-menu,
.language-selector.active .language-menu {
    display: block;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #167AC3;
    cursor: pointer;
    padding: 0.5rem;
}

section {
    padding: 1rem 5rem;
    text-align: center;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

section h2 {
    font-size: 1.8rem;
    color: #001F3F;
    margin: 0 0 1.5rem 0;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Wave decoration behind odd sections (1st, 3rd, etc) - flowing right */
section:nth-child(odd) h2::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 18'%3E%3Cpath fill='%2347b3e3' opacity='0.25' d='M0,18 L0,14 Q45,6 90,11 Q135,16 180,9 Q225,7 270,12 Q300,14 330,11 Q345,9 360,12 L360,18 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    z-index: -1;
}

/* Wave decoration behind even sections (2nd, 4th, etc) - flowing left */
section:nth-child(even) h2::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 18'%3E%3Cpath fill='%2347b3e3' opacity='0.25' d='M0,12 Q15,9 30,11 Q75,7 120,9 Q165,16 210,11 Q255,6 300,12 Q330,14 360,18 L360,18 L0,18 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    z-index: -1;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(244, 235, 208, 0.8) 0%, rgba(224, 247, 250, 0.8) 20%, rgba(0, 121, 107, 0.8) 60%, rgba(0, 31, 63, 0.8) 100%), url('images/dd06dd5decd53013f676821f8730058cda55087286a1d0c8c123418e613fdfe3.jpg');
    background-size: cover;
    background-position: center;
    color: aliceblue;
    box-sizing: border-box;
}

.hero h1 {
    font-size: xx-large;
}

.hero p {
    margin-top: -20px;
    font-size: larger;
}

.about {
    max-width: 1100px;
    margin: 20px auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    display: block;
}

.about h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #47b3e3;
}

.about p {
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.about-image {
    float: right;
    width: 300px;
    height: 200px;
    margin: -1rem 0 1rem 1rem;
    background: #E0F7FA url('images/DSCF4075-web.jpeg') center/cover no-repeat;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.shoponwheels {
    max-width: 1100px;
    margin: 20px auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
}

.shoponwheels h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #47b3e3;
}

.shoponwheels p {
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.shoponwheels ul {
    padding-left: 350px;
}

.shoponwheels-image {
    float: left;
    width: 300px;
    height: 200px;
    margin: 0 1rem 1rem 0;
    background: #E0F7FA url('images/shoponwheels.jpg') center/cover no-repeat;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-placeholder {
    background: #E0F7FA center/cover no-repeat;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-placeholder:hover {
    transform: scale(1.05);
}

.contact {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#contact-form {
    flex: 1;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #47b3e3;
    border-radius: 4px;
    font-size: 1rem;
}

.captcha {
    margin: 1rem 0;
}

.captcha label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #001F3F;
}

.captcha input {
    padding: 0.5rem;
    border: 1px solid #47b3e3;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    max-width: 100px;
}

.contact-form button {
    padding: 0.75rem;
    background: #47b3e3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(71, 179, 227, 0.3);
    font-weight: 500;
    color: #001F3F;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(71, 179, 227, 0.2);
}

.contact-item .icon {
    font-size: 1.5rem;
    color: #47b3e3;
}

.contact-form button:hover {
    background: #3a94ba;
}

.sponsor-tier {
    margin-bottom: 2rem;
}

.sponsor-tier h3 {
    color: #47b3e3;
    margin-bottom: 1rem;
    text-align: center;
}

.static-sponsors {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.static-sponsors img {
    height: 150px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: white;
    border: 5px solid #47b3e3;
    border-radius: 8px;
    padding: 5px;
}

.sponsor-tier.hoofdsponsor .static-sponsors img {
    height: 175px;
    width: auto;
    max-width: 225px;
    object-fit: contain;
    background: white;
    border: 5px solid #47b3e3;
    border-radius: 8px;
    padding: 5px;
}

.sponsor-tier.structureelsponsor .static-sponsors img {
    height: 250px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    background: white;
    border: 5px solid #47b3e3;
    border-radius: 8px;
    padding: 5px;
}

.carousel {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.carousel img {
    display: inline-block;
    height: 150px;
    width: auto;
    max-width: 200px;
    margin-right: 10px;
    object-fit: contain;
    background: white;
    border: 5px solid #47b3e3;
    border-radius: 8px;
    padding: 5px;
}

.carousel-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.booking {
    padding: 4rem 2rem;
    text-align: center;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.booking-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.booking-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.booking-form label {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #001F3F;
}

.booking-form input,
.booking-form select {
    padding: 0.75rem;
    border: 1px solid #47b3e3;
    border-radius: 4px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.booking-form select {
    appearance: none;
    background: rgba(255, 255, 255, 0.9) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%2347b3e3"><path d="M7 7l3-3 3 3m0 6l-3 3-3-3"/></svg>') no-repeat right 0.75rem center/1rem;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: #005B4F;
    box-shadow: 0 0 5px rgba(0, 121, 107, 0.5);
}

.booking-form button {
    padding: 0.75rem;
    background: #47b3e3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.booking-form button:hover {
    background: #005B4F;
}

@media (max-width: 768px) {
    .booking {
        padding: 2rem 1rem;
    }

    .booking-container {
        flex-direction: column;
    }
}

.map {
    flex: 1;
    height: 300px;
}

.modal {
    display: flex;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    animation: zoom 0.6s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: none;
}

#message-modal .modal-content {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    color: #fff;
    padding: 2rem;
    max-width: 400px;
    position: relative;
    border-radius: 10px;
}

#message-modal .close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
}

#message-modal .close:hover {
    color: black;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    color: #001F3F;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

footer {
    text-align: center;
    padding: 1rem;
    background: #001F3F;
    color: white;
}

footer a {
    color: white;
    font-weight: bolder;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .top-bar {
        cursor: pointer;
    }

    .top-bar nav ul {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.9);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    .top-bar nav ul.active {
        display: flex;
    }

    .top-bar nav ul li {
        margin: 0.5rem 0;
        height: auto;
    }

    .top-bar nav ul li a {
        line-height: normal;
        padding: 0.5rem 1rem;
    }

    .language-selector {
        height: auto;
    }
    
    .hero img {
        width: 100% !important;
        max-width: 300px;
        margin-top: 0 !important;
    }

    section {
        padding: 2rem 1rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .map {
        height: 250px;
    }

    .about {
        padding: 1rem;
    }

    .about-image {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
    }

    .shoponwheels {
        padding: 1rem;
    }

    .shoponwheels-image {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
    }
    
    .shoponwheels ul {
        padding-left: 40px;
    }
}

/* Speech bubble for sponsor text */
.sponsors-speech-bubble {
    position: relative;
    margin: 0 auto 3rem auto;
    max-width: 800px;
    padding: 2rem 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-style: italic;
    line-height: 1.6;
    color: #333;
}

.sponsors-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* Language selector styles */
.language-selector {
    position: relative;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 120px;
}

.language-selector:hover .language-menu {
    display: block;
}

.language-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.language-menu a:last-child {
    border-bottom: none;
}

.language-menu a:hover {
    background: #f5f5f5;
}

.language-menu a.active {
    background: #00796B;
    color: white;
    font-weight: bold;
}
