:root {
  --bg: #050814;
  --bg-soft: #070b1b;
  --grid: rgba(255, 255, 255, 0.03);
  --accent-cyan: #00f5ff;
  --accent-magenta: #ff00ff;
  --accent-purple: #9b5cff;
  --text-main: #f5f5ff;
  --text-muted: #a0a3c2;
  --shadow-neon: 0 0 25px rgba(0, 245, 255, 0.6);
  --radius-lg: 18px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  color: var(--text-main);

  /* background image + overlay ya noir */
  background: 
    linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,20,0.95)),
    url("62ed12ac-27c5-504b-8fa4-95f41e163466.png") center/cover fixed no-repeat;
}


/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.95), rgba(5, 8, 20, 0.75));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
}

.logo-neo {
  color: var(--accent-cyan);
}
.logo-dev {
  color: var(--accent-magenta);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.6rem;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-menu a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.7);
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: 7rem 1.5rem 3rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(0, 245, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 245, 255, 0.4);
}

.hero h1 {
  margin-top: 1rem;
  font-size: 2.9rem;
  line-height: 1.12;
}

.accent {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  margin-top: 1.1rem;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: #02030a;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 0, 255, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border-color: rgba(0, 245, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(0, 245, 255, 0.1);
}

/* Hero card (aho haza “screen” ya code/umukoresha) */
.hero-card {
  position: relative;
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(155, 92, 255, 0.25), rgba(0, 245, 255, 0.18)),
    radial-gradient(circle at top left, rgba(255, 0, 255, 0.35), transparent 55%);
  box-shadow: 0 0 40px rgba(4, 238, 255, 0.35);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

.card-header {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-body {
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-cyan);
}

.card-sub {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.card-tech {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-tech span {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.5);
  border: 1px solid rgba(0, 245, 255, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    max-width: 360px;
    margin-inline: auto;
  }
  .nav-menu {
    display: none; /* Tuzayikoresha mu JS hamburger */
  }
}
.section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
}

.section-title span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  color: transparent;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(0, 245, 255, 0.12), rgba(155, 92, 255, 0.12));
  border: 1px solid rgba(0, 245, 255, 0.4);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.25);
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SERVICES & PROJECTS CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.service-card,
.project-card {
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(5, 8, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(0, 245, 255, 0.15), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 26px rgba(0, 245, 255, 0.45);
}

.service-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.service-card h3,
.project-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.service-card p,
.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* pills under project */
.pill-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.45);
  color: var(--accent-cyan);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2.2rem;
}

.contact-text p {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 27, 0.9);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.35);
}

/* Responsive for these sections */
@media (max-width: 900px) {
  .about-grid,
  .cards-grid,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
/* Logo ishya */
.logo-neo {
  color: var(--accent-cyan);
}
.logo-dev {
  color: var(--accent-magenta);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top, rgba(0, 245, 255, 0.08), #050814 60%);
  padding: 1.3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-name {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
}

.footer-copy {
  margin-top: 0.2rem;
}

.footer-right {
  display: flex;
  gap: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.6);
  color: var(--accent-cyan);
  font-size: 0.7rem;
  text-decoration: none;
  background: rgba(5, 8, 20, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: #02030a;
  border-color: transparent;
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.6);
}

/* Contact extra text */
.contact-direct a {
  color: var(--accent-cyan);
  text-decoration: none;
}
.contact-direct a:hover {
  text-decoration: underline;
}

/* Nav toggle (hamburger) + mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

/* mobile */
@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background: rgba(5, 8, 20, 0.96);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 3px solid rgba(0, 245, 255, 0.7);
  object-fit: cover;
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.7), 0 0 45px rgba(255, 0, 255, 0.6);
}





.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* intera hagati ya logo na links */
}
 





.neon-rain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* content hejuru ya rain */
.navbar,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.neon-rain span {
  position: absolute;
  /* duto cyane: 1px width, 40-70px height */
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(0, 245, 255, 0),
    rgba(0, 245, 255, 0.9)
  );
  opacity: 0.5;
  filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.8));
  animation: neon-rain 2.5s linear infinite;
}

/* random horizontal position + speed ikuze */
.neon-rain span:nth-child(odd) {
  height: 55px;
}

.neon-rain span:nth-child(even) {
  height: 35px;
}

/* ukoreshe percentages zitandukanye ku left + delay */
.neon-rain span:nth-child(1)  { left: 2%;  animation-duration: 2s; animation-delay: -1s; }
.neon-rain span:nth-child(2)  { left: 5%;  animation-duration: 2.7s; animation-delay: -0.4s; }
.neon-rain span:nth-child(3)  { left: 8%;  animation-duration: 2.2s; animation-delay: -1.5s; }
.neon-rain span:nth-child(4)  { left: 11%; animation-duration: 2.9s; animation-delay: -0.9s; }
.neon-rain span:nth-child(5)  { left: 14%; animation-duration: 2.4s; animation-delay: -1.8s; }
.neon-rain span:nth-child(6)  { left: 17%; animation-duration: 2.6s; animation-delay: -0.7s; }
.neon-rain span:nth-child(7)  { left: 20%; animation-duration: 2.3s; animation-delay: -1.2s; }
.neon-rain span:nth-child(8)  { left: 23%; animation-duration: 2.8s; animation-delay: -0.2s; }
.neon-rain span:nth-child(9)  { left: 26%; animation-duration: 2.1s; animation-delay: -1.1s; }
.neon-rain span:nth-child(10) { left: 29%; animation-duration: 2.6s; animation-delay: -1.7s; }
.neon-rain span:nth-child(11) { left: 32%; animation-duration: 2.3s; animation-delay: -0.3s; }
.neon-rain span:nth-child(12) { left: 35%; animation-duration: 2.9s; animation-delay: -1.4s; }
.neon-rain span:nth-child(13) { left: 38%; animation-duration: 2.2s; animation-delay: -0.8s; }
.neon-rain span:nth-child(14) { left: 41%; animation-duration: 2.5s; animation-delay: -1.6s; }
.neon-rain span:nth-child(15) { left: 44%; animation-duration: 2.7s; animation-delay: -0.5s; }
.neon-rain span:nth-child(16) { left: 47%; animation-duration: 2.1s; animation-delay: -1.3s; }
.neon-rain span:nth-child(17) { left: 50%; animation-duration: 2.4s; animation-delay: -0.6s; }
.neon-rain span:nth-child(18) { left: 53%; animation-duration: 2.8s; animation-delay: -1.9s; }
.neon-rain span:nth-child(19) { left: 56%; animation-duration: 2.2s; animation-delay: -0.1s; }
.neon-rain span:nth-child(20) { left: 59%; animation-duration: 2.6s; animation-delay: -1.0s; }
.neon-rain span:nth-child(21) { left: 62%; animation-duration: 2.3s; animation-delay: -1.5s; }
.neon-rain span:nth-child(22) { left: 65%; animation-duration: 2.7s; animation-delay: -0.7s; }
.neon-rain span:nth-child(23) { left: 68%; animation-duration: 2.1s; animation-delay: -1.2s; }
.neon-rain span:nth-child(24) { left: 71%; animation-duration: 2.9s; animation-delay: -0.3s; }
.neon-rain span:nth-child(25) { left: 74%; animation-duration: 2.4s; animation-delay: -1.4s; }
.neon-rain span:nth-child(26) { left: 77%; animation-duration: 2.6s; animation-delay: -0.9s; }
.neon-rain span:nth-child(27) { left: 80%; animation-duration: 2.2s; animation-delay: -1.8s; }
.neon-rain span:nth-child(28) { left: 83%; animation-duration: 2.5s; animation-delay: -0.2s; }
.neon-rain span:nth-child(29) { left: 86%; animation-duration: 2.8s; animation-delay: -1.1s; }
.neon-rain span:nth-child(30) { left: 89%; animation-duration: 2.3s; animation-delay: -0.6s; }
/* ntugomba gukomeza pattern neza, ushobora kopi‑pasta kugeza kuri 60 wihindurira left% */

@keyframes neon-rain {
  0% {
    transform: translateY(-120px);
  }
  100% {
    transform: translateY(110vh);
  }
}





.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 120px 1fr 50px;
  align-items: center;
  gap: 0.7rem;
}

.skill-name {
  font-size: 0.9rem;
}

.skill-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.8);
}

.skill-percent {
  font-size: 0.8rem;
  color: var(--text-muted);
}




.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.edu-card {
  border-radius: var(--radius-md);
  background: rgba(5, 8, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 26px rgba(0, 245, 255, 0.4);
}

.edu-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.edu-body {
  padding: 1rem 1.1rem 1.1rem;
}

.edu-time {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
}

.edu-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}





.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.quote-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-md);
  background: linear-gradient(
    145deg,
    rgba(0, 245, 255, 0.12),
    rgba(155, 92, 255, 0.08)
  );
  border: 1px solid rgba(0, 245, 255, 0.4);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.35);
}

.quote-text {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.7rem;
}

.quote-author {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .quotes-grid {
    grid-template-columns: 1fr;
  }
}
