/* Shared Styles for All Pages */
.hero-bg {
    background: linear-gradient(135deg, rgba(141, 197, 63, 0.08) 0%, rgba(107, 142, 35, 0.12) 50%, rgba(244, 241, 232, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="20" cy="80" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    background: linear-gradient(135deg, #6B8E23 0%, #8DC53F 50%, #5A7A1A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-text {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.4s both;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(141, 197, 63, 0.1), rgba(107, 142, 35, 0.1));
    border-radius: 0.5rem;
    z-index: -1;
}

.content-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(141, 197, 63, 0.2);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(141, 197, 63, 0.4);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-leaf {
    position: absolute;
    width: 15px;
    height: 15px;
    background: rgba(141, 197, 63, 0.1);
    border-radius: 50% 0;
    animation: float 8s ease-in-out infinite;
}

.floating-leaf:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-leaf:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.floating-leaf:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: 6s;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

.icon-wrapper {
    background: linear-gradient(135deg, rgba(141, 197, 63, 0.1), rgba(107, 142, 35, 0.1));
    transition: all 0.3s ease;
}

.content-card:hover .icon-wrapper {
    background: linear-gradient(135deg, rgba(141, 197, 63, 0.2), rgba(107, 142, 35, 0.2));
    transform: scale(1.1);
}

.stats-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(141, 197, 63, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section Styles */
.testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(141, 197, 63, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(141, 197, 63, 0.3);
}

.testimonial-card blockquote {
    position: relative;
}

.testimonial-card blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #8DC53F, #6B8E23);
    border-radius: 2px;
}

/* Gallery Styles */
.gallery-container {
    position: relative;
}

.gallery-main-image {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    animation: fadeInImage 0.5s ease-in-out;
}

.gallery-main-image.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-nav-button {
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-nav-button:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-nav-button:active {
    transform: translateY(-50%) scale(1.05);
}

.gallery-thumbnail-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(141, 197, 63, 0.3) transparent;
}

.gallery-thumbnail-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnail-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.gallery-thumbnail-container::-webkit-scrollbar-thumb {
    background: rgba(141, 197, 63, 0.4);
    border-radius: 4px;
}

.gallery-thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: rgba(141, 197, 63, 0.6);
}

.gallery-thumbnail {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.gallery-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-thumbnail:hover::before {
    border-color: rgba(141, 197, 63, 0.5);
}

.gallery-thumbnail.active {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(141, 197, 63, 0.3);
}

.gallery-thumbnail.active::before {
    border-color: #8DC53F;
    border-width: 3px;
}

.gallery-thumbnail.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8DC53F, #6B8E23);
    z-index: 2;
}

.gallery-thumbnail img {
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
}

.gallery-counter {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.gallery-counter:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
