* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: #f7f9fa; color: #222; }

/* Header */
header {
  background: linear-gradient(90deg, #4fd1a1, #38b2ac);
  color: white;
  padding: 60px 20px;
  text-align: center;
}
header h1 { font-size: 2.8rem; margin-bottom: 10px; }
header p { font-size: 1.1rem; opacity: 0.9; }

/* Navigation */
nav {
  background: white;
  padding: 10px;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Updated modern hover animation */
nav a {
  position: relative;
  color: #38b2ac;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* gradient underline effect */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5ed0c2, #2f855a);
  transition: width 0.4s ease-in-out;
}

/* hover styles */
nav a:hover {
  color: #2f855a;
}

nav a:hover::after {
  width: 100%;
}

/* optional active link style */
nav a.active {
  color: #2f855a;
}

nav a.active::after {
  width: 100%;
}


/* Sections */
section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}
h2 {
  text-align: center;
  color: #2f855a;
  margin-bottom: 30px;
}

/* About section */
.about-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #a7f3d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease-in-out;
  position: relative;
}

/* Add glowing ring effect */
.profile-pic::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 178, 172, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: -1;
}

/* Hover effect: glow + lift */
.profile-pic:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(56, 178, 172, 0.3);
}

/* Make glow visible on hover */
.profile-pic:hover::after {
  opacity: 1;
}


.about-box {
  background: #ffffff;
  padding: 20px 25px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  transition: all 0.4s ease-in-out;
}

/* Glowing hover like profile picture */
.about-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(56, 178, 172, 0.3);
  background: linear-gradient(135deg, #ffffff, #f7fffc);
}

/* Add subtle glow ring effect on hover */
.about-box::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(56, 178, 172, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: -1;
}

.about-box:hover::after {
  opacity: 1;
}

/* Speech bubble tail */
.speech-tail {
  position: absolute;
  left: -12px;
  top: 40%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid white;
  transition: all 0.3s ease;
}

/* Tail glow on hover */
.about-box:hover .speech-tail {
  border-right-color: #f7fffc;
  filter: drop-shadow(0 0 4px rgba(56,178,172,0.4));
}


/* Timeline */
.timeline {
  border-left: 3px solid #38b2ac;
  padding-left: 20px;
}
.timeline div { margin-bottom: 20px; }

/* Footer */
footer {
  background: #edf2f7;
  text-align: center;
  padding: 30px 10px;
}
footer a {
  margin: 0 10px;
  color: #38b2ac;
  text-decoration: none;
  font-weight: 600;
}
footer a:hover { color: #2f855a; }
footer p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

/* Resume button */
.resume-btn {
  display: inline-block;
  margin-top: 20px;
  background: #38b2ac;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}
.resume-btn:hover { background: #2f855a; }


/* --- Projects Page --- */
.search-container {
 text-align: center;
  margin-bottom: 40px;
  position: relative;
}

#searchBox {
 width: 80%;
  max-width: 450px;
  padding: 12px 20px;
  border: 2px solid #2f855a;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 4px rgba(47, 133, 90, 0.2);
}
#searchBox:focus {
 border-color: #38b2ac;
  box-shadow: 0 0 8px rgba(56, 178, 172, 0.3);
}
/* Custom dropdown */
.search-wrapper {
  position: relative;
  display: inline-block;
  width: 80%;
  max-width: 450px;
}

.dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #4fd1a1, #38b2ac);
  border-radius: 12px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: none;
  z-index: 100;
}

.dropdown li {
  padding: 10px 20px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dropdown li:hover {
  background: rgba(255,255,255,0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

#projects h2 {
  text-align: center;
  margin-bottom: 30px;
}
#projects {
  text-align: initial;
}

.project-card {
  width: 100%;
  box-sizing: border-box;
   background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 0.5s ease-in;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* img */
.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.category {
  display: inline-block;
  background: #38b2ac;
  color: white;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  color: #2f855a;
  font-weight: 600;
  text-decoration: none;
}
.project-link:hover {
  text-decoration: underline;
}

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

/* --- Sticky Footer Fix --- */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

body > * {
  flex-shrink: 0;
}

section {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  background: #edf2f7;
  text-align: center;
  padding: 30px 10px;
  margin-top: auto; /* ensures footer stays at bottom */
}

/* === CONTACT SECTION === */
.contact {
  background: linear-gradient(135deg, #e6f5f4, #f2f7f9);
  padding: 100px 20px 80px;
  margin-top: 30px;
  margin-bottom: 40px;
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.contact h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2f855a;
  margin-bottom: 20px;
}

.contact p {
  color: #333;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #38b2ac, #2f855a);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.contact-subtext {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 40px;
  line-height: 1.6;
}


.contact-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* === ICON STYLE === */
.contact-links a i {
  font-size: 1.3rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Subtle scaling + color per platform */
.contact-links a:hover i {
  transform: scale(1.2);
}

/* Platform-specific colors */
.contact-links a[href^="mailto:"] i {
  color: #f7f9fa /* Outlook blue */
}

.contact-links a[href*="linkedin.com"] i {
  color: #f7f9fa; /* LinkedIn blue */
}

.contact-links a[href*="github.com"] i {
  color: #f7f9fa; /* GitHub black */
}

/* Optional: brighten icon on hover */
.contact-links a:hover i {
  filter: brightness(1.3);
}


/* --- RESPONSIVE DESIGN --- */
/* 📱 Extra small screens (phones < 430px) */
@media (max-width: 430px) {
  #projects {
    padding: 40px 10px;
  }

  #searchBox {
    width: 95%;
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .projects-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .project-card {
    width: 95%;
    max-width: 350px;
    margin: 0 auto;
  }

  .project-card img {
    height: 160px;
    object-fit: cover;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* 📱 Small devices (phones < 600px) */
/* --- FINAL RESPONSIVE FIX --- */

/* 📱 Extra small screens (< 480px) */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }

  #projects {
    padding: 30px 10px;
  }

  #searchBox {
    width: 92%;
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .search-wrapper {
    width: 92%;
  }

  .projects-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
  }

  .project-card {
    width: 90%;
    max-width: none; /* removes 440px cap */
    margin: 0 auto;
  }

  .project-img {
    height: 150px;
    object-fit: cover;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}



/* 🖥️ Large desktops (> 1200px) */
@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
