/* Root Variables */
:root {
    --primary-color: #2d6a4f;
    --secondary-color: #52b788;
    --accent-color: #74c69d;
    --dark-color: #1b4332;
    --light-color: #d8f3dc;
    --white: #ffffff;
    --gray: #6c757d;
}

/* Critical Layout Fixes for Sticky Footer */
html {
    font-size: 14px;
    scroll-behavior: smooth;
    height: 100% !important;
    min-height: 100% !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.page-wrapper {
    flex: 1 0 auto !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

.page-wrapper main {
    flex: 1;
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

.footer {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    background-color: #212529 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Header & Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
    flex-shrink: 0;
    position: sticky !important;
    top: 0 !important;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-link {
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover {
    color: var(--light-color) !important;
    transform: translateY(-2px);
}

/* Page Header with Parallax */
.page-header-parallax {
    position: relative;
    padding: 8rem 0 6rem;
    background-image: url('../../images/photo-1625246333195-78d9c38ad449.jpg');
    /* background-image: url('../../images/photo-1625246333195-78d9c38ad449.jpg'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-overlay {
    background: rgba(45, 106, 79, 0.85);
    padding: 4rem 0;
}

.page-header-parallax h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.page-header-parallax p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--light-color);
}

/* Hero Banner with Enhanced Effects */
.hero-banner {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgba(29, 67, 50, 0.25);*/
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 2rem;
    position: relative;
    max-width: 1200px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Hero Stats Row */
.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.hero-stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    min-width: 150px;
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-stat-item p {
    font-size: 1rem;
    margin: 0;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(82, 183, 136, 0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Fade In Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay-1 {
    animation: fadeIn 1.2s ease-in;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1.4s ease-in;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1.6s ease-in;
}

.animate-fade-in-delay-4 {
    animation: fadeIn 1.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
.about-section,
.plants-section,
.services-preview-section,
.process-section,
.about-content,
.contact-section,
.plant-detail-section {
    padding: 5rem 0;
    background-color: white;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
}

.plants-section,
.process-section {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* About Section Enhancements */
.about-image-wrapper {
    position: relative;
}

.about-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-badge i {
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

/* Statistics Counter Section with Background */
.stats-section {
    position: relative;
    padding: 5rem 0;
    background-image: url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-overlay {
    background: rgba(45, 106, 79, 0.85);
    padding: 3rem 0;
}

.stat-box {
    color: white;
    padding: 2rem;
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.stat-box h3 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.stat-box p {
    font-size: 1.2rem;
}

/* Services Preview Cards */
.service-preview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.service-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-preview-card h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-color);
}

/* Plants Gallery */
.plant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plant-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plant-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
}

.plant-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.plant-card:hover .plant-image {
    transform: scale(1.1);
}

.plant-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 106, 79, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plant-card:hover .plant-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.plant-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plant-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.plant-hindi-name {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plant-category {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.plant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.plant-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.plant-action {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Journey Timeline Section with Background */
.journey-section {
    position: relative;
    padding: 5rem 0;
    background-image: url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.journey-overlay {
    background: rgba(27, 67, 50, 0.9);
    padding: 3rem 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--light-color);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    align-self: flex-end;
    text-align: right;
    margin-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-content {
    align-self: flex-start;
    text-align: left;
    margin-left: calc(50% + 40px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 4px solid var(--light-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timeline-content h5 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Why Choose Us */
.why-choose-us {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Process Section */
.process-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.process-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.process-card h5 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Testimonials Section with Background */
.testimonials-section {
    position: relative;
    padding: 5rem 0;
    background-image: url('../../images/photo-1574943320219-553eb213f72d.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.testimonials-overlay {
    background: rgba(82, 183, 136, 0.85);
    padding: 3rem 0;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-author h5 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.rating i {
    color: #ffc107;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    margin-top: 2rem;
}

/* Contact Page */
.contact-section {
    background-color: #f8f9fa;
}

.contact-info-card,
.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    margin-right: 1rem;
    min-width: 40px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.map-container {
    margin-top: 3rem;
}

/* Footer Styling */
.footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-color) !important;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats-row {
        gap: 1rem;
    }

    .hero-stat-item {
        min-width: 120px;
        padding: 1rem 1.5rem;
    }

    .hero-stat-item h3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }

    .about-section,
    .plants-section,
    .contact-section,
    .services-preview-section,
    .process-section {
        padding: 3rem 0;
    }

    .stats-section,
    .journey-section,
    .testimonials-section {
        padding: 3rem 0;
        background-attachment: scroll;
    }
}

/* Utility Classes */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--secondary-color);
}

/* Ensure proper spacing and clear floats */
section {
    clear: both;
    display: block;
    position: relative;
}