:root {
--dmsGreenV1  : #C1E1C1;
--dmsGreenV2 : #5f6547;
--dmsDarkGreen :#313423;
}

.home-automation-hero {
    height: 950px;
    width: 100vw;
    display: flex;
    /* margin-top: 114px; */
    box-sizing: border-box;
    position: relative;
    align-items: center;
    justify-content: center;
}

.home-automation-hero.individual {
    height: 600px;
}

.home-automation-hero .content {
    padding: 120px 80px 80px 80px;
    width: 100%;
    height: 100%;
    z-index: 2;
    align-items: center;
    display: grid;
    max-width: 1760px;
    box-sizing: border-box;
    position: absolute;
    grid-template-columns: 1fr 1fr;
}
.home-automation-hero.individual .content {
    display: flex;
}

.home-automation-hero .slideshow {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    top: 0;
    left: 0;
}

.home-automation-hero .still {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    top: 0;
    left: 0;
}

.home-automation-hero .still .slide{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: scale(1.01);
    transition: opacity 400ms ease-in-out, transform 400ms ease-in-out;
    will-change: opacity, transform;
    pointer-events: none; 
    z-index: 1;
}

.home-automation-hero .still .overlay {
    background-color: color-mix(in srgb, var(--black) 25%, transparent);
    z-index: 2;
    position: absolute;
    inset: 0;
}

.home-automation-hero .still .slide.one {
    background-image: url(../images/home-automation-one.webp);
    background-position: top 0% center;
    background-size: cover;
}

.home-automation-hero .still .slide.two {
    background-image: url(../images/home-automation-two.webp);
    background-position: center center;
    background-size: cover;
}

.home-automation-hero .still .slide.three {
    background-image: url(../images/home-automation-three.webp);
    background-position: center center;
    background-size: cover;
}

.home-automation-hero .still .slide.four {
    background-image: url(../images/home-automation-four.webp);
    background-position: center center;
    background-size: cover;
}

.home-automation-hero .still .slide.five {
    background-image: url(../images/home-automation-five.webp);
    background-position: center center;
    background-size: cover;
}

.home-automation-hero .still .slide.six {
    background-image: url(../images/home-automation-six.webp);
    background-position: center center;
    background-size: cover;
}

.home-automation-hero .still .slide.seven {
    background-image: url(../images/home-automation-seven.webp);
    background-position: center center;
    background-size: cover;
}



.home-automation-hero .slideshow .slide{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: 105%;
    transition: opacity 400ms ease-in-out, transform 400ms ease-in-out;
    will-change: opacity, transform;
    pointer-events: none; 
    z-index: 1;
    box-sizing: border-box;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-automation-hero .slideshow .overlay {
    background-color: color-mix(in srgb, var(--black) 25%, transparent);
    z-index: 2;
    position: absolute;
    inset: 0;
}


.home-automation-hero .slideshow .slide.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background-size: 100%;
}

.home-automation-hero .slideshow .slide.one {
    background-image: url(../images/home-automation-one.webp);
    background-position: top 0% center;
    background-size: cover;
}

.home-automation-hero .slideshow .slide.two {
    background-image: url(../images/home-automation-two.webp);
    background-position: top 0% center;
    background-size: cover;
}

.home-automation-hero .slideshow .slide.three {
    background-image: url(../images/home-automation-three.webp);
    background-position: top 0% center;
    background-size: cover;
}

.home-automation-hero .slideshow .slide.four {
    background-image: url(../images/home-automation-four.webp);
    background-position: top 0% center;
    background-size: cover;
}

.home-automation-hero .slideshow .slide.five {
    background-image: url(../images/home-automation-five.webp);
    background-position: top 0% center;
    background-size: cover;
}

.home-automation-hero .slideshow .slide.six {
    background-image: url(../images/home-automation-six.webp);
    background-position: top 0% center;
    background-size: cover;
}

.home-automation-hero .slideshow .slide.seven {
    background-image: url(../images/home-automation-seven.webp);
    background-position: center;
    background-size: cover;
}

.home-automation-hero .floating-menu {
    position: relative;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 25px;
    margin-left: 80px;
    display: grid;
    width: fit-content;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(7, 1fr);
    color: var(--black);
    align-content: center;
    text-align: center;
    justify-items: center;
    font-weight: 500;
    font-size: var(--normal-text);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.home-automation-hero .floating-menu .menu-item {
    padding: 25px 80px;
    border-bottom: 1px solid color-mix(in srgb, var(--dmsGreenV2) 50%, transparent);
    width: 100%;
    transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}

@media (prefers-reduced-motion: reduce){
  .home-automation-hero .slideshow .slide{ transition: none; transform: none; }
}

.home-automation-hero .floating-menu .menu-item.seven {
    border-bottom: none;
}

.home-automation-hero .floating-menu .menu-item:hover {
    background-color: var(--dmsGreenV2);
    color: var(--white);
}

.home-automation-hero .floating-menu .menu-item.one {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;  
}

.home-automation-hero .floating-menu .menu-item.seven {
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.home-automation-hero .floating-menu .menu-item.one:hover {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    background-color: var(--dmsGreenV2);
    color: var(--white);
}

.home-automation-hero .floating-menu .menu-item.seven:hover {
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    background-color: var(--dmsGreenV2);
    color: var(--white);
}

.home-automation-hero .floating-menu .menu-item.active {
    background-color: var(--dmsDarkGreen);
    color: var(--white);
}

.home-automation-hero .floating-menu .menu-item.one.active {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.home-automation-hero .floating-menu .menu-item.seven.active {
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.home-automation-hero .description {
    flex: 1;
    max-width: 800px;
    margin-left: auto;
    position: relative;
    display: flex;
    flex-flow: column;
    transition: all 0.3s ease-in-out;
}

.home-automation-hero .description .text {
    display: none;
}

.home-automation-hero .description .text.active {
    display: flex;
    flex-flow: column;
}

.home-automation-hero .description .text .heading-one-white {
    font-size: 3em;
    font-weight: 600;
}

.home-automation-hero .description .text .body-text {
    font-size: 1.25em;
    font-weight: 300;
}

.home-automation-body .sect {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    overflow: hidden;
}

.home-automation-body .sect.individual {
    gap: 80px;
}

.home-automation-body .sect.individual .description {
    padding: 40px;
    background-color: color-mix(in srgb, var(--dmsGreenV2) 25%, transparent);
    align-items: center;
    justify-content: center;
}

.home-automation-body .sect.individual .description .design-studio-body-text{
    margin-bottom: 0;
}

.home-automation-body .sect.sect3 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    flex-flow: column;
}

.dms-design-body.home-automation-body {
    padding-top: 0;
    display: flex;
}

.home-automation-hero.individual .logo, .home-automation-body .sect .logo{
    max-height: 120px;
    width: 100%;
    display: flex;
    align-items: center; 
    overflow: hidden;
}

.home-automation-hero.individual .logo img, .home-automation-body .sect .logo img{
    height: 100%;
    width: auto;
    max-width: 120px;
    position: relative;
    object-fit: contain;
}

.dms-design-body.home-automation-body .sect1 .image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dms-design-body.home-automation-body .sect2 .image {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.dms-design-body.home-automation-body .sect3 .service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows: repeat(2,1fr);
    width: 100%;
    gap: 40px;
    position: relative;
}

.dms-design-body.home-automation-body .sect3 .service-grid a {
    text-decoration: none;
}

.dms-design-body.home-automation-body .sect3 .service-grid .service {
    height: 340px;
    background-color: rgba(0, 0, 0, 0.075);
    width: 100%;
    border-radius: 7.5%;
    padding: 40px;
    box-sizing: border-box;
    scale: 1;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.dms-design-body.home-automation-body .sect3 .service-grid .service .content {
    z-index: 3;
}

.dms-design-body.home-automation-body .sect3 .service-grid .service .content .heading-two {
    text-align: center;
}

.dms-design-body.home-automation-body .sect3 .overlay {
    background-color: color-mix(in srgb, var(--black) 1.5%, transparent);
    z-index: 1;
    position: absolute;
    inset: 0;
    border-radius: 7.5%;
}


.dms-design-body.home-automation-body .sect3 .service-grid .service1 {
    background-image:url(../images/home-automation-one.webp);
}

.dms-design-body.home-automation-body .sect3 .service-grid .service2 {
    background-image:url(../images/audiosound.webp);
    background-position: center right;
}
.dms-design-body.home-automation-body .sect3 .service-grid .service3 {
    background-image:url(../images/lighting.webp);
}
.dms-design-body.home-automation-body .sect3 .service-grid .service4 {
    background-image:url(../images/curtains.webp);
}
.dms-design-body.home-automation-body .sect3 .service-grid .service5 {
    background-image:url(../images/home-automation-five.webp);
}
.dms-design-body.home-automation-body .sect3 .service-grid .service6 {
    background-image:url(../images/heater.webp);
}

.dms-design-body.home-automation-body .sect3 .service-grid .service7 {
    background-image:url(../images/home-automation-seven.webp);
}

.dms-design-body.home-automation-body .sect3 .service-grid .service8 {
    background-color: transparent;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    padding: 80px;
}


.dms-design-body.home-automation-body .sect3 .service-grid .service:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: scale(.95);
}

@media screen and (max-width:1400px){
    .home-automation-hero .floating-menu {
        margin-left: 0;
    }
    .home-automation-hero .content {
        justify-items: center;
        gap: 40px;
    }
    .home-automation-body .sect {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .home-automation-body .sect .image {
        order: -1;
        max-height: 500px;
    }
    .home-automation-body .sect.individual .image {
        order: -1;
        width: 100%;
    }
    .home-automation-body .sect .image img {
        height: 100%;
        max-width: 500px;
    }
    .home-automation-body .sect.individual .image img {
        height: 100%;
        width: 100%;
    }
    .home-automation-body .sect.individual .description {
        background-color: transparent;
        padding: 0;
    }
    .home-automation-body .sect.individual {
        gap: 40px;
    }
    .home-automation-body .sect .description .design-studio-sub-section, .home-automation-body .sect .description p.cursive-sub-header, .home-automation-body .sect .description .design-studio-body-text{
        text-align: center;
        justify-content: center;
    }
    .home-automation-hero.individual .logo, .home-automation-body .sect .logo {
        justify-content: center;
    }
    .dms-design-body.home-automation-body .sect2 .image {
    justify-content: center;
    }
    .dms-design-body.home-automation-body .sect3 .service-grid .service {
        height: 250px;
    }
    .dms-design-body.home-automation-body .sect3 .service-grid .service8 {
        padding: 40px;
    }
}

@media screen and (max-width:1300px){
    .dms-design-body.home-automation-body .sect3 .service-grid {
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: repeat(2,1fr);
    }
}

@media screen and (max-width:1120px){
    .dms-design-body.home-automation-body .sect3 .service-grid {
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(4,1fr);
    }
    .dms-design-body.home-automation-body .sect3 .service-grid .service8 {
    padding: 80px;
    }
}

@media screen and (max-width:1030px){
    .home-automation-hero {
        height: auto;
    }
    .home-automation-hero .description .text .body-text {
        text-align: center;
    }
    .home-automation-hero .content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        position: relative;
        padding-top: 180px;
        height: fit-content;
        gap: 60px;
    }
    .home-automation-hero .floating-menu {
        width: 100%;
    }
    .home-automation-hero .content .description {
        max-width: none;
        order: -1;
        text-align: center;
    }
}

@media screen and (max-width:900px){
    .home-automation-body .sect.sect3, .home-automation-body .sect {
        padding: 0;
        width: 100%;
        margin-bottom: 40px;
    }
    .home-automation-body .sect .description .design-studio-body-text {
        display: flex;
    }
    .home-automation-body .sect .image img {
        max-width: none;
        width: 100%;
    }
}

@media screen and (max-width:660px){
    .dms-design-body.home-automation-body .sect3 .service-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(7,1fr);
        gap: 25px;
    }
    .dms-design-body.home-automation-body .sect3 .service-grid .service {
        max-height: 150px;
        border-radius: 15px;
    }
    .dms-design-body.home-automation-body .sect3 .overlay {
        border-radius: 15px;
    }
    .dms-design-body.home-automation-body .sect3 .service-grid .service8 {
        display: none;
    }
    .dms-design-body.home-automation-body .sect3 .service-grid .service:hover {
        transform: scale(1);
    }
}

@media screen and (max-width:600px){
    .home-automation-hero .floating-menu {
        display: none;
    }
    .home-automation-hero .content {
        grid-template-rows: auto;
        padding: 180px 40px 40px 40px;
    }
    .home-automation-hero {
        min-height: 750px;
    }
}

