/* General Styles */
:root {
    --primary-color: #6A057F; /* Deep Purple */
    --secondary-color: #892CDC; /* Lighter Purple */
    --accent-color: #CCF381; /* Bright Green */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #ffffff;
    --bg-dark: #222222;
    --gradient-1: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-2: linear-gradient(45deg, var(--accent-color) 0%, #6A057F 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif; /* Modern font */
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Header and Navigation */
header {
    background: var(--gradient-1);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.burger div {
    width: 30px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--gradient-2);
    color: var(--text-light);
    text-align: center;
    padding: 120px 20px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(50px);
}

.hero::before {
    width: 300px;
    height: 300px;
    background-color: var(--accent-color);
    top: -100px;
    left: -100px;
}

.hero::after {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    bottom: -150px;
    right: -150px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.8rem;
    max-width: 700px;
    font-weight: 300;
}

/* Section General Styles */
.section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-light);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.section:nth-of-type(even) {
    background-color: #f0f0f0; /* Light grey for alternating sections */
}

.section h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 15%;
    border-radius: 2px;
}

.section p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-dark);
}

.section ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto 30px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.section ul li {
    background: var(--secondary-color);
    color: var(--text-light);
    margin: 10px;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.section ul li:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
}

/* Blog Article Section */
.blog-article {
    padding: 60px 20px;
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    line-height: 1.8;
    text-align: left;
    border: 1px solid #eee;
}

.blog-article h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.2;
}

.blog-article h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
}

.blog-article h3 {
    font-size: 1.7rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-article p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.blog-article ul {
    list-style: disc;
    margin-left: 30px;
    margin-bottom: 20px;
    text-align: left;
}

.blog-article ul li {
    margin-bottom: 10px;
    color: var(--text-dark);
    background: none;
    box-shadow: none;
    padding: 0;
    font-weight: normal;
}

.blog-article a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.blog-article a:hover {
    text-decoration: underline;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    min-height: 250px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: 'Project';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item:nth-child(1)::before { content: 'Residential'; }
.portfolio-item:nth-child(2)::before { content: 'Commercial'; }
.portfolio-item:nth-child(3)::before { content: 'Landscape'; }

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(106, 5, 127, 0.2);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 80px;
    }

    .nav-links li {
        opacity: 0;
        margin: 25px 0;
    }

    .burger {
        display: flex;
        position: relative;
        z-index: 1001; /* Ensure burger is above nav-links */
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .blog-article {
        padding: 30px 15px;
        margin: 20px auto;
    }

    .blog-article h1 {
        font-size: 2rem;
    }

    .blog-article h2 {
        font-size: 1.8rem;
    }

    .blog-article h3 {
        font-size: 1.4rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Burger Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}


