/* style.css - Lush Green Enhanced Version */

/* Lush Green Color Palette */
:root {
    --primary-green: #1B5E20;        /* Deep Forest Green */
    --secondary-green: #2E7D32;      /* Rich Green */
    --accent-green: #4CAF50;         /* Fresh Green */
    --light-green: #A5D6A7;         /* Soft Green */
    --pale-green: #E8F5E8;          /* Very Light Green */
    --gold-accent: #FFD700;         /* Natural Gold */
    --earth-brown: #6D4C41;         /* Earthy Brown */
    --cream: #FFF8E1;               /* Warm Cream */
    --sage-green: #87A96B;          /* Sage Green */
    --emerald: #00695C;             /* Emerald Green */
}

/* Fonts */
.font-playfair { font-family: 'Playfair Display', serif; }
.font-inter { font-family: 'Inter', sans-serif; }
.font-dancing { font-family: 'Dancing Script', cursive; }

/* Body and Base Styles */
body {
    background: linear-gradient(135deg, var(--pale-green) 0%, var(--cream) 100%);
    color: var(--primary-green);
}

/* Enhanced Animations with Nature Theme */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(76, 175, 80, 0); }
}

/* Lush Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(27, 94, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(165, 214, 167, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation Enhanced */
#navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: linear-gradient(135deg, 
        rgba(27, 94, 32, 0.95) 0%, 
        rgba(46, 125, 50, 0.95) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(27, 94, 32, 0.3);
    border-bottom: 2px solid var(--accent-green);
}

/* Hero Section Lush Enhancement */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(27, 94, 32, 0.7) 0%,
        rgba(46, 125, 50, 0.6) 50%,
        rgba(76, 175, 80, 0.5) 100%
    );
}

/* Typing Animation with Green Cursor */
.typing-text {
    border-right: 3px solid var(--gold-accent);
    animation: typing 3s steps(20) 1s forwards, blink 1s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--secondary-green) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
}

.btn-secondary {
    border: 2px solid var(--gold-accent);
    color: var(--gold-accent);
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--gold-accent);
    color: var(--primary-green);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* Lush Section Backgrounds */
.section-bg-light {
    background: linear-gradient(135deg, 
        var(--pale-green) 0%, 
        rgba(255, 248, 225, 0.8) 100%);
    position: relative;
}

.section-bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234CAF50' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.section-bg-dark {
    background: linear-gradient(135deg, 
        var(--primary-green) 0%, 
        var(--emerald) 100%);
    position: relative;
}

/* Enhanced Cards */
.facility-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-green) 0%, 
        var(--gold-accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.facility-card:hover::before {
    transform: scaleX(1);
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.2);
    border-color: var(--accent-green);
}

/* Facility Icons with Lush Effects */
.facility-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, 
        var(--light-green) 0%, 
        var(--accent-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.facility-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
}

.facility-card:hover .facility-icon::before {
    transform: rotate(45deg) translate(100%, 100%);
}

.facility-icon:hover {
    animation: pulse-green 2s infinite;
    transform: scale(1.1);
}

/* Gallery Enhancements */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(27, 94, 32, 0.3) 0%, 
        rgba(76, 175, 80, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.4);
}

/* Contact Section Enhancement */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.2);
}

.form-input {
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.8);
}

.form-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    background: white;
    outline: none;
}

/* Enhanced Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Nature-inspired Loading Animation */
.loading-leaf {
    animation: leafFloat 2s ease-in-out infinite;
}

/* Back to Top Button Enhancement */
#back-to-top {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--secondary-green) 100%);
    border: 2px solid var(--gold-accent);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
    animation: pulse-green 1.5s infinite;
}

/* Footer Enhancement */
.footer-bg {
    background: linear-gradient(135deg, 
        var(--primary-green) 0%, 
        var(--earth-brown) 100%);
    position: relative;
}

.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Lightbox Enhancement */
#lightbox {
    background: rgba(27, 94, 32, 0.95);
    backdrop-filter: blur(10px);
}

/* Custom Scrollbar - Lush Theme */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--pale-green);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--accent-green) 0%, 
        var(--secondary-green) 100%);
    border-radius: 6px;
    border: 2px solid var(--pale-green);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        var(--secondary-green) 0%, 
        var(--primary-green) 100%);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .facility-icon {
        width: 60px;
        height: 60px;
    }
    
    .typing-text {
        font-size: 2.5rem;
    }
}

/* Text Selection */
::selection {
    background: var(--gold-accent);
    color: var(--primary-green);
}

::-moz-selection {
    background: var(--gold-accent);
    color: var(--primary-green);
}

/* Accessibility - High Contrast */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #0D4E0F;
        --secondary-green: #1B5E1F;
        --accent-green: #2E7D32;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .no-print, #navbar, #back-to-top, .lightbox {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Additional Lush Effects */
.text-gradient {
    background: linear-gradient(135deg, 
        var(--secondary-green) 0%, 
        var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, 
        var(--accent-green) 0%, 
        var(--gold-accent) 100%) 1;
}

/* Floating Elements */
.float-element {
    animation: leafFloat 3s ease-in-out infinite;
}

.float-element:nth-child(2n) {
    animation-delay: 1s;
}

.float-element:nth-child(3n) {
    animation-delay: 2s;
}

/* Mobile Menu - Fixed Version */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure button is clickable */
#mobile-menu-btn {
    z-index: 50;
    cursor: pointer;
}