/* Global Styles */
:root {
    --primary-color: #007bff; /* Blue for branding */
    --secondary-color: #f8f9fa; /* Light background */
    --dark-color: #333;
    --light-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 10px;
}

/* Utility Classes */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

/* Header/Navigation */
header {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0 15px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5em;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('placeholder-bg.jpg') no-repeat center center/cover; /* Add your own background image */
    background-color: #e2f0ff;
    color: var(--dark-color);
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Sections */
section {
    padding: 60px 0;
    text-align: center;
}

.services-section {
    background: var(--secondary-color);
}

.portfolio-section {
    background: var(--light-color);
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* Contact Section */
.contact-section {
    background: var(--dark-color);
    color: var(--light-color);
}

.contact-form {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form .btn {
    width: 100%;
}

.contact-info {
    margin-top: 20px;
}
.contact-info p {
    margin-bottom: 5px;
}

/* Footer */
footer {
    background: #222;
    color: #bbb;
    padding: 20px 0;
    text-align: center;
}

/* ==================================== */
/* Mobile Responsiveness (Media Query) */
/* ==================================== */

@media (max-width: 768px) {
    
    /* Navigation Adjustments for smaller screens */
    header .container {
        flex-direction: row;
        align-items: center;
    }
    
    .menu-toggle {
        display: block; /* Show menu button on mobile */
    }

    #main-nav {
        /* Default state: hidden on mobile */
        position: absolute;
        top: 60px; /* Below the header */
        left: 0;
        width: 100%;
        background: #444;
        display: none; 
        flex-direction: column;
        text-align: center;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
    }

    #main-nav.active {
        display: flex; /* Show when 'active' class is added by JS */
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        padding: 10px 0;
        border-bottom: 1px solid #555;
    }

    header nav ul li:last-child {
        border-bottom: none;
    }
    
    /* Adjustments for other sections */
    .hero {
        padding: 50px 0;
    }

    .hero h2 {
        font-size: 2em;
    }
    
    .service-grid {
        grid-template-columns: 1fr; /* Stack services vertically */
    }
}

/* Optional: Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
    }
}

