/* General Styles */
body {
    font-family: 'Open Sans', sans-serif; /* Professional and readable sans-serif font */
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light, clean background */
    color: #333; /* Dark gray for good readability */
    line-height: 1.7; /* Improved line height for better reading experience */
}

.container {
    max-width: 1140px; /* Standard container width for responsiveness */
    margin: 0 auto;
    padding: 20px;
}

.button {
    display: inline-block;
    background-color: #007bff; /* Primary blue */
    color: white;
    padding: 12px 24px; /* Slightly larger padding for better touch targets */
    text-decoration: none;
    border-radius: 8px; /* More rounded corners for a modern look */
    margin-top: 15px;
    font-weight: 600; /* Semi-bold for emphasis */
    transition: background-color 0.3s ease-in-out; /* Smooth hover transition */
    border: 1px solid transparent; /* To prevent layout shift on hover */
}

.button:hover {
    background-color: #0056b3; /* Darker shade on hover */
    border-color: #0056b3;
}

/* Header Styles */
header {
    background-color: #fff; /* White header background */
    color: #333;
    padding: 1.5em 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow for separation */
    position: sticky; /* Keep header at the top on scroll */
    top: 0;
    z-index: 100; /* Ensure it stays above other content */
}

header .logo {
    font-size: 1.75em;
    font-weight: bold;
    padding-left: 20px;
    color: #007bff; /* Primary blue for the logo */
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    padding-right: 20px;
}

header nav ul li {
    display: inline;
    margin-left: 25px;
}

header nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

header nav ul li a:hover {
    color: #007bff; /* Primary blue on hover */
}

/* Main Content Styles */
main {
    padding: 30px 20px; /* Increased padding for more spacing */
}

.hero {
    background-color: #e9f0f9; /* Very light blue for the hero section */
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #333;
}

.hero p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

.featured-services, .featured-products {
    margin-bottom: 40px;
}

.featured-services h2, .featured-products h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.services-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Increased minmax for wider items */
    gap: 20px;
    margin-bottom: 20px;
}

.service-item, .product-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* Slightly stronger shadow */
    text-align: left; /* Align text to the left for better readability */
    transition: transform 0.2s ease-in-out; /* Subtle hover animation */
}

.service-item:hover, .product-item:hover {
    transform: translateY(-5px); /* Move up slightly on hover */
}

.service-item h3, .product-item h3 {
    font-size: 1.75em;
    margin-bottom: 15px;
    color: #007bff; /* Primary blue for service headings */
}

.products-list .product-item h3 {
    color: #28a745; /* Green for product headings */
}

/* Footer Styles */
footer {
    background-color: #2c3e50; /* Darker footer background */
    color: white;
    text-align: center;
    padding: 2em 0;
    position: relative; /* Remove sticky for a standard footer */
    bottom: auto;
    width: 100%;
    margin-top: 40px; /* Add some space above the footer */
}

footer p {
    margin-bottom: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Styles for Page Headers (Services, Products, Contact) */
.page-header {
    background-color: #e9f0f9;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #eee; /* Lighter border */
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #333;
}

.page-header p {
    color: #777;
    font-size: 1.15em;
}

/* Styles for Services List */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Wider minmax for service items */
    gap: 30px;
    margin-bottom: 40px;
}

.services-list .service-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.services-list .service-item h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #007bff;
}

.services-list .service-item p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.services-list .service-item ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
    line-height: 1.7;
}

.services-list .service-item ul li {
    margin-bottom: 8px;
}

/* Styles for Products List */
.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.products-list .product-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.products-list .product-item h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #007bff;
}

.products-list .product-item p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.products-list .product-item ul {
    list-style: disc;
    padding-left: 20px;
    color: #555;
    line-height: 1.7;
}

.products-list .product-item ul li {
    margin-bottom: 8px;
}

/* Styles for Contact Info */
.contact-info {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    text-align: left; /* Align contact info to the left */
}

.contact-info h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #007bff;
}

.contact-info p {
    font-size: 1.15em;
    margin-bottom: 15px;
    color: #555;
}

.contact-info strong {
    font-weight: bold;
    color: #333;
}

/* Styles for Contact Form */
.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.contact-form h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd; /* Lighter border */
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px; /* Minimum height for the textarea */
}

.contact-form .button {
    margin-top: 25px;
}

/* Styles for Why Choose Us Section */
.why-choose-us {
    padding: 60px 20px;
    background-color: #f9f9f9; /* Slightly darker background */
    margin-bottom: 40px;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #333;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.reason-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.reason-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #007bff;
}

.reason-item p {
    color: #555;
    line-height: 1.8;
}

/* Styles for Social Media Section */
.social-media {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    text-align: center;
}

.social-media h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #333;
}

.social-media p {
    font-size: 1.15em;
    margin-bottom: 25px;
    color: #555;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links li a {
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease-in-out;
}

.social-links li a:hover {
    color: #0056b3;
}

.social-links li img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.map-container {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 8px; /* Match map container border */
    overflow: hidden; /* Prevent iframe from overflowing rounded corners */
}

.map-container iframe {
    width: 100%;
    height: 450px; /* Increased map height */
    border: 0;
}

/* Back to Top Button */
#back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 30px; /* Increased distance from bottom */
    right: 30px; /* Increased distance from right */
    z-index: 99;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 12px; /* Slightly larger padding */
    border-radius: 8px;
    font-size: 1em;
    opacity: 0.8; /* Slightly more visible */
    transition: opacity 0.3s ease-in-out;
}

#back-to-top-btn:hover {
    opacity: 1;
}

#back-to-top-btn svg {
    display: block;
    margin: 0 auto;
    width: 20px;
    height: 20px;
}

/* Styles for Portfolio Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Clip images within rounded corners */
    transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item h3 {
    font-size: 1.75em;
    margin: 15px 20px 10px;
    color: #333;
}

.portfolio-item p {
    font-size: 1.1em;
    color: #555;
    margin: 0 20px 15px;
    line-height: 1.6;
}

.portfolio-item .button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin: 15px 20px 20px;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}

.portfolio-item .button:hover {
    background-color: #0056b3;
}

/* Styles for Blog Post Full Page */
.blog-post-full {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.blog-post-full .post-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.blog-post-full .post-header .post-meta {
    font-size: 1em;
    color: #777;
    margin-bottom: 20px;
}

.blog-post-full .post-content {
    font-size: 1.15em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.blog-post-full .post-content p {
    margin-bottom: 20px;
}

.blog-post-full .post-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 0.9em;
    color: #777;
}

.blog-post-full .post-footer a {
    color: #007bff;
    text-decoration: none;
    margin-left: 5px;
}

.blog-post-full .post-footer a:hover {
    text-decoration: underline;
}

/* Styles for Blog List on Blog Overview Page */
.blog-list {
    margin-bottom: 40px;
}

.blog-post {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.blog-post h2 a {
    font-size: 2em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.blog-post h2 a:hover {
    color: #007bff;
}

.blog-post .post-meta {
    font-size: 1em;
    color: #777;
    margin-bottom: 15px;
}

.blog-post p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-post .button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}

.blog-post .button:hover {
    background-color: #0056b3;
}

/* Styles for Portfolio Page (Detailed) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly stronger shadow */
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover {
    transform: translateY(-8px); /* More pronounced lift */
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee; /* Subtle separator between image and text */
}

.portfolio-item h3 {
    font-size: 1.6em;
    margin: 20px 20px 10px;
    color: #333;
    font-weight: 600;
}

.portfolio-item p {
    font-size: 1.1em;
    color: #555;
    margin: 0 20px 20px;
    line-height: 1.7;
}

.portfolio-item .button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    margin: 20px;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}

.portfolio-item .button:hover {
    background-color: #0056b3;
}

/* Styles for Individual Blog Post Pages (Detailed) */
.blog-post-full {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* Slightly stronger shadow */
    margin-bottom: 50px;
}

.blog-post-full .post-header h1 {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-full .post-header .post-meta {
    font-size: 1.1em;
    color: #777;
    margin-bottom: 30px;
}

.blog-post-full .post-content {
    font-size: 1.15em;
    color: #555;
    line-height: 1.9; /* Improved readability for long text */
    margin-bottom: 40px;
}

.blog-post-full .post-content h2 {
    font-size: 2em;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-full .post-content h3 {
    font-size: 1.6em;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.blog-post-full .post-content ul,
.blog-post-full .post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-post-full .post-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.blog-post-full .post-footer {
    border-top: 1px solid #eee;
    padding-top: 30px;
    font-size: 1em;
    color: #777;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-post-full .post-footer .tags a {
    color: #007bff;
    text-decoration: none;
    margin-left: 8px;
    transition: color 0.3s ease-in-out;
}

.blog-post-full .post-footer .tags a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.blog-post-full .post-footer .share-links a {
    color: #555;
    text-decoration: none;
    margin-left: 15px;
    font-size: 1.2em;
    transition: color 0.3s ease-in-out;
}

.blog-post-full .post-footer .share-links a:hover {
    color: #007bff;
}

/* Styles for Blog List on Blog Overview Page (Detailed - Minor Adjustments) */
.blog-list {
    margin-bottom: 50px;
}

.blog-post {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.blog-post h2 a {
    font-size: 2.2em;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease-in-out;
}

.blog-post h2 a:hover {
    color: #007bff;
}

.blog-post .post-meta {
    font-size: 1.1em;
    color: #777;
    margin-bottom: 20px;
}

.blog-post p {
    font-size: 1.15em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.blog-post .button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}

.blog-post .button:hover {
    background-color: #0056b3;
}