/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: black; color: white; line-height: 1.6; overflow-x: hidden; text-align: center; }

/* Star Background */
canvas#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

/* Navbar */
header { position: fixed; top: 0; width: 100%; padding: 20px; display: flex; justify-content: space-between; align-items: center; z-index: 10; }
.nav-left, .nav-right { display: flex; align-items: center; }
.hire-btn { background: royalblue; color: white; padding: 8px 16px; border-radius: 5px; text-decoration: none; transition: background 0.3s ease; }
.hire-btn:hover { background: darkblue; }

/* Hamburger Icon */
.hamburger { cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; width: 25px; height: 20px; }
.hamburger span { display: block; height: 3px; width: 100%; background-color: white; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(0,0,0,0.95); display: flex; justify-content: center; align-items: center; transition: right 0.3s ease; z-index: 9; }
.mobile-menu.active { right: 0; }
.mobile-menu ul { list-style: none; width: 80%; text-align: center; }
.mobile-menu li { border-top: 1px solid white; padding: 20px 0; }
.mobile-menu li:last-child { border-bottom: 1px solid white; }
.mobile-menu a { text-decoration: none; color: white; font-size: 1.5rem; transition: color 0.3s ease; }
.mobile-menu a:hover { color: royalblue; }

/* Sections */
.section { min-height: 100vh; padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; }
#home { padding-top: 200px; }
.section h2 { margin-bottom: 20px; color: royalblue; font-size: 2rem; }
.section h3 { margin-bottom: 12px; }

/* Home Section */
#home h1 { font-size: 2.2rem; margin-bottom: 5px; }
#home h2 { font-size: 3rem; margin-bottom: 20px; }
#home p { max-width: 600px; line-height: 1.6; margin-bottom: 20px; }

/* Home Buttons & Socials */
.home-buttons { margin-top: 20px; display: flex; align-items: center; gap: 15px; }
.home-buttons .social-icons a { color: white; font-size: 1.5rem; margin-left: 10px; text-decoration: none; transition: color 0.3s ease; }
.home-buttons .social-icons a:hover { color: royalblue; }

/* Profile Card */
.profile-card { background: white; color: black; max-width: 320px; width: 90%; margin: 30px auto 0; padding: 20px; border-radius: 15px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.3); animation: shake 3s infinite linear; }
.profile-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }
.profile-card h3 { margin-bottom: 5px; font-size: 1.2rem; font-weight: bold; }
.profile-card p { font-size: 0.9rem; margin-bottom: 5px; line-height: 1.4; }
.profile-card .skills { font-size: 0.85rem; line-height: 1.3; }

/* Shake Animation */
@keyframes shake {
  0% { transform: translate(0px,0px) rotate(0deg); }
  10% { transform: translate(-2px,-2px) rotate(-1deg); }
  20% { transform: translate(2px,-1px) rotate(1deg); }
  30% { transform: translate(-2px,1px) rotate(0deg); }
  40% { transform: translate(2px,2px) rotate(1deg); }
  50% { transform: translate(-1px,-1px) rotate(-1deg); }
  60% { transform: translate(1px,2px) rotate(0deg); }
  70% { transform: translate(-2px,1px) rotate(1deg); }
  80% { transform: translate(2px,-1px) rotate(-1deg); }
  90% { transform: translate(-1px,2px) rotate(0deg); }
  100% { transform: translate(0px,0px) rotate(-1deg); }
}

/* About & Contact Avatars */
.about-avatar, .contact-avatar { display: flex; justify-content: center; width: 100%; margin: 20px 0; }
.about-avatar img, .contact-avatar img { width: auto; max-width: 250px; height: auto; object-fit: contain; display: block; border-radius: 15px; }

/* Contact Details */
.about-contact { margin-top: 20px; color: white; text-align: left; }
.about-contact p { margin: 6px 0; font-size: 1rem; }
.about-contact i { margin-right: 8px; color: royalblue; }

/* Skills Section */
.skills-intro { margin-bottom: 12px; font-size: 1rem; color: #e6e6e6; }
.subheading { margin-top: 18px; margin-bottom: 12px; color: white; }
.technical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 700px; margin-bottom: 18px; }
.skill-card { background: rgba(255, 255, 255, 0.05); padding: 14px 16px; border-radius: 10px; text-align: left; color: white; display: flex; align-items: center; }
.soft-skills { list-style: disc; margin-left: 22px; margin-bottom: 24px; color: #e6e6e6; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; width: 100%; max-width: 900px; margin: 0 auto; }
.project-card { background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 10px; text-align: center; }

/* Education */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; width: 100%; max-width: 1000px; margin: 0 auto; }
.education-card { background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 12px; text-align: center; }
.education-card img.edu-logo { width: 60px; margin-bottom: 10px; }

/* Section Paragraphs */
.section p { max-width: 700px; margin-bottom: 15px; line-height: 1.5; }

/* Responsive */
@media (max-width: 768px) {
  .technical-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  #home h2 { font-size: 2.2rem; }
}

/* Contact links */
.about-contact a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.about-contact a:hover {
  color: royalblue;
}

.project-img{
  width:100%;
  border-radius:10px;
  margin-bottom:10px;
}

.see-more{
  margin-top:30px;
}

.see-more a{
  display:inline-block;
}

.project-full{
  margin-top:60px;
  max-width:900px;
}

.project-images{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
  margin:20px 0;
}

.project-images img{
  width:100%;
  height:120px;
  border-radius:10px;
  object-fit:cover;
}

.project-full h3{
  margin-bottom:10px;
  color:royalblue;
}

/* Each card stacked vertically */
.volunteer-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 15px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.volunteer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Card heading */
.volunteer-card h3 {
  color: royalblue;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Card paragraphs */
.volunteer-card p {
  color: #e6e6e6;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* 4 images inside each card */
.volunteer-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.volunteer-images img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.volunteer-images img:hover {
  transform: scale(1.05);
}

/* For desktop: 4 images in a row */
@media (min-width: 768px) {
  .volunteer-images {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* See More button */
.see-more-container {
  text-align: center;
  margin-top: 20px;
}

.see-more-container .hire-btn {
  background: royalblue;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
}

.see-more-container .hire-btn:hover {
  background: darkblue;
  transform: translateY(-2px);
}

/* ==============================
   Achievements Section
   ============================== */

.achievement-card{
  background: rgba(255,255,255,0.05);
  padding:25px;
  border-radius:15px;
  margin-bottom:30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover{
  transform: translateY(-5px);
  box-shadow:0 10px 25px rgba(0,0,0,0.35);
}

.achievement-card h3{
  color:royalblue;
  margin-bottom:15px;
}

.achievement-card p{
  color:#e6e6e6;
  line-height:1.5;
}

/* images grid */

.achievement-images{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-bottom:15px;
}

.achievement-images img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:10px;
  transition: transform 0.3s ease;
}

.achievement-images img:hover{
  transform:scale(1.05);
}

/* desktop view */

@media(min-width:768px){
  .achievement-images{
    grid-template-columns:repeat(4,1fr);
  }
}

/* =====================================
   Certificates Section
===================================== */

.certificates-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
  margin-top:40px;
}

/* Certificate Card */

.certificate-card{
  background:rgba(255,255,255,0.05);
  padding:20px;
  border-radius:15px;
  text-align:center;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */

.certificate-card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 25px rgba(0,0,0,0.35);
}

/* Certificate Image */

.certificate-card img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:15px;
  transition:transform 0.3s ease;
}

/* Image Hover Zoom */

.certificate-card img:hover{
  transform:scale(1.03);
}

/* Certificate Title */

.certificate-card h3{
  color:royalblue;
  font-size:1.1rem;
  margin-bottom:10px;
}

/* Certificate Description */

.certificate-card p{
  color:#e6e6e6;
  font-size:0.95rem;
  line-height:1.5;
}

/* Tablet */

@media(min-width:768px){
  .certificates-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* Large screens */

@media(min-width:1200px){
  .certificates-grid{
    grid-template-columns:repeat(4,1fr);
  }
}

/* Small mobile */

@media(max-width:480px){

  .certificate-card img{
    height:160px;
  }

  .certificate-card h3{
    font-size:1rem;
  }

  .certificate-card p{
    font-size:0.9rem;
  }

}

/* Extra mobile fixes */

@media(max-width:768px){

  .project-images{
    grid-template-columns:repeat(2,1fr);
  }

}