/* Reset and Base Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: #1f2937; /* dark gray for readability */
  /* Light green gradient background */
  background: linear-gradient(135deg, #ecfdf5 0%, #bbf7d0 50%, #6ee7b7 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(6,95,70,0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  color: #10b981; /* primary green */
  font-weight: 800;
  font-size: 1.6rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  padding: 0 30px;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: #10b981;
  border-bottom: 2px solid #10b981;
  padding-bottom: 2px;
}

.nav-link:visited,
.nav-link:active,
.nav-link:focus {
  color: #10b981;
  border-bottom: 2px solid #10b981;
  padding-bottom: 2px;
}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  border-radius: 3px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  /* stronger green gradient for hero */
  background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
  color: white;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 0 30px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0 30px;
}

.highlight {
  color: #7ef0c8; /* soft mint highlight */
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  opacity: 0.95;
  padding: 0 30px;
}

.hero-description {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  opacity: 0.95;
  max-width: 600px;
  padding: 0 30px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 30px;
}

.btn {
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Primary button = green */
.btn-primary {
  background: #10b981;
  color: white;
}

.btn-primary:hover {
  background: #0f8f6f;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: #065f46;
}

.btn-tertiary {
  background: #10b981; /* green */
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-tertiary:hover {
  background: #0f8f6f; /* dark green hover */
}


.hero-social {
  display: flex;
  gap: 1.2rem;
  padding: 0 30px;
}

.social-link {
  font-size: 1.6rem;
  color: white;
  transition: 0.3s;
}

.social-link:hover {
  color: #7ef0c8;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,0.85);
  box-shadow: 0 20px 35px rgba(6,95,70,0.14);
}

/* Section Defaults */
section {
  padding: 100px 0;
}

/* Section title */
.section-title {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  margin-top: 0rem;
  color: #064e3b; /* dark-green heading */
}

/* About */
.about {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85));
  padding: 80px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(6,95,70,0.03);
}

.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-text p {
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

/* About Stats (light green gradient card) */
.about-stats {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #bbf7d0);
  box-shadow: 0 6px 18px rgba(6,95,70,0.06);
}

.about-stat {
  text-align: center;
  min-width: 120px;
}

.about-stat h3 {
  font-size: 1.6rem;
  color: #065f46;
  margin-bottom: 6px;
}

.about-stat p {
  font-size: 0.95rem;
  color: #065f46;
  opacity: 0.85;
}

/* Skills Section */
.skills {
  background: linear-gradient(180deg, #bbf7d0 0%, #6ee7b7 100%);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: #ffffff;
  padding: 1.8rem;
  border-radius: 14px;
  border: 1px solid rgba(6,95,70,0.04);
  transition: 0.3s;   /* same as project-card */
}

.skill-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(6,95,70,0.06);
}

.skill-category h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #064e3b;
}

/* wrapper for tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* skill badge style - light green pills */
.skill-tag {
  background: linear-gradient(180deg, #e6ffef, #d1fae5);
  color: #065f46;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  border: 1px solid rgba(6,95,70,0.06);
  transition: all 0.18s ease;
}

.skill-tag:hover {
  background: #065f46;
  color: #ffffff;
  transform: translateY(-3px);
}

/* small-screen tweaks */
@media (max-width: 420px) {
  .skills { padding: 40px 20px; }
  .skill-category { padding: 1rem; }
  .skill-tag { max-width: 160px; font-size: 0.85rem; }
}


/* Projects */
.projects {
  padding: 60px 20px;
  background: #f9fafb;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* Project & Certificate Card */
.project-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #065f46;   /* Green */
}

.project-type {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
}

.project-description {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Tech Tags */
.project-tech {
  margin-bottom: 15px;
}

.tech-tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 8px;
  margin: 3px;
  background: #e6f4f1;   /* Light greenish background */
  color: #065f46;        /* Dark green text */
  border-radius: 6px;
  font-weight: 600;
}

/* Buttons */
.project-links {
  margin-top: auto;
}

.project-btn {
  display: inline-block;
  background: #065f46;   /* Dark green */
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.project-btn i {
  margin-right: 6px;
}

.project-btn:hover {
  background: #054436;   /* Darker green on hover */
  transform: scale(1.05);
}
/* Education */
.education-card {
  background: #f9fff9;
  padding: 1.8rem;
  border-radius: 14px;
  border: 1px solid rgba(6,95,70,0.04);
  transition: 0.3s;   /* same as project-card */
}

.education-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(6,95,70,0.06);
}

.education-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.institution {
  color: #10b981;
  font-weight: 500;
}
.education {
  background: linear-gradient(180deg, #bbf7d0 0%, #6ee7b7 100%);
}
.education {
  display: flex;
  justify-content: center; /* horizontally center */
  align-items: center;     /* vertically center agar height fix hai */
  padding: 40px 20px;
}

.education-card {
  max-width: 600px;
  padding: 1.5rem;
  margin: 0 auto;          /* auto margin bhi center karega */
  text-align: center;      /* text bhi center align hoga */
}

/* Certificates */
.certificates {
  background: linear-gradient(180deg, #ffffff, #f3fff6);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.certificate-card {
  background: white;
  padding: 1.8rem;
  border-radius: 14px;
  border: 1px solid rgba(6,95,70,0.04);
  transition: 0.3s;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(6,95,70,0.06);
}

.certificate-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #064e3b;
  margin-bottom: 0.3rem;
}

.certificate-org {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  padding: 0.2rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.certificate-description {
  color: #374151;
  margin: 0.8rem 0 1rem;
  line-height: 1.6;
}

.certificate-links {
  margin-top: 1rem;
}

.certificate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #10b981;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s;
}

.certificate-link:hover {
  background: #0f8f6f;
  transform: translateY(-2px);
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #bbf7d0 0%, #6ee7b7 100%);
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  background: white;
  border: 1px solid rgba(6,95,70,0.04);
  padding: 1.6rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(6,95,70,0.03);
}

.contact-item i {
  font-size: 1.4rem;
  color: #10b981;
}

.contact-item p a {
  color: #374151;
  text-decoration: none;
}

.contact-item p a:hover {
  color: #065f46;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #064e3b;
  color: white;
  text-align: center;
  padding: 1.8rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 1.8rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .profile-img {
    width: 240px;
    height: 240px;
  }
  .nav-menu {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    transition: 0.3s;
  }
  .nav-menu.active {
    left: 0;
  }
  .hamburger {
    display: flex;
  }
}
