/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

/* --- Navigation --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #1e1e1e;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  color: #bbb;
  transition: color 0.3s;
}
.nav-links a:hover { color: #4caf50; }

/* --- Hero --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
  text-align: center;
  padding: 0 1rem;
}
.gradient-text {
  background: linear-gradient(90deg, #4caf50, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}
.hero p { font-size: 1.2rem; margin-bottom: 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #4caf50;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s, background 0.3s;
}
.btn:hover {
  background: #43a047;
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #4caf50;
  padding-left: 0.5rem;
}

/* --- Projects Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: #1e1e1e;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.card h3 { margin-bottom: 0.5rem; }
.card-links { margin-top: 1rem; }
.card-links a {
  margin-right: 1rem;
  color: #4caf50;
  text-decoration: none;
  font-weight: bold;
}
.card-links a:hover { text-decoration: underline; }

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  background: #252525;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4caf50;
}
.contact-form button { align-self: flex-start; }

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2rem;
  background: #1e1e1e;
  font-size: 0.9rem;
  color: #777;
}