/* --- Global Styles & Reset (Consistent with style.css) --- */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa; /* Very light grey */
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header Styles (Consistent with style.css) --- */
header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    margin: 0;
    font-size: 2em;
    color: #007bff;
    font-weight: 700;
}

.logo img {
    max-height: 70px;
    width: auto;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    display: inline-block;
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}
.main-nav a:hover {
    color: #007bff;
}

.header-icons {
    display: flex;
    align-items: center;
}

.header-icons .icon {
    margin-left: 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-icons .icon:hover {
    color: #007bff;
}

.search-bar {
    position: relative;
    margin-left: 20px;
}

.search-bar input {
    border: 1px solid #ddd;
    padding: 8px 10px 8px 35px;
    border-radius: 20px;
    font-size: 0.9em;
    width: 150px;
    transition: width 0.3s ease;
}

.search-bar input:focus {
    width: 200px;
    outline: none;
    border-color: #007bff;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* --- Section Title (Consistent with style.css) --- */
.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #007bff;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Service Grid Styles (Updated to match Printo style) --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for better fit */
    gap: 30px; /* More gap between cards */
    padding: 20px 0;
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures image corners are rounded */
    cursor: pointer;
    border: 1px solid #eee; /* Subtle border */
}

.service-card:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); /* More prominent shadow on hover */
}

.service-card img {
    width: 100%;
    height: 300px; /* Fixed height for consistent card size */
    object-fit: cover; /* Ensures image covers the area */
    border-bottom: 1px solid #eee; /* Separator for image and content */
}

.service-card-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to take available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes description to bottom if needed */
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 10px; /* Space between title and description */
    font-size: 1.4em;
    color: #333;
    font-weight: 600;
}

.service-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* --- Footer Styles (Consistent with style.css) --- */
footer {
    background: #212529;
    color: #bbb;
    padding: 50px 0 20px;
    font-size: 0.95em;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

footer .footer-col {
    margin-bottom: 20px;
}

footer .footer-col h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
footer .footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 0;
}

footer .footer-col ul {
    list-style: none;
    padding: 0;
}

footer .footer-col ul li {
    margin-bottom: 10px;
}

footer .footer-col a {
    color: #bbb;
    transition: color 0.3s ease;
}

footer .footer-col a:hover {
    color: #007bff;
}

footer .contact-info p {
    margin-bottom: 8px;
}
footer .contact-info a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer .contact-info a:hover {
    color: #007bff;
}
footer .contact-info i {
    margin-right: 8px;
    color: #007bff;
}

footer .social-links {
    margin-top: 20px;
}
footer .social-links a {
    color: #fff;
    font-size: 1.4em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
footer .social-links a:hover {
    color: #007bff;
}

footer .bottom-bar {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    color: #999;
}

/* --- Scroll to Top Button (Consistent with style.css) --- */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 24px;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, opacity 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
}


/* --- Responsive Design (Consistent with style.css and adapted) --- */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav {
        margin-top: 15px;
        width: 100%;
    }
    .main-nav ul {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    .main-nav li {
        margin: 5px 15px;
    }
    .header-icons {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }
    .search-bar {
        margin-left: 0;
        margin-right: 15px;
    }
    .section-title {
        font-size: 2em;
    }
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Adjusted for smaller cards */
    }
    footer .container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8em;
    }
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .service-card img {
        height: 150px; /* Slightly smaller image on tablet */
    }
    .service-card h3 {
        font-size: 1.2em;
    }
    .service-card p {
        font-size: 0.9em;
    }
    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5em;
    }
    .main-nav li {
        margin: 5px 8px;
    }
    .main-nav a {
        font-size: 0.8em;
    }
    .search-bar input {
        width: 100px;
        padding-left: 30px;
    }
    .search-bar input:focus {
        width: 150px;
    }
    .service-grid {
        grid-template-columns: 1fr; /* Single column on smallest screens */
    }
    .service-card img {
        height: 120px; /* Even smaller image on mobile */
    }
    .service-card h3 {
        font-size: 1.1em;
    }
    .service-card p {
        font-size: 0.85em;
    }
}