:root {
  --primary-color: #333;
  --secondary-color: #666;
  --text-color: #ddd;
  --background-color: #1a1a1a;
  --accent-color: #4a4a4a;
}
.header-content {
  cursor: pointer;
}
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
}

header {
  background-color: var(--primary-color);
  text-align: center;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

nav {
  background-color: var(--secondary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0 1rem;
}

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

nav ul li a:hover {
  color: #fff;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 3rem;
}

h1, h2, h3 {
  color: var(--text-color);
}

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

.project-card {
  background-color: var(--accent-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.project-card .content {
  padding: 1rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--secondary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 20px 0px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--background-color);
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid var(--secondary-color);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--secondary-color);
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid var(--secondary-color);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--secondary-color) transparent transparent;
}

.right::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--accent-color);
  position: relative;
  border-radius: 6px;
}

.blog-post {
  background-color: var(--accent-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-post h3 {
  margin-top: 0;
}

.blog-post .meta {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.blog-post .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}

.blog-post .read-more:hover {
  text-decoration: underline;
}

.icon-class {
  margin-right: 0px;
  color: white;
  position: relative;
  top: 0.4rem;
  left: 5rem;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination button {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination button:hover {
  background-color: var(--primary-color);
}

.pagination button:disabled {
  background-color: var(--accent-color);
  cursor: not-allowed;
}

.blog-posts-container {
  min-height: 800px;
}

.search-container {
  display: flex;
  align-items: center;
}

#search-input {
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  width: 200px;
}

#search-button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#search-button:hover {
  background-color: var(--primary-color);
}

.search-result {
  background-color: var(--accent-color);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.search-result h3 {
  margin-top: 0;
}

.search-result a {
  color: var(--text-color);
  text-decoration: none;
}

.search-result a:hover {
  text-decoration: underline;
}

.highlight {
  background-color: yellow;
  color: black;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .timeline-item {
        padding: 10px 10px;
        position: relative;
        background-color: inherit;
        width: 50%;
    }
    
    .right {
        left: 40%;
    }
    
    nav {
        background-color: var(--secondary-color);
        padding: 0.5rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}
