main {
    width: 80%;
}

.projects-section {
    width: 100%;
    padding: 4rem 2rem;
    background-color: transparent;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #eee;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.featured-grid .project-tile {
    background-color: #222;
    border: 2px solid #58a6ff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
}

.project-tile {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 1.2rem;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.project-tile:hover {
    transform: scale(1.02);
}

.project-tile h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #fff;
    border-bottom: 1px solid #666666;
    padding-bottom: 0.3rem;
    margin-bottom: 0.75rem;
}

.project-tile p {
    font-size: 0.95rem;
    color: #ccc;
}

.project-tile a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #58a6ff;
    text-decoration: underline;
}

.project-tile a:hover {
    color: #8ecfff;
}

.project-button {
    display: inline-block;
    padding: 0.4em 1em;
    width: 100%;
    text-align: center;
    margin-top: 0.75rem !important;
    font-weight: 500;
    color: #ffffff !important;
    background-color: #245caa;
    border: none;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 0 6px rgba(36, 92, 170, 0.4);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-button:hover {
    background-color: #1d4f94;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(36, 92, 170, 0.6);
}

.project-button:active {
    transform: translateY(0);
    box-shadow: 0 0 4px rgba(36, 92, 170, 0.3);
}

.tech-tags {
    margin: 0.75rem 0 0.75rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #d6e0f0;      /* light dim blue */
    color: #244d7a;                 /* dark blue text */
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25em 0.75em;
    border-radius: 12px;
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 0 4px rgba(36, 77, 122, 0.2);
    transition: background-color 0.2s ease;
}

.tag:hover {
    background-color: #c0d1ea;      /* slightly darker on hover */
    cursor: default;
}

