
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

#container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Header Styles */
header {
    background-image: linear-gradient(45deg, #FFFFFF, #FF7F00, #FF4500, #000000);
    color: #fff;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    padding: 10px; /* Add padding around the logo */
}

.logo img {
    width: 70px; /* Adjust the width of the logo */
}

header {
    background-image: linear-gradient(45deg, #FFFFFF, #FF7F00, #FF4500, #000000);
    color: #fff;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Fancy H1 */
.site-title {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: bold;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5); /* Add shadow for a fancy effect */
    margin: 0; /* Remove default margin */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex: 1;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #e8491d;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex: 1;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #e8491d;
}

/* Section Styles */
section {
    padding: 40px 0;
}

/* About Section */
#about {
    background-color: #f4f4f4;
    text-align: center;
    border: 2px solid #FF7F00;
}

/* Services Section */
#services .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 20px;
    padding: 0 50px;
}

#services .grid-item {
    background: #fff;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Portfolio Section */
#portfolio .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#portfolio .gallery img {
    width: calc(33.333% - 10px);
    margin-bottom: 15px;
}

/* Contact Section */
#contact {
    background-image: linear-gradient(45deg, #FFFFFF, #FF7F00, #FF4500, #000000);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

#contact p {
    margin: 10px 0;
}

/* Footer Styles */
footer {
    background: #fff;
    color: #000000;
    text-align: center;
    border: 2px solid #FF7F00; /* Orange border */
    padding: 10px 0;
}

@media (max-width: 768px) {
    /* Adjust header padding */
    header {
        padding: 10px 0;
    }

    /* Adjust logo size */
    .logo img {
        width: 50px;
    }

    /* Adjust font size for site title */
    .site-title {
        font-size: 24px;
    }

    nav {
        flex-direction: column; /* Change to column layout */
        align-items: center; /* Center items horizontally */
    }

    nav ul {
        margin-top: 20px; /* Add margin at the top */
        display: grid; /* Change to grid layout */
        grid-template-columns: auto auto; /* Two columns */
        gap: 10px; /* Add gap between columns */
    }

    nav ul li {
        margin: 10px 0; /* Add margin to separate items */
    }

    /* Adjust padding and font size for navigation links */
    nav ul li a {
        padding: 10px; /* Reduce padding */
        font-size: 14px; /* Reduce font size */
    }
    
    /* Adjust padding for sections */
    section {
        padding: 20px 0;
    }

    /* Adjust grid item padding */
    .grid-item {
        padding: 20px;
    }

    /* Adjust gallery image size */
    #portfolio .gallery img {
        width: calc(50% - 10px); /* Two images per row */
    }
}

/* For screens between 768px and 1200px (tablets) */
@media (min-width: 769px) and (max-width: 1200px) {
    /* Adjust header padding */
    header {
        padding: 15px 0;
    }

    /* Adjust font size for site title */
    .site-title {
        font-size: 30px;
    }

    /* Adjust navigation */
    nav ul li {
        margin: 0 15px; /* Increase margin */
    }

    /* Adjust padding and font size for navigation links */
    nav ul li a {
        padding: 12px; /* Increase padding */
        font-size: 16px; /* Increase font size */
    }

    /* Adjust grid item padding */
    .grid-item {
        padding: 25px;
    }

    /* Adjust gallery image size */
    #portfolio .gallery img {
        width: calc(33.333% - 10px); /* Three images per row */
    }
}