@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/inter-latin-400-normal.woff2') format('woff2'),
        url('fonts/inter/inter-latin-400-normal.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Crimson Pro';
    src: url('fonts/crimson-pro/crimson-pro-latin-400-italic.woff2') format('woff2'),
        url('fonts/crimson-pro/crimson-pro-latin-400-italic.woff2') format('woff');
    font-weight: 400;
    font-style: normal;
}

html,
body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* HERO */
.hero {
    position: relative;
    height: 65vh;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 1, 23, 0.65);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/banner.webp');
    background-size: cover;
    background-position: top;
    transform: translateY(0);
    will-change: transform;
    z-index: -1;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    margin: 0;
    font-size: 3em;
    font-family: 'Inter', sans-serif;
}

.hero p {
    margin: 0;
    font-size: 2em;
    margin-bottom: .25em;
    font-family: 'Crimson Pro', serif;
}

/* NAVBAR */
.hamburger {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 5;
    top: 10px;
    right: 10px;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav-scrolled {
    background: rgba(5, 1, 23, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.75em 0 !important;
    text-shadow: 0 0 0 #00000000;
}

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 3em 0;
    transition: background 0.5s, backdrop-filter 0.5s, padding 0.3s;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
}

.navbar ul li a {
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: rgb(195, 184, 255);
}

.navbar ul li a.contact {
    position: relative;
    z-index: 1;
}

.navbar ul li a.contact::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -15px;
    bottom: -10px;
    left: -15px;
    border-radius: 20px;
    background: rgba(127, 120, 167, 0.85);
    backdrop-filter: blur(8px);
    z-index: -1;
    transition: opacity 0.3s;
}

.navbar.nav-scrolled ul li a.contact::before {
    opacity: 0;
}

/* SECTIONS */
.services {
    padding: 50px 0;
    text-align: center;
    background-color: #f8f8f8;
    transition: opacity .3s;
    opacity: .15;
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-family: 'Crimson Pro', serif;
    font-weight: 200;
}

/* Container for Flexbox */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1220px;
    margin: 0 auto;
}

.card-container {
    flex: 1 1 calc(33.33% - 40px);
    /* 3 cards per row with spacing calculation */
    display: flex;
    justify-content: center;
    /* Center the card within the card-container */
    box-sizing: border-box;
    margin: 10px;
}

.card { 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    /* Ensure the image stays within the card boundaries */
}

.card-image {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
    height: 200px;
    overflow: hidden;
    /* Hide overflow for the zoom effect */
    border-radius: 20px;
    object-fit: cover;
}

.card img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
    /* Smooth transition */
    will-change: transform;
    /* Hint for better performance */
}

.card:hover img {
    transform: scale(1.1);
    /* Zoom effect */
}

.card-content {
    z-index: 1;
    /* Ensure the content is above the image */
}

.card h3,
.card p {
    margin: 5px 0;
    font-family: 'Inter', sans-serif;
}

/* FOOTER */
footer {
    width: 100%;
    height: 85vh;
    background-image: url('img/banner3.webp');
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
}

.footer-overlay {
    z-index: 0;
    content: "";
    position: absolute;
    width: 100%;
    height: 85vh;
    background-color: rgba(5, 1, 23, 0.65);
    transition: backdrop-filter .5s ease;
}

.footer-content {
    max-width: 1200px;
    color: aquamarine;
    position: absolute;
    text-align: center;
}

.footer-contact {
    box-sizing: border-box;
    padding: 50px 0;
    height: calc(85vh - 100px);
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.footer h2 {
    color: #fff;
    font-size: 2.5em;
    font-family: 'Crimson Pro', serif;
    font-weight: 200;
    position: absolute;
    width: 100%;
    text-align: center;
    margin-top: 3.5em;
}

.footer-info {
    max-width: 1200px;
    padding: 0 1em;
}

.footer-info ul {
    font-family: 'Inter', sans-serif;
    color: #fff;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    height: 100%;
}

.footer-info ul li a {
    text-decoration: none;
    color: #fff;
    transition: color .3s;
}

.footer-info ul li a:hover {
    color: rgb(195, 184, 255);
}

.team-photo {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-photo .photo {
    width: 240px;
    height: 240px;
    border-radius: 120px;

}

.team-photo h3 {
    color: #fff;
    font-size: 1.75em;
    font-family: 'Crimson Pro', serif;
    font-weight: 200;
    margin: 10px 0;
}

.team-photo #photo-joeri {
    background: url(img/joeri.webp);
    background-size: cover;
    background-position: center;
}

.contact-form {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    color: #fff;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.contact-form ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1em 0;
}

.contact-form ul li {
    padding: 5px 0;
}

.contact-form a {
    content: "";
    border-radius: 20px;
    background: rgba(127, 120, 167, 0.85);
    backdrop-filter: blur(8px);
    text-decoration: none;
    text-align: center;
    color: #fff;
    padding: 10px;
    transition: color .3s;
}

.contact-form a:hover {
    color: rgb(195, 184, 255);
}

/* Responsive design: Adjust for smaller screens */
@media (max-width: 768px) {
    .navbar ul li a.contact::before {
        border-radius: 0;
        background: none;
        backdrop-filter: none;
    }

    .card-container {
        flex: 1 1 calc(50% - 40px);
        /* 2 cards per row */
    }

    .team-photo {
        display: none;
    }

    .contact-form {
        text-align: center;
    }

    .contact-form ul {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #navbar {
        height: 0;
        opacity: 0;
        background: rgba(5, 1, 23, 0.85);
        backdrop-filter: blur(20px);
        transition: height .3s, visibility .3s, opacity .3s;
    }

    #navbar.visible {
        height: 100vh;
        opacity: 1;
        visibility: visible;
      }

    #navbar ul {
        height: 100%;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #navbar ul li {
        padding: .5em 0;
        margin: 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .card-container {
        flex: 1 1 calc(100% - 40px);
        /* 1 card per row */
    }

    .services {
        opacity: 1;
    }

    .footer h2 {
        margin-top: 1em;
    }

    .footer-info ul {
        flex-direction: column;
        margin-top: -7em;
    }

    .footer-info ul li {
        padding: .5em 0;
    }
}