:root {
    --primary: #0056b3; /* Professional Blue */
    --secondary: #1a1a1a; /* Near Black */
    --light-bg: #f9fbfd; /* Very light cool grey */
    --white: #ffffff;
    --accent: #00d4ff; /* Tech Cyan */
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #eaeaea;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif; /* Clean, modern font */
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* --- Header --- */
/* --- Header & Navigation Updates --- */
header {
    background: var(--white);
    padding: 10px 0; /* Reduced padding for cleaner look with the image */
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-size: 26px;
    font-weight: 700;
}

.logo-img {
    height: 40px; /* Adjust the logo size */
    width: auto;
    margin-right: 12px;
}

.logo-text span {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #004494;
}

/* --- Hero Section (Homepage) --- */
.hero {
    background: linear-gradient(rgba(0,40,80,0.85), rgba(0,40,80,0.85)), 
                url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=1600&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Content Sections & Page Titles --- */
.page-title {
    background: var(--light-bg);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-title h1 {
    font-size: 40px;
    color: var(--primary);
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 10px;
}

/* --- General Grid System --- */
.grid-2, .grid-3 {
    display: grid;
    gap: 40px;
    align-items: center;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Responsive Images --- */
.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- Feature/Card Styling --- */
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* --- Services List (Detailed) --- */
.service-item {
    background: var(--white);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 30px;
    align-items: start;
}

.service-icon {
    flex: 0 0 60px;
    font-size: 40px;
    color: var(--primary);
}

/* --- Blog Section --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.blog-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
}

.blog-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 20px;
    color: var(--secondary);
}

/* --- Single Blog Post Layout --- */
.post-container {
    max-width: 800px;
    margin: auto;
}

.post-meta {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.post-header-img {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.post-content h2, .post-content h3 {
    margin-top: 40px;
}

.post-content p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* --- Forms (Contact) --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

/* --- Dark Footer --- */
/* --- Enhanced Footer Styles --- */
footer {
    background: #111; /* Deeper black for a premium feel */
    color: #aeaeae;
    padding: 80px 0 30px;
    margin-top: 80px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.footer-logo img {
    height: 35px;
    margin-right: 12px;
}

.footer-logo span span {
    color: var(--accent);
}

footer h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

/* Accent line under footer headings */
footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aeaeae;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px; /* Subtle hover animation */
}

.copy {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 30px;
    font-size: 13px;
}

.copy a {
    color: #666;
    margin: 0 10px;
    text-decoration: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-logo {
        justify-content: center;
    }
}

/* --- Tablet/Mobile Responsiveness --- */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 40px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    nav ul { display: none; } /* Add a hamburger menu for real projects */
    .hero { padding: 100px 0; }
    .hero h1 { font-size: 32px; }
    .service-item { flex-direction: column; text-align: center; }
}