/* ===========================================================================
   Homepage - persoonlijke portfoliopagina
   Bouwkundig tekenwerk & ICT
   =========================================================================== */

.template-home {
    /* Overschrijft de cyaan body-achtergrond uit intranet2.css */
    background: #ffffff;
    color: #1d2530;
}

.template-home main {
    /* Ruimte voor de vaste navbar niet nodig (navbar scrollt mee),
       maar de secties krijgen wel een eigen ritme. */
    display: block;
}

.home-section {
    padding: 4.5rem 0;
}

.home-section--tint {
    background: #f4f6fa;
}

.home-section__intro {
    max-width: 46rem;
    margin-bottom: 2.75rem;
}

.home-section__eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f3f8d;
    margin-bottom: 0.5rem;
}

.home-section__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: #10243f;
    margin-bottom: 0.9rem;
}

.home-section__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #47536a;
    margin-bottom: 0;
}

/* --- Hero ---------------------------------------------------------------- */

.home-hero {
    position: relative;
    min-height: min(78vh, 680px);
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    color: #fff;
}

.home-hero::after {
    /* Donkere gradient zodat de tekst leesbaar blijft op de render */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 20, 38, 0.88) 0%,
        rgba(8, 20, 38, 0.55) 45%,
        rgba(8, 20, 38, 0.10) 100%
    );
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    /* Alleen verticaal; de horizontale padding van .container blijft zo staan */
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

.home-hero__name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin-bottom: 0.35rem;
}

.home-hero__tagline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.6vw, 1.5rem);
    font-weight: 400;
    color: #8fc4ff;
    margin-bottom: 1.1rem;
}

.home-hero__lead {
    max-width: 38rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.9rem;
}

.home-hero__credit {
    position: absolute;
    right: 1rem;
    bottom: 0.6rem;
    z-index: 1;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* --- Knoppen ------------------------------------------------------------- */

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-btn--primary {
    background: #0f3f8d;
    border-color: #0f3f8d;
    color: #fff;
}

.home-btn--primary:hover,
.home-btn--primary:focus {
    background: #1554b8;
    border-color: #1554b8;
    color: #fff;
}

.home-btn--ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.home-btn--ghost:hover,
.home-btn--ghost:focus {
    background: #fff;
    border-color: #fff;
    color: #10243f;
}

/* --- Vaardigheden -------------------------------------------------------- */

.home-skill {
    height: 100%;
    padding: 1.6rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e7f0;
    border-radius: 0.9rem;
}

.home-skill__icon {
    font-size: 1.4rem;
    color: #0f3f8d;
    margin-bottom: 0.8rem;
}

.home-skill__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #10243f;
    margin-bottom: 0.5rem;
}

.home-skill__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #566078;
    margin-bottom: 0;
}

/* --- Projectkaarten ------------------------------------------------------ */

.home-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e7f0;
    border-radius: 0.9rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(16, 36, 63, 0.14);
}

.home-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef1f6;
    border: 0;
    padding: 0;
}

.home-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

/* Tekeningbladen niet bijsnijden: het hele blad moet leesbaar blijven */
.home-card__media--blad {
    aspect-ratio: 3 / 2;
    background: #fff;
    padding: 0.6rem;
}

.home-card__media--blad img {
    object-fit: contain;
}

.home-card__media:hover img,
.home-card__media:focus img {
    transform: scale(1.04);
}

.home-card__zoom {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 20, 38, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-family: 'Poppins', sans-serif;
}

.home-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.35rem 1.4rem 1.5rem;
}

.home-card__meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a869e;
    margin-bottom: 0.45rem;
}

.home-card__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #10243f;
    margin-bottom: 0.6rem;
}

.home-card__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #566078;
    margin-bottom: 1.1rem;
}

.home-card__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0 0 1.15rem;
}

.home-card__tags li {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #eef2f9;
    color: #40507a;
}

.home-card__actions {
    /* Houdt de links onderaan de kaart uitgelijnd, ook bij ongelijke teksten */
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f3f8d;
    text-decoration: none;
}

.home-card__link:hover,
.home-card__link:focus {
    color: #1554b8;
    text-decoration: underline;
}

/* --- Vergroting (modal) -------------------------------------------------- */

.home-lightbox .modal-content {
    background: #0b1626;
    border: 0;
}

.home-lightbox .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.home-lightbox .modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.home-lightbox .modal-body {
    padding: 0;
}

.home-lightbox img {
    width: 100%;
    height: auto;
    display: block;
}

.home-lightbox .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Contact ------------------------------------------------------------- */

.home-contact {
    background: #0f3f8d;
    color: #fff;
    padding: 3.5rem 0;
}

.home-contact__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.home-contact__text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 34rem;
    margin-bottom: 0;
}

.home-contact__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-contact__links li + li {
    margin-top: 0.7rem;
}

.home-contact__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.home-contact__links a:hover,
.home-contact__links a:focus {
    text-decoration: underline;
}

/* --- Responsief ---------------------------------------------------------- */

@media (max-width: 575.98px) {
    .home-section {
        padding: 3rem 0;
    }

    .home-hero {
        min-height: 68vh;
        background-position: center center;
    }

    .home-hero__credit {
        display: none;
    }
}

/* Respecteer de voorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
    .home-card,
    .home-card__media img {
        transition: none;
    }

    .home-card:hover {
        transform: none;
    }
}
