/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb; /* Blue */
    --secondary-color: #1e40af; /* Darker Blue */
    --accent-color: #3b82f6; /* Lighter Blue */
    --text-dark: #1f2937; /* Dark Grey */
    --text-light: #6b7280; /* Medium Grey */
    --bg-light: #f8fafc; /* Light Grey/Off-white */
    --white: #ffffff;
    --success-color: #10b981; /* Green */
    --border-color: #e5e7eb; /* Light Border */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Consistent horizontal padding */
}

/* --- Header Styles --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0; /* Vertical padding for header */
    transition: padding 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for sticky effect */
}

header.scrolled { /* Class added by JS for sticky effect */
    padding: 0.25rem 0; /* Smaller padding when scrolled */
    box-shadow: var(--shadow-lg); /* More prominent shadow when scrolled */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* Padding within the nav container */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-color);
}

/* --- Navigation Links (Default: Desktop) --- */
.nav-links {
    display: flex; /* Default to flex for desktop */
    gap: 2.5rem; /* Space between menu items */
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0; /* Remove default ul padding */
}

.nav-links li {
    margin: 0; /* Remove default li margin */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0; /* Make clickable area larger */
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Buttons (General Styles) --- */
.btn {
    display: inline-block;
    padding: 10px 20px; /* Adjusted for header button */
    background: var(--success-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px; /* Rounded corners for buttons */
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    white-space: nowrap; /* Prevent button text from wrapping */
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: #059669; /* Darker green on hover */
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color); /* Secondary button border color */
    color: var(--primary-color); /* Secondary button text color */
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* --- Mobile Menu Toggle (Hidden by default on Desktop) --- */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001; /* Ensure it's above the menu when open */
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* --- Hero Section (from index.php) --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons in Main Content (from index.php) --- */
/* Overrides for larger buttons in sections like Hero/CTA */
.hero .btn, .cta .btn {
    padding: 15px 30px; /* Larger padding */
    font-size: 1rem;
    border-radius: 50px; /* More rounded */
}
.hero .btn-secondary, .cta .btn-secondary {
    border: 2px solid var(--white); /* White border for hero/cta secondary */
    color: var(--white);
}
.hero .btn-secondary:hover, .cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}


/* --- Services Section (from index.php) --- */
.services {
    padding: 100px 0;
    background: var(--bg-light);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Why Choose Us Section (from index.php) --- */
.why-choose-us {
    padding: 100px 0;
    background: var(--white);
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* --- CTA Section (from index.php) --- */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer (Global) --- */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    position: relative; /* For potential absolute positioning of content */
}

footer .container {
    display: flex;
    flex-direction: column; /* Stack elements vertically by default */
    align-items: center;
    gap: 1.5rem; /* Space between main footer elements */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Display horizontally for desktop */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center links */
    gap: 1.5rem; /* Space between links */
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color); /* Highlight on hover */
}

.social-icons {
    display: flex;
    gap: 1rem; /* Space between social icons */
    margin-top: 1rem; /* Space above social icons */
}

.social-icons a {
    color: var(--white);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* --- Responsive Design (Global) --- */
@media (max-width: 768px) {
    /* Header/Nav Specific Mobile Styles */
    .mobile-menu-toggle {
        display: block; /* Show hamburger on mobile */
    }
    
    .nav-links {
        position: fixed;
        top: 65px; /* Adjust based on header height */
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%); /* Start off-screen */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999; /* Below toggle, above content */
        gap: 1rem;
    }
    
    .nav-links.active {
        transform: translateY(0); /* Slide in */
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links li:last-child a { /* Remove border from last item */
        border-bottom: none;
    }

    .nav-links .btn {
        display: inline-block; /* Keep button inline-block in menu */
        margin: 1rem auto;
        max-width: 200px;
    }

    /* General Mobile Adjustments */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-grid,
    .feature-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    
    .btn {
        display: block; /* Make general buttons block level on mobile */
        margin: 0.5rem auto;
        max-width: 300px;
    }

    .feature-item { /* Adjust feature item layout for stacked mobile */
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .feature-item i {
        margin-bottom: 1rem;
    }

    /* Footer Mobile Adjustments */
    footer .container {
        flex-direction: column; /* Stack all footer elements vertically */
    }
    .footer-links ul {
        flex-direction: column; /* Stack footer links vertically */
        gap: 0.5rem;
    }
    .social-icons {
        margin-top: 1.5rem; /* Adjust margin for social icons */
    }
}

/* --- Accessibility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

/* --- Breadcrumbs for SEO --- */
.breadcrumbs {
    padding: 1rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}