@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Merriweather:wght@300;400;700&display=swap');

:root {
    /* Nature-inspired color palette */
    --primary-green: #0f6b3f;
    --primary-dark: #051f14;
    --secondary-yellow: #f4a460;
    --earth-brown: #5d4e3a;
    --water-blue: #2b7fb8;
    --light-sage: #d4e8d4;
    --cream: #faf6f1;
    --dark-forest: #1a3a2a;
    --accent-orange: #d97706;

    /* Glass & Blur Effects */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-dark: rgba(15, 107, 63, 0.08);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1e293b;
    background: linear-gradient(135deg, var(--cream) 0%, #f0ebe5 100%);
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
}

p {
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

.subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Glassmorphism Effect - Enhanced */
.glass-effect {
    background: rgba(250, 246, 241, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-effect:hover {
    background: rgba(250, 246, 241, 0.95);
    border-color: rgba(15, 107, 63, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-green);
    box-shadow: 0 20px 45px rgba(15, 107, 63, 0.15);
}

/* Premium Hero Section */
.hero-premium {
    position: relative;
    background-image: linear-gradient(135deg, rgba(15, 107, 63, 0.4) 0%, rgba(5, 31, 20, 0.6) 100%), url('images/hero_premium.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(15, 107, 63, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 164, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--cream), rgba(250, 246, 241, 0.5), transparent);
    z-index: 1;
}

/* Animations - Enhanced */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.pulse-subtle {
    animation: pulseSubtle 3s ease-in-out infinite;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.bounce-gentle {
    animation: bounceGentle 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseSubtle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceGentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar - Nature Themed */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #f0ebe5, #faf6f1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green) 0%, var(--earth-brown) 100%);
    border-radius: 10px;
    border: 3px solid var(--cream);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    box-shadow: 0 0 8px rgba(15, 107, 63, 0.3);
}

/* Utility classes */
.view-content {
    min-height: calc(100vh - 80px);
}

.view-content-public {
    min-height: calc(100vh - 40px - 72px);
    padding-top: 5rem;
}

.active-menu {
    background-color: var(--primary-green) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Login/Register Specific */
.login-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/hero_premium.png');
    background-size: cover;
    background-position: center;
}

/* Card Icons - Enhanced */
.icon-container {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.icon-container:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Interactive Buttons */
button,
a[role="button"],
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button:hover,
a[role="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

button:active,
a[role="button"]:active {
    transform: translateY(0);
}

/* Section Spacing & Readability */
section {
    scroll-margin-top: 80px;
}

section h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--secondary-yellow) 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

section h2:hover::after {
    width: 100%;
}

/* Grid layout fix */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Nature-Inspired Gradients */
.gradient-forest {
    background: linear-gradient(135deg, #0f6b3f 0%, #1a3a2a 100%);
}

.gradient-earth {
    background: linear-gradient(135deg, #8b7355 0%, #5d4e3a 100%);
}

.gradient-water {
    background: linear-gradient(135deg, #2b7fb8 0%, #1e5a7f 100%);
}

.gradient-sunset {
    background: linear-gradient(135deg, #f4a460 0%, #d97706 100%);
}

/* Text Color Variants */
.text-forest {
    color: var(--primary-dark);
}

.text-earth {
    color: var(--earth-brown);
}

.text-water {
    color: var(--water-blue);
}

.text-sage {
    color: var(--light-sage);
}

/* Background Variants */
.bg-forest-light {
    background: rgba(15, 107, 63, 0.05);
}

.bg-earth-light {
    background: rgba(93, 78, 58, 0.05);
}

.bg-water-light {
    background: rgba(43, 127, 184, 0.05);
}

/* Border Variants */
.border-forest {
    border-color: var(--primary-green);
}

.border-earth {
    border-color: var(--earth-brown);
}

.border-water {
    border-color: var(--water-blue);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.card-hover:hover .card-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.card-image {
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Stats Enhancement */
.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(250, 246, 241, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(15, 107, 63, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulseSubtle 3s ease-in-out infinite;
}

/* Interactive Link Effects */
a:not([class]) {
    color: var(--primary-green);
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:not([class])::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

a:not([class]):hover {
    color: var(--primary-dark);
}

a:not([class]):hover::after {
    width: 100%;
}

/* Input Fields Enhancement */
input,
textarea,
select {
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #faf6f1 100%);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(15, 107, 63, 0.1), inset 0 0 0 1px var(--primary-green);
    transform: translateY(-2px);
}

input::placeholder {
    color: #94a3b8;
}

/* Badge/Tag Styles */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.badge-success {
    background: rgba(15, 107, 63, 0.15);
    color: var(--primary-green);
    border: 1px solid rgba(15, 107, 63, 0.3);
}

.badge-warning {
    background: rgba(217, 119, 6, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-danger {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.2) 75%);
    background-size: 1000px 100%;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    section {
        padding: 3rem 1rem;
    }
}

/* ===== FOOTER STYLES ===== */
.footer-section,
#mainFooter {
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1b742e 0%, #0d3d1a 50%, #051f0e 100%) !important;
}

.footer-section::before,
#mainFooter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f4a460, transparent);
}

/* Force all text in footer to be visible */
#mainFooter,
#mainFooter *,
.footer-section,
.footer-section * {
    color: #ffffff;
}

#mainFooter h3,
#mainFooter h4,
.footer-section h3,
.footer-section h4 {
    color: #ffffff !important;
    font-weight: 700;
}

#mainFooter p,
.footer-section p {
    color: #d1d5db !important;
}

#mainFooter a,
.footer-section a {
    color: #d1d5db !important;
    text-decoration: none;
}

#mainFooter a:hover,
.footer-section a:hover {
    color: #f4a460 !important;
}

#mainFooter li,
.footer-section li {
    color: #d1d5db !important;
}

/* Text color utility classes for footer */
#mainFooter .text-white,
.footer-section .text-white {
    color: #ffffff !important;
}

#mainFooter .text-gray-100,
.footer-section .text-gray-100 {
    color: #f3f4f6 !important;
}

#mainFooter .text-gray-300,
.footer-section .text-gray-300 {
    color: #d1d5db !important;
}

#mainFooter .text-gray-400,
.footer-section .text-gray-400 {
    color: #9ca3af !important;
}

#mainFooter .text-secondary-yellow,
.footer-section .text-secondary-yellow {
    color: #f4a460 !important;
}

/* Footer icons */
#mainFooter i,
#mainFooter svg,
.footer-section i,
.footer-section svg {
    color: #f4a460 !important;
}

/* Footer grid layout */
#mainFooter .grid {
    display: grid !important;
}

/* Footer link containers */
#mainFooter ul,
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mainFooter ul li,
.footer-section ul li {
    margin-bottom: 0.75rem;
}

#mainFooter ul li a,
.footer-section ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* Social media icons container */
#mainFooter .flex.gap-3 a,
.footer-section .flex.gap-3 a {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
}

#mainFooter .flex.gap-3 a:hover,
.footer-section .flex.gap-3 a:hover {
    background: rgba(244, 164, 96, 0.3) !important;
    transform: translateY(-3px);
}

/* Yellow accent bar next to headings */
#mainFooter .bg-secondary-yellow,
.footer-section .bg-secondary-yellow {
    background-color: #f4a460 !important;
}

/* Footer divider */
#mainFooter .h-px,
.footer-section .h-px {
    height: 1px;
    background: linear-gradient(90deg, transparent, #f4a460, transparent) !important;
}

/* Scroll to top button */
.scroll-to-top,
#scrollToTopBtn {
    position: fixed !important;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #f4a460 !important;
    color: #051f0e !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(244, 164, 96, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-to-top:hover,
#scrollToTopBtn:hover {
    background: linear-gradient(135deg, #f4a460 0%, #d97706 100%) !important;
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 25px rgba(244, 164, 96, 0.5);
}

.scroll-to-top i,
.scroll-to-top svg,
#scrollToTopBtn i,
#scrollToTopBtn svg {
    color: #051f0e !important;
    width: 1.5rem;
    height: 1.5rem;
}

/* Hide class override for scroll button */
#scrollToTopBtn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#scrollToTopBtn:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Footer Links Hover Animation */
#mainFooter a::after,
.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f4a460;
    transition: width 0.3s ease;
}

#mainFooter a:hover::after,
.footer-section a:hover::after {
    width: 100%;
}

/* Footer contact info */
#mainFooter .flex.items-start,
.footer-section .flex.items-start {
    display: flex;
    align-items: flex-start;
}

#mainFooter .flex.items-start p,
.footer-section .flex.items-start p {
    margin: 0;
}

/* Bottom footer section */
#mainFooter .py-8,
.footer-section .py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}