/* Projects banner heading overlay */
.projects-banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
}

.projects-banner-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Big Shoulders Stencil', sans-serif;
    color: #13315C;
    font-size: clamp(2rem, 7vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    z-index: 2;
    margin: 0;
    padding: 0.1em 0.7em;
    background: #FCFCFC;
    border: solid 1px #13315C;
    transition: font-size 0.2s, padding 0.2s;
}

@media (max-width: 575px) {
    .projects-banner-heading {
        font-size: clamp(3rem, 12vw, 6rem);
        border: none;
        background: none;
    }

    .projects-banner-wrapper {
        height: 70px;
        background: none;
    }

    .projects-banner-wrapper img {
        display: none;
    }
}

/* Project Filter Tabs */
#projectTabs .nav-link {
    padding: 0.5em 1.2em;
    font-weight: 500;
    color: #13315C;
    border: 1px solid #13315C;
    background-color: transparent;
    transition: all 0.23s ease;
    margin-bottom: 3px;
}

@media (max-width: 575px) {
    #projectTabs .nav-link {
        margin-bottom: 0.1px;
    }
}

#projectTabs .nav-link:hover,
#projectTabs .nav-link.active {
    background-color: #13315C !important;
    color: #f9fcff;
}


h2 {
    color: #13315C;
    margin-bottom: 1.1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

@media (max-width: 400px) {
    .display-3 {
        font-size: 60px;
    }
}

.display-5 {
    color: #134074;
    padding-left: 7px;
}

/* Research Projects Photo */
@media (max-width: 415px) {
    #chip {
        width: 95%;
    }
}

/* timeline */
/* Modern timeline for projects-4.html */
.timeline-modern {
    position: relative;
    margin-left: 32px;
    padding-left: 32px;
}

.timeline-modern::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #13315C 0%, #134074 100%);
    border-radius: 2px;
    z-index: 0;
}

.timeline-modern-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.timeline-modern-circle {
    position: absolute;
    left: -48px;
    top: 0;
    width: 32px;
    height: 32px;
    background: #f9fcff;
    border: 4px solid #13315C;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(19, 49, 92, 0.10);
    z-index: 2;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.timeline-modern-item:hover .timeline-modern-circle {
    border-color: #134074;
    box-shadow: 0 6px 18px rgba(19, 49, 92, 0.18);
}

.timeline-modern-content {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(19, 49, 92, 0.08);
    padding: 2rem 2rem 1.2rem 2rem;
    margin-left: 1.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

@media (max-width: 530px) {
    #webDevelopmentProcess h2 {
        font-size: 50px;
    }
}

#webDevelopmentProcess h3 {
    padding-left: 0px !important;
}

.section-divider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f9fcff;
    border: 2px solid #13315C;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    z-index: 1;
}

@media (max-width: 767px) {
    .timeline-modern {
        margin-left: 0;
        padding-left: 0;
    }

    .timeline-modern-item {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .timeline-modern-circle {
        position: static;
        margin-bottom: 1rem;
        left: 0;
        top: 0;
    }

    .timeline-modern-content {
        margin-left: 0;
        padding: 1.2rem;
    }

    /* Hide timeline line and circles when stacking */
    .timeline-modern::before,
    .timeline-modern-circle {
        display: none !important;
    }
}