body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
    line-height: 1.6;
}
/* background-color: #f7f9fc; */

header {
    background-color: #222;
    color: #fff;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em; /* Adjusted padding */
}

header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2vw; /* Responsive font size based on viewport width */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1em;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5em 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevents text wrapping */
    font-size: 1.5vw; /* Responsive font size based on viewport width */
}

nav ul li a:hover {
    background-color: #ff6347;
    color: #fff;
    border-radius: 5px;
}

main {
    margin-top: 80px;
    padding: 1em; /* Adjusted padding */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted grid */
    gap: 15px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

section {
    padding: 2em 0; /* Adjusted padding */
    text-align: center;
}

section h2 {
    font-size: 2em; /* Adjusted font size */
    margin-bottom: 0.5em;
    color: #222;
}

section p {
    font-size: 1em; /* Adjusted font size */
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
    color: #555;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 1em 0;
    display: flex;
    justify-content: center;
    gap: 1em;
}

.social-links li a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links li a:hover {
    color: #ff6347;
    transform: translateY(-2px);
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    header .container {
        padding: 0 0.5em; /* Adjusted padding */
    }
    
    header h1 {
        font-size: 3vw; /* Adjusted font size */
    }
    
    nav ul li a {
        font-size: 3vw; /* Adjusted font size */
    }
}
