body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style-type: none;
    display: flex;
    margin-left: 20px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4CAF50;
}

.nav-links a.active {
    color: #4CAF50;
    font-weight: bold;
}

main {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

#home {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.background-slideshow {
    width: 100vw;
    height: 60vh;
    position: relative; 
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.background-slideshow div {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.background-slideshow div.active {
   opacity: 1;
}

.background-slideshow div::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-size: cover;
   background-position: center;
   filter: blur(10px);
   opacity: 0.5;
   z-index: -1;
}

.background-slideshow div:nth-child(1)::before {
   background-image: url('https://n2asolutions.neocities.org/Diagnose.jpg');
}

.background-slideshow div:nth-child(2)::before {
   background-image: url('https://n2asolutions.neocities.org/Repair.jpg');
}

.background-slideshow div:nth-child(3)::before {
   background-image: url('https://n2asolutions.neocities.org/Installation.jpg');
}

.home-content {
   background-color: rgba(255,255,255,0.9);
   padding: 20px;
   border-radius: 10px;
   margin-top: 20px;
   max-width: 800px;
   width: 90%;
}

#home h1, #home h2, #home p, #home ul {
   color: #333;
}

#home ul {
   list-style-type: none;
   padding-left: 0;
}

section {
   margin-bottom: 40px;
}

h1, h2, h3 {
   color: #333;
}

ul {
   padding-left: 20px;
}

#review-display {
   margin-bottom: 20px;
}

#review-form, #contact-form {
   display: flex;
   flex-direction: column;
   max-width: 500px;
   margin: 0 auto;
}

input, textarea {
   margin-bottom: 10px;
   padding: 10px;
   border: 1px solid #ddd;
   border-radius: 4px;
}

button {
   background-color: #4CAF50;
   color: white;
   padding: 10px;
   border: none;
   border-radius: 4px;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

button:hover {
   background-color: #45a049;
}

footer {
   background-color: #333;
   color: white;
   text-align: center;
   padding: 1rem;
}

#service-areas {
    margin-bottom: 40px;
}

.area-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    justify-content: space-between;
}

.area-text {
    flex: 1;
    padding-right: 20px;
}

.area-text h3 {
    margin-top: 0;
}

.area-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

.area-container:nth-child(3) {
    align-items: center;
}

.area-container:nth-child(3) .area-image {
    width: 300px;
    height: 300px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 10px;
        width: calc(100% - 20px);
        box-sizing: border-box;
        padding: 5px 10px;
        border-radius: 5px;
        background-color: #333;
        box-shadow: none;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: auto;
        margin-top: 10px;
        margin-left: 0;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    main {
        padding-top: 120px;
    }

    section {
        padding-top: 120px;
        margin-top: -120px;
    }

    .background-slideshow {
        height: 30vh;
    }

    .area-container {
        flex-direction: column;
        align-items: center;
    }

    .area-text {
        padding-right: 0;
        text-align: center;
        margin-bottom: 15px;
    }

    .area-image {
        margin-top: 15px;
    }
}