body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #333;
    background-image: url('../image/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: darken;
}
header {
    background: linear-gradient(to right, rgba(35, 37, 38, 0.8), rgba(65, 67, 69, 0.8)); /* Semi-transparent gradient for header */
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}
header h1 {
    margin: 0;
}
nav ul {
    list-style: none;
    padding: 0;
}
nav ul li {
    display: inline;
    margin: 0 10px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
}
section {
    padding: 2rem;
    margin: 1rem auto;
    max-width: 800px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
footer {
    background: linear-gradient(to right, #232526, #414345); /* Matching dark gradient for footer */
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
}
#about, #skills, #projects, #contact {
    background: linear-gradient(to right, rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)); /* Semi-transparent gradient for sections */
    color: #fff;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 800px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}
#about h2, #skills h2, #projects h2, #contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
#about p, #skills ul, #projects ul, #contact p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}
#about img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#skills ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
#skills ul li {
    flex: 1 1 calc(20% - 1.5rem);
    max-width: calc(20% - 1.5rem);
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
#skills ul li:hover {
    transform: scale(1.1);
}
#projects ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
#projects ul li {
    flex: 1 1 calc(30% - 1.5rem);
    max-width: calc(30% - 1.5rem);
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    text-align: center;
}
#projects ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
#projects ul li:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}
#images {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: #fff;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 800px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}
#images h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
#images p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.image-gallery img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}
.image-gallery img:hover {
    transform: scale(1.1);
}

#images .gallery img {
    width: 300px; /* Adjusted width for better display */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded corners for a polished look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
    transition: transform 0.3s ease-in-out; /* Smooth hover effect */
}

#images .gallery img:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    nav ul li {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }

    section {
        padding: 1rem;
        margin: 0.5rem auto;
    }

    #skills ul li, #projects ul li {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #images .gallery img {
        width: 100%;
        max-width: 300px;
    }
}
