body{
    background-color: black;
    color: white;
}

#afflogo{
    height: 100px;
    border-radius: 999px;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navlinks{
    display: flex;
    align-items: center;
    gap: 20px;
}

button{
    height: 40px;
    width: 90px;
    background-color: black;
    color: white;

    border-style: solid;
    border-width: 1px;
    border-color: white;
}

button:hover{
    box-shadow: 0 0 10px 5px white;
    background-color: black;
    color: white;
}

button:active{
    background-color: skyblue;
    color: black;   
}

#sec1{
    margin-top: 80px;
    padding: 20px;
}

#services{
    margin-top: 85px;
    margin-left: 40px;
}

#btn{
    border-radius: 15px;
    background-color: black;
    color: white;

    transition: 0.4s;
}

#btn:hover{
    box-shadow: 0 5px 25px black;
    transform: translateY(-5px);
}

.listcontainer{
    display: flex;
    gap: 30px;
}

.list img{
    border-radius: 999px;
    height: 200px;

    border-width: 5px;
    border-style: solid;
    border-color: black;
}

.list{
    border-style: solid;
    border-radius: 20px;
    background-color: white;
    padding: 20px;
    text-align: center;
    color: black;

    border-color: white;
    box-shadow: 0 0 30px 5px white;
    transition: 0.3s;
}

.list:hover{
    transform: translateX(10px);
}

.list ul{
    text-align: left;
    font-size: 19px;
}

#about{
    margin-top: 50px;

    background-color: white;
    border-radius: 15px;
    color: black;
    padding: 10px;

    box-shadow: 0 0 30px 5px white;
}

#about h2, h4{
    text-align: center;
}

.cnt{
    align-items: center;
    gap: 20px;
    display: flex;
    margin-left: 560px;
}

#cnts{
    margin-top: 80px;
    height: 50px;
    border-radius: 999px;
    border-color: white;
    box-shadow: 0 0 5px 2px white;
}    

footer{
    text-align: center;
}

/* Responsive Styles for Mobile and Tablet Devices */
@media (max-width: 768px) {
    nav {
        /* Stacks logo and links vertically instead of crowding them horizontally */
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .navlinks {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    #services {
        /* Removes fixed side spacing so the section stays centered on smaller viewports */
        margin-left: 0;
        padding: 0 15px;
        text-align: center;
    }

    .listcontainer {
        /* Flips the side-by-side service cards into a clean, vertical scroll stack */
        flex-direction: column;
        gap: 25px;
        padding: 0 10px;
    }

    .list img {
        /* Downscales the large 200px images so they don't look bulky on small screens */
        height: 150px;
        width: auto;
    }

    .list:hover {
        /* Disables horizontal shifting on touch, preventing unwanted page cutoff or jitter */
        transform: translateX(0);
    }

    .cnt {
        /* Destroys the hardcoded 560px margin which pushes your contacts off-screen */
        margin-left: 0;
        display: flex;
        justify-content: space-between;
        
    }
}
