* {
    margin: 0;
    padding: 0;
}


.button {
    display: inline-block;
    background-color: #eb8007;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 1em;
    margin-top: 10px;
}

.button:hover {
    background-color: #d46a00;
}


.main {
    width: 100%;
    background: url(pic/bg.jpg);
    background-position: center;
    background-size: cover;
    height: 100vh;
    position: relative;
    font-family: sans-serif;
}

.navbar {
    width: 86%;
    display: flex;
    margin: auto;
    padding: 15px 0;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    width: 160px;
    cursor: pointer;
}

ul {
    margin-top: -4%;
}

ul li {
    list-style: none;
    display: inline-block;
    padding: 10px 16px;
}

ul li a {
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: darkslategray;
    transition: .4s ease;
}

ul li a:hover {
    color: rgb(230, 104, 59);
}

.info {
    margin-left: 7%;
    margin-top: 6%;
    max-width: 50%;
}

.info h1 {
    font-size: 65px;
    color: rgb(36, 32, 30);
}

.info h3 {
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 24px;
}

.info span {
    color: rgb(230, 104, 59);
}

.info a {
    text-decoration: none;
    color: #fff;
    background: rgb(36, 32, 30);
    margin: 26px 0;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    transition: .4s ease;
}

.info a:hover {
    background: rgb(59, 174, 209);
}

.image {
    width: 30%;
    height: 60%;
    position: absolute;
    right: 100px;
    bottom: 0;
}

.image img {
    position: absolute;
    height: 140%;
    left: 40%;
    transform: translate(-55%);
    bottom: 0;
    transition: left 2s ease;
}

.image:hover img {
    left: 55%;
}

.icons a {
    text-decoration: none;
    color: #000;
}

.icons ion-icon {
    margin-left: 7%;
    font-size: 40px;
    transition: .4s ease;
}

.icons ion-icon:hover {
    color: rgb(59, 174, 209);
}

/* Footer */
footer {
    width: 100%;
    background: #171717;
}

.down {
    display: flex;
    justify-content: space-around;
    color: #f1f1f1;
}

.down h3 {
    text-align: center;
    text-transform: capitalize;
    padding: 15px;
    font-weight: 600;
}

#dernier ul {
    list-style: none;
    text-transform: uppercase;
    padding-bottom: 5px;
}

#dernier li {
    padding: 5px;
    text-align: center;
}

#dernier a {
    text-decoration: none;
    font-size: medium;
}

#dernier a:hover {
    background: #aaaaaa;
    transition: 0.5s;
    font-weight: 400;
}

.media {
    padding: 15px;
    text-align: center;
}

/* Additional Styles */
.info-box {
    border: 2px solid #eb8007;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    border-radius: 20px;
    width: fit-content;
}

.title-present {
    font-family: 'Playfair Display', serif;
}

.gallery {
    padding: 50px 0;
    text-align: center;
}

.gallery h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    width: calc(33.333% - 40px);
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 50px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.services {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
}

.services h2 {
    font-size: 2em;
    margin-bottom: 40px;
}

.works h2 {
    font-size: 2em;
    margin-bottom: 40px;
}

.services-container,
.works-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-card,
.works-card {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    background-color: #fafafa;
    box-shadow: 0px 4px 6px rgb(253, 155, 8);
    text-align: center;
}

.service-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.works-card img{
    
    width: 100%; /* Make the image take the full width of the card */
    height: auto; /* Maintain the aspect ratio of the image */
    max-height: 200px; /* Optional: Set a max height to ensure images don't get too tall */
    object-fit: cover; /* Ensure the image scales properly to fit its container */
    margin-bottom: 15px;
    border-radius: 5px; /* Optional: Add some rounding to the image */

}

.service-card h3,
.works-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.service-card p,
.works-card p {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}





@media screen and (max-width: 768px) {
    .main {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .info {
        margin-left: 5%;
        margin-right: 5%;
        margin-top: 10%;
        text-align: center;
        order: 1;
        max-width: 100%; /* Change from 50% to 100% */
        
    }

    .info h1 {
        font-size: 45px;
    }

    .info h3 {
        font-size: 16px;
        line-height: 22px;
    }

    form {
        width: 100%;  /* Adjust the form to take full width */
        font-size: 16px;  /* Ensure the text inside the form is readable */
        padding: 20px;  /* Adjust padding for a clean layout */
        box-sizing: border-box;  /* Ensure padding doesn't break layout */
    }

    input[type="text"], input[type="email"], input[type="number"], textarea {
        font-size: 16px;
        padding: 10px;  /* Ensure padding for touch-friendly inputs */
        width: 100%;  /* Ensure the input fields take up full width */
        box-sizing: border-box;
    }

    .image {
        width: 100%;
        height: auto;
        position: relative;
        right: 0;
        margin: 20px auto;
        text-align: center;
        padding-bottom: 20px;
        order: 2;
    }

    .image img {
        position: static;
        width: 70%;
        height: auto;
        max-width: 300px;
        display: inline-block;
        transform: none;
        left: auto;
    }

    footer {
        order: 3;
    }
}