body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #222;
}
header {
    background: #222;
    color: #fff;
    padding: 30px 0 10px 0;
}
header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: #00bcd4;
}
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
h1, h2, h3 {
    margin-bottom: 10px;
}
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    list-style: none;
}
.skills-list li {
    background: #00bcd4;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 20px;
}

.project-card img {
    width: 100%;
    max-width: 400px;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    display: block;
    margin: 0 auto 16px auto;
/* Image Popup Modal Styles */
.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.img-modal-content {
    display: block;
    margin: 40px auto;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.img-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s;
}
.img-modal-close:hover {
    color: #00bcd4;
}
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}
.contact-form input, .contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.contact-form button {
    background: #00bcd4;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: #0097a7;
}
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}
@media (max-width: 600px) {
    .container {
        margin: 20px auto;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}