/* ====== VARIABLES ====== */
:root {
    --primary-color: #164516;
    --primary-light: #2e6b2e;
    --primary-dark: #0d2e0d;
    --secondary-color: #f8b400;
    --accent-color: #00a8cc;
    --dark-color: #222831;
    --light-color: #f9f9f9;
    --gray-color: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ====== RESET & BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', 'Nunito', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f7f0 100%);
    min-height: 100vh;
}

.container-fluid {
    padding: 0 15px;
}

/* ====== HEADER & NAVIGATION ====== */
.header-gradient {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.topbar {
    background: rgba(0,0,0,0.2);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-contact small {
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
}

.topbar-contact small:hover {
    color: var(--secondary-color);
}

.topbar-social .btn {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-social .btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

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

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    margin: 0 5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(22, 69, 22, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    animation: slideDown 0.3s ease;
}

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

.dropdown-item {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin: 2px 0;
    transition: var(--transition);
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* ====== HERO SECTION ====== */
.hero-section {
    background: linear-gradient(rgba(22, 69, 22, 0.9), rgba(22, 69, 22, 0.8)), 
                url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 60%, rgba(248, 180, 0, 0.1));
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    animation: fadeInUp 1s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====== SECTIONS ====== */
.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title h5 {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 15px;
}

/* ====== PROJECT CARDS ====== */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.project-title a:hover {
    color: var(--primary-color);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.meta-item {
    text-align: center;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 5px;
}

/* ====== FILTER SIDEBAR ====== */
.filter-sidebar {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.filter-clear {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-clear:hover {
    color: var(--primary-color);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-color);
}

.filter-checkbox {
    display: block;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.filter-checkbox:hover {
    background: var(--gray-color);
}

.filter-checkbox input {
    margin-right: 10px;
}

/* ====== DATA TABLE ====== */
.data-table-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    padding: 20px;
}

.dataTables_wrapper {
    position: relative;
}

.dataTables_length select {
    border: 2px solid var(--gray-color);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    outline: none;
    transition: var(--transition);
}

.dataTables_length select:focus {
    border-color: var(--primary-color);
}

.dataTables_filter input {
    border: 2px solid var(--gray-color);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    outline: none;
    transition: var(--transition);
}

.dataTables_filter input:focus {
    border-color: var(--primary-color);
}

table.dataTable {
    width: 100% !important;
    margin: 20px 0 !important;
    border-collapse: separate;
    border-spacing: 0;
}

table.dataTable thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 10px;
    border: none;
}

table.dataTable tbody td {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    vertical-align: middle;
}

table.dataTable tbody tr {
    transition: var(--transition);
    cursor: pointer;
}

table.dataTable tbody tr:hover {
    background: rgba(22, 69, 22, 0.05);
    transform: translateX(5px);
}

table.dataTable tbody tr:nth-child(even) {
    background: rgba(0,0,0,0.01);
}

/* ====== CHARTS ====== */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    height: 400px;
}

.chart-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-align: center;
}

/* ====== FOOTER ====== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png');
    opacity: 0.1;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
}

.footer-about {
    margin-bottom: 30px;
}

.footer-about p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-links h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-contact .contact-item i {
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ====== BUTTONS ====== */
.btn {
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

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

/* ====== RESPONSIVE ====== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
        margin-top: 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}