/* Navbar Brand with Text */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 45px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.brand-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

/* Footer styling */
footer {
    width: 100%;
    background-color: rgb(116, 119, 116);
    color: white;
    padding: 20px 0;
    text-align: center;
    z-index: 1000;
    margin-top: 40px;
}

/* Body styling */
body {
    padding-bottom: 0;
    padding-top: 56px;
    position: relative;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slideshow-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: slideshow 12s infinite;
}
.slideshow-container img:nth-child(1) { animation-delay: 0s; }
.slideshow-container img:nth-child(2) { animation-delay: 3s; }
.slideshow-container img:nth-child(3) { animation-delay: 6s; }
.slideshow-container img:nth-child(4) { animation-delay: 9s; }

@keyframes slideshow {
    0%, 20%, 100% { opacity: 0; }
    25%, 95% { opacity: 1; }
}

/* Text Above Image */
.text-above-image {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: green;
    z-index: 1;
    transition: opacity 1s ease, transform 1s ease;
}
.text-above-image h1 { 
    font-size: 3rem; 
    font-weight: bold; 
    margin-bottom: 10px; 
}
.text-above-image h2 { 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin-bottom: 10px; 
}
.text-above-image p { 
    font-size: 1.5rem; 
}
.scroll-down { 
    opacity: 0; 
    transform: translate(-50%, -40%) scale(0.9); 
}
.scroll-up { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
}

/* Theme */
.bg-green { 
    background-color: #28a745; 
    color: white; 
}
.text-green { 
    color: #28a745; 
}
.btn-green { 
    background-color: #28a745; 
    color: white; 
    border: none; 
}
.btn-green:hover { 
    background-color: #218838; 
    color: white; 
}

/* Navigation Bar */
.navbar-custom {
    background-color: #28a745;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-custom .navbar-brand { 
    padding-top: 0.25rem; 
    padding-bottom: 0.25rem;
}
.navbar-custom .navbar-nav .nav-link {
    color: white; 
    transition: all 0.3s ease; 
    padding: 0.5rem 1rem;
    margin: 0 0.25rem; 
    border-radius: 4px;
}
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active { 
    color: #28a745; 
    background-color: white; 
}
.navbar-custom .navbar-toggler { 
    border-color: rgba(255, 255, 255, 0.5); 
}
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile responsiveness for brand */
@media (max-width: 768px) {
    .brand-text {
        font-size: 0.9rem;
    }
    
    .navbar-logo {
        height: 35px;
        margin-right: 8px;
    }
}

@media (max-width: 576px) {
    .brand-text {
        display: none; /* Hide text on very small screens */
    }
    
    .navbar-logo {
        height: 32px;
        margin-right: 0;
    }
}

/* Section Base Styling & Observer Animation */
.content-section {
     padding: 60px 0;
     opacity: 0;
     transform: translateY(30px);
     transition: opacity 0.8s ease-out, transform 0.8s ease-out;
     will-change: opacity, transform;
}
.content-section.visible {
     opacity: 1;
     transform: translateY(0);
}
#why-choose-us { 
    background-color: #ffffff; 
}
#why-go-for-our-products { 
    background-color: #e0f2e3; 
}
#view-gallery-section { 
    background-color: #ffffff; 
}
.contact-section { 
    background-color: #e0f2e3; 
}

/* Section Heading */
.section-heading {
    font-size: 2.2rem; 
    font-weight: 600; 
    margin-bottom: 40px;
    text-align: center; 
    color: #28a745;
}

/* Why Choose Us Section - Card Styling & ANIMATIONS */
#why-choose-us .stats-card {
    background-color: #ffc107;
    padding: 25px; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center; 
    height: 100%; 
    color: #333;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: transform, opacity;
}
#why-choose-us .row > div:nth-child(1) .stats-card { 
    transform: translateX(-80px); 
    transition-delay: 0.1s; 
}
#why-choose-us .row > div:nth-child(2) .stats-card { 
    transform: scale(0.7) translateY(50px); 
    transition-delay: 0.2s; 
}
#why-choose-us .row > div:nth-child(3) .stats-card { 
    transform: translateX(80px); 
    transition-delay: 0.3s; 
}
#why-choose-us.visible .row > div:nth-child(1) .stats-card,
#why-choose-us.visible .row > div:nth-child(3) .stats-card { 
    opacity: 1; 
    transform: translateX(0); 
}
#why-choose-us.visible .row > div:nth-child(2) .stats-card { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
}
#why-choose-us .stats-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
#why-choose-us .stats-card i { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
}
#why-choose-us .stats-card h3 { 
    font-size: 2rem; 
    font-weight: 700; 
    margin-bottom: 5px;
}
#why-choose-us .stats-card p { 
    font-size: 1rem; 
    margin-bottom: 0; 
}

/* Why Go For Our Products - Rectangle Styling & Animation */
.animated-border-box {
     position: relative; 
     text-align: center; 
     padding: 35px 25px;
     background-color: #ffffff; 
     border-radius: 8px;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); 
     height: 100%;
     overflow: hidden;
     transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
     z-index: 1;
 }
 .animated-border-box:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 20px rgba(40, 167, 69, 0.15);
 }
.animated-border-box i { 
    font-size: 3rem; 
    margin-bottom: 15px; 
    color: #28a745; 
}
.animated-border-box h3 { 
    font-size: 1.4rem; 
    font-weight: 600; 
    margin-bottom: 10px; 
    color: #343a40; 
}
.animated-border-box p { 
    font-size: 0.95rem; 
    color: #555; 
    line-height: 1.6; 
    margin-bottom: 0; 
}
.border-line { 
    position: absolute; 
    background-color: #28a745; 
    transition: all 0.3s ease-out; 
    z-index: 0; 
}
.border-line-top { 
    top: 0; 
    left: 0; 
    width: 0; 
    height: 3px; 
    transition-delay: 0.6s; 
}
.border-line-right { 
    top: 0; 
    right: 0; 
    width: 3px; 
    height: 0; 
    transition-delay: 0s; 
}
.border-line-bottom { 
    bottom: 0; 
    right: 0; 
    width: 0; 
    height: 3px; 
    transition-delay: 0.2s; 
}
.border-line-left { 
    bottom: 0; 
    left: 0; 
    width: 3px; 
    height: 0; 
    transition-delay: 0.4s; 
}
.animated-border-box:hover .border-line-top { 
    width: 100%; 
}
.animated-border-box:hover .border-line-right { 
    height: 100%; 
}
.animated-border-box:hover .border-line-bottom { 
    width: 100%; 
}
.animated-border-box:hover .border-line-left { 
    height: 100%; 
}

/* Gallery Styling */
.modal-gallery-image, .gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0;
    transition: transform 0.2s ease-in-out;
}
.modal-gallery-image:hover, .gallery-image:hover {
     transform: scale(1.03);
}
.modal-body .row > div, .gallery-row > div {
     margin-bottom: 1rem;
}
.modal-body {
     max-height: 75vh;
     overflow-y: auto;
}

/* Contact Us Section */
.contact-section {
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
}
.contact-section h2.section-heading { 
    margin-bottom: 40px; 
}
.contact-section p { 
    margin-bottom: 15px; 
    color: #333; 
    line-height: 1.7; 
    font-size: 1.1rem; 
}
.contact-section i { 
    color: #28a745; 
    margin-right: 10px; 
    width: 20px; 
    text-align: center; 
    vertical-align: middle;
}
.contact-section .contact-info a { 
    color: #28a745; 
    text-decoration: none; 
    transition: color 0.3s ease; 
    font-weight: 500;
}
.contact-section .contact-info a:hover { 
    color: #218838; 
    text-decoration: underline; 
}
.contact-section .social-icons { 
    margin-top: 25px; 
}
.contact-section .social-icons a { 
    color: #28a745; 
    transition: color 0.3s ease, transform 0.3s ease; 
    display: inline-block; 
    margin: 0 10px; 
}
.contact-section .social-icons a:hover { 
    color: #218838; 
    transform: scale(1.15); 
}

/* Footer Animation */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
.copyright {
    font-size: 0.9rem; 
    animation: fadeIn 1s 1s ease-out forwards;
    opacity: 0; 
    color: #eee;
}

/* Team Page Styles */
.team-hero-section {
    position: relative; 
    padding: 80px 0; 
    margin-bottom: 50px;
    background: url('/storage/MANGANI/team-background.jpg') no-repeat center center; 
    background-size: cover;
    color: white; 
    text-align: center; 
    border-radius: 0 0 15px 15px; 
    overflow: hidden;
}
.team-hero-section::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(40, 167, 69, 0.7); 
    z-index: 1;
}
.team-member-card {
    background-color: white; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
    position: relative; 
    overflow: hidden;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.35s ease-in-out;
}
.team-member-card.visible {
     transform: translateY(0) scale(1);
     opacity: 1;
}
.team-member-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}
.team-member-img-wrapper { 
    height: 180px; 
    background-color: #e0f2e3; 
    overflow: hidden; 
    position: relative; 
}
.team-member-img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    transition: transform 0.4s ease-in-out, filter 0.4s ease; 
}
.team-member-card:hover .team-member-img { 
    transform: scale(1.08); 
    filter: brightness(1.03); 
}
.team-member-card .card-body { 
    padding: 25px; 
    text-align: center; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.team-member-card .card-title { 
    font-size: 1.3rem; 
    font-weight: 600; 
    color: #333; 
    margin-bottom: 5px; 
}
.team-member-card .card-subtitle { 
    font-size: 0.9rem; 
    color: #28a745; 
    font-weight: 500; 
    margin-bottom: 15px; 
    display: block; 
}
.team-member-card .card-text { 
    font-size: 0.9rem; 
    line-height: 1.6; 
    color: #555; 
    margin-bottom: 0; 
    flex-grow: 1; 
}

/* About Page Styles */
.about-hero-section {
    position: relative; 
    padding: 80px 0; 
    margin-bottom: 50px;
    background: url('/storage/MANGANI/about-hero-background.jpg') no-repeat center center; 
    background-size: cover;
    color: white; 
    text-align: center; 
    border-radius: 0 0 15px 15px; 
    overflow: hidden;
}
.about-hero-section::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(40, 167, 69, 0.75); 
    z-index: 1;
}
.about-card {
    background-color: #ffffff; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px; 
    border: none;
    transition-duration: 0.8s;
}
.about-card:hover { 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); 
}
.about-card .card-body { 
    padding: 25px 30px; 
}
.about-card .card-title { 
    font-size: 1.6rem; 
    font-weight: 600; 
    color: #28a745; 
    margin-bottom: 20px; 
}
.about-card .card-text { 
    font-size: 1rem; 
    line-height: 1.7; 
    color: #444; 
    margin-bottom: 15px; 
}
.about-card .card-text:last-child { 
    margin-bottom: 0; 
}
.keys-list { 
    list-style: none; 
    padding-left: 0; 
    margin-top: 15px; 
}
.keys-list li { 
    margin-bottom: 12px; 
    position: relative; 
    padding-left: 30px; 
    font-size: 1rem; 
    color: #444; 
}
.keys-list li::before { 
    content: "\F4B0"; 
    font-family: 'bootstrap-icons'; 
    position: absolute; 
    left: 0; 
    top: 1px; 
    color: #28a745; 
    font-size: 1.1rem; 
}

/* Products Page Styles */
.product-hero-section {
    position: relative; 
    padding: 80px 0; 
    margin-bottom: 50px;
    background: url('/storage/MANGANI/product-hero-background.jpg') no-repeat center center; 
    background-size: cover;
    color: white; 
    text-align: center; 
    border-radius: 0 0 15px 15px; 
    overflow: hidden;
}
.product-hero-section::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(40, 167, 69, 0.7); 
    z-index: 1;
}
.product-section {
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.custom-image-wrapper { 
    overflow: hidden; 
    border-radius: 8px; 
    margin-bottom: 10px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}
.custom-image { 
    display: block; 
    width: 100%; 
    height: 300px; 
    object-fit: cover; 
    border-radius: 8px; 
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.custom-image-wrapper:hover .custom-image { 
    transform: scale(1.07); 
}
.image-caption { 
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 30px; 
    text-align: center; 
}
.benefits-list { 
    list-style-type: none; 
    padding-left: 0; 
}
.benefits-list li { 
    margin-bottom: 12px; 
    position: relative; 
    padding-left: 30px; 
    font-size: 0.95rem; 
    color: #444;
}
.benefits-list li::before { 
    content: "\F28A"; 
    font-family: 'bootstrap-icons'; 
    position: absolute; 
    left: 0; 
    top: 2px; 
    color: #28a745; 
    font-weight: bold; 
    font-size: 1.1rem; 
}

/* Animation Classes */
.animated-element {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
    transform: translateY(30px);
}
.animated-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-child {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
    transform: translateY(20px);
}
.animated-element.visible .animate-child {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left { 
    transform: translateX(-50px); 
    transition-delay: 0.2s; 
}
.animate-slide-right { 
    transform: translateX(50px); 
    transition-delay: 0.3s; 
}
.animate-scale-up { 
    transform: scale(0.8) translateY(10px); 
    transition-delay: 0.25s; 
}
.animate-fade-in { 
    transform: none !important; 
    transition-delay: 0.3s; 
}

.animated-element.visible .animate-slide-left,
.animated-element.visible .animate-slide-right { 
    transform: translateX(0); 
}
.animated-element.visible .animate-scale-up { 
    transform: scale(1) translateY(0); 
}
.animated-element.visible .animate-fade-in { 
    transform: none !important; 
}

/* Consistent Responsive Design - No layout changes across devices */
/* All devices will maintain the same layout and appearance */

/* Universal responsive adjustments that maintain exact same appearance */
@media (max-width: 1920px) {
    /* Large screens - maintain exact same appearance */
}

@media (max-width: 1200px) {
    /* Desktop - maintain exact same appearance */
}

@media (max-width: 992px) {
    /* Small desktop - maintain exact same appearance */
    .animated-border-box { 
        margin-bottom: 30px; 
    }
    #why-choose-us .row > div { 
        margin-bottom: 20px; 
    }
    #why-choose-us .row > div:last-child { 
        margin-bottom: 0; 
    }
}

@media (max-width: 768px) {
    /* Tablet - maintain exact same appearance with proportional scaling */
    .text-above-image h1 { 
        font-size: 2.4rem; 
    } 
    .text-above-image h2 { 
        font-size: 2rem; 
    } 
    .text-above-image p { 
        font-size: 1.3rem; 
    }
    .navbar-custom .navbar-nav { 
        width: 100%; 
        text-align: center; 
        margin-top: 10px; 
    }
    .navbar-custom .navbar-nav .nav-link { 
        padding: 10px; 
        margin: 5px 0;
    }
    .navbar-logo { 
        height: 40px; 
        margin-left: 10px; 
    }
    .navbar-toggler { 
        margin-right: 10px; 
    }
    .content-section, .contact-section { 
        padding: 50px 20px; 
    }
    .section-heading { 
        font-size: 2rem; 
        margin-bottom: 35px; 
    }
    .contact-section h2.section-heading { 
        font-size: 2rem; 
    }
    .contact-section p { 
        font-size: 1.05rem; 
    }
    .modal-gallery-image, .gallery-image { 
        height: 220px; 
    }
    .team-hero-section, .about-hero-section, .product-hero-section { 
        padding: 70px 0; 
    }
    .hero-content h1 { 
        font-size: 2.5rem; 
    }
    .hero-content p { 
        font-size: 1.1rem; 
    }
    .team-member-img-wrapper { 
        height: 170px; 
    }
    .custom-image { 
        height: 280px; 
    }
    .about-card .card-title { 
        font-size: 1.5rem; 
    }
    .about-card .card-text { 
        font-size: 0.98rem; 
    }
    
    .animate-child {
        transform: translateY(15px) !important;
        transition-delay: 0.1s !important;
    }
    .animated-element.visible .animate-child {
        opacity: 1;
        transform: translateY(0) !important;
    }
}

@media (max-width: 576px) {
    /* Mobile - maintain exact same appearance with proportional scaling */
    body { 
        padding-top: 56px; 
    }
    .text-above-image { 
        top: 30%; 
    }
    .text-above-image h1 { 
        font-size: 2rem; 
    } 
    .text-above-image h2 { 
        font-size: 1.6rem; 
    } 
    .text-above-image p { 
        font-size: 1.1rem; 
    }
    .navbar-logo { 
        height: 38px; 
        margin-right: 8px; 
    }
    .content-section, .contact-section { 
        padding: 45px 15px; 
    }
    .section-heading { 
        font-size: 1.8rem; 
    }
    .contact-section h2.section-heading { 
        margin-bottom: 25px; 
        font-size: 1.8rem; 
    }
    .contact-section p { 
        font-size: 1rem; 
    }
    footer { 
        padding: 18px 0; 
    }
    .copyright { 
        font-size: 0.85rem; 
    }
    .animated-border-box { 
        padding: 30px 20px; 
    }
    #why-choose-us .stats-card h3 { 
        font-size: 1.9rem; 
    }
    .modal-gallery-image, .gallery-image { 
        height: 200px; 
    }
    .team-hero-section, .about-hero-section, .product-hero-section { 
        padding: 60px 0; 
        border-radius: 0 0 10px 10px; 
    }
    .hero-content h1 { 
        font-size: 2rem; 
    }
    .team-member-img-wrapper { 
        height: 160px; 
    }
    .team-member-card .card-title { 
        font-size: 1.2rem; 
    }
    .custom-image { 
        height: 250px; 
    }
    .product-section h2 { 
        font-size: 1.5rem; 
    }
    .about-card .card-body { 
        padding: 20px 25px; 
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    /* Maintain exact same layout with proportional scaling */
    .text-above-image h1 { 
        font-size: 1.8rem; 
    }
    .text-above-image h2 { 
        font-size: 1.4rem; 
    }
    .text-above-image p { 
        font-size: 1rem; 
    }
    .section-heading { 
        font-size: 1.6rem; 
    }
    .hero-content h1 { 
        font-size: 1.8rem; 
    }
    .hero-content p { 
        font-size: 1rem; 
    }
}

/* Ensure all elements maintain their exact layout and proportions */
* {
    box-sizing: border-box;
}

/* Prevent any layout shifts */
html {
    scroll-behavior: smooth;
}

/* Maintain consistent spacing and proportions */
.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure images maintain aspect ratio */
img {
    max-width: 100%;
    height: auto;
}

/* Consistent button styling across all devices */
.btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Consistent card styling */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none;
}

/* Consistent form controls */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

/* Ensure all transitions are smooth */
* {
    transition: all 0.3s ease;
}