/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full height and width for html and body */
html, body {
    height: 100%;
    width: 100%; /* Ensure full width */
    margin: 0; /* Remove default body margin */
    padding: 0; /* Remove default body padding */
}

/* Apply padding to the body to prevent content from being hidden behind the fixed navbar */
body {
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    padding-top: 40px; /* Add padding equal to the navbar height */
}


main {
    flex: 1;
    padding-top: 60px; /* Add padding to the main content to account for the navbar height */
}


/* Reset margins for common elements */
h1, h2, h3, h4, h5, h6, p, ul, li {
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    padding: 0; /* Remove padding */
    width: 100%; /* Ensure full width */
    position: fixed; /* Fix navbar to the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure it stays on top of other content */
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    background: linear-gradient(to right, #000 40%, #003366 60%); /* 2/5th black, 3/5th navy blue */
    height: 60px; /* Fixed height for navbar */
    padding: 0; /* Remove padding */
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    width: 30%; /* Set width of logo area to 3/10th */
    background-color: #000; /* Black background for the first portion */
    padding-left: 20px; /* Add some padding on the left */
}

.logo img {
    height: 50px;
}

.company-name {
    color: white;
    font-size: 1.1rem;
    margin-left: 10px;
}

/* Navigation Links Styles */
nav ul {
    display: flex;
    list-style: none;
    margin-left: auto; /* Push the nav items to the right */
    width: 70%; /* Remaining 7/10th for the navigation links */
    justify-content: flex-end; /* Ensure the links are aligned to the right */
}

nav ul li {
    margin: 0 20px; /* Space between menu items */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

nav ul li a:hover {
    color: #ffcc00;
}

nav .hamburger {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
}

/* About Us Section Styles */
.about-us {
    padding: 30px; /* Increased padding */
    background-color: #ffffff; /* Background for About Us section */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center and provide margin */
    border-radius: 10px; /* Rounded corners */
    max-width: 800px; /* Set a maximum width */
    text-align: center; /* Center text */
}

.about-us h2 {
    margin-bottom: 10px; /* Space below the heading */
    color: #003366; /* Navy blue for headings */
}

.about-us p {
    color: #555; /* Color for the text */
}

/* Portfolio / Services Section Styles */
.main {
    padding: 20px; /* Padding for main content */
    text-align: center; /* Center text */
}

/* Diensten Section Styles */
.diensten {
    padding: 30px; /* Padding for Diensten section */
    background-color: #ffffff; /* Background color */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center and provide margin */
    border-radius: 10px; /* Rounded corners */
    max-width: 900px; /* Adjusted max-width for wider layout */
    text-align: center; /* Center the title */
}

.diensten-title {
    margin-bottom: 20px; /* Space below the title */
    color: #003366; /* Navy blue for heading */
    font-size: 2rem; /* Larger font size for better visibility */
    font-weight: bold; /* Bold text */
}

/* Individual Dienst Styles */
.dienst {
    display: flex; /* Flexbox to align items horizontally */
    justify-content: space-between; /* Space between text and image */
    margin: 20px 0; /* Space between dienst sections */
    padding: 20px; /* Padding for each dienst */
    background-color: #f9f9f9; /* Light background for dienst */
    border: 1px solid #ddd; /* Border around dienst */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    text-align: left; /* Left align text within each dienst */
    transition: transform 0.2s; /* Smooth transform on hover */
    align-items: center; /* Center items vertically */
    display: flex;
    flex-direction: column; /* stack items vertically */
    align-items: center; /* center the content */
}

.dienst:hover {
    transform: scale(1.03); /* Slightly enlarge on hover */
}

/* Heading Styles in Dienst */
.dienst h3 {
    color: #003366; /* Navy blue for subheading */
    font-size: 1.5rem; /* Font size for subheading */
    margin-bottom: 10px; /* Space below subheading */
    flex: 1; /* Allow heading to take up flexible space */
    order: -1; /* make sure h3 comes first */
}

/* Paragraph Styles in Dienst */
.dienst p {
    color: #555; /* Dark gray for description text */
    font-size: 1rem; /* Font size for paragraph */
    line-height: 1.5; /* Line height for better readability */
    flex: 2; /* Paragraph takes more space */
    margin-right: 20px; /* Space between text and image */
}

/* Image Styles */
.dienst-img {
    width: 150px; /* Adjust image size */
    height: auto;
    object-fit: cover; /* Ensures proper image scaling */
    border-radius: 8px; /* Rounded corners on images */
    margin-left: 20px; /* Space between text and image */
}


.row {
    display: flex;
    flex-wrap: wrap; /* Wrap to the next line if needed */
    justify-content: center; /* Center the items */
    margin: 0 -10px; /* Adjust margins for alignment */
}

.column {
    flex: 1; /* Flexbox for equal widths */
    max-width: 300px; /* Limit the max width */
    padding: 10px; /* Padding for each column */
}

.content {
    background-color: #ffffff; /* White background for content */
    padding: 20px; /* Padding for content */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    border-radius: 10px; /* Rounded corners */
}

.service-segment h3 {
    color: #003366; /* Navy blue for service titles */
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for centering */
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a dark navy background color */
.prev:hover, .next:hover {
    background-color: rgba(0, 51, 102, 0.8); /* Dark navy */
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb; /* Gray for inactive dots */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #003366; /* Navy blue for active or hovered dot */
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}



/* Contact Information Section */
.contact-info {
    background-color: #ffffff; /* White background */
    padding: 30px; /* Padding around content */
    margin: 20px auto; /* Center the section */
    max-width: 800px; /* Limit the width */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-align: center; /* Center the text */
}

/* Contact Info Heading */
.contact-info h2 {
    color: #003366; /* Navy blue color */
    margin-bottom: 20px; /* Space below heading */
}

/* Contact Info Paragraphs */
.contact-info p {
    color: #666; /* Dark gray text for description */
    font-size: 1.1rem; /* Increase font size for readability */
    margin-bottom: 15px; /* Space between lines */
}

/* Style for Contact Info Links */
.contact-info a {
    color: #003366; /* Navy blue for links */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Make the links stand out */
}

.contact-info a:hover {
    color: #ffcc00; /* Yellow color on hover */
}


/* Hero Section Styles */
.hero {
    background-color: #003366; /* Navy blue background */
    color: white; /* Text color */
    text-align: center; /* Center text */
    padding: 50px 20px; /* Padding */
}

/* Call to action button */
.cta-button {
    display: inline-block; /* Make it a block element */
    padding: 10px 20px; /* Padding inside the button */
    background-color: #ffcc00; /* Yellow color for call-to-action */
    color: #003366; /* Navy blue text color */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Rounded corners */
    font-size: 1.1rem; /* Font size */
    font-weight: bold; /* Bold text */
    margin-top: 20px; /* Space above button */
}

/* Hover effect for call-to-action button */
.cta-button:hover {
    background-color: #e6b800; /* Darker yellow on hover */
    color: #fff; /* White text on hover */
}

/* Footer Styles */
footer {
    background-color: #003366; /* Navy blue background */
    color: white; /* White text */
    text-align: center; /* Centered text */
    padding: 20px 0; /* Padding */
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Form styles */
.contact-container {
    width: 100%;
    padding: 20px;
    background-color: #ffffff; /* White background */
    box-shadow: 4px 6px rgba(0, 0, 0, 0.1); /* Box shadow */
    margin: 20px auto; /* Center the form */
    border-radius: 10px; /* Rounded corners */
    max-width: 600px; /* Max width */
}

/* Input styles */
input[type="text"], input[type="email"], textarea {
    width: 100%; /* Full width */
    padding: 10px; /* Padding inside input fields */
    margin-bottom: 20px; /* Space between inputs */
    border: 1px solid #ddd; /* Light border */
    border-radius: 5px; /* Rounded corners */
    font-size: 1rem; /* Font size */
}

/* Input styles */
input[type="text"], input[type="phone"], textarea {
    width: 100%; /* Full width */
    padding: 10px; /* Padding inside input fields */
    margin-bottom: 20px; /* Space between inputs */
    border: 1px solid #ddd; /* Light border */
    border-radius: 5px; /* Rounded corners */
    font-size: 1rem; /* Font size */
}


/* Submit button styles */
button[type="submit"] {
    background-color: #003366; /* Navy blue background */
    color: white; /* White text */
    padding: 10px 20px; /* Padding */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    font-size: 1.1rem; /* Font size */
    font-weight: bold; /* Bold text */
    cursor: pointer; /* Pointer cursor on hover */
}

/* Hover effect for submit button */
button[type="submit"]:hover {
    background-color: #002a47; /* Darker navy blue */
}

/* Update modal styles to cover the entire website and center the image */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content img {
    max-width: 90%; /* Limit image size */
    max-height: 90%;
    border-radius: 10px; /* Optional: Add rounded corners */
}

.close {
    position: absolute;
    top: 10px; /* Adjust placement */
    right: 10px; /* Adjust placement */
    z-index: 1001; /* Ensure it stays above other elements */
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Moved styles from index.html */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
    background-color: transparent; /* Set the background to transparent */
    overflow: hidden; /* Prevent content overflow */
}

.mySlides {
    display: none;
    position: relative;
    width: 100%;
    height: 500px; /* Fixed height to prevent resizing */
    background-size: cover; /* Ensure background covers the container */
    background-position: center; /* Center the background */
}

.mySlides img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure the whole image is visible */
    background-color: transparent; /* Ensure no background color */
}

.mySlides::before {
    content: none; /* Remove the background altogether */
}

.prev, .next {
    background-color: #003366 !important; /* Ensure the buttons always have a blue background */
}

@media (min-width: 768px) {
    nav .hamburger {
        display: none;
    }
}
