/* Global Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Reusable Section Layout */
.section {
  padding: 80px 20px;
  position: relative;
}

.alt {
  background-color: #ffffff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Headings */
h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #00b894;
  margin: 10px auto 0;
  border-radius: 5px;
}

/* Paragraphs */
p {
  font-size: 1.1rem;
  max-width: 750px;
  margin: 0 auto 20px auto;
  text-align: center;
}

/* Skills and Trust Points */
.skills-list,
.trust-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.skills-list li,
.trust-points li {
  background: #dff9fb;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.skills-list li:hover,
.trust-points li:hover {
  transform: scale(1.05);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e3e3e3;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.project-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 1.3rem;
  color: #2d3436;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.95rem;
  color: #636e72;
}

.project-card a {
  display: inline-block;
  margin-top: 12px;
  background: #00b894;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.project-card a:hover {
  background: #019875;
}

/* Responsive Headings */
@media (max-width: 600px) {
  h2 {
    font-size: 2rem;
  }

  .skills-list li,
  .trust-points li {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}

/* Navigation Bar */
.navbar {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-logo {
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 12px;
  transition: color 0.3s ease, background 0.3s ease;
  border-radius: 4px;
}

.nav-links li a:hover,
.nav-links li a:focus {
  background: #00b894;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: #2c3e50;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #e3e3e3;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    text-align: center;
    padding: 15px 0;
  }

  .nav-toggle {
    display: block;
  }
}
