/* --- CSS Variables for Easy Theming --- */
:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --background-color: #f4f4f4;
    --surface-color: #ffffff;
    --text-color: #333333;
    --text-muted-color: #666666;
    --border-color: #e0e0e0;
    --font-family: 'Poppins', sans-serif;
}

/* --- General Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

/* --- Header --- */
.site-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 400;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    color: #fff;
}

/* --- Project Grid Section --- */
.project-grid-section {
    padding: 4rem 0;
    background-color: var(--surface-color);
}

.project-grid-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.project-card a {
    color: inherit;
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted-color);
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #e9ecef;
    color: var(--text-muted-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Footer --- */
.site-footer {
    background-color: #212529;
    color: #adb5bd;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.site-footer p {
    margin: 0;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-image {
        order: -1; /* Put image on top on smaller screens */
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        gap: 1rem;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero {
        padding: 2rem 0;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .project-grid-section h2 {
        font-size: 2rem;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}