/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 10px;
    background: #f4f4f4;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
}

#hero {
    text-align: center;
    padding: 100px 20px;
    background-color: #f0f0f0;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./images/hero.jpg");
    background-position: center;
    background-size: cover;
    color:white;
}

/* Simulate CLS by removing aspect-ratio and fixed height */
#hero img {
    width: 100%;
    height: auto; /* Removed the fixed aspect ratio to allow dynamic size calculation */
}

/* Feature section causing CLS */
.feature {
    display: inline-block;
    width: 30%;
    text-align: center;
    padding: 20px;
}

/* Simulating image CLS by removing object-fit */
.feature img {
    width: 100%;
    margin-bottom: 10px;
    /* Removed object-fit to make images load and resize unpredictably */
}

#pricing table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#pricing table th, #pricing table td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 8px;
}

#testimonials p {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}

#contact form {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 0 auto;
}

#contact label {
    margin: 10px 0 5px;
}

#contact input, #contact textarea {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f4f4f4;
}

.about-content, .benefits-content {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
}

.about-content .text, .benefits-content .text {
    flex: 1;
}

.about-content .image, .benefits-content .image {
    flex: 1;
}

.about-content img, .benefits-content img {
    max-width: 100%;
    border-radius: 10px;
    /* Removed width/height to simulate image loading delay */
}

button {
    background-color: aquamarine;
    padding: 8px 14px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
    border: 1px solid grey;
}

/* Simulating CLS with media query */
@media (max-width:800px) {
    .feature {
        display: inline-block;
        width: auto;
        text-align: center;
        padding: 20px;
    }

    .feature img {
        width: 100%;
        margin-bottom: 10px;
        /* Removed object-fit to let images resize dynamically */
    }

    .about-content, .benefits-content{
        flex-direction: column;
    }
    #hero{
        
        padding:16px 20px;
    }
    #hero h1{
    
        
    font-size:20px;
    }
}
