/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7fa;
  color: #333;
}

header {
  background-color: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

.demo-gif {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast; /* For better image rendering in some browsers */
  image-rendering: crisp-edges; /* For crisp image scaling */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 20px auto;
}


h1 {
  font-size: 2.5rem;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Project Cards Container */
#project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px;
}

/* Individual Project Card */
.project-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* Buttons */
.project-links {
  display: flex;
  gap: 10px;
}

.button {
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.demo {
  background-color: #4CAF50;
  color: white;
}

.demo:hover {
  background-color: #45a049;
}

.code {
  background-color: #2196F3;
  color: white;
}

.code:hover {
  background-color: #0b7dda;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 10px;
  position: relative;  /* Changed from fixed to relative */
  margin-top: 20px;    /* Added margin to ensure content above footer isn't covered */
  width: 100%;
}

/* Add extra margin to the body to ensure space for footer */
body {
  padding-bottom: 50px; /* Added space for footer */
}

/* Responsive Design */
@media (max-width: 768px) {
  #project-list {
    padding: 20px;
  }

  .project-card {
    padding: 15px;
  }

  .button {
    font-size: 0.9rem;
  }
}
