/* Reset default margins */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* General body styling */
body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Navigation bar */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* Sticky Navbar */
nav {
  position: sticky;
  top: 0;
  background-color: #fff; /* keep neutral background */
  z-index: 1000; /* stays above content */
  border-bottom: 1px solid #ddd;
}


header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
  color: #444;
}

header ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header ul li a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

header ul li a:hover {
  color: #000;
}

/* Section styling */
section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #444;
  border-bottom: 2px solid #ddd;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* Project cards */
.project {
  background: #fff;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.project:hover {
  transform: translateY(-5px);
}

.project h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

/* Contact section */
#contact p {
  margin: 0.5rem 0;
}

#contact a {
  color: #444;
  text-decoration: none;
  font-weight: bold;
}

#contact a:hover {
  color: #000;
}
/* Footer */
footer {
  background-color: #f8f9fa; /* light neutral */
  color: #333;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid #ddd;
}

footer a {
  color: #555;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #000; /* darker hover */
}
/* -------- Projects Section -------- */
#projects {
  padding: 50px 20px;
  background-color: #fff;
}

#projects h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #222;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #444;
}

.project-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.project-card a {
  color: #0077b6;
  text-decoration: none;
  font-weight: bold;
}

.project-card a:hover {
  text-decoration: underline;
}
/* -------- Footer / Contact -------- */
#contact {
  background-color: #f4f4f4;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
}

#contact h2 {
  margin-bottom: 15px;
  color: #222;
}

#contact p {
  margin-bottom: 10px;
  color: #555;
}

#contact ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

#contact li {
  margin: 5px 0;
  font-size: 1rem;
}

#contact a {
  color: #0077b6;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

#contact .copyright {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #777;
}
