:root {
    --primary: #ffcc00; /* Electric Amber */
    --dark: #1a1a1a;
    --light: #f4f4f4;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
}

body { 
    line-height: 1.6; 
    color: #333; 
}

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 0 20px; 
}

/* Navbar */

/* Ensure the custom element behaves like a block and stays sticky */
my-navbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Update your .navbar class to remove the sticky/top from here 
   and move it to the parent (my-navbar) above for better stability */
.navbar { 
    background: var(--light); 
    color: #000; 
    padding: 1rem 0; 
    width: 100%; /* Ensure it fills the width */
}
.navbar { 
    background: var(--light); 
    color: #000; 
    padding: 1rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.nav-links { 
    display: flex; 
    list-style: none; 
}
.nav-links li a { 
    color: #000; 
    text-decoration: none; 
    padding: 0 15px; 
    font-weight: bold; 
}
#main-logo{
    height: 4rem;
}


/* --- NAVIGATION COMPONENTS --- */

/* Ensure the custom element behaves correctly and stays at the top */
my-navbar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark); /* Matches navbar background to prevent gaps */
}

/* Hide toggle on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Styles (Phone and Tablet) */
@media (max-width: 768px) {
    /* 1. Center the Logo and stack elements */
    .navbar .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative; /* Needed for absolute positioning of the toggle */
        padding: 10px 0;
    }

    .navbar .logo {
        margin: 0 auto;
        text-align: center;
    }

    /* 2. Position the Hamburger Menu to the right */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%); /* Keeps it vertically centered within the bar */
        color: #fff;
    }

    /* 3. The Dropdown Menu */
    .nav-links {
        display: none; /* Hidden until .active is added by JS */
        flex-direction: column;
        width: 100%;
        background: var(--light);
        position: absolute;
        top: 100%; /* Sits directly below the navbar */
        left: 0;
        padding: 0;
        margin: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    /* Toggled by the JavaScript click event */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
}

/* Hero */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero-bg.jpg') no-repeat center center/cover;
    height: 80vh; 
    display: flex; 
    align-items: center; 
    text-align: center; 
    color: #fff;
}
.btn-main { 
    background: var(--primary); 
    padding: 12px 25px; 
    text-decoration: none; 
    color: #000; font-weight: 
    bold; border-radius: 5px; 
    margin-top: 10px; 
}
.hero-btns {
    margin-top: 20px;
}

/* Grids */
.services-grid, .project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.service-card { 
    background: var(--light); 
    padding: 30px; 
    text-align: center; 
    border-bottom: 5px solid var(--primary); 
}
.service-card i { 
    font-size: 3rem; 
    color: var(--dark); 
    margin-bottom: 15px; 
}

.placeholder-img { 
    background: #ddd; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
}

.project-item-link {
    padding: 3rem;
    text-align: center;
    align-self: center;
    font-weight: bold;
    font-size: large;
    margin-top: 10px;
}

/* Form */
#contact-form { 
    display: flex; 
    flex-direction: column; 
    max-width: 600px; 
    margin: auto; 
}
#contact-form input, #contact-form select, #contact-form textarea { 
    padding: 10px; 
    margin-bottom: 15px; 
    border: 1px solid #ccc; 
}

/* Footer */
.footer {
    background: var(--dark); 
    color: #fff; 
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}
.footer h3, .footer h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li a {
    color: #ccc;
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}