/* ============================================================
   KOPJASSAM - Main Stylesheet
   ============================================================ */

/* ---------- Root Variables ---------- */
:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --gold: #FFD700;
    --dark-gold: #F5A623;
    --mountain-blue: #64B5F6;
    --dark-blue: #1565C0;
}

/* ---------- Reset / Global ---------- */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #f8f9fa;
}

/* ---------- Navbar ---------- */
.navbar {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar .container {
    flex-wrap: nowrap !important;
}

.navbar-brand img {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    height: 50px;
    width: 50px;
    object-fit: cover;
}

.navbar-alias-mobile {
    font-weight: 600;
    color: #fff !important;
    font-size: 1.3rem;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: rgba(255,255,255,0.85) !important;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #FFD700 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #FFD700 !important;
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
    color: white;
    padding: 100px 0 70px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 700;
}

.hero-section .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
}

.hero-section .btn-light {
    background: #FFD700;
    border-color: #FFD700;
    color: #1B5E20;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
}

.hero-section .btn-light:hover {
    background: #F5A623;
    border-color: #F5A623;
    color: #1B5E20;
}

.hero-section .btn-outline-light {
    border-color: #FFD700;
    color: #FFD700;
    border-radius: 50px;
    padding: 12px 30px;
}

.hero-section .btn-outline-light:hover {
    background: #FFD700;
    color: #1B5E20;
}

/* ---------- Section Titles ---------- */
section h2 {
    color: #1B5E20;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #F5A623);
    border-radius: 2px;
}

/* ---------- Cards & Icons ---------- */
.icon-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.icon-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px !important;
    overflow: hidden;
    border: none;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

.card .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-top: 4px solid #FFD700;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

footer h4, footer h5 {
    color: #FFD700;
    font-weight: 600;
}

footer a.text-white-50 {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a.text-white-50:hover {
    color: #FFD700 !important;
}

footer .fab {
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .fab:hover {
    transform: scale(1.2);
    color: #FFD700 !important;
}

footer hr {
    border-color: rgba(255, 215, 0, 0.2);
}

/* ---------- Responsive Mobile ---------- */
@media (max-width: 991.98px) {
    .navbar .container {
        position: relative;
    }
    .navbar-brand img {
        height: 40px;
        width: 40px;
    }
    .navbar-alias-mobile {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.2rem;
        color: #fff !important;
        white-space: nowrap;
        z-index: 10;
    }
    .navbar-toggler {
        margin-left: auto;
        border-color: rgba(255,255,255,0.5);
    }
    .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }
    .hero-section {
        min-height: auto;
        padding: 80px 0 50px 0;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px !important;
    }
    .hero-section .btn.me-2 {
        margin-right: 0 !important;
    }
    .navbar-alias-mobile {
        font-size: 1rem;
    }
}