/* General Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: white;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}
header h1 {
  font-size: 2.8rem;
  animation: fadeIn 2s ease;
}
header h1 span { color: #ffe600; }
header .tagline {
  font-size: 1.3rem;
  margin: 1rem 0;
  opacity: 0.9;
}
header .btn {
  background: white;
  color: #4CAF50;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}
header .btn:hover { background: #45a049; color: white; transform: scale(1.05); }

/* Navbar */
.navbar {
  background: #222;
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar ul {
  display: flex; justify-content: center;
  list-style: none;
}
.navbar li { margin: 0 1.2rem; }
.navbar a {
  color: #fff;
  padding: 1rem;
  display: inline-block;
  transition: 0.3s;
}
.navbar a:hover {
  background: #4CAF50;
  border-radius: 5px;
}

/* Section */
.container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}
h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  border-bottom: 3px solid #4CAF50;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.8rem;
}
.project-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.project-card h3 { margin-bottom: 0.8rem; }
.project-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: #4CAF50;
  text-decoration: none;
}
.project-card a:hover { text-decoration: underline; }

/* About */
.about-section {
  background: #e8f5e9;
  padding: 3rem 2rem;
  border-radius: 10px;
  text-align: center;
  font-size: 1.1rem;
}

/* Contact */
.contact-section {
  background: white;
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.contact-section input,
.contact-section textarea {
  padding: 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.contact-section textarea { resize: none; height: 120px; }
.contact-section button {
  background: #4CAF50;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.9rem;
  border-radius: 6px;
  transition: 0.3s;
}
.contact-section button:hover { background: #2e7d32; }

.social-links { text-align: center; }
.social-links a {
  margin: 0 1rem;
  font-weight: 600;
  color: #4CAF50;
  text-decoration: none;
}
.social-links a:hover { text-decoration: underline; }

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px);}
  to { opacity: 1; transform: translateY(0);}
}
