html {
  scroll-behavior: smooth;
}

/* ===== THEME VARIABLES ===== */
:root {

  /* Primary Blues */
  --blue-dark: #1E3A8A;
  --blue-primary: #405b9c;
  --blue-accent: #6e96c7;

  /* Light Backgrounds */
  --blue-light: #DBEAFE;
  --blue-very-light: #F0F7FF;

  /* Text */
  --text-dark: #0F172A;
  --text-medium: #334155;
  --text-light: #E0ECFF;

  /* Base */
  --white: #FFFFFF;

  /* Shadows */
  --shadow-soft: 0 6px 18px rgba(37, 99, 235, 0.15);
  --shadow-medium: 0 12px 28px rgba(37, 99, 235, 0.25);

  /* Borders */
  --border-light: 1px solid var(--blue-light);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ===== GLOBAL / RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Outfit", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
}


/* ===== FONTS ===== */
:root {
  --funnel-display: "Funnel Display", sans-serif;
}

@font-face {
  font-family: regfont;
  src: url("Nexa-ExtraLight.ttf");
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: rgba(4, 10, 28, 0.75);
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 54px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(80, 140, 255, 0.1);
  box-shadow: 0 1px 0 rgba(80, 140, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ─── LINKS ──────────────────────────────────────────────── */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  position: relative;
}

.navbar-links a {
  color: rgba(194, 212, 255, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
  transition: color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

/* Animated underline on hover */
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, #4f8fff, #82b4ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.navbar-links a:hover {
  color: #c8dcff;
  background: rgba(79, 143, 255, 0.08);
}

.navbar-links a:hover::after {
  transform: scaleX(1);
}

.navbar-links a.active {
  color: #a8c8ff;
  background: rgba(79, 143, 255, 0.12);
}

.navbar-links a.active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, #6fa8ff, #a8c8ff);
}

/* ─── HAMBURGER TOGGLE ──────────────────────────────────── */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin: 0;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(194, 212, 255, 0.8);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    justify-content: flex-end;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 54px);
    background: rgba(4, 10, 28, 0.85);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: none;
    box-shadow: none;
    padding: 0;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  }

  .navbar-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar-links.open li {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-links.open li:nth-child(1) { transition-delay: 0.05s; }
  .navbar-links.open li:nth-child(2) { transition-delay: 0.1s; }
  .navbar-links.open li:nth-child(3) { transition-delay: 0.15s; }
  .navbar-links.open li:nth-child(4) { transition-delay: 0.2s; }
  .navbar-links.open li:nth-child(5) { transition-delay: 0.25s; }
  .navbar-links.open li:nth-child(6) { transition-delay: 0.3s; }
  .navbar-links.open li:nth-child(7) { transition-delay: 0.35s; }

  .navbar-links a {
    padding: 16px 24px;
    font-size: 0.95rem;
    width: 100%;
    border-radius: 0;
    background: rgba(79, 143, 255, 0.06);
    border-bottom: 1px solid rgba(80, 140, 255, 0.08);
  }

  .navbar-links a::after {
    display: none;
  }
}

/* Glowing top accent */
.dropdown-content::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 143, 255, 0.5), transparent);
}

/* Left accent bar on hover */
.dropdown-content a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 2px;
  background: linear-gradient(180deg, #4f8fff, #82b4ff);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.18s ease;
}

.dropdown-content a:hover {
  color: #c8dcff;
  background: rgba(79, 143, 255, 0.08);
  padding-left: 24px;
}

.dropdown-content a:hover::before {
  transform: scaleY(1);
}

  
  
  /* whole page container*/
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
  position: absolute;
  left: 40px;
  color: white;
  text-decoration: none;
  font-family: "Funnel Display", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 1001;
}
h1, h2, h3, h4, p, a, li, button {
  font-family: "Funnel Display", sans-serif;
}
/* ===== HERO ===== */
.hero {
  width: 100%;
  min-height: 90vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('library.jpg') center/cover no-repeat;
  color: white;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: "Funnel Display", sans-serif;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #c8dcff);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.hero .btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background-color: var(--blue-primary);
  border-radius: 8px;
  transition: 0.3s ease;
}

.hero .btn:hover {
  background-color: var(--blue-dark);
  transform: translateY(-2px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Arrow styles */
.arrowandtext {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrowtext {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.scroll-arrow {
  font-size: 2rem;
  color: white;
  text-decoration: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* button */
.primary-btn {
   background: var(--blue-primary);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    width: auto;
}

.vol-card .primary-btn {
    margin-top: 15px;
}

.primary-btn:hover {
  background: var(--blue-dark);
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--blue-dark);
  text-align: center;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

/* search area */
.search-section {
    background: var(--blue-very-light);
    padding: 60px 0;
    text-align: center;
}

.search-grid {
    margin-top: 25px;
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(180px,1fr));*/
    gap: 15px;
}

.search-grid input,
.search-grid select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;

  background: white;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);

  transition: 0.2s ease;
}

.search-grid input:focus,
.search-grid select:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px rgba(64, 91, 156, 0.15);
}

/* cards featured oppurtunity */
.volunteer-list {
    padding: 70px 0;
    text-align: center;
}
.volnteer-list h2 {
    margin-bottom: 10px;
    font-size: 2.0rem;
}

/* ── Carousel ── */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 60px auto;
  overflow-x: auto;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* track */
.carousel-track {
  display: flex;
  gap: 20px;
  padding: 20px;
}

/* slides */
.carousel-slide {
  flex: 0 0 33%;
  scroll-snap-align: center;

  transition: 0.4s ease;

  transform: scale(0.85);
  opacity: 0.5;
  filter: blur(2px);
}

/* CENTER EFFECT */
.carousel-slide:target,
.carousel-slide:hover {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 2;
}

/* ── CARD ── */
.vol-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);

  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

/* image */
.vol-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* overlay */
.vol-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* text */
.vol-card h3 {
  position: absolute;
  bottom: 60px;
  left: 20px;
  color: white;
  font-size: 1.5rem;
  z-index: 2;
}

.vol-card p {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #e5e5e5;
  font-size: 0.9rem;
  z-index: 2;
}

/* button */
.vol-card .primary-btn {
  position: absolute;
  top: 5px;
  left: 10px;
  z-index: 2;
}




/* ── ARROWS ── */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 52px;
  height: 52px;
  border-radius: 50%;

  background: var(--blue-accent);
  color: white;
  font-size: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  z-index: 10;

  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

  transition: all 0.25s ease;
}

/* hover */
.carousel-btn:hover {
  background: #705f8f;
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 10px;   
}

.next {
  right: 10px; 
}
.location {
    display: block;
    margin: 10px 0 15px;
    color: #555;
}


.how-it-works {
  background: var(--blue-light);
  padding: 70px 0;
  text-align: center;
}
.how-it-works h2 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}
.steps div {
  background: var(--blue-very-light);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

section {
  margin-bottom: 40px;
}

.steps div i {
  font-size: 28px;
  color: var(--blue-primary);
  margin-bottom: 10px;
}

.steps div {
  transition: 0.3s ease;
}

.steps div:hover {
  transform: translateY(-6px);
}



.cta {
  text-align: center;
  padding: 100px 0;

  background: linear-gradient(
    to right,
    rgba(64, 91, 156, 0.08),
    rgba(110, 150, 199, 0.08)
  );
}

.cta .primary-btn {
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 30px;
}
.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--blue-dark);
    font-weight: 700;
}

.cta p{
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 30px;
}

/* ===== footer ===== */
.footer {
  background: var(--blue-very-light);
  color: var(--text-dark);
  padding: 60px 10% 30px;
  margin-top: 80px;
  position: relative;
  border-top: 2px solid var(--blue-light);
}

.f-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-start;
}

.f-section.mission {
  max-width: 200px;
}

.footer-left {
  display: flex;
  gap: 80px;
}

.connect {
  margin-left: auto;
}

/* ===== TEXT ===== */
.f-section h3, 
.f-section h4 {
  margin-bottom: 18px;
  font-family: "Funnel Display", sans-serif;
  color: var(--blue-dark);  
  font-weight: bold;
  font-size: 0.95rem;
}

.f-section p {
  line-height: 1.6;
  font-size: 0.85rem;
  color: var(--text-medium); 
  font-family: "Funnel Display", sans-serif;  
}

/* ===== LINKS ===== */
.f-section ul {
  list-style: none;
  padding: 0;
}

.f-section ul li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.f-section ul li a {
  color: var(--text-medium);
  text-decoration: none;
  transition: all 0.2s ease;
}

.f-section ul li a:hover {
  color: var(--blue-primary);  
  text-decoration: underline;
}

/* ===== BUTTON ===== */
.button-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid var(--blue-dark);
  color: var(--blue-dark);
  transition: all 0.25s ease;
}

.button-link:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
}

/* ===== BOTTOM ===== */
.bottom-footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  font-family:  "Funnel Display", sans-serif;;
  text-align: center;
  font-size: 0.8rem;
  color: var(--blue-medium); 
}
.featured-section {
  padding: 80px 0;
}