body{
    background-color: #1f2833;
    color: cyan;
}

#pics{
    height: 250px;
    border-radius: 999px;
    transition: 0.3s;
}

#pics:hover{
    transform: translateY(-8px);
    box-shadow: 0 0 10px 5px aqua;
}

.cardcontainer{
    border-radius: 15px;
    border-style: solid;
    border-width: 1px;
    padding: 10px;
    margin-top: 50px;

    background: linear-gradient(black, darkgray);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    box-shadow: 0 0px 25px 4px cyan;
    transition: 0.3s;
}

.cardcontainer:hover{
    transform: translateY(-15px);
    box-shadow: 0 0px 30px 8px aqua;
}

.hed{
    text-align: center;
}

#pic1{
    border-radius: 1150px;
}

img{
    height: 250px;
    border-radius: 999px;
    border-style: solid;
    border-width: 3px;
}

.serve{
    display: flex;
    margin-top: 40px;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.section{
    padding: 10px;

    background: linear-gradient(black, darkgray);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    border-style: solid;
    border-width: 2px;
    border-color: black;
    border-radius: 15px;

    box-shadow: 0 0 15px 4px cyan;
    transition: 0.3s;
}

.section h2{
    text-align: center;
}

.section:hover{
    transform: translateX(15px);
}

ul{
    font-size: 20px;
}

/* Responsive Styles for Mobile and Tablet Devices */
@media (max-width: 768px) {
    .serve {
        /* Switches row layout to a vertical stack so elements don't squash sideways */
        flex-direction: column; 
        gap: 25px;
    }

    #pics, img, #pic1 {
        /* Reduces the large 250px image size so it fits comfortably on mobile screens */
        height: 180px; 
        width: auto;
    }

    .cardcontainer {
        /* Reduces margins and prevents layout breakages on narrow viewports */
        margin-top: 30px; 
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Softens or removes heavy hover animations that feel clunky on mobile touchscreens */
    .cardcontainer:hover, #pics:hover {
        transform: translateY(-5px); 
    }

    .section:hover {
        /* Overrides horizontal shift, which can push content off-screen on mobile */
        transform: translateX(0); 
    }

    ul {
        /* Lowers text size slightly so long list items don't wrap aggressively */
        font-size: 16px; 
    }
}
