/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f8f2;
    scroll-behavior: smooth; /* Smooth scrolling between sections */
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #2c7a7b, #68d391);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: slideIn 0.5s ease-out;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 2rem;
    position: relative; /* For pseudo-element positioning */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative; /* For pseudo-element positioning */
    padding-bottom: 0.5rem;
}

nav ul li a::after {
    content: '';
    display: block;
    height: 2px;
    background: white;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.login-container h2 {
    margin-bottom: 2rem;
    color: #2c7a7b;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #68d391;
}

.login-button {
    background: linear-gradient(45deg, #68d391, #2c7a7b);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-weight: 600;
}

.login-button:hover {
    background: linear-gradient(45deg, #2c7a7b, #68d391);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the video covers the section */
    z-index: -1; /* Place the video behind the content */
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 2s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-out 0.5s;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #68d391, #2c7a7b);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(45deg, #2c7a7b, #68d391);
    transform: scale(1.05);
}

/* Virtual Garden Section */
#garden {
    background-color: white;
    padding: 2rem 1rem;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#search-input {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    width: 300px;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #68d391;
}

#search-btn {
    background-color: #68d391;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#search-btn:hover {
    background-color: #2c7a7b;
    transform: scale(1.05);
}

.search-container select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    width: 200px;
    transition: border-color 0.3s ease;
}

.search-container select:focus {
    border-color: #68d391;
}

/* Plant Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.plant-slider {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

.plant-grid {
    display: flex;
    gap: 2rem;
    animation: slideIn 1s ease-out;
}

.plant-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 0 0 20%;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.plant-card:hover {
    transform: translateY(-5px);
}

.plant-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.plant-info {
    padding: 1rem;
}

.plant-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c7a7b;
    margin-bottom: 0.5rem;
}

.plant-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-more {
    display: inline-block;
    background-color: #68d391;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-more:hover {
    background-color: #2c7a7b;
    transform: scale(1.05);
}

/* Slider Controls */
.prev-btn, .next-btn {
    background-color: #68d391;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #2c7a7b;
    transform: scale(1.05);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Header */
/* 🔹 General Styling */
.image-search {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 50px auto;
    width: 80%;
    max-width: 1000px;
    height: auto;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🔹 Card Styling */
.card {
    flex: 1;  
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    perspective: 1000px;
    padding: 20px;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 🔹 Upload Button */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.upload-container input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 90%;
    text-align: center;
}

.upload-container .cta-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.upload-container .cta-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* 🔹 Plant Details */
#plantDetails {
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 🔹 Plant Image */
#search-image-section .plant-image-container {
    text-align: center;
    margin-top: 30px;
}

#search-image-section .plant-image {
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

/* 🔹 Loading Spinner */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🔹 Responsive Design */
@media screen and (max-width: 768px) {
    .image-search {
        flex-direction: column;
        height: auto;
        align-items: center;
        width: 90%;
    }

    #plant-identification-section, #search-image-section {
        width: 100%;
        margin-bottom: 20px;
    }
}



/* Detailed Sections */
.detailed-info {
    display: none; /* Hide all detailed sections by default */
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.detailed-info:target {
    display: block; /* Show the section when it is targeted */
}

/* Center the About AYUSH section */
.about-ayush {
    text-align: center;
}

.about-ayush a {
    display: inline-block;
    margin: 10px;
}


/* Animation Definitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .plant-card {
        flex: 0 0 90%;
        margin: 0 auto;
    }

    .plant-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-btn, .next-btn {
        display: none;
    }

    .search-container {
        flex-direction: column;
        gap: 1rem;
    }

    .login-container {
        margin: 2rem auto;
    }
}
/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f8f2;
    scroll-behavior: smooth; /* Smooth scrolling between sections */
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #2c7a7b, #68d391);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: slideIn 0.5s ease-out;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 2rem;
    position: relative; /* For pseudo-element positioning */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative; /* For pseudo-element positioning */
    padding-bottom: 0.5rem;
}

nav ul li a::after {
    content: '';
    display: block;
    height: 2px;
    background: white;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.login-container h2 {
    margin-bottom: 2rem;
    color: #2c7a7b;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #68d391;
}

.login-button {
    background: linear-gradient(45deg, #68d391, #2c7a7b);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-weight: 600;
}

.login-button:hover {
    background: linear-gradient(45deg, #2c7a7b, #68d391);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 2s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-out 0.5s;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #68d391, #2c7a7b);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(45deg, #2c7a7b, #68d391);
    transform: scale(1.05);
}

/* Virtual Garden Section */
#garden {
    background-color: white;
    padding: 2rem 1rem;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#search-input {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px 0 0 50px;
    width: 300px;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    border-color: #68d391;
}

#search-btn {
    background-color: #68d391;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#search-btn:hover {
    background-color: #2c7a7b;
    transform: scale(1.05);
}

.search-container select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    width: 200px;
    transition: border-color 0.3s ease;
}

.search-container select:focus {
    border-color: #68d391;
}

/* Plant Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.plant-slider {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    will-change: transform;
}

.plant-grid {
    display: flex;
    gap: 2rem;
    animation: slideIn 1s ease-out;
}

.plant-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 0 0 20%;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.plant-card:hover {
    transform: translateY(-5px);
}

.plant-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.plant-info {
    padding: 1rem;
}

.plant-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c7a7b;
    margin-bottom: 0.5rem;
}

.plant-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.view-more {
    display: inline-block;
    background-color: #68d391;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-more:hover {
    background-color: #2c7a7b;
    transform: scale(1.05);
}

/* Slider Controls */
.prev-btn, .next-btn {
    background-color: #68d391;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #2c7a7b;
    transform: scale(1.05);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Detailed Sections */
.detailed-info {
    display: none; /* Hide all detailed sections by default */
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.detailed-info:target {
    display: block; /* Show the section when it is targeted */
}

/* Animation Definitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .plant-card {
        flex: 0 0 90%;
        margin: 0 auto;
    }

    .plant-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .prev-btn, .next-btn {
        display: none;
    }

    .search-container {
        flex-direction: column;
        gap: 1rem;
    }

    .login-container {
        margin: 2rem auto;
    }
}

/* Learning Page Styles */
#learning {
    background-color: #f9f9f9;
    padding: 2rem 1rem;
}

.learning-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.learning-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c7a7b;
}

.resource-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.resource-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
}

.resource-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resource-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.learn-more {
    display: inline-block;
    background-color: #68d391;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.learn-more:hover {
    background-color: #2c7a7b;
    transform: scale(1.05);
}

footer {
    background: #2c7a7b;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}


/* css/style.css */

/* Bot Icon style */
#bot-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bot-icon img {
    width: 35px;
    height: 35px;
}

/* Chatbot Webchat will be hidden initially */
#botpress-webchat {
    display: none; /* Hidden by default */
}



/* General Section Styles */
#guided-tours {
    padding: 20px;
    background-color: #f4f4f4;
}

#guided-tours h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #207267;
}

/* Tour Container */
.tour-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Tour Card Styles */
.tour-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.tour-image {
    width: 100%;
    height: auto;
    display: block;
}

.tour-content {
    padding: 15px;
}

.tour-content h3 {
    margin: 10px 0;
    font-size: 1.5em;
}

.tour-content h3 a {
    text-decoration: none;
    color: #2c7a7b;
}

.tour-content h3 a:hover {
    color: #235f4c;
}

.tour-content p {
    color: #666;
    font-size: 1em;
}
