
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100vh; /* Full height */
    overflow: hidden;
    top: 0;
    left: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5s ease-in-out; /* Shorter transition for zoom */
    background-size: cover; /* Cover ensures no whitespace */
    background-position: center center; /* Keep image centered */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    object-fit: cover;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05); /* Slight zoom effect */
}

.text {
    margin: 1.8rem;
    position: fixed;
    top: 18%;
    left: 20%;
    transform: translate(-40%,-10%); /* Center text */
    color: white;
    /* text-align: center; */
    background: rgba(0, 0, 0, 0.5); /* Slight transparent black background for readability */
    padding: 3rem;
    border-radius: 1.5rem;
    max-width: fit-content; /* Limit text width */
    z-index: 1; /* Ensure text stays above the slideshow */
    display: flex;
    flex-direction: column;
}

.text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.8rem;
}

.text p {
    font-size: 1.3rem;
    line-height: 0.5;
}


#Srivastava{
    color: rgb(197, 24, 24);
}

.positions{
    color: rgb(180, 178, 178);
}

.positions a{
    text-decoration: none;
    color: rgb(180, 178, 178);
}

.resume a{
    text-decoration: none;
    color: rgb(197, 194, 194);
}

.socials_icons{
    display: flex;
}

.socials_icons i{
    font-size: 1.5rem;
    margin: 0.5rem;
    color: rgb(180, 178, 178);
}

.socials a :hover{
    font-size: 2rem;
    color: rgb(209, 26, 26);
    transition: 0.4s;
}


.mail p{
    font-size: 1rem;
}

.mail a{
    text-decoration: none;
    color: rgb(180, 178, 178);
}


a:hover{
    color:  rgb(209, 26, 26);
    transition: 0.4s;
}

.sh3bh1t {
    margin-top: 1rem;
}

.sh3bh1t p{
    font-size: 0.8rem;
    color: rgb(180, 178, 178);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide {
        background-size: cover; /* Ensure background image still covers the container */
        background-position: center center; /* Keep image centered */
    }
    .text{
        top: 14%;
        left: 25%;
        padding: 2rem;
    }
    .text h1 {
        font-size: 2.5rem;
    }
    .text p {
        font-size: 1rem;
        line-height: 1rem;
    }
}

@media (max-width: 480px) {
    .text h1 {
        font-size: 2rem;
    }
    .text{
        top: 10%;
        left: 25%;
        padding: 1.8rem;
    }
    .text p {
        font-size: 0.9rem;
    }
}