/* CSS Reset */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'ubuntu';
    background-color: rgba(239, 239, 239, 0.889);
}



/*
==========
Header css
==========
*/

header {

    width: 100%;
    background-color: rgb(255, 255, 255);

    position: fixed;
    top: 0;
    z-index: 1000;
    /* Ensure header is on top of other content */
}

.nav {
    position: relative;
    /* Ensure relative positioning for child elements */
}

#logo {
    float: left;
    height: 69px;
    width: auto;
    margin-top: 5px;
    margin-left: 10px;
}

#search-btn {
    float: left;
    height: 40px;
    width: auto;
    margin-left: 10px;
    margin-top: 20px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
    float: right;
    /* Align navigation to the right */
}

ul li {
    display: inline-block;
    /* Display list items inline */
    margin-right: 50px;
    margin-top: 25px;
}

ul li a {
    text-decoration: none;
    font-size: 20px;
    color: rgb(0, 0, 0);
}

ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: rgb(130, 130, 130);
    position: relative;
    left: 0;
    bottom: -3px;
    transition: width 0.3s ease;
}

ul li a:hover {
    color: rgb(130, 130, 130);
}

ul li a:hover::after {
    width: 100%;
}
#search {
    margin-left: 20px;
    height: 40px;
    cursor: pointer;
}
.search-container {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 0;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
    background-color: #f1f1f1;
    padding: 5px;
    border-radius: 5px;
}

.search-container input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.search-container {
    height: 60px;
    position: absolute;
    top: 90px;
    left: 20px;
    width: 0px;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
    background-color: #4d4d4d;
    padding: 5px;
    border-radius: 5px;
}

.search-container input {
    float: left;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#search-button{
   float: left;
   height: 40px;
   width: 60px;
   margin-top: 20px;
   margin-left: 5px;
}

/*
menu toogle

*/
/* Menu Toggle Button */
.menu-toggle {
    display: none;
    font-size: 18px;
    cursor: pointer;

}

@media (max-width: 858px) {
    .menu-toggle {
        display: inline-block;
        font-size: 6vh;
        float: right;
        padding-top: 5px;
    }

    .nav-links {
        display: none;
    }
}

/* Sidebar CSS */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    z-index: 2000;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 20px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#login {
    margin-top: 16px;
    margin-right: 30px;
    float: right;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('../img/login.jpeg');
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

#login {
    margin-top: 16px;
    margin-right: 30px;
    float: right;
    display: inline-block;
    width: 40px;
    /* Adjust width as needed */
    height: 40px;
    /* Adjust height as needed */
    background-image: url('login.jpeg');
    /* Default image */
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
    /* Smooth transition */
}

#login:hover {
    background-image: url('loginh.png');
    /* Hover image */
}

/*
=======
TOPICS
=======
*/

#topics {
    height: 6vh;
    width: 100%;
    background-color: rgb(235, 235, 235);
    margin-top: var(--header-height);
}

.topics-a {
    text-decoration: none;
    margin-left: 4%;
    margin-top: 5px;
    color: rgb(66, 66, 66);
    font-size: 1.1vw;
    float: left;

}

#topics a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: rgb(78, 78, 78);
    position: relative;
    left: 0;
    bottom: -3px;
    transition: width 0.3s ease;
}

#topics a:hover {
    color: rgb(66, 66, 66);
}

#topics a:hover::after {
    width: 100%;
}

/*
==============
Main Interface
==============
*/

#main-interface {
    position: relative;

    width: 100%;
    height: auto;
    background-color: rgb(210, 210, 210);
    background-size: cover;
}

#Main-Interface-Image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    height: auto;
    /* Maintain aspect ratio */
}

#main-text {
    position: absolute;
    margin-top: 10vh;
    margin-left: 5%;
    font-size: 4vw;

    font-style: bold;

}

/*
============
Pin Products
============
*/

.pin-product {
    height: 30vw;
    width: 22.5%;
    background-color: rgb(255, 255, 255);
    float: left;
    margin-top: 2.5vw;
    margin-left: 2%;
    transition: transform 0.3s ease;
}

#pin-product1 {
    background-image: url('sorotec.jpg');
    background-size: cover;
    background-position: center;
}

#pin-product2 {
    background-image: url('Schneider-Contactor.jpg');
    background-size: cover;
    background-position: center;
}

#pin-product3 {
    background-image: url('omron-sensor.png');
    background-size: cover;
    background-position: center;
}

#pin-product4 {
    background-image: url('omron-timer.webp');
    background-size: cover;
    background-position: center;
}

#pin-product5 {
    background-image: url('breaker3.png');
    background-size: cover;
    background-position: center;
}

#pin-product6 {
    background-image: url('siemens-b1.png');
    background-size: cover;
    background-position: center;
}

#pin-product7 {
    background-image: url('omron-relay.jpg');
    background-size: cover;
    background-position: center;
}

#pin-product8 {
    background-image: url('breaker1.JPG');
    background-size: cover;
    background-position: center;
}

#pin-product1-p {
    font-size: 50px;
    margin-top: 50px;
    margin-left: 50px;
    text-shadow: 1px 1px 15px rgb(12, 11, 11);
}

#pin-product-p2 {
    font-size: 50px;
    margin-top: 50px;
    margin-left: 50px;
    text-shadow: 1px 1px 15px rgb(12, 11, 11);
}

a:hover .pin-product {
    transform: scale(1.05);
}

/*
=============
About Service
=============
*/

#service {
    width: 92.5%;
    height: 20vh;
    background-color: rgb(220, 220, 220);
    float: left;
    margin-top: 5vw;
    margin-left: 3.7%;

}

/*
=======
Brands
=======
*/
#brands {

    margin-top: 3vh;
    background-color: rgb(255, 255, 255);
    width: 92.5%;
    float: left;
    margin-left: 3.7%;
}

#brands-p {

    font-size: 4vw;
    margin-top: 2vh;
    text-align: center;
}

.brand-divs {
    height: 8vw;
    width: 15%;
    background-color: rgb(255, 255, 255);
    float: left;
    margin-left: 4%;
    margin-top: 2vh;
    border: 1px solid #d1d1d1;
    margin-bottom: 5vh;

}

.brand-img {
    height: 100%;
    width: 100%;
}
/*
============
Send Request
============
*/
.Send-Request{
    width: 100%;
    float: left;
    margin-top: 20px;
    
}
#Send-Request1{
    height: 80%;
    width: 70%;
    margin-left: 15%;
    background-color: #ffffff;
    float: left;
    border-radius: 20px;
    
}
.form-container {

    background: #ffffff;
    padding: 20px;
    border-radius: 30px;
   
    width: 70%;
    height: 90%;
    margin-left: 13%; 
    overflow: hidden;
}
.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 15px;
    margin-left: 5%;
}
.form-group label {
    display: block;
    margin-bottom: 3px;
}
.form-group input,
.form-group textarea {
    width: 90%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 5px;
}
.form-group textarea {
    resize: none;
}
.form-group .error {
    color: red;
    font-size: 12px;
}
.btn {
    width: 90px;
    padding: 10px;
    border: none;
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    border:1px solid #007BFF;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 40%;
}
.btn:hover {
    background-color: #ffffff;
    border:1px solid #007BFF;
    color: #007BFF;

}
#Map{
    height: 50vh;
    width: 45%;
    margin-left: 2%;
    background-color: #fff;
    float: left;
    border-radius: 20px;
    margin-left: 25%;
    margin-top: 20px;
    transition: transform 0.3s ease;
}
#map-img{
    background-image: url('map.png');
    height: 70%;
    width: 100%;
    transition: transform 0.3s ease;
    
}
a:hover #map-img {
    transform: scale(1.1);
    border-radius: 15px;
}
#map-h{
    color: #333;
    text-align: center;
    font-size: 30px;
}
/*
=========
Whats app
=========
*/
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button a img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.whatsapp-button a img:hover {
    transform: scale(1.3);
}
/*
======== 
Footer
======= 
*/
#footer {
    margin-top: 20px;
    float: inline-start;
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    max-width: 2000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 100px;
}

.footer-section h4 {
    margin-bottom: 10px;
}
#about-us-f a{
    color: rgb(97, 139, 208);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}
#about-us-f a:hover{
    color: white;
}

.footer-section p{
    margin-top: 8px;
}
.footer-section ul {
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #fff;
}

.quick-links {
    display: flex;
    justify-content: space-around; /* or space-between depending on the spacing you prefer */
    flex-wrap: wrap;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-right: 15px; /* Adjust as needed for spacing */
    padding: 5px 0; /* Add some padding to make them look more ordered */
}

.footer-section ul li a:hover {
    color: #8c8c8c;
}

.footer-section .social-icons {
    display: flex;
    gap: 10px;
}
.footer-section button {
    background-color: #007BFF;
    color: #fff;
    border-radius: 25px;
    border: 1px solid #007BFF;
    padding: 10px 15px;
    margin: 5px 0;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.footer-section button:hover {
    background-color: #f7f7f7;
    color: #007BFF;
    border: 1px solid #007BFF;
}


.footer-section .social-icons a img {
    width: 40px;
    height: 40px;
    border-radius: 70%;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 10px 0;
        text-align: center;
    }
}

/*
responsiveness
*/

@media (max-width: 858px) {
    body {
        font-size: 80%;
        /* reducing font size for smaller screens */

    }

    
}
@media (max-width:650px){
    #topics{
        height: 4vh;
    }
    #Map{
        width: 90%;
        margin-left: 5%;
    }
}
@media(max-width:375px){
    #logo {
        float: left;
        height: 10vh;
        width: auto;
        margin-top: 5px;
        margin-left: 10px;
    }
    #search {
        float: left;
        height: 15px;
        display: none;
        margin-left: 10px;
        margin-top: 20px;
        
    }
    #login{
        height: 30px;
        width: 30px;
    }
    .menu-toggle{
        font-size: 25px;
        padding-top: 13px;
        padding-right: 10px;
    }
    #topics{
        height: 20px;
        
    }
    #topics a{
        font-size: 1.6vw;
    }
    .search-container{
        display: none;
    }
    .btn{
        margin-left: 30%;
    }
    .form-group{
        margin-left: 0;
    }
    #Send-Request1{
        height: 400px;
        width: 100%;
        margin-left: 10px;
    }
    .form-container {
        margin-left: 0;
    }
}
