html {
  scroll-behavior: smooth;
}

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

  /* Primary Blues */
  --blue-dark: #1E3A8A;
  --blue-primary: #2563EB;
  --blue-accent: #60A5FA;

  /* 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);
}

#references {
  padding-top: 60px;
}
.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;
}
/* ===== references  ===== */

.references {
  background: linear-gradient(to bottom, #eef4ff, #ffffff);
  padding: 130px 20px 80px;
  text-align: center;
}

.references h1 {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--blue);

  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;   /* fully rounded */

  box-shadow: 0 10px 30px rgba(30, 80, 180, 0.08);
  backdrop-filter: blur(10px);
  font-family: "Funnel Display", sans-serif;
}

/* Card styling */
.card {
  max-width: 850px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(30, 80, 180, 0.08);
  backdrop-filter: blur(12px);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--blue);
  font-family: "Funnel Display", sans-serif;
}

.card p {
  line-height: 1.7;
  color: #444;
  font-size: 15px;
  font-family: "Funnel Display", sans-serif;
}

.card ul {
  padding-left: 20px;
}

.card li {
  margin-bottom: 12px;
  color: #444;
  line-height: 1.6;
}

/* Link styling */
.card a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
  font-family: "Funnel Display", sans-serif;
}

.card a:hover {
  text-decoration: underline;
}

/* Hover effect */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(30, 80, 180, 0.12);
}


/* ── REFERENCES SECTION ── */

.references {
  padding: 120px 1.5rem 4rem;
  text-align: center;
}

/* Page Title */
.references h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--blue);
  font-family: "Funnel Display", sans-serif;
}

/* ── Link Boxes ── */

.link-box {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.link-box a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Funnel Display", sans-serif;
}

.link-box:hover {
  background: #dbeafe;
  transform: translateX(6px);
}


/* ===== 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;
}