

/* ---------------- PARTICLE BACKGROUND ---------------- */

/* --------- GLOBAL --------- */
body{
  margin:1%;
  padding:1px;
  font-family: Arial, sans-serif;
  background:#0f172a;
  overflow-x:hidden;
}

/* --------- PARTICLE BACKGROUND --------- */
#particles-js{
  position:fixed;
  width:100%;
  height:100%;
  top:0;
  left:0;
  background:#0f172a;
  z-index:-1;
}

/* --------- SECTIONS --------- */
.section{
  position:relative;
  z-index:1;
  padding:60px 20px;
  background:rgba(16,13,39,0);
  backdrop-filter:blur(6px);
  border-radius:20px;
  margin:20px;
}

/* --------- NAVBAR --------- */
.navbar{
  position:sticky;
  top:0;
  z-index:1000;
}

/* --------- SMOOTH SCROLL --------- */
html{
  scroll-behavior:smooth;
}


/* --------- MOBILE (up to 600px) --------- */
@media (max-width:600px){

  body{
    margin:0;
  }

  .section{
    padding:30px 15px;
    margin:10px;
  }

}






/* ---------------- NAVBAR ---------------- */
/* Navbar styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #0f172a;
  color: #f1e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.9rem;
  font-weight: bold;
}

.navbar .menu-bar {
  list-style: none;
  display: flex;
  gap: 20px;
}

/* Menu links */
.navbar .menu-bar li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .menu-bar li a:hover {
  color: #f1c40f;
}

/* Hamburger & close button */
.navbar #check { display: none; }

.navbar .checkbtn {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

.navbar .closebtn {
  display: none;
}

/* ---------------- DESKTOP ---------------- */
@media (min-width: 1025px) {
  .navbar .menu-bar {
    flex-direction: row;
    position: static;
  }
}

/* ---------------- TABLET & MOBILE ---------------- */
@media (max-width: 1024px) {
  .navbar .menu-bar {
    position: fixed;
    top: 0;
    right: -100%; /* hidden by default */
    width: 150px;
    height: 70vh;
    background-color: #0f172a;
    flex-direction: column;
    padding-top: 65px;
    transition: center 0.3s ease-in-out;
    text-align: center;
    z-index: 1000;
  }

  #check:checked ~ .menu-bar {
    right: 0; /* slide in when checked */
  }

  .navbar .checkbtn {
    display: block;
  }

  .navbar .menu-bar li {
    margin: 20px 0;
    padding-right: 20px;
  }

  .navbar .closebtn {
    display: block;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
  }
}

/* ---------------- LINK CLICK CLOSE ---------------- */
.menu-bar li a {
  display: block;
}

/* Optional: smoother effect */
.menu-bar li a:active {
  color: #f1c40f;
}



/* ---------------- HOME SECTION ---------------- */
#home {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  min-height: 100vh;

  padding: 20px;
}

.profile-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #34a6db;
  animation: imgZoom 2s ease-in-out infinite alternate;
  margin-bottom: 20px;
  
}

.intro-text { max-width: 600px; }

.intro-text h3 { font-size: 1.8rem; margin-bottom: 10px; color: #3498db; }
.intro-text h4 { font-size: 1.5rem; margin-bottom: 15px; color: #e83942; transition: color 0.5s ease; }
.intro-text h4:hover { color: #34b4db; }

.intro-text p {
  font-size: 1rem;
  margin: 6px 0;
  color: #fdfeff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  
}

.intro-text p a { color: #338aec; text-decoration: none; }
.intro-text p a:hover { text-decoration: underline; }
.intro-text p i { color: #3498db; font-size: 1.1rem; }

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 5px 8px;
  padding: 9px 14px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.3s, opacity 0.3s;
}

.social-btn.cv { background: #e74c3c; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.github { background: #1ca841; }

.social-btn:hover { transform: translateY(-3px); opacity: 0.85; }

/* ---------------- IMAGE ANIMATION ---------------- */
@keyframes imgZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}



/* ---------------- ABOUT SECTION ---------------- */
#about {
  padding: 60px 20px;
  
  text-align: center;
}

.about-container {
  display: flex;
  flex-direction: column; /* Stack vertically by default */
  align-items: center;    /* Center horizontally */
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* Profile Image */
.about-container .profile-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #34a6db;
  animation: imgZoom 2s ease-in-out infinite alternate;
  margin-bottom: 20px;
}

/* Paragraph */
.about-container p {
  font-size: 1rem;
  line-height: 1.7;
  color: #fdfeff;
  text-align: center; /* Center text under the image */
}

/* IMAGE ZOOM ANIMATION */
@keyframes imgZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .about-container .profile-img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .about-container .profile-img {
    width: 150px;
    height: 150px;
  }

  .about-container p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .about-container .profile-img {
    width: 120px;
    height: 120px;
  }

  .about-container p {
    font-size: 0.85rem;
  }
}



/* ---------------- SKILLS SECTION ---------------- */
#skills {
  padding: 60px 20px;
  
  text-align: center;
}

#skills h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fbfeff;
}

/* Skill Container */
.skills {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

/* Individual Skill */
.skill p {
  font-weight: bold;
  margin-bottom: 5px;
  color: #eff4f4;
}

/* Progress Bar Container */
.progress {
  width: 100%;
  background: #f6f7f7;
  border-radius: 15px;
  overflow: hidden;
  height: 15px;
}

/* Progress Fill */
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, rgb(136, 237, 247) );
  text-align: right;
  padding-right: 15px;
  line-height: 15px;
  color:#000000;
  font-weight: bold;
  border-radius: 25px 0 0 25px;
  transition: width 1s ease-in-out;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  #skills h2 {
    font-size: 1.8rem;
  }
  .progress {
    height: 20px;
  }
  .progress-bar {
    line-height: 20px;
    font-size: 0.9rem;
    padding-right: 5px;
  }
}

@media (max-width: 480px) {
  #skills h2 {
    font-size: 1.5rem;
  }
  .progress {
    height: 18px;
  }
  .progress-bar {
    line-height: 18px;
    font-size: 0.8rem;
    padding-right: 4px;
  }
}

/*--------------end skill section--------------*/


/* ---------------- PROJECTS SECTION ---------------- */

  


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 15px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgb(250, 250, 250);
}

.project-card a {
  display: block;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-card h3 {
  margin: 15px 0 5px 0;
  color: #2f77a3;
  font-size: 1.2rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  padding: 0 10px;
}




/* Center the button in view all projects */

/* Container (optional) */
.view-all-projects-btn {
  text-align: center;
  margin-top: 50px;
  padding: 35px;
}

/* Main button styling */
.view-all-projects {
  display: inline-block;
  text-decoration: none;
  border: 2px solid #ffffff; /* Added border color */
  background: linear-gradient(90deg, #2ca9d2, #5b1515);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 9px 25px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hover effect: lift + gradient shift */
.view-all-projects:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(90deg, #060101, #787777);
  box-shadow: 0 15px 35px rgba(185, 28, 28, 0.5);
}

/* Optional shimmer animation */
.view-all-projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
  transform: skewX(-25deg);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { left: -80%; }
  100% { left: 130%; }
}


/* ------------------------------- */
/* 📱 Responsive Styles (ONLY ADDED) */
/* ------------------------------- */

/* Mobile - iPhone & Small Screens */
@media (max-width: 767px) {
  .view-all-projects {
    font-size: 0.9rem;
    padding: 7px 20px;
    border-radius: 8px;
  }
  .view-all-projects-btn {
    margin-top: 80px;
    padding: 25px;
  }
}

/* Tablet / iPad */
@media (min-width: 768px) and (max-width: 1023px) {
  .view-all-projects {
    font-size: 1rem;
    padding: 8px 24px;
    border-radius: 9px;
  }
  .view-all-projects-btn {
    margin-top: 110px;
    padding: 30px;
  }
}

/* Desktop / Large Screen */
@media (min-width: 1024px) {
  .view-all-projects {
    font-size: 1.1rem;
    padding: 9px 25px;
  }
}
   


/* ---------------- CERTIFICATIONS SECTION ---------------- */
#certifications {
  padding: 60px 20px;
  
  text-align: center;
}

#certifications h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 40px;
  position: relative;
}

#certifications h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
}

.cert-card {
  background: #f3f2f2;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 6px 15px rgba(119, 111, 111, 0.664);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cert-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.cert-card p {
  font-size: 0.95rem;
  color: #111010;
  font-weight: 500;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.all-certs {
  margin-top: 30px;
}

.all-certs img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s, opacity 0.3s;
  cursor: pointer;
}

.all-certs img:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .certs-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }

  .cert-card img {
    width: 80px;
    height: 80px;
  }
}
/* Centered PDF Button */
.all-certs {
  margin-top: 30px;
  text-align: center;
}

.cert-btn {
  display: inline-block;
  text-decoration: none;
  border: 2px solid ;
  background: linear-gradient(90deg, #2ca9d2, #5b1515 ); /* two red shades */
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 9px 25px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cert-btn:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(90deg, #060101, #787777);
  box-shadow: 0 15px 35px rgba(252, 252, 252, 0.852);
}

/* Optional shimmer animation */
.cert-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
  transform: skewX(-25deg);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { left: -80%; }
  100% { left: 130%; }
}


/* ---------------- CONTACT SECTION ---------------- */
#contact {
  padding: 60px 20px;
  
  text-align: center;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #fcfcff;
  position: relative;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #3498db;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2ecc71;
  box-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 12px 25px;
  border: none;
  background: linear-gradient(90deg, #2ca9d2, #5b1515 ); /* two red shades */
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.contact-form button:hover {
  background: #2ecc71;
  transform: translateY(-3px);
}

/* Map Container */
.map-container {
  width: 100%;
  max-width: 800px;
  margin: 35px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgb(138, 139, 115);
}

/* Social Links */
#contact .social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

#contact .social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s, opacity 0.3s;
}

#contact .social-btn.email { background: #e74c3c; }
#contact .social-btn.linkedin { background: #0077b5; }
#contact .social-btn.github { background: #333; }

#contact .social-btn:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 0.95rem;
  }

  .map-container iframe {
    height: 300px;
  }
}


/* ---------------- FOOTER ---------------- */
.footer {
  background-color: #05212b;
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.95rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-container p {
  margin: 4px 0;
  line-height: 1.5;
}

.footer a {
  color: #f1c40f;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    font-size: 0.9rem;
    padding: 20px 15px;
  }
}

/* ---------------- HEADING WITH ANIMATED UNDERLINE ---------------- */
h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #f2f5f8;
  text-align: center;
  position: relative;
}



/* ---------------- HEADING WITH ANIMATED MIDDLE UNDERLINE ---------------- */
h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #eff8f8;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 50px;              /* small underline width */
  height: 3px;
  background: linear-gradient(90deg, #ffffff, #110f0f, #ffffff);
  transform: translateX(-50%);
  animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
  0%, 100% {
    transform: translateX(-50%) scaleX(0.5); /* slightly smaller */
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scaleX(1);   /* full size */
    opacity: 1;
  }
}


