:root {
    --dark-green: #0d7377;
    --medium-green: #14919b;
    --light-green: #e8f5e9;
    --accent-green: #32e0c4;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
}

* {
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Color Utilities */
.bg-dark-green {
    background-color: var(--dark-green) !important;
}

.bg-light-green {
    background-color: var(--light-green) !important;
}

.text-dark-green {
    color: var(--dark-green) !important;
}

.btn-dark-green {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dark-green:hover {
    background: linear-gradient(135deg, var(--medium-green) 0%, var(--dark-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.3);
    color: white;
}

.btn-outline-dark-green {
    border-color: var(--dark-green);
    color: var(--dark-green);
}

.btn-outline-dark-green:hover {
    background-color: var(--dark-green);
    color: white;
}

/* Header & Sticky */
header.sticky-top {
    z-index: 1040; /* Above most elements */
    transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
    transition: all 0.4s ease;
    overflow: hidden;
    max-height: 100px; /* Approximate height */
}

.header-scrolled .top-bar {
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
}

/* Navbar */
.navbar {
    padding: 0.85rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.header-scrolled .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem 0 !important;
}

.header-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark-green) !important;
}

.nav-link.active {
    font-weight: 700;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--dark-green), var(--accent-green));
    border-radius: 3px 3px 0 0;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--light-green);
    color: var(--dark-green);
    font-weight: 600;
}

/* Navbar Search */
.navbar-search {
    position: relative;
    transition: all 0.3s ease;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 50px;
    padding: 2px 5px 2px 15px;
    border: 1.5px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 200px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 5px 0;
    font-size: 0.85rem;
    width: 100%;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-btn {
    border: none;
    background: var(--dark-green);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.search-btn:hover {
    background: var(--medium-green);
    transform: rotate(15deg) scale(1.1);
}

.search-input-group:focus-within {
    background: white;
    border-color: var(--dark-green);
    box-shadow: 0 4px 15px rgba(13, 115, 119, 0.15);
    width: 280px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Title */
.section-title {
    font-weight: 700;
    color: var(--dark-green);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Stat Cards */
.stat-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(13, 115, 119, 0.1) !important;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.bg-primary-light {
    background-color: rgba(13, 115, 119, 0.1);
}

.bg-success-light {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-info-light {
    background-color: rgba(23, 162, 184, 0.1);
}

.text-primary {
    color: var(--dark-green) !important;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Service Cards */
.service-card {
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(13, 115, 119, 0.1) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.bg-green-light {
    background-color: rgba(13, 115, 119, 0.1);
}

/* News Cards */
.news-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Flow Steps */
.flow-step {
    position: relative;
}

.flow-number {
    width: 40px;
    height: 40px;
    background: var(--dark-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.flow-icon {
    width: 80px;
    height: 80px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-green);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.flow-step:hover .flow-icon {
    background: var(--dark-green);
    color: white;
    transform: scale(1.1);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--medium-green) 100%);
}

footer a:hover {
    opacity: 0.8;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: #ffffff;
    color: var(--dark-green) !important;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
}

/* Toast Notifications */
.toast-container {
    z-index: 9999;
    pointer-events: none;
}

.custom-toast {
    pointer-events: auto;
    background: white;
    border-left: 4px solid var(--dark-green);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    margin-bottom: 10px;
    min-width: 280px;
    max-width: 350px;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 1;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-toast.removing {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    margin-top: -60px;
    filter: blur(4px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.custom-toast.error {
    border-left-color: #dc3545;
}

.custom-toast.success {
    border-left-color: #28a745;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* DIP Tables */
.dip-table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.dip-table th {
    background: var(--dark-green);
    color: white;
    font-weight: 600;
    border: none;
}

.dip-table td {
    vertical-align: middle;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--dark-green);
    box-shadow: 0 0 0 0.2rem rgba(13, 115, 119, 0.25);
}

.form-select:focus {
    border-color: var(--dark-green);
    box-shadow: 0 0 0 0.2rem rgba(13, 115, 119, 0.25);
}

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--light-green) 0%, #fff 100%);
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

/* Page Content */
.page-content {
    padding: 50px 0;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--light-green);
    color: var(--dark-green);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--dark-green);
}

/* Tab Navigation */
.nav-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--dark-green);
    border-bottom-color: var(--dark-green);
    background: transparent;
}

/* Pagination */
.page-link {
    color: var(--dark-green);
}

.page-link:hover {
    background-color: var(--light-green);
    border-color: var(--dark-green);
    color: var(--dark-green);
}

.page-item.active .page-link {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .flow-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ============================================
   MODERN ENHANCEMENTS - Smooth & Animations
   ============================================ */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(13, 115, 119, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 115, 119, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

/* Gradient Animation for Hero */
.hero-section {
    background: linear-gradient(-45deg, var(--dark-green), var(--medium-green), #1a5f63, #14919b);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Animation with Shadow */
.hero-image {
    animation: floatSmooth 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@keyframes floatSmooth {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    }
    25% { 
        transform: translateY(-15px) rotate(1deg);
        filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
    }
    50% { 
        transform: translateY(-25px) rotate(0deg);
        filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg);
        filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
    }
}

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(13, 115, 119, 0.4);
    }
    50% { 
        box-shadow: 0 0 20px 10px rgba(13, 115, 119, 0.2);
    }
}

/* Shimmer Loading Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}

.btn-ripple:active {
    transform: scale(0.95);
}

/* Card Hover Lift with Glow */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(13, 115, 119, 0.25);
}

/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s ease;
}

.magnetic-hover:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Text Gradient Animation */
.text-gradient-animate {
    background: linear-gradient(90deg, var(--dark-green), var(--accent-green), var(--dark-green));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* Smooth Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Lists */
.stagger-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: staggerIn 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bounce In Animation */
.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Icon Spin on Hover */
.icon-spin-hover:hover i {
    animation: iconSpin 0.5s ease;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Underline Hover Effect */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Glow Border Effect */
.glow-border {
    position: relative;
    transition: all 0.3s ease;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--dark-green), var(--accent-green), var(--medium-green));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

/* Smooth Dropdown Animation */
.dropdown-menu {
    animation: dropdownSlide 0.3s ease;
    transform-origin: top;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/* Navbar Link Hover Effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--dark-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* Image Hover Zoom with Overlay */
.img-zoom-container {
    overflow: hidden;
    position: relative;
}

.img-zoom-container img {
    transition: transform 0.5s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.1);
}

.img-zoom-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 115, 119, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-zoom-container:hover::after {
    opacity: 1;
}

/* Loading Spinner */
.spinner-modern {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(13, 115, 119, 0.3);
    border-top-color: var(--dark-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Check Animation */
.check-animation {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.check-animation i {
    color: white;
    font-size: 24px;
    animation: checkmark 0.4s ease 0.2s both;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(-45deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Wave Background Animation */
.wave-bg {
    position: relative;
    overflow: hidden;
}

.wave-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Card Stack Effect */
.card-stack {
    transition: all 0.3s ease;
}

.card-stack:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.1),
        0 10px 30px rgba(13, 115, 119, 0.1);
}

/* Number Counter Animation */
.counter-animate {
    display: inline-block;
    animation: countUp 2s ease-out;
}

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

/* Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Scale In Animation */
.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In From Left */
.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

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

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-green);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--medium-green);
}

/* Focus Ring Animation */
input:focus, button:focus, a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.3);
    transition: box-shadow 0.3s ease;
}

/* Toast Slide Animation Enhancement */
.custom-toast {
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), fadeOut 0.3s ease 4.7s;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Ripple Effect for Interactive Elements */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Hover Glow for Icons */
.icon-glow-hover:hover {
    filter: drop-shadow(0 0 8px rgba(13, 115, 119, 0.6));
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Parallax Effect Base */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Status Badge Pulse */
.badge-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(13, 115, 119, 0.4);
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(13, 115, 119, 0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--dark-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-green);
    color: var(--dark-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px; /* Above mobile bottom nav */
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Multi-level Dropdown Support */
.dropdown-submenu-container {
    position: relative;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -5px;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1001;
}

/* Show on Hover for Desktop */
@media (min-width: 992px) {
    .dropdown-menu {
        overflow: visible !important;
    }
    .dropdown-submenu-container:hover > .dropdown-submenu {
        display: block !important;
    }
}

/* Submenu Arrow Indicator */
.dropdown-item-submenu::after {
    display: inline-block;
    content: "\f0da"; /* FontAwesome Right Arrow */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    float: right;
    margin-left: 10px;
}

/* Mobile Submenu Adjustments */
@media (max-width: 991.98px) {
    .dropdown-submenu {
        position: static;
        display: none;
        margin-left: 1rem;
        box-shadow: none;
        background: rgba(0,0,0,0.02);
        width: 100%;
    }
    
    .dropdown-submenu-container.open > .dropdown-submenu {
        display: block !important;
    }
}
