/* General Body and Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header Styles */
header {
    background-color: #2c3e50; /* Dark Blue/Gray */
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.logo h1 {
    margin: 0;
    font-size: 2.2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #fff;
}

.logo h1 span {
    color: #e67e22; /* Orange */
}

.logo p {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7; /* Light Gray */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e67e22; /* Orange */
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1519389950473-47ba0c766d19?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #e67e22; /* Orange */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background-color: #d35400; /* Darker Orange */
}

/* Main Content Sections */
main section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 8px;
}

main section:nth-of-type(even) {
    background-color: #ecf0f1; /* Light Gray */
}

h3 {
    font-size: 2.5rem;
    color: #2c3e50; /* Dark Blue/Gray */
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h4 {
    color: #34495e; /* Darker Gray */
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1rem;
    color: #555;
    text-align: center;
}

.service-item img {
    margin-top: 20px;
    border-radius: 4px;
    max-height: 200px; /* Limit height for service item images */
    object-fit: cover;
}

/* Advertisement Section */
#advertisement ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

#advertisement ul li {
    background-color: #f9f9f9;
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid #3498db; /* Blue */
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 1.1rem;
}

#advertisement ul li strong {
    color: #3498db; /* Blue */
}

/* Contact Form Section */
#contact-form-section {
    text-align: center;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 40px auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding in width */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-form .btn {
    width: auto;
    padding: 15px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    display: block; /* Make button full width on smaller screens */
    margin: 0 auto; /* Center button */
}

/* Footer Styles */
footer {
    background-color: #34495e; /* Darker Gray */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo h3 {
    margin: 0;
    font-size: 2rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #fff;
}

.footer-logo h3 span {
    color: #e67e22; /* Orange */
}

.footer-logo p {
    font-size: 0.85rem;
    color: #bdc3c7;
}

.social-links {
    margin-top: 20px;
}

.social-links h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #fff;
}

.social-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.social-links ul li {
    margin: 0 10px;
}

.social-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-links ul li a:hover {
    color: #e67e22; /* Orange */
}

.copyright {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    #hero h2 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    h3 {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Stack services on small screens */
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo, .social-links {
        margin-bottom: 20px;
    }

    .social-links ul {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }

    nav ul li {
        margin: 0 5px;
    }

    #hero h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    main section {
        padding: 40px 0;
    }

    h3 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 20px;
    }
/* Add this to style.css for form validation feedback */
.error-message {
    color: #e74c3c; /* Red */
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: #e74c3c; /* Red border for invalid fields */
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}
}