/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #fdfefe;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Navigation Bar */
header.navbar {
    background-color: #e3f2fd;
    padding: 1rem 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar h1 a {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1976d2;
}

.navbar nav a {
    text-decoration: none;
    color: #1976d2;
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: #0d47a1;
}

/* Projects Section */
.projects-section {
    padding: 2rem 6vw;
    text-align: center;
    background-color: #fafcff;
}

.projects-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #1f3b57;
    font-weight: 600;
}

/* Project Cards Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* Individual Project Card */
.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Project Image */
.project-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.6rem;
}

/* Project Title */
.project-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar nav a {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .projects-section {
        padding: 1.5rem 5vw;
    }

    .projects-section h2 {
        font-size: 1.5rem;
    }

    .project-card h3 {
        font-size: 0.95rem;
    }
}
