/* Modern and Attractive Styles for Tamboli Trading Company */

:root {
    --primary-green: #27ae60;
    --secondary-green: #2ecc71;
    --dark-green: #1e8449;
    --light-green: #e9f7ef;
    --accent-orange: #f39c12;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Global Reset & Typography */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

/* Top Bar */
.top-bar {
    background: var(--dark-green);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    transition: var(--transition-smooth);
}

.top-bar a:hover {
    color: var(--accent-orange);
}

/* Premium Shadows & Transitions */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

/* Navbar Enhancements */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-green) !important;
    letter-spacing: -1px;
}

.navbar-brand span {
    color: var(--accent-orange);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 10px 20px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 20px;
    background-color: var(--primary-green);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 40px);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-green) !important;
}

/* Hero Carousel */
.carousel-item {
    height: 85vh;
    min-height: 500px;
}

.carousel-caption {
    z-index: 2;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    width: 100%;
}

.carousel-caption h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    text-shadow: 3px 3px 15px rgba(0,0,0,0.5);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.carousel-caption p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    max-width: 900px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title-container {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--primary-green);
    border-radius: 10px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
}

.product-card .card-img-top {
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .card-img-top {
    transform: scale(1.08);
}

.card-body {
    padding: 2rem !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(39, 174, 96, 0.9), rgba(39, 174, 96, 0.9)), url('https://images.unsplash.com/photo-1542838132-92c53300491e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 80px 0;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Styling */
footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 80px 0 30px;
}

footer h4, footer h5 {
    color: var(--white);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

footer h4::after, footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-green);
}

footer a {
    color: #b0b0b0;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-5px);
    padding-left: 0;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--dark-green);
    transform: translateY(-5px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.whatsapp-text {
    position: absolute;
    right: 70px;
    background: #25d366;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
}

/* Product Card Overlay Effect */
.product-card {
    position: relative;
}

.product-card .btn {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.product-card:hover .btn {
    opacity: 1;
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

/* Google Translate Styling */
.lang-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition-smooth);
    min-width: 40px;
    height: 30px;
    justify-content: center;
}

.lang-wrapper i.fa-globe {
    position: absolute;
    z-index: 1;
}

#google_translate_element {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.goog-te-gadget-simple {
    width: 100% !important;
    height: 100% !important;
}

.lang-wrapper:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--accent-orange);
}

#google_translate_element {
    display: inline-block;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
}

.goog-te-gadget-simple img {
    display: none !important;
}

.goog-te-gadget-simple span {
    color: white !important;
    vertical-align: middle !important;
}

.goog-te-gadget-simple span:hover {
    color: var(--accent-orange) !important;
}

/* Hide Google's branding more effectively */
.goog-te-gadget-icon {
    display: none !important;
}

/* Aggressively hide 'Select Language' text if it reappears */
.goog-te-menu-value span:nth-child(1),
.goog-te-menu-value span:nth-child(3), 
.goog-te-menu-value span:nth-child(5) {
    display: none !important;
}

/* Hide text 'Select Language' when it's just a text node or in a different span */
.goog-te-gadget-simple .goog-te-menu-value span {
    display: none !important;
}

/* Ensure no content is added via ::before */
.goog-te-menu-value::before {
    content: none !important;
}

.social-links.me-3 {
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 15px;
}

/* Show a small arrow instead of text */
.goog-te-menu-value::after {
    display: none !important;
}

.goog-te-menu-value span {
    border-left: none !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 10px;
}

.dropdown-item {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
    transform: translateX(5px);
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Modern Utilities */
.bg-glass {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-green), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--white);
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-green);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-toggler {
        border-color: var(--primary-green);
        padding: 5px 8px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(39, 174, 96, 0.25);
    }

    .navbar-collapse {
        background: var(--white);
        margin-top: 15px;
        padding: 20px;
        border-radius: 15px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--light-green);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        box-shadow: none;
        padding: 0;
        margin-left: 15px;
        border-left: 2px solid var(--primary-green);
        border-radius: 0;
    }

    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-caption {
        padding-left: 15px;
        padding-right: 15px;
    }

    .carousel-caption h1 {
        font-size: 2.2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .carousel-caption .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .stats-section {
        background-attachment: scroll;
        padding: 50px 0;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 50vh;
        min-height: 350px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
        font-size: 24px;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 25px;
        right: 20px;
    }

    .product-card .card-img-top {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}
