body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
}
header h1 a {
    color: inherit;
    text-decoration: none;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    gap: 20px;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #1e90ff;
}
.section {
    background-color: #fff;
    margin: 40px 0;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #1e90ff;
    padding-bottom: 10px;
    font-weight: 700;
}
.section h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1e90ff;
    font-weight: 600;
}
.section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}
.section ul {
    list-style: disc inside;
    padding-left: 0;
    color: #555;
    font-size: 1.1rem;
}
.section ul li {
    margin-bottom: 8px;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}
.project-card {
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 400px;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.project-card .image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    min-height: 200px;
}
.project-card img {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.project-card h3 {
    margin: 15px 20px 10px;
    font-size: 1.5rem;
    color: #222;
}
.project-card p {
    margin: 0 20px 20px;
    flex-grow: 1;
    color: #555;
}
.btn {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background-color: #1e90ff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn:hover {
    background-color: #0d6efd;
    color: #ffffff;
}
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}
a {
    color: #1e90ff;
}
a:hover {
    color: #0d6efd;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card img {
        max-height: 200px;
    }
    .project-card .image-container {
        padding: 15px;
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .project-card img {
        max-height: 180px;
    }
    .project-card .image-container {
        padding: 10px;
        min-height: 160px;
    }
}
