/* Hero Section - Enhanced with Slider */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-color: transparent !important;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

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

.text-shadow {
    text-shadow: 2px 4px 12px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
}

/* Breadcrumb Custom */
.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.breadcrumb-custom .breadcrumb {
    margin: 0;
    background: transparent;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: white;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Section Padding */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Stat Cards - Enhanced with gradients */
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.9), rgba(255,255,255,0.5));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.stat-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.stat-card .display-4 {
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Gradient backgrounds for stat cards */
.bg-primary-gradient {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
}

/* Card Hover Effects - Enhanced */
.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
}

.card-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.card-hover:hover::after {
    width: 400px;
    height: 400px;
}

.card-hover:hover {
    transform: translateY(-15px) rotate(1deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2) !important;
}

/* Image Cover - Fixed aspect ratio and positioning */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.card-hover:hover .img-cover {
    transform: scale(1.15) rotate(-2deg);
    filter: brightness(1.1) contrast(1.05);
}

/* Card Body */
.card-hover .card-body {
    padding: 1.75rem;
    position: relative;
    z-index: 1;
}

.card-hover .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #2e7d32;
    font-weight: 700;
    transition: color 0.3s ease;
}

.card-hover:hover .card-title {
    color: #1b5e20;
}

/* Badge Enhancements */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Dipterocarp Genus Cards */
.border {
    transition: all 0.3s ease;
}

.border:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(46, 125, 50, 0.15);
    background: white !important;
}

.border i {
    transition: transform 0.3s ease;
}

.border:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Border Left Primary */
.border-left-primary {
    border-left: 5px solid #1976d2 !important;
    transition: all 0.3s ease;
}

.border-left-primary:hover {
    border-left-width: 8px !important;
    transform: translateX(5px);
}

/* Table Custom - Enhanced */
.table-custom {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.table-custom thead {
    background: linear-gradient(135deg, #2e7d32, #4caf50, #66bb6a);
    color: white;
}

.table-custom thead th {
    border: none;
    padding: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.table-custom tbody tr {
    transition: all 0.4s ease;
}

.table-custom tbody tr:hover {
    background: linear-gradient(90deg, #f8fdf8 0%, #e8f5e9 50%, #f8fdf8 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.table-custom tbody td {
    padding: 1.25rem;
    vertical-align: middle;
}

/* Card Headers */
.card-header {
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* List Group */
.list-group-item-action {
    transition: all 0.3s ease;
    border-radius: 10px !important;
    margin-bottom: 6px;
    border: none;
}

.list-group-item-action:hover {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateX(8px);
    padding-left: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.list-group-item-action i {
    transition: transform 0.3s ease;
}

.list-group-item-action:hover i {
    transform: scale(1.2);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Pulse animation for icons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.border i {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Hero badges */
.hero-content .badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
}

/* Enhanced shadows */
.shadow-sm {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
}

.shadow-sm:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.15) !important;
}

/* Section titles */
h2 {
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2e7d32, #4caf50, #66bb6a);
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card-hover:hover {
    animation: float 3s ease-in-out infinite;
}
