/* ------------- Base Styles ------------- */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6fb;
  color: #222;
  margin: 0;

  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full viewport height */
  align-items: center; /* horizontal centering */
}

.container {
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2rem 2.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3949ab;
  margin-bottom: 1rem;
  transform: scale(1.12);
  object-position: 50% 40%;
}

h1 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 2.5rem;
  text-align: center;
}

.subtitle {
  color: #3949ab;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

nav {
  margin: 1.5rem 0 2rem 0;
  text-align: center;
}

nav a {
  color: #3949ab;
  text-decoration: none;
  margin: 0 1.2rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: #222;
}

section {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  color: #3949ab;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center; /* center icon + text */
  gap: 0.5rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-items: center; /* center each project card */
}

.project-card {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(250, 250, 250, 0.04);
  transition: box-shadow 0.2s;
  text-align: center;
}

.project-card:hover {
  box-shadow: 0 4px 16px rgba(26,35,126,0.10);
}

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

.project-card p {
  margin: 0 0 0.7rem 0;
  color: #555;
}

.project-links a {
  color: #3949ab;
  margin-right: 1rem;
  font-size: 1.2rem;
  text-decoration: none;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap; /* wrap on small screens */
}

.contact-list li {
  font-size: 1.2rem;
  text-align: center;
}

.contact-list a {
  color: #3949ab;
  text-decoration: none;
  margin-left: 0.5rem;
}


footer {
  text-align: center;
  color: #888;
  padding: 1.5rem 0 0.5rem 0;
  font-size: 1rem;
  width: 100%;
  margin-top: auto; /* pushes footer to bottom if content is short */
  background: transparent;
}

/* ------------- Mobile Responsive ------------- */
@media (max-width: 600px) {
  .container { padding: 1rem; }
  nav a { margin: 0 0.5rem; }
  .projects { grid-template-columns: 1fr; }
  .avatar { width: 100px; height: 100px; }
  h1 { font-size: 2rem; }
  .subtitle { font-size: 1rem; }
  .project-card { padding: 1rem; }
  .project-links a { font-size: 1rem; }
  .contact-list { gap: 1rem; }
}

@media (max-width: 400px) {
  .avatar { width: 80px; height: 80px; }
  h1 { font-size: 1.5rem; }
  .subtitle { font-size: 0.9rem; }
  nav a { font-size: 0.95rem; }
  .project-card h3 { font-size: 1rem; }
  .project-card p { font-size: 0.9rem; }
}
