* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ---------------- NAVBAR ---------------- */
#navbar {
    display: flex;               
    align-items: center;         
    justify-content: space-between;
    width: 100%;
    height: 80px;                
    background-color: #ffffff;  
    padding: 0 20px;
    flex-wrap: wrap;
}

#navbar img {
    width: 150px;
}

#anchor {
    width: auto;
}

.nav {
    display: flex;
    list-style-type: none;
    gap: 2em;
    flex-wrap: wrap;
}
.nav > li {
    padding: 8px;
}
.nav > li > a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 19px;
}

.nav > li > a:hover {
    color: rgb(48, 47, 47);  
    transition: color 0.3s;
    border-bottom: 3px solid rgb(4, 107, 202);
}

.nav > li:hover {
    background-color: rgb(245, 243, 243);
    border: 1px solid transparent;
}

/* ---------------- CAROUSEL ---------------- */
#myCarousel {
    max-width: 90%;  
    margin: 100px auto 0; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(32, 9, 9, 0.3);
}

#myCarousel img {
    height: 600px;       
    object-fit: cover;   
    width: 100%;
}

/* ---------------- HEADINGS ---------------- */
.head {
    margin: auto;
    width: fit-content;
    margin-top: 5%;
    text-align: center;
    color: rgb(132, 140, 148);
}

h1:hover {
    border-radius: 20px;
    background-color: rgb(124, 147, 168);
    color: #fff;
    padding: 5px 15px;
}

/* ---------------- ABOUT SECTION ---------------- */
.about {
    border-radius: 20px;
    margin: auto;
    width: 90%;
    background-image: url("images/p1.jpg");
    margin-top: 5%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.list {
    padding-top: 6px;
    color: rgb(0, 0, 0);
    width: 53%;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.list > ul{
    font-size: 14px;
}

.list > ul li:hover {
    background-color: rgb(74, 134, 190);
    color: #fff;
    border-radius: 20px;
    padding: 10px;
    list-style-type: none;
}

.picture {
    margin-top: 20px;
    flex: 1;
    min-width: 250px;
    text-align: center;
}
.picture > img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 10px 10px 10px rgb(131, 129, 129);
}

/* ---------------- PRODUCTS / CARDS ---------------- */
.card-container {
    justify-content: space-evenly;
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    width: 300px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #333;
}

.card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card:hover {
    opacity: 0.9;  
    box-shadow: 10px 8px 18px rgba(0,0,0,0.2);
}

/* ---------------- MEDIA QUERIES ---------------- */

/* Tablets */
@media (max-width: 992px) {
    #navbar {
        justify-content: center;
        text-align: center;
    }
    .nav {
        gap: 1.5em;
        justify-content: center;
    }
    .list {
        width: 100%;
        font-size: 17px;
    }
    .about {
        flex-direction: column;
        text-align: center;
    }
    .card {
        width: 45%;
    }
}

/* Mobiles */
@media (max-width: 576px) {
    #navbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    #navbar img {
        width: 120px;
    }
    .nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    #myCarousel img {
        height: 300px;
    }
    .list {
        width: 100%;
        font-size: 16px;
    }
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
    }
}


