:root {
    --primary: #2563eb;
    --dark: #1f2937;
    --light: #f3f4f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Keeps footer at bottom */
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 100px 5%;
    text-align: center;
    background: var(--light);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

/* Responsive Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 50px 5%;
    flex-grow: 1;
    /* Pushes footer down */
}

.project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3,
.project-card p {
    padding: 10px 15px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    /* Ensures footer sits at bottom */
}

/* Status Badges */
.status-badge {
    position: absolute;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-bottom-right-radius: 8px;
    z-index: 10;
}

.project-card {
    position: relative;
    /* Needed for absolute badge positioning */
    display: flex;
    flex-direction: column;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-stack span {
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #4b5563;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    nav ul {
        display: none;
    }

    /* Consider adding a hamburger menu later */
}