/* Custom CSS Variables */
:root {
    --light-green: #e6ffe6; /* A lighter shade of green, adjust as needed */
    --orange: #ff6600; /* Main accent color */
    --light-yellow: #fff8e1; /* For video section */
    --dark-orange: #e65c00; /* Darker orange for hover/accents */
    --chatbot-header-bg: #8B4513; /* SaddleBrown - a darker, attractive color for chatbot header */
    --text-color: #333;
    --muted-text: #666;
    --light-section-bg: #f8f9fa; /* Light background for the section */
    --dark-blue: #0A2540; /* A dark blue for general text/headings */
}

/* General Body and Font Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
}

/* Utility Classes */
.bg-light-green { background-color: var(--light-green); }
.bg-orange { background-color: var(--orange); }
.bg-chatbot-header { background-color: var(--chatbot-header-bg); }
.text-orange { color: var(--orange); }
.bg-light-yellow { background-color: var(--light-yellow); }
.bg-light-section { background-color: var(--light-section-bg); }

/* Button Styling */
.btn-orange {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
    transition: all 0.3s ease;
}
.btn-orange:hover {
    background-color: var(--dark-orange);
    border-color: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Section Title Styling */
.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-color);
    position: relative;
    padding-bottom: 20px;
    font-family: 'Poppins', sans-serif; /* Using Poppins for section titles */
}
.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 6px;
    background-color: var(--orange);
    margin: 15px auto 0;
    border-radius: 3px;
}
.lead.text-muted {
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    color: var(--muted-text) !important; /* Ensure muted text color */
    font-family: 'Open Sans', sans-serif; /* Using Open Sans for lead text */
}

/* Hero Section Specifics */
.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before, 
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 3%;
    z-index: 0;
    animation: pulse 4s infinite alternate;
}

.hero-section::before {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 102, 0, 0.1);
}

.hero-section::after {
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(150, 200, 100, 0.15);
    animation: pulse 5s infinite alternate-reverse;
}

/* Responsive Headline Styling */
.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Desktop Headline */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
        line-height: 1.3; /* Optimal for desktop */
    }
}

/* Tablet Headline */
@media (max-width: 991.98px) and (min-width: 768px) {
    .hero-section h1 {
        font-size: 2.4rem;
        line-height: 1.3;
    }
}

/* Mobile Headline */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.4; /* Slightly more spacing for mobile readability */
    }
}

/* Image Styling - Always Rectangular */
.hero-section img {
    width: 100%;
    height: auto;
    border-radius: 1px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
}

.hero-section img:hover {
    transform: scale(1.03);
}

/* Desktop Image */
@media (min-width: 992px) {
    .hero-section img {
        height: 350px;
    }
}

/* Tablet Image */
@media (max-width: 991.98px) and (min-width: 768px) {
    .hero-section img {
        height: 300px;
    }
}

/* Mobile Image */
@media (max-width: 767.98px) {
    .hero-section img {
        height: 250px;
        max-width: 100%;
    }
}

/* General Card Styling */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* List group with icons */
.list-group-with-icons .list-group-item {
    display: flex;
    align-items: center;
    padding-left: 0;
    border: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.list-group-with-icons .list-group-item i {
    min-width: 25px;
}

/* Testimonial Cards */
.testimonial-card {
    border: 1px solid #eee;
}
.testimonial-card .card-text {
    font-style: italic;
    color: #555;
}
.testimonial-card .card-footer {
    font-size: 0.9em;
    color: #777;
}

/* Contact Info Icons */
.contact-info i {
    font-size: 1.8rem;
    color: var(--orange);
}
.contact-info h5 {
    font-weight: 600;
    color: #333;
}

/* Form control styling */
.form-control:focus, .form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.chatbot-header {
    cursor: pointer;
    user-select: none;
    padding: 1rem 1.25rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--chatbot-header-bg);
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.chatbot-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.chatbot-header .btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
}

.chatbot-header .btn i {
    font-size: 1rem;
}

.chatbot-body {
    height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.chatbot-body.hidden {
    display: none;
}

.chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* New button styles for Gemini features */
.gemini-feature-buttons {
    padding: 10px;
    display: flex;
    justify-content: center;
}

.gemini-feature-buttons button {
    background-color: #6a1b9a;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gemini-feature-buttons button:hover {
    background-color: #7b2fa8;
}

.message {
    max-width: 85%;
    margin-bottom: 10px;
    word-wrap: break-word;
    font-size: 0.95em;
    padding: 10px 15px;
    border-radius: 15px;
}

.user-message {
    background-color: var(--orange);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.bot-message {
    background-color: var(--light-green);
    color: #333;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Mobile-specific Chatbot Styles */
@media (max-width: 767.98px) {
    .chatbot-container {
        width: 90%;
        right: 5%;
        bottom: 15px;
    }

    .chatbot-header {
        font-size: 0.9em;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background-color: var(--chatbot-header-bg) !important;
        padding: 1rem 1.25rem !important;
    }

    .chatbot-header h5 {
        font-size: 1rem;
        color: white;
    }

    .chatbot-header .btn {
        background: transparent !important;
        border: none !important;
        color: white !important;
        font-size: 1rem;
        padding: 0.5rem;
        display: block !important;
    }

    .chatbot-header .btn i {
        font-size: 1rem;
        display: inline-block !important;
    }

    .chatbot-body {
        display: none; /* Default hidden on mobile */
    }

    .chatbot-body:not(.hidden) {
        display: flex !important; /* Ensure visible when not hidden */
        flex-direction: column;
    }

    .chatbot-messages {
        flex-grow: 1;
        overflow-y: auto;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

    .input-group {
        display: flex !important;
        margin-top: 10px;
    }

    .form-control {
        display: block !important;
    }

    .btn-orange {
        display: inline-block !important;
    }
}

/* Products Section */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Dynamic background shapes */
.shape-orange-top-left {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 102, 0, 0.08);
    border-radius: 50%;
    z-index: 0;
    animation: rotateShape 10s linear infinite;
}
.shape-green-bottom-right {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(150, 200, 100, 0.15);
    border-radius: 50%;
    z-index: 0;
    animation: rotateShapeReverse 12s linear infinite;
}
@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes rotateShapeReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.product-card {
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
    background-color: white;
    border: 1px solid rgba(255, 102, 0, 0.1);
    display: flex;
    flex-direction: column;
}
.product-card.transform-scale-hover:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
}
.product-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    flex-grow: 1;
}
.product-card i {
    color: var(--orange) !important;
    transition: transform 0.3s ease;
}
.product-card.transform-scale-hover:hover i {
    transform: scale(1.1);
}
.product-card h3, .product-card h4 {
    font-weight: 800;
    color: var(--orange) !important;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif; /* Using Poppins for product headings */
}
.main-product-card h3 {
    font-size: 2.5rem;
}
.side-product-card h4 {
    font-size: 1.8rem;
}
.product-card .card-text {
    font-size: 1.1rem;
    color: var(--muted-text);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}
.product-card .product-features {
    padding-left: 0;
    margin-top: 2rem;
    list-style: none; /* Remove default list style */
}
.product-card .product-features li {
    text-align: left;
    margin-bottom: 0.8rem;
    color: var(--muted-text);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}
.product-card .product-features li i {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    color: #28a745; /* Success green for checkmarks */
    flex-shrink: 0;
}
.product-card .card-footer {
    border-top: none;
    padding-bottom: 2rem;
}

/* Button specific styles for this section */
.btn-orange.pulse-animation {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
    70% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
    100% { transform: scale(1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
}

/* Responsive adjustments */
@media (max-width: 991.98px) { /* Tablet and below */
    .section-title {
        font-size: 2.5rem;
    }
    .section-title::after {
        width: 100px;
        height: 5px;
    }
    .product-card {
        margin-bottom: 2rem;
    }
    .product-card .card-body {
        padding: 2rem;
    }
    .main-product-card h3 {
        font-size: 2rem;
    }
    .side-product-card h4 {
        font-size: 1.5rem;
    }
    .product-card.transform-scale-hover:hover {
        transform: translateY(-8px) scale(1.01);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
    .shape-orange-top-left, .shape-green-bottom-right {
        display: none; /* Hide shapes on smaller screens */
    }
    .chatbot-container {
        width: 300px;
        right: 15px;
        bottom: 15px;
    }
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    .py-6 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

@media (max-width: 767.98px) { /* Mobile */
    .section-title {
        font-size: 2rem;
        padding-bottom: 15px;
    }
    .section-title::after {
        width: 80px;
        height: 4px;
    }
    .lead.text-muted {
        font-size: 1.1rem;
    }
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    .product-card .card-body {
        padding: 1.5rem;
    }
    .product-card i {
        font-size: 1.5rem !important; /* Mobile icon size */
    }
    .main-product-card h3 {
        font-size: 1.8rem;
    }
    .side-product-card h4 {
        font-size: 1.4rem;
    }
    .product-card .card-text {
        font-size: 0.95rem;
    }
    .product-card .product-features li {
        font-size: 0.9rem;
    }
    /* Make buttons full width on mobile */
    .btn-orange, .btn-outline-dark {
        width: 100% !important;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        display: block;
    }
    .hero-section .btn-lg.me-3 {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
    }

    /* Mobile Learn More Button (Product Section) - Adjusted */
    #products .btn-orange.btn-lg {
        font-size: 1.0rem !important; /* Slightly reduced font size for mobile button */
        padding: 0.7rem 1.5rem !important; /* Adjusted padding for better size */
        width: auto !important; /* Allow natural width */
        max-width: 250px; /* Set a reasonable max-width for mobile */
        display: block; /* Ensure it's a block element */
        margin-left: auto; /* Center the button */
        margin-right: auto; /* Center the button */
    }
    /* Ensure the containing div centers the button if it's not full width */
    #products .main-product-card .mt-auto {
        text-align: center;
    }

    .product-card.transform-scale-hover:hover {
        transform: translateY(-5px) scale(1.005);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    .chatbot-container {
        width: 90%;
        right: 5%;
        left: 5%;
        bottom: 10px;
        max-height: 80vh;
    }
    .chatbot-body {
        height: 250px;
    }

    /* Image stacking fix for mobile */
    .hero-section .row.align-items-center > div:nth-child(1) {
        order: 2; /* Put text content after image on mobile */
    }
    .hero-section .row.align-items-center > div:nth-child(2) {
        order: 1; /* Put image content before text on mobile */
        margin-bottom: 2rem; /* Add some space below the image */
    }

    #about .row.align-items-center > div:nth-child(1) {
        order: 1;
        margin-bottom: 2rem;
    }
    #about .row.align-items-center > div:nth-child(2) {
        order: 2;
    }
}

.sticky-success-message {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background-color: #28a745;
    color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Adjust navbar position to appear below the sticky message */
.sticky-top.navbar {
    top: 0px !important;
}

/* Ensure content starts below both message and navbar */
main {
    padding-top: 120px;
}

/* FAQ Section Specific Styling */
#faq .accordion-item {
    border: none;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#faq .accordion-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

#faq .accordion-header button {
    background-color: white;
    color: var(--text-color);
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif; /* Ensure font consistency */
}

#faq .accordion-header button:not(.collapsed) {
    background-color: var(--orange);
    color: white;
    border-bottom: 1px solid var(--dark-orange);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#faq .accordion-header button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25);
    border-color: var(--orange);
}

#faq .accordion-header button .fa-question-circle {
    color: var(--orange);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

#faq .accordion-header button:not(.collapsed) .fa-question-circle {
    color: white;
}

#faq .accordion-body {
    background-color: var(--light-green);
    color: var(--muted-text);
    padding: 1.5rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Inter', sans-serif; /* Ensure font consistency */
}

/* Adjust accordion button arrow color for better visibility */
#faq .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}
#faq .accordion-button::after {
    transition: transform 0.2s ease-in-out;
}

/* Responsive adjustments for FAQ section */
@media (max-width: 767.98px) { /* Mobile */
    #faq .accordion-header button {
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }
    #faq .accordion-header button .fa-question-circle {
        font-size: 1.2rem;
    }
    #faq .accordion-body {
        padding: 1.2rem;
        font-size: 0.9rem;
    }
}

/* Video Section Specific Styling */
.video-section {
    background-color: var(--light-green);
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.video-section h2 span {
    color: var(--orange);
}

.video-section .video-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-section .video-container:hover {
    transform: scale(1.05);
}

.video-section .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-section .video-cta {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    color: var(--orange);
    margin-top: 2rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* Mobile Responsive adjustments for Video section */
@media (max-width: 767.98px) { /* Mobile */
    .video-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .video-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .video-section .video-container {
        max-width: 100%;
        border-radius: 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .video-section .video-cta {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
    
    
}





/* Final Call to Action */
        .final-cta {
            background-color: var(--orange);
            color: white;
            padding: 5rem 0;
            text-align: center;
            border-top-left-radius: 50px;
            border-top-right-radius: 50px;
        }
        .final-cta h2 {
            color: white;
            font-size: 3rem;
            margin-bottom: 2.5rem;
            font-weight: 900;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
        }
        .final-cta p {
            font-size: 1.3rem;
            color: rgba(255, 255, 255, 0.9);
            max-width: 800px;
            margin: 0 auto 3rem auto;
        }
        .final-cta .btn-light {
            color: var(--orange) !important;
            background-color: white !important;
            border-color: white !important;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            font-size: 1.5rem;
            padding: 1rem 3rem;
            font-weight: 700;
        }
        .final-cta .btn-light:hover {
            background-color: #f0f0f0 !important;
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        }

        /* Call to Action Section for WhatsApp Group (Screenshot Design) */
       /* Call to Action Section for WhatsApp Group (Screenshot Design) */
.cta-whatsapp-section {
    background-color: #16610E; /* Dark green color */
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.cta-whatsapp-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.cta-whatsapp-section p {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}
.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: #F97A00; /* Orange color */
    color: white;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.3rem;
}
.btn-whatsapp-cta:hover {
    background-color: #e06d00; /* Slightly darker orange on hover */
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.btn-whatsapp-cta svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .final-cta {
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
    .final-cta .btn-light {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }
    .cta-whatsapp-section {
        padding: 3rem 1rem;
    }
    .cta-whatsapp-section p {
        font-size: 1rem;
    }
    .btn-whatsapp-cta {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }
}
