/* style.css - FINAL VERSION (Button Fixed & Big Mobile Image) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #34495e;   /* Slate Grey/Dark Teal */
    --secondary: #00a8cc; /* Bright Teal/Cyan (Accent) */
    --dark: #222;
    --light: #f4f7f9;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: #444;
    padding-top: 80px;
}

a { text-decoration: none; }

/* NAVBAR */
.navbar {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}
.navbar-brand img { 
    height: 50px; 
    margin-right: 10px;
} 
.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    margin: 0 10px;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

/* --- HERO SECTION (Home Page Slider) --- */
.hero-section {
    position: relative;
    height: 400px !important; /* Desktop Height */
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    margin-top: 0 !important;
}

#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#heroCarousel .carousel-item {
    height: 400px !important;
    width: 100%;
    background-color: #ffffff;
    display: flex !important; 
    align-items: center;
    justify-content: center;
}

#heroCarousel .carousel-item img {
    height: auto !important;
    max-height: 90% !important; 
    width: auto !important;
    max-width: 65% !important;
    object-fit: contain;
    padding: 0; 
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(52, 73, 94, 0.3), rgba(0, 168, 204, 0.2)); /* Light overlay */
    z-index: 1;
}

/* Hero Text */
.hero-content {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: var(--primary); 
    text-align: center;
    text-shadow: 0 1px 15px rgba(255, 255, 255, 0.9);
    width: 100%;
    padding: 20px;
}

.hero-content h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; }
.hero-content p { font-size: 1.1rem; font-weight: 500; color: #444; }

.section-heading { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.section-subheading { font-size: 1.1rem; color: #666; margin-bottom: 40px; }

/* FEATURES & CARDS */
.feature-box {
    background: white; padding: 30px; border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.feature-box:hover { transform: translateY(-10px); box-shadow: 0 12px 35px rgba(0,0,0,0.15); }
.feature-box i { font-size: 3.5rem; color: var(--secondary); margin-bottom: 20px; }
.feature-box h4 { font-weight: 600; color: var(--primary); margin-bottom: 15px; }

/* PRODUCT CARD STYLING */
.product-card, .product-preview-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.product-card:hover, .product-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--secondary);
}

/* Product Images (Desktop Fixed) */
.product-img-box {
    height: 200px !important;       
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden; 
}

.product-img-box img, 
.product-preview-card img,
.product-card img {
    height: auto !important;        
    max-height: 160px !important;   
    width: auto !important;         
    max-width: 90% !important;      
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* OT SLIDER MARGIN */
.ot-slider-margin { margin-top: 30px !important; }

/* --- MOBILE SPECIFIC FIXES (BIGGER IMAGE UPDATE) --- */
@media (max-width: 768px) {
    /* 1. Navbar Fix */
    .navbar-brand {
        font-size: 0.75rem !important; 
        white-space: nowrap; 
        max-width: auto; 
        line-height: 1;
        margin-right: 0;
    }
    .navbar-brand img { height: 30px; margin-right: 5px; }
    .container { padding-left: 10px; padding-right: 10px; }

    /* 2. Body Padding */
    body { padding-top: 56px !important; }

    /* 3. Mobile Hero - INCREASED HEIGHT (320px) */
    .hero-section { 
        height: 320px !important; /* Height badha di gayi hai */
        min-height: 320px !important; 
        margin-top: 0 !important; 
    }
    
    #heroCarousel .carousel-item { 
        height: 320px !important; 
        display: flex !important; 
        /* Align Items: Start (Image ko upar khichne ke liye) */
        align-items: flex-start !important; 
        padding-top: 40px; /* Thoda sa padding taaki navbar se na takraye */
    }
    
    #heroCarousel .carousel-item img {
        max-height: 90% !important; /* Image badi dikhegi */
        max-width: 95% !important;
        object-fit: contain !important;
        padding: 0 !important;
    }

    /* 4. OT Slider Gap */
    .ot-slider-margin { margin-top: 0px !important; }

    /* 5. Hero Text Position (Moved down) */
    .hero-content { 
        padding: 5px !important; 
        top: 75% !important; /* Text ko aur niche kiya taaki image par na aaye */
    }
    .hero-content h1 { font-size: 1.0rem !important; margin-bottom: 5px; line-height: 1.2; }
    .hero-content p { display: none !important; } 
    
    /* Button Small on Mobile */
    .hero-content .btn { 
        padding: 4px 10px; font-size: 0.75rem; margin-top: 2px; margin-right: 5px !important;
    }

    /* 6. Mobile Product Images */
    .product-img-box { height: 180px !important; }
    .product-img-box img, .product-preview-card img, .product-card img { max-height: 150px !important; }

    /* 7. Social Icons */
    .social-links { justify-content: center; gap: 25px; margin-top: 20px; }
    .social-links a { font-size: 2rem; padding: 10px; }
}

.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.short-desc { font-size: 0.85rem; color: #666; text-align: left; margin-bottom: 15px; flex-grow: 1; }
.short-desc ul { padding-left: 20px; margin-bottom: 0; }
.short-desc li { margin-bottom: 4px; }
.social-links { display: flex; justify-content: start; gap: 15px; }
.social-links a { font-size: 1.6rem; color: var(--primary); transition: 0.3s; display: inline-block; }
.social-links a:hover { color: var(--secondary); transform: scale(1.1); }

.fab-chat { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; z-index: 999999 !important; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }

footer { background: var(--dark); color: #bbb; padding: 50px 0 20px; }
footer h5 { color: var(--secondary); border-bottom: 2px solid var(--secondary); display: inline-block; padding-bottom: 5px; margin-bottom: 20px; }

.modal-feature-item { padding: 15px; background-color: #f8f9fa; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.modal-feature-item h6 { color: var(--primary); font-weight: 600; margin-bottom: 5px; }
.modal-feature-item p { font-size: 0.85rem; color: #555; margin-bottom: 0; }
.modal-header { background-color: var(--primary); color: white; }
.btn-close-white { filter: invert(1); }
.modal-feature-box { background: #f8f9fa; padding: 20px; border-radius: 10px; height: 100%; border-left: 5px solid #25d366; display: flex; flex-direction: column; justify-content: center; }
.feature-list { padding-left: 0; list-style: none; margin: 0; }
.feature-list li { margin-bottom: 10px; font-size: 0.95rem; display: flex; align-items: start; }
.feature-list li i { color: #25d366; margin-right: 10px; margin-top: 4px; }
.modal-body ul { padding-left: 0; }
.modal-body ul li { list-style: none; margin-bottom: 10px; font-size: 0.95rem; }

#imageCarousel .carousel-item { height: 300px; background: #fff; border-radius: 8px; text-align: center; }
#imageCarousel .carousel-item.active, #imageCarousel .carousel-item-next, #imageCarousel .carousel-item-prev { display: flex !important; align-items: center; justify-content: center; }
#imageCarousel .carousel-item img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; padding: 10px; margin: 0 auto; }
.carousel-indicators [data-bs-target] { background-color: var(--primary); }
#detailCarousel .carousel-control-prev-icon, #detailCarousel .carousel-control-next-icon { background-color: #34495e; border-radius: 50%; width: 30px; height: 30px; background-size: 50%; }
.about-section { background: linear-gradient(to right, #f4f7f9, #e0e6eb); }
.cta-section { background: var(--primary); color: white; }