:root {
    --accent-color: #6df52e;
    --white: #ffffff;
    --light-color: #f8f9fa;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --hover-box-shadow: 0 10px 20px rgba(109, 245, 46, 0.3);
    --transition: all 0.3s ease-in-out;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.Services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), #4a7c29);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaves" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23leaves)"/></svg>');
    opacity: 0.3;
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Service Overview Cards */
.services-overview {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-category {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    /* Flexbox to control content layout */
    display: flex;
    flex-direction: column;
    /* Ensure all cards have equal height */
    height: 100%;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(109, 245, 46, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-category:hover::before {
    left: 100%;
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-box-shadow);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.service-category h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-category p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    /* Allow paragraph to grow and push button to bottom */
    flex-grow: 1;
}

/* Push the button to the bottom of each card */
.service-category .btn {
    margin-top: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-consultation {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    font-weight: 600;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-consultation:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-coming-soon {
    background: #ccc;
    color: #666;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn-coming-soon:hover {
    background: #bbb;
    border-color: #bbb;
    transform: none;
}

/* Service Sections */
.service-section {
    padding: 5rem 0;
}

.service-section:nth-child(even) {
    background-color: var(--light-color);
}

.service-header {
    text-align: center;
    margin-bottom: 3rem;
}

.service-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-header .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.service-content {
    max-width: 1000px;
    margin: 0 auto;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
    color: #555;
}

/* Image Gallery Styles */
.service-gallery {
    margin: 3rem 0;
    padding: 2rem 0;
}

.gallery-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Grid layouts based on number of images */
.gallery-grid.grid-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 2rem auto;
}

.gallery-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--light-color);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--hover-box-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .placeholder {
    color: #999;
    font-size: 4rem;
    opacity: 0.4;
}

.gallery-item .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Feature Boxes */
.feature-box {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.feature-box:hover {
    transform: translateX(10px);
    box-shadow: var(--hover-box-shadow);
}

.feature-box h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-box p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
}

.feature-box ul {
    list-style: none;
    padding-left: 0;
}

.feature-box li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.feature-box li::before {
    content: '✓';
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.7rem;
}

.feature-box li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Plant Grid */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.plant-category {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.plant-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-box-shadow);
}

.plant-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.plant-category p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Consultation CTA */
.consultation-cta {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #4a7c29);
    border-radius: var(--border-radius);
    color: var(--white);
}

.consultation-cta .btn {
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Coming Soon Badge */
.coming-soon {
    position: relative;
    overflow: hidden;
}

.coming-soon::after {
    content: 'COMING SOON';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575px) {
    .Services-container {
        padding: 0 15px;
    }

    .page-banner {
        padding: 2rem 0;
    }

    .page-banner h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .page-banner p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .service-section {
        padding: 3rem 0;
    }

    .service-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .service-header .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .service-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .service-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-category {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .service-category h2 {
        font-size: 1.3rem;
    }

    .service-category p {
        font-size: 0.9rem;
    }

    .feature-box {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-box h3 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .feature-box li {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }

    .gallery-grid.grid-2,
    .gallery-grid.grid-3,
    .gallery-grid.grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        min-height: 200px;
    }

    .gallery-item .placeholder {
        font-size: 3rem;
    }

    .gallery-title {
        font-size: 1.2rem;
    }

    .plant-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .plant-category {
        padding: 1.5rem;
    }

    .plant-category h4 {
        font-size: 1.1rem;
    }

    .plant-category p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .btn-consultation {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .consultation-cta {
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .Services-container {
        padding: 0 20px;
    }

    .page-banner h1 {
        font-size: 2.5rem;
    }

    .service-header h2 {
        font-size: 2rem;
    }

    .service-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid.grid-2,
    .gallery-grid.grid-3,
    .gallery-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .plant-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item {
        min-height: 220px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .page-banner h1 {
        font-size: 2.8rem;
    }

    .service-header h2 {
        font-size: 2.3rem;
    }

    .service-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .gallery-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .plant-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-box {
        padding: 2rem;
    }

    .gallery-item {
        min-height: 240px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .gallery-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .plant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .service-categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid.grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .plant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape Orientation for Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .page-banner {
        padding: 1.5rem 0;
    }

    .page-banner h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .page-banner p {
        font-size: 1rem;
    }

    .service-section {
        padding: 2rem 0;
    }

    .gallery-item {
        min-height: 150px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .category-icon,
    .gallery-item .placeholder {
        filter: contrast(1.1) brightness(1.05);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-category:hover,
    .feature-box:hover,
    .gallery-item:hover,
    .plant-category:hover {
        transform: none;
    }

    .service-category:active {
        transform: translateY(-5px);
        transition: transform 0.1s ease;
    }

    .gallery-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: translateY(1px);
    }

    /* Always show image overlays on touch devices */
    .gallery-item .image-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }
}

/* Print Styles */
@media print {
    .page-banner,
    .btn,
    .gallery-item .image-overlay {
        display: none;
    }

    .service-section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .feature-box {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .service-category,
    .feature-box,
    .gallery-item {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
    }

    .service-category:nth-child(1) { animation-delay: 0.1s; }
    .service-category:nth-child(2) { animation-delay: 0.2s; }
    .service-category:nth-child(3) { animation-delay: 0.3s; }
    .service-category:nth-child(4) { animation-delay: 0.4s; }

    .gallery-item:nth-child(1) { animation-delay: 0.1s; }
    .gallery-item:nth-child(2) { animation-delay: 0.2s; }
    .gallery-item:nth-child(3) { animation-delay: 0.3s; }
    .gallery-item:nth-child(4) { animation-delay: 0.4s; }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance Optimizations */
.gallery-item,
.service-category,
.feature-box {
    will-change: transform;
}

.gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus styles for accessibility */
.btn:focus,
.service-category:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        --hover-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }

    .feature-box {
        border: 2px solid var(--primary-color);
    }

    .gallery-item {
        border: 1px solid var(--dark-color);
    }
}