/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Top Bar Contact Info */
.contact-info {
    gap: 1rem;
}

.contact-link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* Navigation Links */
.nav-link {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0px 12px;
}

.nav-link:hover {
    color: #0d6efd;
}

.nav-link.active {
    color: #0d6efd !important;
    text-underline-offset: 4px;
}

.dropdown-item.active {
    color: #0d6efd !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    background-color: transparent;
}

/* Mobile Menu */
.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-collapse.show {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    .dropdown-menu {
        background-color: #f8f9fa;
        padding: 0.5rem;
    }
    .dropdown-item {
        padding: 0.5rem 1rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 490px;
    position: relative;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .hero-section,
    .hero-slide {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .hero-section,
    .hero-slide {
        height: 320px;
    }
}

.slide-1 {
    background-image: url('../images/carousel1.jpg');
}

.slide-2 {
    background-image: url('../images/63kva.jpg');
}

.slide-3 {
    background-image: url('../images/500kva.jpg');
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide h1, .hero-slide p, .hero-slide .btn {
    color: #fff;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators button {
    background-color: #fff;
    border: 1px solid #000;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #0d6efd;
}

/* About Section */
.about-section img {
    max-width: 100%;
    height: auto;
}

.feature-box i {
    font-size: 1.5rem;
}

/* Products Section */
.product-card {
    transition: transform 0.3s ease;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-features .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Why Choose Us Section */
.why-choose-section .accordion-button {
    font-weight: 500;
    font-size: 1.1rem;
}

.why-choose-section .accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.why-choose-section img {
    max-width: 100%;
    height: auto;
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonial-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-logo {
    width: 80px;
    height: 80px;
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    font-weight: bold;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.5;
}

.carousel-indicators .bg-primary {
    background-color: #0d6efd !important;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slide {
        height: 300px;
    }

    .hero-slide h1 {
        font-size: 1.8rem;
    }

    .hero-slide p {
        font-size: 0.9rem;
    }

    .hero-btns .btn {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }

    .product-card img {
        height: 150px;
    }

    .why-choose-section img {
        margin-bottom: 2rem;
    }

    .testimonial-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.img-fluid-x {
    max-width: 100%;
    height: 492px;
}

.img-fluid-standard {
    max-width: 100%;
    height: 140px;
}