/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f7f6;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #007bff;
}

/* Main Content */
main {
    padding: 2rem 5%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background-color: #ffffff;
    color: #007bff;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: #f0f0f0;
}

/* Services Overview Section */
.services-overview {
    padding: 3rem 0;
    text-align: center;
}

.services-overview h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #007bff;
}

/* Pages (Services, Portfolio, About, Contact) */
.services-page, .portfolio-page, .about-page, .contact-page {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services-page h1, .portfolio-page h1, .about-page h1, .contact-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #007bff;
}

/* Services Page */
.service-item {
    margin-bottom: 2rem;
}

.service-item h2 {
    font-size: 1.8rem;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Portfolio Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    color: #007bff;
}

.portfolio-item p {
    padding: 0 1rem 1rem 1rem;
    margin: 0;
}

/* About Page */
.about-content ul {
    list-style-type: disc;
    padding-left: 20px;
}
.about-content li {
    margin-bottom: 0.5rem;
}

/* Contact Page Form */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#contact-form button {
    background-color: #007bff;
    color: #ffffff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #0056b3;
}

.contact-page p {
    text-align: center;
    margin-top: 2rem;
}


/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 5%;
    margin-top: 2rem;
    background-color: #333;
    color: #ffffff;
}