/* ========== General Styles ========== */

/* General styles for the body */
body {
    display: flex; /* Use flexbox layout */
    flex-direction: column; /* Arrange children in a column */
    min-height: 100vh; /* Ensure the body takes up the full viewport height */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    background-color: rgb(244, 223, 237); /* Set background color */
    color: #050505; /* Set text color */
    font-family: Arial, sans-serif; /* Set font family */
    text-align: center; /* Center-align text */
}

/* ========== Header and Navigation ========== */

/* Styles for the header section */
header {
    width: 100%; /* Full width */
    background-color: rgb(244, 223, 237); /* Set background color */
    padding: 10px 20px; /* Padding inside the header */
    position: fixed; /* Fix the header at the top */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    right: 0; /* Align to the right */
    z-index: 1000; /* Ensure the header is above other elements */
    transition: background-color 0.3s; /* Smooth transition for background color */
}

/* Styles for the navigation bar */
nav {
    display: flex; /* Use flexbox layout */
    flex-direction: row; /* Arrange children in a row */
    align-items: center; /* Center items vertically */
    gap: 30px; /* Space between navigation links */
    justify-content: flex-end; /* Align navigation links to the right */
    padding-right: 50px; /* Right padding for the navigation bar */
}

/* Styles for the navigation links */
nav a {
    position: relative; /* Position relative for pseudo-elements */
    cursor: pointer; /* Pointer cursor on hover */
    color: rgb(0, 0, 0); /* Set text color */
    font-size: 18px; /* Set font size */
    padding: 0.5em 1rem; /* Padding inside the links */
    transition: color 0.25s; /* Smooth transition for text color */
    text-align: center; /* Center-align text */
}
a::after{
    position:absolute;
    content:" ";
    inset: 0;
    background: white;
    scale: 1 0;
    z-index: -1;
    transition: 0.45s;
    border-radius: 10px;
}

/* Hover effect for navigation links */
nav a:hover {
    color: black; /* Change text color on hover */
}
a:hover::after{
    scale: 1 1;
}

/* ========== Main Content ========== */

/* Styles for the main content area */
main {
    flex: 1; /* Allow main to take up remaining space */
    padding: 20px; /* Padding inside the main content area */
    margin-top: 70px; /* Add margin to avoid overlap with fixed nav */
}

/* ========== Hero Section ========== */

/* Styles for the hero section */
.hero {
    background-image: url(/afbeeldingen_portfolio/home_page/banner_background.png); /* Background image */
    background-size: cover; /* Cover the entire area */
    height: 600px; /* Set height */
}

/* Animation for the hero image */
.hero img {
    animation: zoom 5s infinite; /* Zoom animation */
}

/* ========== Footer Section ========== */

/* Styles for the footer section */
.footer {
    background-color: #ebbaf1; /* Set background color */
    color: #050505; /* Set text color */
    text-align: center; /* Center-align text */
    padding: 20px 0; /* Padding inside the footer */
    margin-top: auto; /* Ensure footer is pushed to the bottom */
}

/* ========== About Section ========== */

/* Styles for the about section */
.about-section {
    max-width: 800px; /* Maximum width of the about section */
    margin: 20px auto; /* Center the section horizontally with top and bottom margin */
    padding: 20px; /* Padding inside the section */
    background-color: rgb(250, 221, 242); /* Set background color */
    border-radius: 10px; /* Rounded corners */
    display: flex; /* Use flexbox layout */
    align-items: center; /* Center items vertically */
    text-align: left; /* Align text to the left */
}

/* Styles for the photo in the about section */
.about-photo {
    width: 150px; /* Set width of the photo */
    height: 150px; /* Set height of the photo */
    border-radius: 50%; /* Make the photo circular */
    margin-right: 20px; /* Space between the photo and the text */
    flex-shrink: 0; /* Prevent the photo from shrinking */
}

/* Styles for the text in the about section */
.about-text {
    flex: 1; /* Allow the text to take up the remaining space */
}

/* Styles for the heading in the about section */
.about-section h1 {
    font-size: 2.5rem; /* Font size of the heading */
    margin-bottom: 20px; /* Space below the heading */
}

/* Styles for the paragraphs in the about section */
.about-section p {
    font-size: 1.2rem; /* Font size of the paragraphs */
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 10px; /* Space below each paragraph */
    margin-left: 100px; /* Left margin for indentation */
}
.centered-heading {
    text-align: center; /* Center-align text */
    margin-top: 20px; /* Add top margin */
    font-size: 2.5rem; /* Font size of the heading */
    color: #050505; /* Text color */
}
/* ========== Projects Grid ========== */

/* Styles for the projects grid layout */
.projects-grid {
    display: grid; /* Use CSS Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between grid items */
    padding: 20px; /* Padding around the grid */
}

/* Styles for each project card */
.project-card {
    background-color: rgb(250, 221, 242); /* Background color of the card */
    border-radius: 10px; /* Rounded corners */
    overflow: hidden; /* Hide overflow content */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition for transform and box-shadow */
}

/* Styles for images inside project cards */
.project-card img {
    width: 100%; /* Full width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Display as block element */
}

/* Styles for the project information */
.project-info {
    padding: 20px; /* Padding inside the project info */
    text-align: center; /* Center-align text */
}

/* Styles for the project title */
.project-info h2 {
    font-size: 1.5rem; /* Font size of the project title */
    margin-bottom: 10px; /* Space below the title */
}

/* Styles for the project description */
.project-info p {
    font-size: 1rem; /* Font size of the project description */
    margin-bottom: 20px; /* Space below the description */
}

/* Styles for the project link */
.project-info a {
    color: #1e90ff; /* Link color */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold text */
}

/* Hover effect for the project link */
.project-info a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Hover effect for the project card */
.project-card:hover {
    transform: scale(1.05); /* Scale up on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Add shadow on hover */
}

/* ========== Gallery Layout ========== */

/* Styles for the gallery layout */
.gallery {
    display: grid; /* Use CSS Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between grid items */
    padding: 20px; /* Padding around the grid */
}

/* ========== Project Section ========== */

/* Styles for paragraphs in the project section */
.project p {
    font-size: 1.2rem; /* Font size of the paragraphs */
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 10px; /* Space below each paragraph */
}

/* ========== Animations ========== */

/* Keyframes for zoom animation */
@keyframes zoom {
    0% {
        transform: scale(1); /* Initial scale */
    }
    50% {
        transform: scale(1.1); /* Zoom in */
    }
    100% {
        transform: scale(1); /* Zoom out */
    }
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0; /* Initial opacity */
    }
    to {
        opacity: 1; /* Final opacity */
    }
}

/* ========== Contact Form ========== */

/* Styles for the contact form section */
.contact-section {
    max-width: 600px; /* Maximum width */
    margin: 0 auto; /* Center the section */
    padding: 20px; /* Padding inside the section */
    background-color: #997f99; /* Set background color */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Box shadow for subtle depth */
}

/* Styles for the contact form */
.contact-form {
    display: flex; /* Use flexbox layout */
    flex-direction: column; /* Arrange children in a column */
    gap: 15px; /* Space between form elements */
}

/* Styles for input groups in the contact form */
.input-group {
    display: flex; /* Use flexbox layout */
    flex-direction: column; /* Arrange children in a column */
    gap: 5px; /* Space between label and input */
}

/* Styles for labels in the contact form */
.input-group label {
    font-weight: bold; /* Bold text for labels */
}

/* Styles for inputs and textarea in the contact form */
.input-group input,
.input-group textarea {
    padding: 10px; /* Padding inside inputs and textarea */
    border: 1px solid #ccc; /* Border color and style */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px; /* Font size */
}

/* Styles for the action button container */
.action-btn {
    display: flex; /* Use flexbox layout */
    justify-content: center; /* Center the button */
}

/* Styles for the submit button in the contact form */
.btn-submit {
    padding: 10px 20px; /* Padding inside the button */
    background-color: #248213; /* Background color of the button */
    color: rgb(253, 255, 254); /* Text color of the button */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size of the button text */
}

/* Hover effect for the submit button */
.btn-submit:hover {
    background-color: #1c86ee; /* Change background color on hover */
}

/* ========== Back Button ========== */

/* Styles for the back button */
.arrowBackButton {
    background-color: transparent; /* Transparent background */
    border: none; /* No border */
    font-size: 36px; /* Font size of the button */
    color: #050505; /* Text color of the button */
    cursor: pointer; /* Pointer cursor on hover */
    position: absolute; /* Absolute positioning */
    top: 20px; /* Position 20px from the top */
    left: 20px; /* Position 20px from the left */
}

/* Hover effect for the back button */
.arrowBackButton:hover {
    transform: scale(1.2); /* Scale up the button on hover */
}