/* Basic Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #343a40;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header/Top Bar */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.top-bar .logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

.top-bar .contact-info {
    font-size: 1.05em;
    color: #6c757d;
    font-weight: 500;
}

.top-bar .contact-info i {
    margin-right: 8px;
    color: #0056b3;
}

/* Hero Section */
.hero-section {
    /* Background image with transparent white overlay for tech feel */
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), /* Reduced opacity to show background */
                url('https://via.placeholder.com/1920x600?text=Technology+Background') no-repeat center center / cover; /* Replace with your tech image */
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.hero-section::before { /* A subtle geometric pattern overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e9ecef 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.2em;
    margin-bottom: 8px;
    color: #0056b3;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-section .indiamart-link {
    font-size: 1.1em;
    margin-bottom: 35px;
    font-weight: 500;
}
.hero-section .indiamart-link a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hero-section .indiamart-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Static Introductory Text Box Styling (retained) */
.intro-text-box {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px 40px;
    margin: 40px auto 50px auto;
    max-width: 850px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
}

.intro-text-box p {
    font-size: 1.25em;
    line-height: 1.7;
    color: #343a40;
    font-weight: 500;
    margin: 0;
}

/* Small triangle pointer below the text box */
.intro-text-box::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 25px;
    height: 25px;
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    z-index: 2;
}


/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item {
    min-width: 100%;
    flex-shrink: 0;
    position: relative; /* Crucial for positioning the text box inside */
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Carousel Text Box Styling (for dynamic text over images) */
.carousel-text-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    color: white; /* White text */
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 80%; /* Don't cover the whole image */
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5;
    font-weight: 400;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Clear shadow for readability */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in/out */
    backdrop-filter: blur(3px); /* Subtle blur behind the text */
}

/* Active carousel item's text box should be visible */
.carousel-item.active .carousel-text-box {
    opacity: 1;
}


.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.8em;
    z-index: 10;
    border-radius: 50%;
    opacity: 0.8;
    transition: background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dot.active {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: scale(1.2);
}


/* General Section Styling */
section {
    background-color: #ffffff;
    margin-bottom: 25px;
    padding: 60px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
}

section:nth-of-type(even) {
    background-color: #f8f9fa;
}

section h2 {
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    font-weight: 600;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #28a745;
    border-radius: 5px;
}


/* About Us Section specific styling */
.about-us-section .container {
    padding: 50px 30px;
    text-align: center;
}

.about-us-section p {
    margin-bottom: 20px;
    color: #495057;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
}

.about-us-section .indiamart-profile-link a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-us-section .indiamart-profile-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Products Section */
.products-section {
    position: relative;
    display: flex;
    padding-top: 0;
    padding-bottom: 0;
    background-color: #ffffff;
}

.products-section .container {
    flex-grow: 1;
    padding: 50px 30px;
}

.our-products-sidebar {
    background-color: #343a40;
    color: #ffffff;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    flex-shrink: 0;
    padding: 30px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 5;
    box-shadow: inset -3px 0 8px rgba(0,0,0,0.1);
}

/* Reset specific padding for product section headings */
.products-section h2 {
    text-align: left;
    margin-left: 0;
    padding-top: 20px;
}
.products-section h2::after {
    left: 0;
    transform: translateX(0);
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-item {
    text-align: center;
    border: 1px solid #dee2e6;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.product-item p {
    font-size: 1em;
    color: #343a40;
    font-weight: 500;
}

/* Factsheet Section */
.factsheet-section .container {
    text-align: center;
    padding: 50px 30px;
}

.factsheet-section .fact-list {
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-align: left;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.factsheet-section .fact-list p {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ced4da;
    padding-bottom: 10px;
    font-size: 1.1em;
}

.factsheet-section .fact-list p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.factsheet-section .fact-list p span {
    font-weight: 600;
    color: #0056b3;
    flex-basis: 45%;
}

.factsheet-section .factsheet-graphic {
    margin-top: 40px;
}
.factsheet-section .factsheet-graphic img {
    max-width: 80%;
    height: auto;
    opacity: 0.2;
}

/* Contact Us Section */
.contact-us-section {
    background-color: #343a40;
    color: #ffffff;
    padding: 60px 0;
    border-radius: 8px;
}

.contact-us-section .container {
    padding: 50px 30px;
}

.contact-us-section h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
}
.contact-us-section h2::after {
    background-color: #ffffff;
}

.contact-us-section p {
    margin-bottom: 12px;
    font-size: 1.05em;
    color: #e9ecef;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-us-section p strong {
    font-size: 1.1em;
    color: #ffffff;
}

.contact-us-section p i {
    margin-right: 10px;
    color: #28a745;
    font-size: 1.1em;
}

.contact-us-section a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-us-section a:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* Footer */
.site-footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9em;
    margin-top: 25px;
    border-radius: 8px;
}

.site-footer .container {
    padding: 15px 20px;
}


/* Responsive Design */
@media (max-width: 992px) {
    .container {
        max-width: 900px;
    }
    .hero-section h1 {
        font-size: 2.8em;
    }
    .hero-section .indiamart-link {
        margin-bottom: 30px;
    }

    .intro-text-box {
        padding: 20px 30px;
        font-size: 1.1em;
        max-width: 750px;
    }
    .intro-text-box p {
        font-size: 1.15em;
    }

    .carousel-container {
        max-width: 800px;
    }
    .carousel-text-box {
        max-width: 75%;
        font-size: 1.1em;
    }

    .products-section .container {
        padding: 40px 20px;
    }
    .our-products-sidebar {
        width: 70px;
        font-size: 1.1em;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
}


@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .top-bar .contact-info {
        margin-top: 10px;
    }

    .hero-section {
        padding: 40px 0;
    }
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-section .indiamart-link {
        margin-bottom: 25px;
    }

    .intro-text-box {
        padding: 18px 25px;
        margin: 30px auto 40px auto;
        font-size: 1em;
        max-width: 90%;
    }
    .intro-text-box p {
        font-size: 1.05em;
    }
    .intro-text-box::after {
        bottom: -12px;
        width: 20px;
        height: 20px;
    }

    .carousel-text-box {
        max-width: 85%;
        font-size: 1em;
        padding: 15px 20px;
    }

    .carousel-button {
        padding: 10px 14px;
        font-size: 1.5em;
    }
    .carousel-dots {
        bottom: 10px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }

    section {
        padding: 40px 0;
        margin-bottom: 20px;
    }
    section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .products-section {
        flex-direction: column;
    }
    .our-products-sidebar {
        width: 100%;
        height: auto;
        writing-mode: horizontal-tb;
        transform: none;
        padding: 15px 0;
        position: static;
        text-align: center;
    }
    .products-section h2 {
        text-align: center;
    }
    .products-section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-item {
        padding: 15px;
    }
    .product-item img {
        padding: 5px;
    }

    .factsheet-section .fact-list {
        padding: 20px;
        font-size: 1em;
    }
    .factsheet-section .fact-list p {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .factsheet-section .fact-list p span {
        flex-basis: auto;
        margin-bottom: 5px;
    }

    .contact-us-section p {
        font-size: 1em;
    }

    .site-footer {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 20px 15px;
    }

    .top-bar .logo img {
        height: 45px;
    }
    .top-bar .contact-info {
        font-size: 0.95em;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section .indiamart-link {
        font-size: 0.9em;
    }

    .intro-text-box {
        padding: 15px;
        font-size: 0.95em;
        max-width: 95%;
    }
    .intro-text-box p {
        font-size: 0.95em;
    }
    .intro-text-box::after {
        bottom: -10px;
        width: 16px;
        height: 16px;
    }

    .carousel-text-box {
        max-width: 90%;
        font-size: 0.9em;
        padding: 10px 15px;
    }

    .carousel-container {
        margin: 20px auto;
    }
    .carousel-button {
        padding: 8px 10px;
        font-size: 1.2em;
    }
    .carousel-dots {
        bottom: 5px;
        gap: 5px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }

    section {
        padding: 30px 0;
    }
    section h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    section h2::after {
        width: 60px;
    }

    .our-products-sidebar {
        font-size: 1em;
        padding: 10px 0;
    }

    .product-grid {
        gap: 15px;
    }

    .factsheet-section .fact-list {
        padding: 15px;
    }
    .factsheet-section .factsheet-graphic img {
        max-width: 90%;
    }

    .contact-us-section p {
        font-size: 0.95em;
    }

    .site-footer {
        padding: 15px 0;
    }
}
