/* Service Item Styles */
.service-item {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-color);
    background-color: white;
    margin-bottom: 1rem;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Residential Service Item Background Images */
/* Home Theaters - 1st item */
#residential-services .service-item:nth-child(1) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#residential-services .service-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/home-theater-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Whole-home Audio - 2nd item */
#residential-services .service-item:nth-child(2) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#residential-services .service-item:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/whole-home-audio-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Lighting control - 3rd item */
#residential-services .service-item:nth-child(3) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#residential-services .service-item:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/lighting-control-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Surveillance cameras - 4th item */
#residential-services .service-item:nth-child(4) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#residential-services .service-item:nth-child(4)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/surveillance-camera-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Reliable networks - 5th item */
#residential-services .service-item:nth-child(5) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#residential-services .service-item:nth-child(5)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/networking-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Low-voltage wiring - 6th item */
#residential-services .service-item:nth-child(6) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#residential-services .service-item:nth-child(6)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/low-voltage-wiring-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Commercial Service Item Background Images */
/* Networking - 1st item */
#commercial-services .service-item:nth-child(1) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#commercial-services .service-item:nth-child(1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/networking-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Multi-zone Audio - 2nd item */
#commercial-services .service-item:nth-child(2) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#commercial-services .service-item:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/multi-zone-audio-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Video - 3rd item */
#commercial-services .service-item:nth-child(3) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#commercial-services .service-item:nth-child(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/video-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Surveillance - 4th item */
#commercial-services .service-item:nth-child(4) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#commercial-services .service-item:nth-child(4)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/surveillance-camera-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Lighting Control - 5th item */
#commercial-services .service-item:nth-child(5) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#commercial-services .service-item:nth-child(5)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/lighting-control-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Low-Voltage Wiring - 6th item */
#commercial-services .service-item:nth-child(6) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#commercial-services .service-item:nth-child(6)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/low-voltage-wiring-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Point-of-Sale (POS) Integration - 7th item */
#commercial-services .service-item:nth-child(7) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#commercial-services .service-item:nth-child(7)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/pos-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 5G Internet Failover - 8th item */
#commercial-services .service-item:nth-child(8) {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#commercial-services .service-item:nth-child(8)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/services/5g-failover-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover effect for all service items */
.service-item:hover::before {
    transform: scale(1.05);
    opacity: 0.3;
}

/* Process Steps Layout and Styling */
.process-steps {
    margin-top: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.step:nth-child(1) {
    background: linear-gradient(135deg, #f8f9fa, rgba(94, 156, 206, 0.1));
}

.step:nth-child(2) {
    background: linear-gradient(135deg, rgba(94, 156, 206, 0.1), rgba(94, 96, 206, 0.1));
}

.step:nth-child(3) {
    background: linear-gradient(135deg, rgba(94, 96, 206, 0.1), rgba(94, 156, 206, 0.1));
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Dark mode styles for steps */
body.dark-mode .step:nth-child(1) {
    background: linear-gradient(135deg, #1e1e1e, rgba(94, 156, 206, 0.2));
}

body.dark-mode .step:nth-child(2) {
    background: linear-gradient(135deg, rgba(94, 156, 206, 0.2), rgba(94, 96, 206, 0.2));
}

body.dark-mode .step:nth-child(3) {
    background: linear-gradient(135deg, rgba(94, 96, 206, 0.2), rgba(94, 156, 206, 0.2));
}

body.dark-mode .step {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .step:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
