body {
  font-family: "Roboto", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  width: 80%;
  margin: 0 auto;
  bottom: 100;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #3498db;
}

main {
  padding: 6rem 0 2rem;
}

.hero {
  text-align: center;
  padding: 3rem 0;
  background-color: #3498db;
  color: white;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.recent-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  display: flex;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-10px);
}

.post-card-image {
  flex: 0 0 150px;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.post-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.post-card h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card h3 a:hover {
  color: #3498db;
}

.post-card .post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.post-card .author,
.post-card .date {
  display: inline-block;
  margin-right: 1rem;
}

.post-card p {
  margin: 0;
  flex-grow: 1;
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1rem 0;
  position: fixed;
  bottom: 0;
  width: 100%;
}

@media (max-width: 600px) {
  .post-card {
    flex-direction: column;
  }

  .post-card-image {
    flex: 0 0 200px;
  }
}

/* Blog Post Styles */
.blog-post {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.post-meta {
  margin-bottom: 1rem;
  color: #666;
}

.featured-image {
  width: 25rem;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.post-content {
  margin-bottom: 2rem;
}

.tags .tag {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

/* About Me Styles */
.about-me {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.profile-picture {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  display: block;
}

.bio {
  margin-bottom: 2rem;
}

.interests ul {
  list-style-type: none;
  padding: 0;
}

.interests li {
  margin-bottom: 0.5rem;
}

#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

#dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
}

.dark-mode {
  background-color: #333;
  color: #f5f5f5;
}

.dark-mode .container,
.dark-mode .blog-post,
.dark-mode .about-me {
  background-color: #444;
  color: #f5f5f5;
}

.dark-mode a {
  color: #3498db;
}

.post-card-btn {
  background-color: #f8fafb;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}
