html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   font-family: "Jost", sans-serif;
   min-height: 100vh;
   overflow-x: hidden;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: absolute;
    top: 0;
    background: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, .5);
    z-index: 900;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;
}

.navbar-logo {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.navbar-logo img {
    width: 50px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
    background: #fff;
}

.navbar-container .navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-container .navbar-menu li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 3px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.7s ease;
    white-space: nowrap;
}

.navbar-container .navbar-menu li a:hover, 
.navbar-container .navbar-menu li a.active {
    color: #162530;
    background: rgba(188, 212, 229, 0.8);
    border: 2px solid #fff;
}

.navbar-toggle {
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
    display: none ;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 880px) 
{
    .navbar {
        backdrop-filter: blur(10px);
    }

    .navbar-logo{
         color: #fff;
    }

    .navbar-container .navbar-menu 
    {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, .5);
        backdrop-filter: blur(10px);
    }

    .navbar-container .navbar-menu.active {
        display: flex;
        background: rgba(0, 0, 0, .75);
        backdrop-filter: blur(10px);
    }

    .navbar-toggle {
        display: block;
        z-index: 1000;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }   

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }   

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }   

    .banner-msg {
        padding-top: 2vh;
    }
}

@media (max-width: 480px) 
{
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-logo {
        font-size: 1.5rem;
    }

    .navbar-container .navbar-menu {
        width: 200px;
        padding: 5rem 1rem;
    }

    .navbar-container .navbar-menu li a {
        font-size: 1.1rem;
        padding: 3px 15px;
    }
}

/*Main body: first banner section*/
.banner {
    height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    background: url('./images/db_banner.jpg') no-repeat center center/cover;
}

.banner-msg {
    width:auto;
    height: 40%;
    background: rgba(0, 0, 0, .5);
    border-radius: 10px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.banner-header {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.banner-subhead {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.5;
}


/*main body: services section*/

.services {
    width: 100%;
    height: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.services-header, .electrical_header, .solar_header, .fault-header, 
.maintain-header, .emergency-header, .about-header {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: left;
    margin: 4rem 0 2rem 0;
    color: #1e1e1f;
    padding-left: 5%;
    padding-right: 5%;
}

.services h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 1rem;
    color: #545455;
}

.divider {
    font-size: 1rem;
    text-align: center;
    color: #333;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
    text-wrap: balance;
    text-align: left;
}

.services .more {
    display: block;
    margin: 2rem ;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: black;
    background-color: rgba(188, 212, 229, 0.8);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.services .more:hover {
    background-color: #2370ff;
    color: #fff;
}

.services .more a {
    text-decoration: none;
    color: inherit;
}

.faq {
    width: 100%;
    height: auto;
    background-color: #000;
    display: flex;
    flex-direction: column;
    padding-bottom: 4rem;
    color: #fff;
}

.faq-header {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: left;
    margin: 4rem 0 2rem 0;
    color: #fff;
    padding-left: 5%;
    padding-right: 5%;
}

.faq-subhead {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2%;
}

.faq-h3 {
    color: #fff;
    padding-bottom: 2%;
    padding-top: 2%;
}

.faq-p {
    color: #fff;
    padding-bottom: 2%;
}

.footer {
    width: 100%;
    height: 60px;
    background-color: #162530;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(0.7rem, 2vw, 1rem);
}

.socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-left: 1rem;
    width: auto;
    height: 100%;
    background: rgba(188, 212, 229, 0.8);
}

.whatsapp {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 30vh;
    box-shadow:5px 5px 5px 5px rgba(0, 0, 0, 0.6);
    z-index: 900;
    margin-left:80%;
    border-radius: 50%;
}

.whatsapp a {
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.whatsapp a img {
    width: inherit;
    height: inherit;
}

.whatsapp:hover {
    width: 65px;
    height: 65px;
    box-shadow: 5px 5px 5px 5px rgb(0, 0, 0, 0.8);
    transition: .4s ease-in-out;
}

.email {
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 20vh;
    box-shadow:5px 5px 5px 5px rgb(0, 0, 0, 0.8);
    z-index: 900;
    margin-left:80%;
    border-radius: 5px;
    background-color: #fff;
}

.email:hover {
    width: 65px;
    height: 65px;
    box-shadow: 5px 5px 5px 5px rgb(0, 0, 0, 0.8);
    transition: .4s ease-in-out;
}


.footer a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a img {
    width: 50px;
    height: 100%;
}

.pic-carousel {
    width: 100%;
    overflow-x: auto;
    display: flex;
    margin: 3rem auto;
    gap: 1rem;
    position: relative;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    anchor-name: --carousel;
    scroll-marker-group: before;
}

.pic-carousel::scroll-marker-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.card::scroll-marker {
    content: '';
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(57, 63, 148, 0.3);
}

.card::scroll-marker:target-current {
    background: rgb(0, 1, 12);
}

.pic-carousel::scroll-button(right), .pic-carousel::scroll-button(left) {
    content: '>';
    border: none;
    background: rgb(16, 16, 87);
    color: #fff;
    font-family: Consolas, monospace;
    font-size: 2rem;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate: -100%;
}

.pic-carousel::scroll-button(left) {
    content: '<';
    position-area: left center;
    translate: 100%;
}

.pic-carousel::scroll-button(right):disabled, .pic-carousel::scroll-button(left):disabled {
    background: rgba(16, 16, 87, 0.5);
    cursor: auto;
}

.pic-carousel::-webkit-scrollbar {
    display: none;
}

.pic-carousel .card {
    scroll-snap-align: start;
    flex: 0 0 20rem;
    height: 20rem;
    margin: 0 ;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 500px) 
{
    .pic-carousel .card {
        flex: 0 0 100%;
        height: 15rem;
    }
}