/* --- Global Variables (Define your color scheme here) --- */
:root {
    --color-primary: #00e5ff; /* Cyan/Light Blue for highlights */
    --color-secondary: #ff6b6b; /* Accent color (optional) */
    --color-text-light: #ffffff;
    --color-text-muted: #aaaaaa;
    --color-dark-bg: #141414; /* Main background */
    --color-card-bg: #1e1e1e; /* Card background */
    --color-dark-element: #222222;
    --font-stack: 'Montserrat', sans-serif;
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--color-primary);
}

h2.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
}
h2.section-title strong {
    color: var(--color-primary);
}

h21 {
    color: var(--color-secondary);
}

/* --- Hero Section --- */
.page-hero-section {
    padding: 120px 0 60px;
    text-align: center;
}
.page-hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
}
.page-hero-title strong {
    color: var(--color-primary);
}
.page-hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Project Grid Section (The main container) --- */
.projects-grid-section {
    padding: 50px 0 100px;
}

/* --- Projects Category Grouping Styles (From your existing code) --- */

.category-group {
    padding-top: 50px;
    margin-top: 40px;
    border-top: 1px solid var(--color-dark-element);
}

.category-group:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.category-group-title {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.category-group-title i {
    margin-right: 15px;
    color: var(--color-secondary);
}

.category-group-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 800px;
}

/* --- Project Grid (from your existing code) --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* --- FIX: Project Card Styles (These are critical for alignment and design) --- */
.project-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 229, 255, 0.15); /* Subtle glow on hover */
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--color-primary); /* Visual separator */
}

.card-content {
    padding: 20px;
    flex-grow: 1; /* Ensures card content fills space uniformly */
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.card-content .category {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.card-content .category i {
    margin-right: 8px;
}

.card-content .description {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-link {
    color: var(--color-secondary);
    font-weight: 700;
    transition: color 0.3s;
    margin-top: auto; /* Pushes the link to the bottom */
    display: inline-block;
}

.btn-link:hover {
    color: var(--color-primary);
}

/* --- Media Queries (For responsiveness) --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .page-hero-title {
        font-size: 2.5rem;
    }
}