body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #f7f9fb 60%, #e0e7ef 100%);
  color: #222;
}

header {
  background: #222;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

header nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  background: linear-gradient(120deg, #4f8cff 0%, #3358e0 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
  position: relative;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(79,140,255,0.18);
  object-fit: cover;
  transition: transform 0.2s;
}

.avatar:hover {
  transform: scale(1.05) rotate(-2deg);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 1px;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

nav a:hover {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
}

main {
  background: #fff;
  margin-top: -2rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2.5rem 2rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  color: #3358e0;
  margin-bottom: 1rem;
  font-size: 2rem;
  border-bottom: 2px solid #e0e7ef;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #f4f8ff;
  border-radius: 8px;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 8px rgba(79,140,255,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 32px rgba(79,140,255,0.18);
  background: #eaf2ff;
}

.project-card h3 {
  margin-top: 0;
  color: #3358e0;
}

.project-card a {
  color: #4f8cff;
  text-decoration: none;
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.skills-list li {
  background: #e0e7ef;
  color: #3358e0;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1rem;
}

footer {
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  background: #3358e0;
  color: #fff;
  margin-top: 2rem;
  border-radius: 0 0 12px 12px;
  font-size: 1rem;
}

/* Add a divider under the hero section */
.hero::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #ffd700;
  margin: 2rem auto 0 auto;
  border-radius: 2px;
  opacity: 0.7;
}

.github-link::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  background: url('https://cdn.jsdelivr.net/npm/simple-icons@v11/icons/github.svg') no-repeat center/contain;
}

@media (max-width: 600px) {
  main {
    padding: 1.2rem 0.5rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}