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

body {
    font-family: BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 30px;
    color: #34495e;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-content p {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 0;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    grid-auto-rows: auto;
    gap: 30px;
    padding: 30px 20px;
    box-sizing: border-box;
}

.project {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 15px 15px 0 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
    height: auto;
}

.project img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    flex-shrink: 0;
    display: block;
}

.project-content {
    padding: 0 5px 20px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}


.highlight{
    color: #3498dbff;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 25px 15px;
    }
    
    .project {
        min-height: 380px;
        padding: 12px 12px 0 12px;
    }
    
    .project img {
        height: 200px;
        border-radius: 10px;
    }
    
    .project-content {
        padding: 0 3px 15px 3px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 10px;
    }
    
    .project {
        min-height: 360px;
        padding: 10px 10px 0 10px;
    }
    
    .project img {
        height: 180px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .project-content {
        padding: 0 2px 12px 2px;
    }
}

@media (max-width: 320px) {
    .grid {
        padding: 15px 5px;
        gap: 15px;
    }
    
    .project {
        min-height: 320px;
        padding: 8px 8px 0 8px;
    }
    
    .project img {
        height: 160px;
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .project-content {
        padding: 0 2px 10px 2px;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
}