#slide2 {
    background-color: var(--bg-color);
    padding: 0;
}

#slide2 .slide-content {
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.s2-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.s2-container h2 {
    font-size: 2rem;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.3);
    display: inline-block;
    z-index: 3;
    color: white;
    padding: 0.8rem 1.5rem;
    margin: 0;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    transition: all var(--transition-speed) ease;
}

.s2-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: filter 0.5s ease;
}

.s2-Proj {
    flex: 1;
    width: 50vw;
    height: 100vh;
    position: relative;
}

.s2-Proj a {
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.s2-Proj a h2 {
    color: white;
}

#ProjUniv,
#ProjPro {
    display: flex;
    flex-direction: column;
}

#ProjUniv h2 {
    position: absolute;
    top: 10%;
    left: 10%;
    transform-origin: left;
}

#ProjPro h2 {
    position: absolute;
    bottom: 10%;
    right: 10%;
    text-align: right;
}

#ProjUniv img,
#ProjPro img {
    order: 2;
}

#ProjUniv img {
    filter: brightness(0.7) contrast(1.1);
}

#ProjPro img {
    filter: brightness(0.7) contrast(1.1);
}

.s2-Proj::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#ProjUniv::before {
    background: linear-gradient(to bottom, rgba(62, 84, 172, 0.7) 0%, rgba(62, 84, 172, 0.3) 30%, rgba(0, 0, 0, 0) 100%);
}

#ProjPro::before {
    background: linear-gradient(to top, rgba(62, 84, 172, 0.7) 0%, rgba(62, 84, 172, 0.3) 30%, rgba(0, 0, 0, 0) 100%);
}

.s2-Proj:hover img {
    filter: brightness(0.6) contrast(1.2);
}

.s2-Proj:hover h2 {
    transform: scale(1.05);
    background-color: rgba(62, 84, 172, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}