* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-color: #007bff;
    --secondary-color: #00d4ff;
    --background-light: #fafaed;
    --nav-background: #fafa6f;
    --card-background: #ffffcc;
    --text-color: #333;
    --footer-background: #222;
}

body { 
    font-family: 'Poppins', sans-serif; 
    line-height: 1.6; 
    color: var(--text-color); 
    background: var(--background-light); 
}
/* === Global Link Styling === */
a {
    color: var(--secondary-color); /* Main theme color */
    text-decoration: none; /* Remove underline by default */
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color); /* Lighter blue for hover */
    text-decoration: underline; /* Add underline on hover for usability */
}
.container {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1rem;
}
section { 
    padding: 3rem 1rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}
h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}
/* === HEADER STYLES === */
header {
    background: var(--background-light);
    padding: 0;
}
/*#header-top {
    padding: 2rem 0; 
    text-align: center;
}*/
#logo img {
    max-height: 80px; /* Adjusted logo size for better mobile display */
    width: auto;
}
#headerwrap {
    /* Background image is now a cover for the section below the logo */
    background: url(assets/img/hdr-bg.jpg) no-repeat center center;
    background-size: cover; /* Ensures the image covers the entire container */
    padding: 0;
    text-align:center;
    background-attachment: scroll; /* Changed from relative to scroll for better mobile UX */
    min-height: 400px;
    width: 100%;
    display: flex;
	flex-direction: column; 
	justify-content: flex-start;
    align-items: center;
    /*justify-content: center;*/
}
.logo-container {
    padding-top: 2rem; 
    width: 100%; /* Ensure it spans the full width of the container for margin/padding */
}

.hero-content {
    color: white; /* Text color for content over the background image */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    padding: 2rem;
	flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-content h1 { 
	color: var(--primary-color);
    font-size: 2.5rem; 
    margin-bottom: 1rem;
    font-weight: 600; 
}
.hero-content p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem;
}

/* Call-to-action Button */
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}
.cta-button:hover {
    background: var(--secondary-color);
}

/* === NAVIGATION STYLES === */
nav {
    background: var(--nav-background);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-content {
    display: flex;
    justify-content: space-between; /* Spreads nav-links and social-icons */
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}
.nav-links {
    text-align: center; /* Center alignment for links on larger screens */
    flex-grow: 1; /* Allows links to take up available space */
}
.nav-links a {
    margin: 0 0.8rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block; /* Essential for spacing */
}
.nav-links a:hover { color: var(--secondary-color); }
.social-icons {
    /* Right aligned social icons */
    display: flex;
    gap: 15px;
    padding-left: 1rem; /* Spacing from links */
}
.social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--secondary-color);
}

/* === SERVICE, CUSTOMER, TEAM, BLOG GRIDS === */
.services, .customers, .team, .blogs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Mobile friendly by default */
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-item, .customer-item, .team-member, .blog-item {
    background: var(--card-background);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-item:hover, .customer-item:hover, .team-member:hover, .blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.service-item img, .customer-item img, .team-member img, .blog-item img {
    width: 100%;
    height: 180px; /* Increased height for better visual impact */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.team-member img {
    border-radius: 50%; /* Make team images circular */
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}
.team-member a { font-weight: 600; /* The only unique style needed */ }

/* About section hide/show */
.about-content .extra {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.about-content.expanded .extra {
    display: block;
    opacity: 1;
}
.btn-show-more {
    display: inline-block;
    margin-top: 1rem;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px dotted var(--primary-color);
    padding-bottom: 2px;
}
.btn-show-more:hover { color: var(--secondary-color); border-color: var(--secondary-color); }
.text-center { text-align: center; }

/* === CONTACT FORM STYLES === */
.contact-details {
    text-align: center;
}
#contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.contact-form {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}
.contact-form textarea {
    resize: vertical;
}
/* Honeypot Anti-Spam (Hidden Field) */
.honeypot {
    display: none !important; /* Extremely important to hide this completely from human users */
    visibility: hidden;
    height: 0;
    width: 0;
    position: absolute;
    left: -9999px;
}

/* === FOOTER STYLES === */

footer {
    background: var(--footer-background);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}
/* Footer Links */ footer a { color: #fafa6f; /* Use the bright yellow from your nav for contrast */ font-weight: 600; } footer a:hover { color: #ffffff; /* Change to bright white on hover */ }
/* === MEDIA QUERIES FOR MOBILE FRIENDLINESS AND UX === */
/* Tablet/Desktop Styles */
@media (min-width: 768px) {
    /* Grids are already mobile-friendly due to auto-fit, but can reinforce */
    .services, .customers, .team, .blogs {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-content h1 { font-size: 3.5rem; }
    .nav-content {
        flex-wrap: nowrap; /* Keep social icons on one line */
    }
}

/* Mobile-Specific Adjustments */
@media (max-width: 767px) {
    section { padding: 2rem 1rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    
    .nav-content {
        flex-direction: column; /* Stack navigation items */
    }
    .nav-links {
        order: 2; /* Move links below social icons (or wherever preferred) */
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
    .nav-links a { 
        margin: 0.5rem 0.5rem; 
        display: inline-block; 
        font-size: 0.9rem;
    }
    .social-icons {
        order: 1; /* Place social icons at the top of the nav */
        padding-left: 0;
        margin-bottom: 10px;
        justify-content: center;
        width: 100%;
    }
    #contact-form {
        padding: 1rem;
    }
    .team-member img {
        height: 200px; /* Taller images on mobile for portraits */
    }
}