/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    /* padding-top: 5rem; */
    padding-top: 1rem;
}

.pb-6 {
    padding-bottom: 1rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
}

/* .btn-hero {
    border: 2px solid gray;
    background-color: gray;
    margin-top: 35%;
    margin-left: 33%;
    color: #44382c;
    border-radius: 7px;
    box-shadow: 3px 3px 3px #44382c;

}

.btn-hero:hover {
    color: white;
    background-color: #575553;
    border: 2px solid #575553;
    box-shadow: 3px 3px 3px gray;
}

.btn-main {
    border: 2px solid gray;
    color: #44382c;
    background-color: gray;
    margin-top: 25%;
    margin-left: 25%;
    border-radius: 7px;
    box-shadow: 3px 3px 3px #44382c;
}

.btn-main:hover {
    color: white;
    background-color: #575553;
    border: 2px solid #575553;
    box-shadow: 3px 3px 3px gray;
} */



.btn-primary,
.btn-outline-primary:hover {
    /* color: var(--bs-light); */
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    /* color: var(--bs-dark); */
    color: var(--bs-dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}



  /*** Navbar Styles ***/
        .container-fluid.sticky-top {
            top: -100px;
            transition: .5s;
        }

        .navbar {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }

        .navbar-brand img {
            max-height: 70px;
            width: auto;
        }

        /* Email & Phone hover effect */
        .navbar .contact-info a {
            color: inherit;
            font-size: 14px;
            font-weight: 400;
            text-decoration: none;
            transition: color 0.3s ease;
        } 

        .navbar .contact-info a:hover {
            color: #e09010 !important; 
        } 

        .navbar .navbar-nav .nav-link {
            margin-right: 25px;
            padding: 5px 0;
            color: #575553;
            font-size: 16px;
            text-transform: uppercase;
            font-weight: 600;
            outline: none;
            position: relative;
            transition: color 0.3s ease;
            padding-bottom: 4px;
            cursor: pointer;
        }

        .navbar .navbar-nav .nav-link:hover {
            color: #000000;
        }

        .desktop-contact a:hover {
            color: rgba(56, 55, 52, 0.9);
        }

        .navbar .navbar-nav .nav-link::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0px;
            width: 0;
            height: 2px;
            background-color: #575553;
            transition: width 0.3s ease, box-shadow 0.3s ease;
        }

        .navbar .navbar-nav .nav-link:hover::after {
            width: 100%;
            box-shadow: 0 0 8px #575553;
        }

        .navbar .navbar-nav .nav-link.active {
            color: #000000;
        }

        .navbar .dropdown-toggle::after {
            border: none;
            content: "\f107";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            vertical-align: middle;
            margin-left: 8px;
        }

        /* .navbar-brand { */
    /* min-width: 40px; */
    /* flex-shrink: 0; */
/* } */
/* 
.navbar-brand img {
    width: auto;
    max-height: 50px;
    object-fit: contain;
} */


        /* Mobile Styles */
        @media (max-width: 991.99px) {
            .navbar .navbar-nav .nav-link {
                margin-right: 0;
                padding: 10px 0;
            }

            .navbar .navbar-nav {
                margin-top: 15px;
                border-top: 1px solid #EEEEEE;
            }
            
            /* Mobile contact info */
            .mobile-contact {
                padding: 10px 0;
                border-bottom: 1px solid #EEEEEE;
                margin-bottom: 10px;
            }
            
            .mobile-contact a {
                color: #575553;
                text-decoration: none;
                font-size: 14px;
                display: block;
                margin-bottom: 5px;
            }
            
            .mobile-contact a:hover {
                color: rgba(56, 55, 52, 0.9);
            }
            
            /* Ensure dropdown menu is visible on mobile */
            .navbar-collapse .dropdown-menu {
                border: none;
                padding-left: 15px;
                background-color: transparent !important;
                box-shadow: none !important;
            }
            
            .navbar-collapse .dropdown-item {
                padding: 8px 15px;
                color: #575553;
            }
            
            .navbar-collapse .dropdown-item:hover {
                background-color: transparent;
                color: #000000;
            }
            
            /* Custom mobile menu animation */
            .navbar-collapse {
                transition: all 0.3s ease-in-out;
            }
            
            .navbar-collapse.collapse:not(.show) {
                display: none;
            }
            
            .navbar-collapse.collapsing {
                height: 0;
                overflow: hidden;
                transition: height 0.35s ease;
            }
            
            /* Adjust navbar brand for mobile */
            .navbar-brand img {
                max-height: 50px;
            }
            
            /* Hide desktop contact info on mobile */
            .desktop-contact {
                display: none !important;
            }
        }

        /* Desktop Styles */
        @media (min-width: 991.99px) {
            .navbar .nav-item .dropdown-menu {
                display: block;
                border: none;
                margin-top: 0;
                top: 150%;
                opacity: 0;
                visibility: hidden;
                transition: .5s;
            }

            .navbar .nav-item:hover .dropdown-menu {
                top: 100%;
                visibility: visible;
                transition: .5s;
                opacity: 1;
            }

            .navbar .dropdown-menu .dropdown-item:hover {
                background-color: var(--bs-primary) !important;
                color: #ffffff !important;
            }
            
            /* Hide mobile contact on desktop */
            .mobile-contact {
                display: none !important;
            }
        }

        /* Active state for dropdown parent */
        .nav-item.dropdown.show .nav-link {
            color: #000000;
        }
    
        /* Extra small devices */
        /* @media (max-width: 575.98px) {
            .navbar-brand {
                max-width: 70%;
            }
            
            .navbar-brand img {
                max-height: 40px;
            }
            
            .navbar-toggler {
                padding: 4px 8px;
            }
        } */

     
        
        /* Fix for dropdown menu on touch devices */
        @media (hover: none) and (pointer: coarse) {
            .navbar .nav-item.dropdown:hover .dropdown-menu {
                display: none;
            }
            
            .navbar .nav-item.dropdown.show .dropdown-menu {
                display: block;
            }
        }
        
/*** Navbar ***/

/* Email & Phone hover effect */
/* .d-none.d-lg-flex a, .d-lg-none a {
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}  */

/* .d-none.d-lg-flex a:hover, .d-lg-none a:hover {
  color: rgba(56, 55, 52, 0.9); 
}  */

/* .sticky-top {
  top: -100px;
  transition: .5s;
} */
/* 
.navbar .navbar-nav .nav-link {
  margin-right: 25px;
  padding: 5px 0;
  color: #575553;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  outline: none;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 4px;
  cursor: pointer;
} */

/* .navbar .navbar-nav .nav-link:hover {
  color: #000000;
} */
/* 
.navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 0;
  height: 2px;
  background-color: #575553;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after {
  width: 100%;
  box-shadow: 0 0 8px #575553;
}

.navbar .navbar-nav .nav-link.active {
  color: #000000;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
} */

/* Mobile Styles */
/* @media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 15px;
    border-top: 1px solid #EEEEEE;
  } */
  
  /* Mobile contact info */
  /* .mobile-contact {
    padding: 10px 0;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 10px;
  }
  
  .mobile-contact a {
    color: #575553;
    text-decoration: none;
    font-size: 14px;
  }
  
  .mobile-contact a:hover {
    color: rgba(56, 55, 52, 0.9);
  }
   */
  /* Ensure dropdown menu is visible on mobile */
  /* .navbar-collapse .dropdown-menu {
    border: none;
    padding-left: 15px;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  
  .navbar-collapse .dropdown-item {
    padding: 8px 15px;
    color: #575553;
  }
  
  .navbar-collapse .dropdown-item:hover {
    background-color: transparent;
    color: #000000;
  } */
  
  /* Custom mobile menu animation */
  /* .navbar-collapse {
    transition: all 0.3s ease-in-out;
  }
  
  .navbar-collapse.collapse:not(.show) {
    display: none;
  }
  
  .navbar-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
  }
} */

/* Desktop Styles */
/* @media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: .5s;
    opacity: 1;
  } */
  
  /* Hide mobile contact on desktop */
  /* .mobile-contact {
    display: none !important;
  }
} */

/* Active state for dropdown parent */
/* .nav-item.dropdown.show .nav-link {
  color: #000000;
} */



.page-header {
    background: linear-gradient(rgba(56, 55, 52, 0.5), rgba(0, 0, 0, .5)), url(../img/sonani_tungsten_carbide_application.webp) center center no-repeat;
    background-size: cover;
}


/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--bs-primary);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown {
    0% {
        top: -25px;
    }

    50% {
        top: -45px;
    }

    100% {
        top: -25px;
    }
}


/*** Features ***/
.feature {
    background: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 1) 50%), url(../img/sonani_tungsten_carbide_application.webp) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
}

.feature-item:hover .feature-icon {
    margin-left: 3rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
    background: var(--bs-primary);
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    /* margin-top removed: the parent .service-item already provides the 45px top
       gap and the image's margin-top:-45px pokes into it. Keeping margin-top here
       on a height:100% box pushed the card 45px past its parent, bleeding under
       the footer. */
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: rgba(56, 55, 52, 0.9);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -45px;
    padding-left: 45px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h2,
.service .service-item:hover h3,
.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 45px !important;
}


/*** Appoinment ***/
.appoinment {
    /* background: linear-gradient(rgba(109, 103, 103, 0.7), rgba(0, 0, 0, 0.7)), url(../img/banner242.png) left center no-repeat; */
    background: linear-gradient(rgba(56, 55, 52, 0.5), rgba(0, 0, 0, 0.5)), url(../img/sonani_tungsten_carbide_application.webp) left center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    color: var(--bs-primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/sonani_tungsten_carbide_application.webp) left center no-repeat;
    background-size: cover;
}


/*** Footer ***/


.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    /* color: rgba(56, 55, 52, 0.9); */
    color: #000000;
    /* var(--bs-primary); */
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: rgba(56, 55, 52);
    color: var(--bs-white);
}

.copyright a {
    color: var(--bs-white);
    text-decoration: none;
}

.copyright a:hover {
    color: rgba(56, 55, 52, 0.9);
}

/* =================== COOKIE BANNER =================== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: #1e1e1e;
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-btn {
  flex: 1;
  background: #3a3a3a;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.cookie-btn:hover {
  background: #4a4a4a;
}

.cookie-btn.primary { background: #3a3a3a; color: #fff; }
.cookie-btn.secondary { background: #eaeaea; color: #000; }
.cookie-btn.secondary:hover { background: #ddd; }

.cookie-link, .cookie-policy-link {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
  color: #bdbdbd;
}

.cookie-link:hover, .cookie-policy-link:hover {
  color: #ffffff;
}

.cookie-manage-center {
  display: block;
  margin: 8px auto 12px;
  text-align: center;
}

/* =================== MODAL =================== */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cookie-modal-content {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  max-width: 92%;
  box-sizing: border-box;
  text-align: left;
  transition: width 0.3s ease, padding 0.3s ease;
}

@media screen and (min-width: 768px) {
  .cookie-modal-content {
    width: 540px;
    max-width: 85%;
    padding: 30px;
    border-radius: 14px;
  }
  .cookie-desc { font-size: 15px; line-height: 1.6; }
  .cookie-card p { font-size: 13px; }
  .cookie-btn { padding: 12px 20px; font-size: 14px; }
}

@media screen and (min-width: 1440px) {
  .cookie-modal-content { width: 580px; max-width: 75%; }
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.cookie-desc { margin: 12px 0 16px; color: #555; }

.cookie-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.cookie-card p { font-size: 12px; color: #666; margin: 4px 0 0; }
.cookie-card.disabled { opacity: 0.6; }
.always-active { font-size: 12px; color: #666; }

.cookie-option { display: flex; gap: 8px; margin: 12px 0; }

.modal-actions { display: flex; gap: 10px; margin-top: 16px; text-align: right; }

.switch {
  position: relative;
  width: 42px;
  height: 22px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  cursor: pointer;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.switch input:checked + .slider { background: #666; }
.switch input:checked + .slider::before { transform: translateX(20px); }

.hidden { display: none; }
