#primary-nav-section .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}

#primary-nav-section .card:hover {
    box-shadow: 0 4px 16px #2B4181;
}

@media screen and (max-width: 768px) {
    #primary-nav-section .columns {
        flex-wrap: wrap;
    }

    #primary-nav-section .columns .column {
        flex: none;
        width: 50%;
    }
}

#projects-section .column.is-one-seventh {
    flex: none;
    width: calc(100% / 7);
}

@media screen and (max-width: 768px) {
    #projects-section .column.is-one-seventh {
        width: 50%;
    }
}



#projects-section {
    background: linear-gradient(to bottom, #fff, #67b5e4);
}

#projects-section .card {
    position: relative;
    overflow: hidden;
}

#projects-section .card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top, rgb(0, 0, 0), transparent);
    pointer-events: none;
    z-index: 1;
}

#projects-section .card-image img {
    object-fit: cover;
}

#projects-section .card-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    padding: 0.75rem;
    z-index: 2;
}

#projects-section .card-content .title {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
}

#projects-section .card-content .content {
    color: #fff;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

#logo {
    padding-left: 25pt;
    font-family: 'Pushkin', serif;
    color: #67b5e4;
    font-weight: 400;
    font-size: 2rem;
}

#projects-section + .section {
    background: linear-gradient(to bottom, #67b5e4, #e3edfa);
    overflow: hidden;
    padding: 2rem 0;
}

#projects-section + .section h2.title {
    color: #fff;
    font-family: 'Pushkin', serif;
    font-weight: 400;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll-carousel 30s linear infinite;
    width: max-content;
}

.carousel-item {
    flex-shrink: 0;
}

.carousel-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #67b5e4;
}

.contact-hero {
    background: url('/images/elback.png') bottom/cover no-repeat;
}

.contact-form-box {
    background: linear-gradient(to bottom, #fff, #67b5e4);
    border-radius: 4rem;
    padding: 2.5rem;
    max-width: 32rem;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.projects-nav {
    position: sticky;
    top: 0;
    z-index: 40;
}

.section-title {
    font-family: 'Pushkin', serif;
    color: #67b5e4;
    font-weight: 400;
    font-size: 2rem;
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media screen and (max-width: 1023px) {
    .home-nav .navbar-brand {
        justify-content: center;
    }

    .home-nav .navbar-brand .image {
        max-width: 72px;
    }

    .home-nav .navbar-brand .section-title {
        font-size: 0.9rem;
        text-align: center;
        white-space: normal;
        flex-shrink: 1;
    }

    .home-nav .navbar-menu.is-active {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .home-nav .navbar-menu.is-active > .navbar-item:first-child {
        margin-left: auto;
    }

    .home-nav .navbar-menu.is-active > .navbar-item:last-child {
        margin-right: auto;
    }

    .home-nav .navbar-menu .navbar-item {
        white-space: nowrap;
        font-size: 0.72rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
        margin: 0 0.1rem;
    }

    #logo {
        padding-left: 0;
    }
}