/* =====================
   style.css (Clean & Final)
   ===================== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 50px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.logo img {
  height: 60px;
  width: auto;
}
.nav-links a {
  margin: 0 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #43B649;
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: #43B649;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links .btn {
  color: #fff !important;
  background: #43B649;
  padding: 6px 16px;
  border-radius: 20px;
  transition: 0.3s ease;
}
.nav-links .btn:hover {
  background: #28a745;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh; /* 👈 Fix: min-height instead of fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: #111;
  padding: 100px 20px 60px; /* 👈 Extra padding for small screens */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 20px;
}
.hero-content h1 {
  font-size: 2.5rem; /* 👈 smaller for mobile */
  margin-bottom: 15px;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero-buttons .btn {
  margin: 5px 0;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%; /* buttons full-width on small screens */
  }
}


#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 20px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}
.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 25px;
}
.hero-content .btn {
  margin: 0 10px;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}
.primary-btn {
  background: #43B649;
  color: #fff;
}
.secondary-btn {
  background: #fff;
  color: #43B649;
  border: 2px solid #43B649;
}

/* Sections */
section {
  padding: 80px 60px;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* ✅ Services Section (Cleaned) */
.services {
  padding: 100px 20px;
  background: #fff;
  text-align: center;
}
.services h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #43B649;
  font-weight: 700;
  animation: fadeDown 1s ease-out;
}
.services p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 60px;
  line-height: 1.6;
  animation: fadeIn 1.2s ease-out;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-cards .card {
  background: #fff;
  padding: 40px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}
.service-cards .card:nth-child(1) { animation-delay: 0.2s; }
.service-cards .card:nth-child(2) { animation-delay: 0.4s; }
.service-cards .card:nth-child(3) { animation-delay: 0.6s; }
.service-cards .card:nth-child(4) { animation-delay: 0.8s; }
.service-cards .card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 8px 25px rgba(67,182,73,0.4);
}
.service-cards .card i {
  font-size: 2.5rem;
  color: #43B649;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}
.service-cards .card:hover i {
  transform: rotate(10deg) scale(1.2);
}
.service-cards .card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #222;
}
.service-cards .card p {
  font-size: 1rem;
  color: #555;
}

/* Highlights */
.highlights {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
  color: #333;
}
.highlights .card {
  background: #fff;
  padding: 35px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
}
.highlights .card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 6px 22px rgba(67,182,73,0.5);
}
.highlights .card i {
  font-size: 2.2rem;
  color: #43B649;
  margin-bottom: 15px;
}
.highlights .card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.highlights .card p {
  font-size: 1rem;
  color: #555;
}

/* About Section */
.about-main {
  padding: 100px 20px;
  background: #0d0d0d;
  color: #fff;
}
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}
.about-img img {
  max-width: 320px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  animation: fadeInLeft 1.2s ease-out;
}
.about-info {
  flex: 1;
  animation: fadeInRight 1.2s ease-out;
}
.about-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #43B649;
}
.about-info h2 span {
  color: #fff;
}
.about-info p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #ddd;
}
.about-details {
  list-style: none;
  margin-bottom: 25px;
}
.about-details li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #ccc;
}
.about-details i {
  color: #43B649;
  margin-right: 8px;
}
.about-info .btn {
  background: #43B649;
  padding: 12px 30px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.about-info .btn:hover {
  background: #2d8a36;
}

/* Resume Section */
.resume {
  padding: 100px 20px;
  background: #111;
  color: #fff;
  text-align: center;
}
.resume h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #43B649;
  animation: fadeDown 1s ease-out;
}
.resume-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}
.resume-card {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s ease;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}
.resume-card:nth-child(1) { animation-delay: 0.2s; }
.resume-card:nth-child(2) { animation-delay: 0.4s; }
.resume-card:nth-child(3) { animation-delay: 0.6s; }
.resume-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 6px 25px rgba(67,182,73,0.6);
}
.resume-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}
.resume-card span {
  color: #43B649;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Stats Section */
.stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #43B649, #2d8a36);
  padding: 80px 20px;
  text-align: center;
}
.stat {
  color: #fff;
  animation: scaleIn 1s ease forwards;
  opacity: 0;
}
.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.4s; }
.stat:nth-child(3) { animation-delay: 0.6s; }
.stat i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.stat h3 {
  font-size: 2rem;
  margin: 10px 0;
}

/* Skills Section */
.skills {
  padding: 100px 20px;
  background: #0d0d0d;
  text-align: center;
  color: #fff;
}
.skills h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #43B649;
  animation: fadeDown 1s ease-out;
}
.skills-grid {
  max-width: 800px;
  margin: auto;
  display: grid;
  gap: 25px;
}
.skill {
  text-align: left;
}
.skill span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ddd;
}
.bar {
  width: 100%;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
}
.progress {
  width: 0;
  height: 12px;
  background: linear-gradient(90deg, #43B649, #2d8a36);
  border-radius: 10px;
  transition: width 1.5s ease;
}

/* Tech Stack Section */
.tech-stack {
  padding: 80px 20px;
  background: #111;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tech-stack h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #43B649;
  font-weight: 700;
  animation: fadeDown 1s ease-out;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.stack-grid div {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}
.stack-grid div:nth-child(1) { animation-delay: 0.2s; }
.stack-grid div:nth-child(2) { animation-delay: 0.4s; }
.stack-grid div:nth-child(3) { animation-delay: 0.6s; }
.stack-grid div:nth-child(4) { animation-delay: 0.8s; }
.stack-grid div:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 8px 28px rgba(67,182,73,0.5);
}
.stack-grid img {
  max-width: 100px;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}
.stack-grid div:hover img {
  transform: scale(1.15) rotate(3deg);
}

/* CTA Section */
.cta-banner {
  padding: 80px 20px;
  background: linear-gradient(135deg, #e8f9f1, #f8fdf9);
  text-align: center;
  color: #111;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  animation: fadeDown 1s ease-out;
}
.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555;
  animation: fadeUp 1.2s ease-out;
}
.cta-banner .btn {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 8px;
  background: #43B649;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(67,182,73,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 1.4s ease-out;
}
.cta-banner .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(67,182,73,0.5);
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(67, 182, 73, 0.1);
  animation: float 6s ease-in-out infinite;
}
.cta-banner::before {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
}
.cta-banner::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -80px;
  animation-duration: 8s;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.portfolio-item {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: 0.3s;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.portfolio-item img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Contact */
.stylish-contact {
  background: #f8fdf9;
}
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-info-box,
.contact-form-box {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.contact-form-box button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background: #43B649;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form-box button:hover {
  background: #28a745;
}

/* Footer */
 .footer { background: #111; color: #fff; padding: 40px 20px; text-align: center; }
 .footer-links a { margin: 0 10px; color: #bbb; text-decoration: none; }
    .footer-links a:hover { color: #4caf50; }
    .social-icons a { margin: 0 8px; color: #bbb; font-size: 18px; }
    .social-icons a:hover { color: #4caf50; }
    .copyright { margin-top: 15px; font-size: 14px; color: #aaa; }

 /* Animations */
 @keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
 @keyframes fadeDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }
 @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
 @keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
 @keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
 @keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
 @keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0); } }