/* --- 1. BRAND THEME & VARIABLES --- */
:root {
    --primary-green: #2E7D32;  /* Corporate Green */
    --brand-dark: #1b5e20;     /* Deep Green */
    --brand-black: #0d2e1f;    /* Almost Black Green */
    --solar-amber: #FFC107;    /* Solar Yellow */
    --deep-slate: #1a252f;     /* Navy/Grey Text */
    --bg-light: #f3f4f6;       /* Dashboard Background */
}

body { font-family: 'Open Sans', sans-serif; color: #455a64; }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Montserrat', sans-serif; }

/* Utilities */
.fw-extrabold { font-weight: 800 !important; }
.tracking-wide { letter-spacing: 2px; }
.text-success { color: var(--primary-green) !important; }
.text-warning { color: var(--solar-amber) !important; }
.bg-success { background-color: var(--primary-green) !important; }
.bg-warning { background-color: var(--solar-amber) !important; }

/* --- 2. NAVIGATION --- */
.top-bar { background-color: var(--deep-slate); font-size: 0.85rem; }
.logo-text { font-weight: 900; font-size: 1.6rem; letter-spacing: -1px; }

.nav-link-custom {
    color: var(--deep-slate) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 15px !important;
    transition: color 0.3s;
}
.nav-link-custom:hover { color: var(--primary-green) !important; }
.hover-accent:hover { color: var(--solar-amber) !important; }

/* --- 3. BUTTONS & UI --- */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #1B5E20;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}
.btn-warning {
    background-color: var(--solar-amber);
    border-color: var(--solar-amber);
    color: #000;
    transition: all 0.3s ease;
}
.btn-warning:hover {
    background-color: #FFB300;
    transform: translateY(-3px);
}

/* --- 4. HERO SECTION --- */
.carousel-item { height: 85vh; background-size: cover; background-position: center; }
.carousel-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(26, 37, 47, 0.9), rgba(46, 125, 50, 0.6), rgba(26, 37, 47, 0.1));
    z-index: 1;
}
.carousel-caption { z-index: 2; bottom: 0; top: 0; }
.carousel-arrow-box {
    width: 50px; height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}
.carousel-arrow-box:hover { background: #fff; color: var(--primary-green); }

/* --- 5. PROJECTS & CARDS --- */
.hover-up { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.project-img-wrapper { height: 250px; overflow: hidden; position: relative; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hover-up:hover img { transform: scale(1.05); }

/* Animation for Filtering */
.animate-fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 6. TIMELINE (About Page) --- */
.timeline { position: relative; }
.timeline-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    z-index: 2;
}
.timeline-line {
    position: absolute;
    top: 20px; bottom: -50px; left: 50%;
    width: 2px;
    background-color: #dee2e6; /* Grey line */
    transform: translateX(-50%);
    z-index: 1;
}
@media (max-width: 768px) {
    .timeline-line { display: none; }
    .text-end { text-align: center !important; }
    .ps-md-5 { text-align: center !important; }
}

/* --- 7. ADMIN DASHBOARD --- */
.sidebar {
    background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-black) 100%);
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    border-radius: 12px;
    margin: 4px 16px;
    transition: all 0.3s ease;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: var(--brand-black);
    background-color: white;
    transform: translateX(5px);
}
.stat-card {
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    overflow: hidden;
    position: relative;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card.border-gold::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 5px; background: var(--solar-amber); }
.stat-card.border-green::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 5px; background: var(--primary-green); }

/* Soft Badges */
.badge-soft { padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.badge-soft-success { background-color: #e8f5e9; color: #2e7d32; }
.badge-soft-primary { background-color: #e3f2fd; color: #0d47a1; }

/* --- 8. FOOTER --- */
.hover-link:hover {
    color: var(--solar-amber) !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}