/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.navbar {
    background-color: #333;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.navbar .brand {
    color: #fff;
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar .brand .subtitle {
    font-size: 0.7em;
    color: #ff6b35;
    font-weight: 400;
    margin-top: 5px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    transition: right 0.3s ease;
}

.nav-menu li {
    display: inline;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #ff6b35;
}

/* Hero Section Styles */
.hero {
    background-image: url('roofing_780_385.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    margin-top: 60px; /* To offset the fixed navbar */
    text-align: center;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.hero h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.btn-primary {
    background-color: #ff6b35;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #e65b2c;
}

/* Services Section Styles */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: 700;
}

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

.service-item {
    background-color: #f1f1f1;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 2.5em;
    color: #ff6b35;
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}

.service-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* About Section Styles */
.about {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.about h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

.about p {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #666;
}

/* Contact Section Styles */
.contact {
    padding: 60px 0;
    background-color: #fff;
    text-align: center; /* Center the contact content */
}

.contact h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

.contact p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
}

.contact-info {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.contact-info div {
    text-align: center;
    max-width: 250px;
}

.contact-info i {
    font-size: 2em;
    color: #ff6b35;
    margin-bottom: 10px;
}

.contact-info p {
    font-size: 1.1em;
    color: #333;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
    font-size: 1em;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff6b35;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    font-size: 1.8em;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    margin-right: 15px; /* Adjust margin to bring it more to the right */
}

/* Hide nav menu by default on smaller screens */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    transition: right 0.3s ease;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0; /* Reduced padding for smaller screens */
    }

    .hero h1 {
        font-size: 2em; /* Reduced font size for smaller screens */
    }

    .hero p {
        font-size: 1em; /* Reduced font size for smaller screens */
    }

    .container {
        width: 95%; /* More condensed content for smaller screens */
    }

    .contact-info {
        flex-direction: column; /* Ensure contact info is vertical */
        gap: 20px;
        text-align: center; /* Center text for smaller screens */
    }

    .nav-menu {
        display: flex; /* Changed to flex for transition */
        flex-direction: column;
        background-color: #333; /* Match the navbar color */
        width: 200px; /* Width of the menu */
        position: fixed; /* Fixed position on the right */
        top: 0; /* Start from the very top */
        right: -250px; /* Off-screen by default */
        height: 50%; /* Slightly shorter to not cover too much of the screen */
        padding-top: 50px; /* Increase top padding to create more space between icon and links */
        z-index: 1000; /* Ensure it appears on top */
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5); /* Add a shadow for better visibility */
        transition: right 0.3s ease; /* Smooth transition */
        border-radius: 0 0 10px 10px; /* Rounded bottom corners for a better look */
    }

    .nav-menu.show {
        right: 0; /* Slide in from the right */
    }

    .nav-menu li {
        text-align: center;
        margin: 10px 0; /* Less margin to bring links closer to the top */
        padding: 10px;
    }

    .nav-menu li a {
        color: white;
        text-decoration: none;
        font-size: 1.2em;
    }

    .burger-menu {
        display: block; /* Show burger menu on smaller screens */
        position: absolute;
        top: 15px;
        right: 10px; /* Keep it closer to the top right */
    }
}

/* Overlay Styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.overlay.show {
    display: block;
}
