/* Custom CSS for JCD Website */
:root {
    --primary: #10b981;
    /* Green economy */
    --primary-dark: #059669;
    --primary-light: #d1fae5;

    --cyber: #0ea5e9;
    /* Digitalization */
    --green: #84cc16;
    /* Nature/Sustainability */

    --dark: #0f172a;
    --light: #f8fafc;

    --text-main: #334155;
}

body {
   font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    background: linear-gradient(160deg, #f0fdf4 0%, #f8fafc 35%, #eff6ff 70%, #fdf4ff 100%);
}

.font-outfit {
   font-family: 'DM Serif Display', serif;
}

.bg-soft-primary {
    background-color: var(--primary-light) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-cyber {
    color: var(--cyber) !important;
}

.text-green {
    color: var(--green) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn {
    transition: all 0.3s ease;
}


/* ── Navbar ── */
.main-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.12);
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.10), 0 1px 0 rgba(16, 185, 129, 0.08);
}

/* Brand */
.navbar-brand {
    font-size: 1.75rem !important;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.80;
}

/* Logo image */
.nav-logo {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Nav links */
.nav-link {
    font-size: 0.93rem;
    font-weight: 500;
    color: #334155 !important;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
    border-radius: 8px;
    transition: color 0.22s ease, background 0.22s ease;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: #059669 !important;
    background: rgba(16, 185, 129, 0.08);
}

.nav-link.active {
    color: #059669 !important;
    font-weight: 600;
    position: relative;
}

/* Active underline */
.nav-link.active::after {
    content: '';
    display: block;
    width: 18px;
    height: 2.5px;
    border-radius: 4px;
    background: #10b981;
    margin: 3px auto 0;
}



/* Mobile toggler */
.navbar-toggler {
    border-color: rgba(16, 185, 129, 0.40) !important;
}

.navbar-toggler-icon {
    filter: none;
}



/* Hero Section */
@keyframes heroOrb {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.12) translate(20px, -20px);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

.hero {
    min-height: 100vh;
    padding-top: 80px;
    background: transparent;
    overflow: visible;
}

/* Top-right green glow orb */
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(52, 211, 153, 0.10) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    animation: heroOrb 10s ease-in-out infinite;
}

/* Bottom-left blue glow orb */
.hero::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -120px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.20) 0%, rgba(99, 102, 241, 0.10) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    animation: heroOrb 13s ease-in-out infinite reverse;
}

/* Pillar Cards (legacy, kept for safety) */
.pillar-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* ── Pillar Tiles (image card design) ── */
.pillars-section {
    background: transparent;
}

.pillar-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--clr, #10b981);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.30s ease, box-shadow 0.30s ease;
    cursor: default;
}

.pillar-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.12);
}

/* Image area */
.pillar-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.pillar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.pillar-tile:hover .pillar-img {
    transform: scale(1.06);
}

/* Subtle gradient overlay at bottom of image */
.pillar-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 255, 255, 0.55) 100%);
    pointer-events: none;
}

/* letter-spacing helper */
.ls-wide {
    letter-spacing: 0.08em;
}


/* Impact */
#impact .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#impact .border-secondary:hover {
    border-color: var(--primary) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Ethiopia SVG Map */
.ethiopia-map-container {
    max-width: 580px;
    margin: 0 auto;
}

.ethiopia-map-container svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(16, 185, 129, 0.25)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.ethiopia-map-container svg path {
    fill: #d1fae5;
    stroke: #10b981;
    stroke-width: 2.5;
    stroke-linejoin: round;
    transition: fill 0.3s ease;
    cursor: pointer;
}

.ethiopia-map-container svg path:hover {
    fill: #2e7d32;
}

/* Vision & Mission Cards */
.vm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.vm-accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cyber));
    border-radius: 0 0 0 1rem;
    transition: width 0.4s ease;
}

.vm-card:hover .vm-accent-bar {
    width: 100%;
}


/* Custom styling for the SVG Map Container */
.ethiopia-map-container {
    background-color: #f8f9fa;
    /* Very light grey background to make the map pop */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Subtle shadow around the box */
}

/* Styling the map itself */
.ethiopia-svg-map {
    width: 100%;
    max-width: 900px;
    filter: drop-shadow(0px 8px 12px rgba(46, 125, 50, 0.2));
    transition: transform 0.4s ease;
}

/* The Hover Effect */
.ethiopia-svg-map:hover {
    transform: translateY(-8px) scale(1.02);
}

.hero-split {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #e8f8f2; /* fallback / mobile background */
}
 
/* ── Split background (desktop) ── */
.hero-split__bg {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}
 
.hero-split__bg-left {
    flex: 1;
    background: linear-gradient(135deg, #e8f8f2 0%, #f5fdf9 50%, #ddf0ea 100%);
}
 
.hero-split__bg-right {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1a2942 50%, #0b1220 100%);
    position: relative;
}
 
/* Subtle diagonal sheen on the dark side */
.hero-split__bg-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.015) 0px,
            rgba(255, 255, 255, 0.015) 1px,
            transparent 1px,
            transparent 12px
        );
    pointer-events: none;
}
 
.hero-split__container {
    z-index: 2;
}
 
.hero-split__row {
    min-height: 640px;
}
 
/* ── Left: Content ── */
.hero-split__content {
    padding-right: 2rem;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(16px);
    animation: heroSplitFadeUp 0.7s ease forwards 0.1s;
}
 
.hero-split__eyebrow {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 1.25rem;
}
 
.hero-split__title {
    font-size: clamp(2.8rem, 5.2vw, 4.4rem);
    line-height: 1.1;
    color: #0f172a;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    max-width: 100%;
}
 
.hero-split__title-accent {
    display: block;
    color: #059669;
    font-style: italic;
}
 
.hero-split__desc {
    font-size: 1.18rem;
    color: #3a5a4a;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2.25rem;
}
 
/* Outline button — JCD Green border */
.hero-split__btn-outline {
    border: 1.5px solid #10b981;
    color: #10b981;
    background: transparent;
    font-weight: 500;
}
 
.hero-split__btn-outline:hover,
.hero-split__btn-outline:focus {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}
 
.hero-split__btn {
    font-size: 1rem;
    font-weight: 600;
}
 
/* ── Center: Overlapping image ── */
.hero-split__image-col {
    position: relative;
    z-index: 4; /* sits above the split seam */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Pull the image to the left so it crosses the seam onto the light side */
    margin-left: -5%;
    opacity: 0;
    transform: scale(0.96);
    animation: heroSplitZoom 0.85s ease forwards 0.35s;
}
 
.hero-split__image-wrap {
    width: 100%;
    max-width: 500px;
    height: 640px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.45),
        0 12px 28px rgba(16, 185, 129, 0.25),
        0 0 0 6px rgba(255, 255, 255, 0.85);
    position: relative;
}
 
.hero-split__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
 
.hero-split__image:hover {
    transform: scale(1.04);
}
 
/* ── Right: Three Pillars on dark side ── */
.hero-split__pillars {
    position: relative;
    z-index: 3;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
    opacity: 0;
    transform: translateX(24px);
    animation: heroSplitFadeLeft 0.75s ease forwards 0.55s;
}
 
.hero-split__pillar-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-left: 1.25rem;
    border-left: 3px solid rgba(16, 185, 129, 0.4);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
 
.hero-split__pillar-item:hover {
    border-left-color: #10b981;
    transform: translateX(4px);
}
 
.hero-split__pillar-icon {
    font-size: 2.4rem;
    color: #10b981;
    line-height: 1;
}
 
.hero-split__pillar-label {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e2e8f0;
    white-space: nowrap;
}
 
/* ── Animations ── */
@keyframes heroSplitFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
 
@keyframes heroSplitFadeLeft {
    to { opacity: 1; transform: translateX(0); }
}
 
@keyframes heroSplitZoom {
    to { opacity: 1; transform: scale(1); }
}
 
/* ══════════════════════════════════════════════
   MOBILE / TABLET (< 992px)
   - Disable split background → all light mint
   - Stack vertically: text → image → pillars
   - Pillars become a horizontal row inside a dark container
   ══════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .hero-split {
        padding: 120px 0 60px;
        background: linear-gradient(135deg, #e8f8f2 0%, #f5fdf9 50%, #ddf0ea 100%);
    }
 
    /* Hide the split background entirely on mobile */
    .hero-split__bg {
        display: none;
    }
 
    .hero-split__row {
        min-height: 0;
        gap: 2.5rem 0;
    }
 
    .hero-split__content {
        padding-right: 0;
        text-align: center;
    }
 
    .hero-split__desc {
        margin-left: auto;
        margin-right: auto;
    }
 
    .hero-split__cta {
        justify-content: center;
    }
 
    .hero-split__image-col {
        margin-left: 0;
        padding: 0 1rem;
    }
 
    .hero-split__image-wrap {
        max-width: 520px;
        margin: 0 auto;
        height: 420px;
    }
 
    /* Pillars: dark container, horizontal row */
    .hero-split__pillars {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
        padding: 1.75rem 1rem;
        margin: 0 0.5rem;
        background: linear-gradient(135deg, #0f172a 0%, #1a2942 100%);
        border-radius: 20px;
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
    }
 
    .hero-split__pillar-item {
        flex: 1;
        align-items: center;
        text-align: center;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(16, 185, 129, 0.35);
        padding-top: 0.85rem;
    }
 
    .hero-split__pillar-item:hover {
        transform: translateY(-3px);
        border-top-color: #10b981;
    }
 
    .hero-split__pillar-icon {
        font-size: 1.6rem;
    }
 
    .hero-split__pillar-label {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}
 
@media (max-width: 575.98px) {
    .hero-split__title {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
    }
 
    .hero-split__pillars {
        flex-direction: column;
        gap: 1.25rem;
    }
 
    .hero-split__pillar-item {
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        border-top: none;
        border-left: 2px solid rgba(16, 185, 129, 0.35);
        padding-top: 0;
        padding-left: 1rem;
        text-align: left;
        width: 100%;
    }
}
 
/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .hero-split__content,
    .hero-split__image-col,
    .hero-split__pillars {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ── Animations ── */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Scroll-to-top button ── */
#scrollTopBtn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s ease, visibility 0.35s ease,
        transform 0.35s ease, background 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 9999;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#scrollTopBtn:hover {
    background: var(--primary);
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
    transform: translateY(-4px) scale(1);
}

#scrollTopBtn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

#scrollTopBtn:hover svg {
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   Scroll Reveal System
   Usage:  data-reveal="up|left|right|fade"
           data-reveal-delay="100"  (ms, optional)
   ══════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
/* ----------------------------------------------
   Google Translate Override
   ---------------------------------------------- */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* ══════════════════════════════════════════════
   Global Footer
   ══════════════════════════════════════════════ */
.global-footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding-top: 5rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.global-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.global-footer a:hover {
    color: #10b981;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.footer-logo-img {
    height: 55px;
    width: auto;
    margin-bottom: 1.25rem;
}

.footer-mission {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Quick links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

/* Contact block */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.footer-contact-icon {
    color: #10b981;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    margin-top: 0.15rem;
}

.footer-btn {
    border: 1px solid #10b981;
    color: #10b981;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background: #10b981;
    color: #ffffff;
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background-color: #10b981;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Sub-footer */
.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}


