/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* Navigation */
header {
  background: #222;
  color: #fff;
  padding: 10px 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #00bcd4;
}

/* Intro */
.intro {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 20px;
  font-size: 18px;
}

.intro span {
  color: #00bcd4;
}

.profile-pic {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
}

/* Sections */
section {
  padding: 50px 20px;
}

section h2 {
  margin-bottom: 20px;
  color: #00bcd4;
  text-align: center;
}

#projects article {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
}

/* Skills */
#skills ul {
  list-style: none;
  max-width: 400px;
  margin: 0 auto;
  padding: 0;
}

#skills li {
  background: #e0f7fa;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 20px auto;
}

form input,
form textarea,
form button {
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
}

form button {
  background: #00bcd4;
  border: none;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: #0097a7;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/* Ensure footer stays at bottom */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* content will push footer down */
}

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 10px;
}
