@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
  margin: 0;  
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;

}

body{
  width: 100%;
  height: auto;
  background-color: aliceblue;
  overflow-x: hidden;
  padding-top: 10vh;

}


::-webkit-scrollbar{
  width: 10px;

}

::-webkit-scrollbar-track{
  background: white;

}

::-webkit-scrollbar-thumb{
  background: rgb(176, 227, 243);
  border-radius: 12px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover{
  background: black;
}


 nav{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 10vh;
  background: aliceblue;
}



.nav-container{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo{
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.logo span{
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: rgb(3,36,85);

  /* glow + depth */
  text-shadow:
    0 2px 6px rgba(3,36,85,0.25),
    0 0 18px rgba(3,36,85,0.45);
}
.logo span::after{
  content: "";
  display: block;
  margin: 6px auto 0;
  width: 45%;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(3,36,85,0.2),
    rgb(3,36,85),
    rgba(3,36,85,0.2)
  );
  border-radius: 4px;
  animation: underlinePulse 2.5s ease-in-out infinite;
}

@keyframes underlinePulse{
  0%,100%{ opacity: 0.6; width: 45%; }
  50%{ opacity: 1; width: 65%; }
}


.hamburg,.cancel{
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  color: black;
  opacity: 0;
  pointer-events: none;
  font-size: clamp(2.5rem, 0.5rem +5vw, 3rem);
}

.nav-container .links{
  display: flex;
}


.nav-container .links a{
  position: relative;
  font-size: 1.2rem;
  color: rgb(68, 129, 153);
  margin: 0 20px;
  text-decoration: none;
  font-weight: 550;
  transition: 0.3s linear;

}

.nav-container .links a::before{
  position: absolute;
  content: "";
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: black;
  transition: 0.2s linear;

}

.nav-container .links a:hover::before{
  width: 100%;

}

.nav-container .links a:hover{
  color: rgb(3, 36, 85);
}

.dropdown{
  display: none;
  position: absolute;
  top: 10vh;               /* starts right under your nav height */
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  /* hidden state */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* open state */
.dropdown.active{
  max-height: 350px; /* adjust if you add more links */
}

  .dropdown.active .cancel{
    opacity: 1;
    pointer-events: auto;
  }

/* links list vertical */
.dropdown .links{
  display: flex;
  flex-direction: column;
}

/* each link looks like a menu row */
.dropdown .links a{
  padding: 14px 0;
  text-align: center;
  width: 100%;
  color: rgb(3, 36, 85);
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.dropdown .links a:hover{
  background: rgb(3, 36, 85);
  color: white;
}

/* X button placement */
.dropdown .cancel{
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 2rem;
  color: rgb(3, 36, 85);
}


section{
  width: 100%; 
  min-height: 90vh;

}

section .main-container{
display: flex;
justify-content: space-between;
padding: 100px;
align-items: center;


}

.main-container .image{
  width: 500px;
  height: 80vh;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 0 50px rgb(3, 36, 85);
}

.main-container .image img{
  width: 100%;

}

.main-container .image img:hover{
 animation: animate 1.5s ease-in-out; 
}

.main-container .image:hover{
 animation: animate 1.5s ease-in-out; 
}

@keyframes animate{
  0%{
    scale: 1;
  }
  50%{
    scale: 1.05;
  }
  100%{
    scale: 1;
  }
}


.main-container .content{
color:  black;
width: 40%;
}

.content h1{
  font-size: clamp(1rem,1rem +5vw,1.8rem);
  font-weight: 600;

}

.content h1 span{
  color: rgb(185, 213, 238) ;
  text-shadow:  0 0 10px rgb(3, 36, 85);
}

.content p{
 font-size: clamp(0.3rem,0.2rem + 9vw, 1rem);
 margin: 10px 0;
}

.social-links i{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background-color: transparent;
  border: 0.2rem solid rgb(3, 36, 85);
  border-radius: 50%;
  color: rgb(3, 36, 85);
  margin: 5px 15px;
  font-size: 1.5rem;
  transition: 0.2s linear;
}

.social-links i:hover{
  scale: 1.3; 
  color: rgb(252, 252, 252);
  background-color: rgb(3, 36, 85);
  filter: drop-shadow(0 0 10px rgb(3, 36, 85));

}

.content button{
  width: 50%;
  height: 6vh;
  margin: 30px;
  background-color: rgb(3, 36, 85);
  color: white;
  border: none;
  outline: none;
  font-size: 120%;
  font-weight: 700;
  border-radius: 5px;
  transition: 0.2s linear;

}

.content button:hover{
  scale: 1.1;
  color: rgb(3, 36, 85);
  border: 2px solid rgb(3, 36, 85);
  background-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 40px rgb(3, 36, 85);
  
}






section .content{
  width: 80%;
  margin: 0px auto;
  font-family: 'Poppins', sans-serif;


}

.about .about-details{
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}
section .title{
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

section .title span{
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* BIG but responsive */
  font-weight: 800;
  color: rgb(3,36,85);
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

section .title span::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 5px; /* thicker underline */
  background: rgb(3,36,85);
  transition: 0.3s ease;
}

section:hover .title span::after{
  width: 100%;
}

.btn-link{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: rgb(3, 36, 85);
  color: #fff;
  font-weight: 700;
  border: 2px solid rgb(3, 36, 85);
  transition: 0.2s linear;
  text-align: center;
}

.btn-link:hover{
  transform: scale(1.08);
  background: transparent;
  color: rgb(3, 36, 85);
  box-shadow: 0 0 30px rgba(3,36,85,0.35);
}

@keyframes logoBounce {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-6px); }
  40%  { transform: translateY(0); }
  60%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

@keyframes logoJiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-1.5deg); }
  50%  { transform: rotate(1.5deg); }
  75%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}



@keyframes bounceUp {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes fadeUp {
  from{
    opacity: 0;
    transform: translateY(18px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.typewriter{
  margin-top: 10px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  color: rgba(3,36,85,0.8);
}

.typewriter-text{
  color: rgb(3,36,85);
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
}

/* Blinking cursor */
.typewriter-text::after{
  content: "|";
  margin-left: 6px;
  animation: blink 1s infinite;
  color: rgb(3,36,85);
}

@keyframes blink{
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}





.hero-title span{
  animation: fadeUp 0.8s ease forwards;
}

.name-text{
  animation-delay: 0.15s;
}


.hero-title{
  line-height: 1.1;
  margin-bottom: 10px;
}

/* "Hey, I’m" */
.intro-text{
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: rgba(3,36,85,0.9);
  letter-spacing: 0.5px;
}

/* "Jairus" */
.name-text{
  display: inline-block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: rgb(3,36,85);
  letter-spacing: 1px;
  position: relative;
}


.logo-animate{
  display: inline-block;
  animation: logoBounce 2.8s ease-in-out infinite;
  transform-origin: center;
}

/* Jiggle only on hover (recommended) */
.logo-animate:hover{
  animation: logoJiggle 0.4s ease-in-out;
}

  

.card-box{
  background: rgba(255,255,255,0.95);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(3,36,85,0.15);
  transition: 0.35s cubic-bezier(.4,0,.2,1);
}

.card-box:hover{
  animation: bounceUp 0.45s ease;
  box-shadow: 0 25px 55px rgba(3,36,85,0.35);
}


.about .about-details{
  padding: 40px;
  gap: 30px;
}

.about .left img{
  border-radius: 18px;
  transition: 0.3s ease;
}

.about .about-details:hover img{
  transform: scale(1.05);
}


.skills .boxes{
  padding: 20px;
}

.skills .box{
  transition: 0.25s ease;
}

.skills .box:hover{
  background: rgba(3,36,85,0.08);
  border-radius: 10px;
}

.skills .per{
  color: rgb(3,36,85);
}

.projects .card{
  background: rgba(255,255,255,0.95);
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(3,36,85,0.15);
  padding: 20px; 
  transition: 0.3s ease;
}

.projects .card:hover{
  transform: translateY(-12px) scale(1.03);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,1),
    rgba(3,36,85,0.06)
  );
}



.certifications .boxes{
  padding: 22px;
}

.certifications .icon{
  transition: 0.3s ease;
}

.certifications .boxes:hover .icon{
  transform: rotate(8deg) scale(1.1);
  background: rgba(3,36,85,0.15);
}

.contact .text{
  padding: 40px;
}

.contact .button button{
  transition: 0.3s ease;
}

.contact .button button:hover{
  transform: scale(1.1);
  box-shadow: 0 0 30px rgb(3,36,85);
}
.contact-card{
  padding: 50px;
  text-align: center;
}

.contact-card h3{
  font-size: 26px;
  color: rgb(3,36,85);
  margin-bottom: 12px;
}

.contact-card p{
  max-width: 60ch;
  margin: 0 auto 30px;
}

.contact-actions{
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 30px;
  background: rgb(3,36,85);
  color: white;
  font-weight: 700;
  transition: 0.3s ease;
}

.contact-btn:hover{
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 15px 35px rgba(3,36,85,0.45);
}

.contact-btn.outline{
  background: transparent;
  color: rgb(3,36,85);
  border: 2px solid rgb(3,36,85);
}

.cv-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 30px;
  background: rgb(3,36,85);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgb(3,36,85);
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(3,36,85,0.35);
}

.cv-btn i{
  font-size: 1.1rem;
}

/* Hover effect */
.cv-btn:hover{
  transform: translateY(-6px) scale(1.08);
  background: transparent;
  color: rgb(3,36,85);
  box-shadow: 0 18px 40px rgba(3,36,85,0.55);
}

/* Click feedback */
.cv-btn:active{
  transform: scale(0.95);
}



@media (max-width: 768px){

  /* NAV */
  .nav-container .links{ display: none; }

  .hamburg{
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown{ display: block; }

  .dropdown.active .cancel{
    opacity: 1;
    pointer-events: auto;
  }

  /* HERO */
  section .main-container{
    flex-direction: column;
    padding: 90px 20px 30px;
    gap: 20px;
    text-align: center;
  }

  .main-container .image{
    width: 320px;
    height: 320px;
    border-radius: 50%;
  }

  .main-container .content{ width: 100%; }

  .content p{
    max-width: 38ch;
    margin: 12px auto;
    line-height: 1.5;
  }

  .social-links{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .content button{
    width: 75%;
    margin: 20px auto 0;
    display: block;
  }

  /* ABOUT */
  .about .about-details{
    flex-direction: column;
    text-align: center;
  }

  .about .left{
    display: flex;
    justify-content: center;
  }

  .about .left img{
    width: 220px;
    height: 220px;
    max-width: 100%;
  }

  /* Disable hover animations on mobile */
  .card-box:hover{
    animation: none;
    transform: none;
  }
}


.site-footer{
  margin-top: 60px;
  padding: 26px 0;
  background: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(3,36,85,0.15);
  box-shadow: 0 -10px 30px rgba(3,36,85,0.08);
}

.footer-text{
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(3,36,85,0.75);
}

.footer-text a{
  margin-left: 4px;
  color: rgb(3,36,85);
  font-weight: 800;
  position: relative;
  transition: 0.25s ease;
}


.footer-text a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background: rgb(3,36,85);
  border-radius: 6px;
  transition: 0.25s ease;
}

.footer-text a:hover{
  color: rgb(3,36,85);
}

.footer-text a:hover::after{
  width: 100%;
}


.site-footer:hover{
  box-shadow: 0 -18px 45px rgba(3,36,85,0.15);
}


.skills-wrap{
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 22px;
  align-items: start;
}

.skills-summary{
  padding: 26px;
}

.summary-top{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.summary-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(3,36,85,0.10);
  color: rgb(3,36,85);
  flex: 0 0 auto;
}

.skills-summary h3{
  font-size: 1.3rem;
  color: rgb(3,36,85);
  margin-bottom: 6px;
}

.skills-summary p{
  color: rgba(3,36,85,0.75);
  line-height: 1.55;
  font-size: 1rem;
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat-card{
  background: rgba(3,36,85,0.05);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(3,36,85,0.18);
}

.stat-icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(3,36,85,0.12);
  color: rgb(3,36,85);
}

.stat-number{
  font-size: 1.2rem;
  font-weight: 900;
  color: rgb(3,36,85);
  line-height: 1.1;
}

.stat-label{
  font-size: 0.85rem;
  color: rgba(3,36,85,0.75);
}

/* --- Skill Cards --- */
.skills-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.skill-card{
  padding: 18px 18px 16px;
  overflow: hidden;
}

.skill-head{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}

.skill-ico{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(3,36,85,0.10);
  color: rgb(3,36,85);
}

.skill-meta h4{
  font-size: 1.05rem;
  color: rgb(3,36,85);
  margin-bottom: 4px;
}

.skill-badge{
  display: inline-block;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3,36,85,0.08);
  color: rgba(3,36,85,0.85);
  font-weight: 700;
}

.skill-percent{
  font-weight: 900;
  color: rgb(3,36,85);
}

.skill-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(3,36,85,0.10);
  margin-top: 12px;
  overflow: hidden;
}

.skill-bar .fill{
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgb(3,36,85);
}

/* Skills animation when in view */
.skills.in-view .skill-card{
  animation: rise 0.55s ease both;
}
.skills.in-view .skill-card:nth-child(2){ animation-delay: .06s; }
.skills.in-view .skill-card:nth-child(3){ animation-delay: .12s; }
.skills.in-view .skill-card:nth-child(4){ animation-delay: .18s; }

.skills.in-view .skill-card .fill{
  animation: fillBar 1.1s ease forwards;
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes fillBar{
  from{ width: 0%; }
  to{ width: var(--level); }
}

/* --- Projects grid + modern card header --- */
.projects .cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.project-card{
  padding: 20px;
}

.project-top{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.project-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(3,36,85,0.10);
  color: rgb(3,36,85);
  flex: 0 0 auto;
}

.project-tags{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tag{
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3,36,85,0.08);
  color: rgba(3,36,85,0.85);
  font-weight: 700;
}

/* Projects animation when in view */
.projects.in-view .project-card{
  animation: rise 0.55s ease both;
}
.projects.in-view .project-card:nth-child(2){ animation-delay: .06s; }
.projects.in-view .project-card:nth-child(3){ animation-delay: .12s; }
.projects.in-view .project-card:nth-child(4){ animation-delay: .18s; }

/* --- Project buttons (if missing) --- */
.card-actions{
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.card-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 30px;
  background: rgb(3,36,85);
  color: white;
  font-weight: 700;
  transition: 0.25s ease;
}

.card-btn:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(3,36,85,0.25);
}

.card-btn.outline{
  background: transparent;
  color: rgb(3,36,85);
  border: 2px solid rgb(3,36,85);
}

.card-btn.outline:hover{
  background: rgb(3,36,85);
  color: white;
}

.cert-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.cert-card{
  padding: 26px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cert-card:hover{
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 65px rgba(3,36,85,0.35);
}

.cert-top{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.cert-icon{
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(3,36,85,0.10);
  color: rgb(3,36,85);
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.cert-card h3{
  font-size: 1.15rem;
  font-weight: 800;
  color: rgb(3,36,85);
  margin-bottom: 6px;
}

.cert-badge{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(3,36,85,0.08);
  color: rgba(3,36,85,0.85);
}

.cert-card p{
  color: rgba(3,36,85,0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Reveal animation */
.certifications.in-view .cert-card{
  animation: rise 0.55s ease both;
}
.certifications.in-view .cert-card:nth-child(2){
  animation-delay: 0.1s;
}

/* Mobile */
@media (max-width: 768px){
  .skills-wrap{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: 1fr; }
}


/* ===== ABOUT IMAGE FIX (responsive + clean) ===== */
.about .about-details{
  gap: 30px;
}

.about .left{
  flex: 0 0 280px;       /* controls column width */
  max-width: 280px;
}

.about .left img{
  width: 100%;
  height: 280px;         /* consistent size */
  object-fit: cover;     /* crops nicely without stretching */
  border-radius: 18px;
  display: block;
}

/* Mobile: stack + center */
@media (max-width: 768px){
  .about .left{
    flex: 0 0 auto;
    max-width: 100%;
  }

  .about .left img{
    width: 240px;
    height: 240px;
    margin: 0 auto;
    border-radius: 50%;
  }
}























































































































