@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

body {
    background-color: #1a1a1a;
    color: #f0e68c;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px; /* Increased max-width for 4 items in a row */
    text-align: center;
    padding-top: 50px;
    flex-grow: 1;
}

header h1 {
    font-size: 4rem;
    margin: 20px 0;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffc400, 0 0 40px #ffc400;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ffb300, 0 0 30px #ffa500, 0 0 40px #ffa500;
    }
    to {
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffc400, 0 0 40px #ffc400, 0 0 50px #ffc400;
    }
}

.projects {
    margin-top: 50px;
}

.projects h2 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 30px;
    text-shadow: 0 0 8px #ffd700;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This will center the items */
    gap: 20px;
}

.project-link {
    background-color: #2c2c2c;
    color: #f0e68c;
    text-decoration: none;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffd700;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
    flex-basis: 250px; /* Base width for each project */
    flex-grow: 1; /* Allows items to grow and fill space */
    max-width: 275px; /* Optional: prevents items from becoming too wide */
}

.project-link:hover {
    color: #1a1a1a;
    background-color: #ffd700;
    box-shadow: 0 0 15px #ffd700, 0 0 25px #ffd700;
    transform: translateY(-5px);
}

.project-link h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

footer {
    width: 100%;
    background-color: #111;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #ffd700;
    box-shadow: 0 -5px 15px -5px rgba(255, 215, 0, 0.3);
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #aaa;
}

footer a {
    color: #f0e68c;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700;
}