body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  /* background-color: #f8f9fa; Slightly lighter background */
  background: linear-gradient(to bottom right, #f4f4f4, #e9ecef);
  color: #343a40;
  line-height: 1.6;
  min-height: 100vh; /* Ensure body takes full height */
  display: flex;
  flex-direction: column; /* Stack children vertically */
  /* justify-content: center; Removed - we want content towards top */
  align-items: center; /* Center children horizontally */
  padding: 2rem 1rem; /* Adjust padding slightly */
  box-sizing: border-box;
}

/* Removed header styles */

main {
  max-width: 900px; /* Adjusted max-width */
  width: 100%;
  /* margin: 0 auto; Removed - align-items on body handles centering */
  margin-bottom: 2rem; /* Add margin to separate from footer */
  padding: 2rem; /* Padding inside main */
  text-align: center; /* Center align text in main */
  background-color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Slightly transparent background for content area */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

main h1 {
  margin: 0 0 0.5rem 0;
  font-size: 3rem;
  font-weight: 700;
  color: #212529;
}

main > p {
  /* Target the direct child p (subtitle) */
  margin: 0 0 2.5rem 0;
  font-size: 1.2rem;
  color: #495057;
}

main h2 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  color: #343a40;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Slightly smaller min */
  gap: 2rem; /* Increased gap */
  text-align: left; /* Reset text align for grid items */
}

.app-card {
  /* Removed card-specific background, border, shadow */
  padding: 1rem; /* Simplified padding */
  border-left: 4px solid transparent; /* Use border for accent */
  transition: border-left-color 0.3s ease, background-color 0.3s ease;
  border-radius: 0 6px 6px 0; /* Slight rounding */
  /* Removed flex properties, rely on grid layout */
}

.app-card:hover {
  /* transform: none; Removed transform */
  /* box-shadow: none; Removed shadow */
  border-left-color: #007bff; /* Accent color on hover */
  background-color: rgba(0, 123, 255, 0.05); /* Subtle background highlight */
}

.app-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem; /* Adjusted margin */
  color: #0056b3; /* Darker blue */
  font-size: 1.3rem; /* Adjusted size */
}

.app-card p {
  /* flex-grow: 1; Removed */
  margin-bottom: 1rem;
  color: #495057; /* Softer text color */
  font-size: 0.95rem;
}

.app-card a {
  /* display: inline-block; Removed */
  /* background: #007BFF; Removed background */
  color: #007bff; /* Link color */
  /* padding: 0.75rem 1.5rem; Removed padding */
  /* border: none; Removed border */
  /* border-radius: 5px; Removed radius */
  text-decoration: none;
  font-weight: bold;
  /* text-align: center; Removed */
  transition: color 0.2s ease-in-out;
}

.app-card a::after {
  /* Add arrow */
  content: " →";
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.app-card:hover a {
  /* background: #0056b3; Removed background */
  color: #004085; /* Darker link color on hover */
}

.app-card:hover a::after {
  transform: translateX(4px);
}

.app-card.placeholder {
  background: none; /* Removed placeholder background */
  border-left: 4px dashed #6c757d;
  color: #6c757d;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem; /* Adjust padding */
}

.app-card.placeholder:hover {
  border-left-color: #5a6268;
  background-color: rgba(108, 117, 125, 0.05);
}

.app-card.placeholder h3 {
  color: #6c757d;
  font-size: 1.2rem;
}

/* Removed footer styles */

footer {
  text-align: center;
  /* margin-top: 2rem; Adjust if needed, but main margin-bottom should suffice */
  padding: 1rem 0;
  color: #6c757d; /* Muted color */
  font-size: 0.9rem;
  width: 100%; /* Ensure it takes full width */
  max-width: 900px; /* Align width with main content */
}

/* Basic responsiveness */
@media (max-width: 768px) {
  body {
    /* align-items: flex-start; Removed - column centering is fine */
    padding: 1rem;
  }
  main {
    padding: 1.5rem;
  }
  main h1 {
    font-size: 2.5rem;
  }
  main > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  main h2 {
    font-size: 1.5rem;
  }
  .app-grid {
    grid-template-columns: 1fr; /* Stack on smaller screens */
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  main h1 {
    font-size: 2rem;
  }
  main > p {
    font-size: 1rem;
  }
  main h2 {
    font-size: 1.3rem;
  }
  .app-card h3 {
    font-size: 1.2rem;
  }
  .app-card p {
    font-size: 0.9rem;
  }
}

.contact-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
  text-align: center;
}

.contact-section p {
  margin-bottom: 1rem;
  color: #495057;
}

.contact-button {
  display: inline-block;
  background-color: #28a745; /* A nice green */
  color: #fff;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 25px; /* Pill shape */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
  background-color: #218838; /* Darker green */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.contact-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
  /* ... existing responsive styles ... */
  .contact-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  footer {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* ... existing responsive styles ... */
  .contact-button {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}

.back-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem; /* Add some space above */
  background-color: #6c757d; /* Grey color */
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.back-button:hover {
  background-color: #5a6268; /* Darker grey on hover */
  color: #fff;
}
