:root{
  --blue:#00A7E1;
  --yellow:#FFE100;
  --green:#0B6B2A;

  --bg:#0b0f17;
  --text:#ffffff;
  --muted: rgba(255,255,255,.78);

  --grad1:#4b1aa8;
  --grad2:#b2275c;

  --shadow: 0 22px 70px rgba(0,0,0,.45);
  --border: rgba(255,255,255,.14);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

/* ======= HEADER (fixed on scroll) ======= */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  height:100px;
  display:flex;
  align-items:center;
  background: linear-gradient(90deg, var(--grad1), var(--grad2));
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
}
.navwrap{
  width:min(1200px, calc(100% - 36px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.brand img{
  height:66px;
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.brand .name{
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:14px;
}

.navlinks{
  display:flex;
  align-items:center;
  gap:24px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  font-size:13px;
}
.navlinks a{
  color:rgba(255,255,255,.92);
  text-decoration:none;
  opacity:.9;
}
.navlinks a:hover{ opacity:1; }

.cta{
  display:flex;
  align-items:center;
  gap:10px;
}

.erasmus-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.erasmus-badge img{
  height:28px;
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.erasmus-badge span{
  font-size:11px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.4px;
  text-transform:uppercase;
  color: rgba(255,255,255,.88);
  max-width: 210px;
}

.btn{
  border:none;
  border-radius:999px;
  padding:11px 16px;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  transition: transform .15s ease, filter .15s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn-yellow{
  background: var(--yellow);
  color: #141414;
  box-shadow: 0 16px 44px rgba(255,225,0,.18);
}
.btn-outline{
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.hamburger{
  width:44px;
  height:44px;
  border-radius:12px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.hamburger span{
  width:18px;
  height:2px;
  background:#fff;
  display:block;
  position:relative;
}
.hamburger span:before,
.hamburger span:after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:#fff;
}
.hamburger span:before{ top:-6px; }
.hamburger span:after{ top:6px; }

@media (max-width: 1040px){
  .erasmus-badge span{ display:none; }
}
@media (max-width: 960px){
  .navlinks{ display:none; }
  .hamburger{ display:flex; }
  .erasmus-badge{ display:none; }
}

.mobilemenu{
  position:fixed;
  top:74px;
  left:0; right:0;
  z-index:99;
  background: rgba(10,12,18,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  transform: translateY(-120%);
  transition: transform .22s ease;
}
.mobilemenu.open{ transform: translateY(0); }
.mobilemenu .inner{
  width:min(1200px, calc(100% - 36px));
  margin:0 auto;
  padding:14px 0 16px;
  display:grid;
  gap:10px;
}
.mobilemenu a{
  color:#fff;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.6px;
  text-transform:uppercase;
  padding:10px 10px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

/* ======= HERO (animated, NO video) ======= */
.hero{
  position: relative;
  overflow: hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    url("../../images/rwanda_bg.png") center/cover no-repeat; /* adjust path if needed */
  opacity: 0.7; /* ✅ we control visibility via gradient now */
  z-index: 0;
}


/* keep your hero content above the bg */
.hero > *{
  position: relative;
  z-index: 1;
}

.grid{
  position:absolute;
  inset:-10%;
  z-index:1;
  background:
    linear-gradient(to right, rgba(0,167,225,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,167,225,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity:.70;
  mask-image: radial-gradient(closest-side at 50% 35%, rgba(0,0,0,1), rgba(0,0,0,.35), transparent);
  pointer-events:none;
  animation: drift 14s linear infinite;
}
@keyframes drift{
  0%{ transform: translate3d(0,0,0); }
  100%{ transform: translate3d(-56px, 56px, 0); }
}

.shade{
  position:absolute;
  inset:0;
  z-index:2;
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(0,0,0,.20), rgba(0,0,0,.66)),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.72));
  pointer-events:none;
}

.bottomfade{
  position:absolute;
  left:0; right:0; bottom:0;
  height:130px;
  z-index:3;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.84));
  pointer-events:none;
}

#bgCanvas{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
#flowCanvas{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity: .98;
}

.hero-inner{
  position:relative;
  z-index:4;
  min-height: calc(100vh - 74px);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 46px 18px 120px;
}
.hero-content{
  width:min(980px, 100%);
}
.hero h1{
  margin:0 0 14px 0;
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.08;
  text-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.hero p{
  margin:0 auto 20px auto;
  width:min(760px, 100%);
  color: rgba(255,255,255,.82);
  font-size: clamp(14px, 1.55vw, 18px);
  line-height: 1.7;
  text-shadow: 0 14px 40px rgba(0,0,0,.50);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin-top: 12px;
}

.scrollDown{
  position:absolute;
  left:50%;
  bottom:26px;
  transform: translateX(-50%);
  width:56px;
  height:56px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.55);
  cursor:pointer;
  user-select:none;
  z-index:4;
  transition: transform .15s ease;
}
.scrollDown:hover{ transform: translateX(-50%) translateY(-2px); }
.scrollDown svg{ width:22px; height:22px; }

/* ======= FOOTER ======= */
.footer-wrap{
  background: linear-gradient(180deg, rgba(7,10,14,.94), rgba(10,12,18,.98));
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 54px 18px 0;
}
.footer-inner{
  width:min(1200px, calc(100% - 36px));
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 54px;
  padding-bottom: 36px;
}
@media (max-width: 980px){
  .footer-inner{ grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 16px;
}
.footer-brand .mark{
  width:44px;
  height:44px;
  border-radius:12px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  display:grid;
  place-items:center;
}
.footer-brand .mark svg{ width:26px; height:26px; opacity:.9; }
.footer-brand .title{
  font-weight: 950;
  letter-spacing:.6px;
  text-transform: uppercase;
  font-size: 16px;
}

.footer p{
  margin:0;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  font-size: 14px;
  max-width: 520px;
}

.follow{
  margin-top: 22px;
  display:flex;
  align-items:center;
  gap:12px;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing:.6px;
  font-weight: 900;
  font-size: 13px;
}
.socials{
  display:flex;
  gap:12px;
  align-items:center;
}
.iconbtn{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
  color:#fff;
  text-decoration:none;
}
.iconbtn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.iconbtn svg{ width:18px; height:18px; opacity:.9; }

.footer h4{
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing:.3px;
}
.links{
  display:grid;
  gap:10px;
}
.links a{
  color: rgba(255,255,255,.72);
  text-decoration:none;
  font-weight: 700;
}
.links a:hover{ color: rgba(255,255,255,.92); }

.contact{
  display:grid;
  gap:12px;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}
.contact .row{
  display:flex;
  gap:12px;
  align-items:center;
}
.contact svg{ width:18px; height:18px; opacity:.85; }

.newsletter{
  margin-top: 18px;
}
.newsbar{
  display:flex;
  width:100%;
  max-width: 520px;
  border-radius: 12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.newsbar input{
  flex:1;
  padding: 14px 14px;
  border:0;
  outline:0;
  background: transparent;
  color:#fff;
  font-weight: 700;
}
.newsbar input::placeholder{ color: rgba(255,255,255,.55); }
.newsbar button{
  padding: 0 18px;
  border:0;
  background: linear-gradient(90deg, var(--grad1), var(--grad2));
  color:#fff;
  font-weight: 950;
  letter-spacing:.4px;
  cursor:pointer;
}

.footer-bottom{
  width:min(1200px, calc(100% - 36px));
  margin:0 auto;
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 0 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color: rgba(255,255,255,.60);
  font-weight: 700;
  flex-wrap:wrap;
}
.footer-bottom a{
  color: rgba(255,255,255,.60);
  text-decoration:none;
  font-weight: 800;
}
.footer-bottom a:hover{ color: rgba(255,255,255,.85); }

.erasmus-footer{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.erasmus-footer img{
  height:28px;
  width:auto;
  display:block;
}
.erasmus-footer span{
  font-size:12px;
  color: rgba(255,255,255,.70);
  font-weight: 800;
  line-height: 1.2;
}

/* ===== Cookie bar ===== */
.cookiebar{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:200;
  padding: 14px 16px;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.12);
  display:flex;
  justify-content:center;
}
.cookie-inner{
  width:min(1200px, calc(100% - 36px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  color: rgba(255,255,255,.85);
  font-weight: 700;
}
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cookie-actions .btn{ padding:10px 14px; }
.btn-purple{
  background: rgba(178,39,92,.90);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
}
.btn-dark{
  background: rgba(255,255,255,.10);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
}

@media (prefers-reduced-motion: reduce){
  .grid{ animation:none; }
}

/* Make sure content isn't hidden behind cookie bar */
.spacer-cookie{
  height: 76px;
}

/* ===== GREATER ECOSYSTEM COMPONENTS ===== */
.ecosystem-components{
  padding: 90px 18px;
  background: linear-gradient(180deg, #0b0f17, #0a0c12);
}

.eco-inner{
  width: min(1200px, 100%);
  margin: 0 auto;
  text-align: center;
}

.ecosystem-components h2{
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.eco-intro{
  max-width: 820px;
  margin: 0 auto 50px;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.7;
}

.eco-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 980px){
  .eco-grid{ grid-template-columns: 1fr; }
}

.eco-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.eco-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.eco-card h3{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
}

.eco-card p{
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  font-size: 15px;
}
