/* ===== Base ===== */
:root {
    --bg-deep: #101613;
    --bg-panel: #161f1b;
    --bg-card: #1c2723;
    --bg-card-hover: #223029;
    --accent: #3f7a5f;
    --accent-hover: #4a8e6e;
    --accent-soft: #8fae9c;
    --text: #f2f4f3;
    --text-muted: #a9b5af;
    --border-soft: rgba(143, 174, 156, 0.12);
}

* {
    scrollbar-color: var(--accent) var(--bg-deep);
}

::selection {
    background: var(--accent);
    color: #ffffff;
}

body {
    background: radial-gradient(circle at top, #142c1e 0%, var(--bg-deep) 55%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(19, 49, 31, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border-soft);
    transition: background .3s ease;
}

.navbar .nav-link {
    position: relative;
    font-weight: 500;
    transition: color .25s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent-soft);
    transition: width .25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .nav-link:hover {
    color: var(--accent-soft) !important;
}

/* ===== Sections & Headings ===== */
section {
    padding: 110px 0;
}

h2 {
    color: var(--accent-soft);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    border-radius: 2px;
}

section p.lead,
section>p {
    color: var(--text-muted);
}

/* ===== Hero ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url("../images/hero.webp") center center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 15, 10, 0.65) 0%, rgba(6, 15, 10, 0.8) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    animation: heroFadeUp .8s ease both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ===== Buttons ===== */
.btn-custom {
    background: linear-gradient(135deg, var(--accent), #2e5c47);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(63, 122, 95, 0.3);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-custom:hover {
    background: linear-gradient(135deg, var(--accent-hover), #3f7a5f);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(63, 122, 95, 0.4);
}

.btn-custom:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(63, 122, 95, 0.25);
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.card-title {
    font-weight: 700;
}

.card-text {
    color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-panel);
    padding: 40px 30px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
}

footer a {
    color: var(--accent-soft);
    transition: opacity .2s ease;
}

footer a:hover {
    opacity: .75;
}

/* ===== Placeholder ===== */
.placeholder-img {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-panel));
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    border-radius: 12px;
    color: var(--text-muted);
}

/* ===== Carousel ===== */
.carousel-item {
    height: 450px;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform .35s ease, filter .35s ease;
}

.carousel-item img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(63, 122, 95, 0.55);
    border-radius: 50%;
    padding: 20px;
    transition: background-color .2s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--accent);
}

.carousel-indicators [data-bs-target] {
    background-color: var(--accent-soft);
}

/* ===== Image Modal ===== */
#modalImage {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.image-modal {
    background: transparent;
    border: none;
}

.modal-backdrop {
    background: #000;
}

.modal-backdrop.show {
    opacity: .85;
}

/* ===== Achievements ===== */
.achievements-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform .3s ease, filter .3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.achievements-icon:hover {
    transform: scale(1.12) rotate(-2deg);
    filter: drop-shadow(0 6px 16px rgba(63, 122, 95, 0.35));
}