/* Projects/Apps Page Styles */
.projects-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-heading {
  text-align: left;
  margin-bottom: 2rem;
  color: #333;
  font-size: 2.5rem;
  font-weight: 300;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  max-width: none;
  margin: 0;
}

.project-card {
  background: white; /* White background */
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e8e8d0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.project-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.project-download {
  margin-top: 0.5rem;
}

.project-download .download-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.project-download .download-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Project Actions */
.project-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.project-link-btn {
  background: #007bff;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease;
}

.project-link-btn:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
}

/* App Actions for Homepage */
.app-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.app-link-btn {
  background: #007bff;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease;
}

.app-link-btn:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
}

.project-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-decoration: none;
  color: transparent;
  z-index: 1;
}

.project-link:hover {
  color: transparent;
}



/* Button styles for the homepage */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.apps-preview {
  text-align: center;
  margin: 1.5rem 0;
}

/* Homepage App Card Styles */
.homepage-apps {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-card {
  background: white; /* White background */
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e8e8d0;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.app-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.app-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.app-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.app-download {
  margin-top: 0.5rem;
}

.download-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.download-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.app-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-decoration: none;
  color: transparent;
  z-index: 1;
}

.app-link:hover {
  color: transparent;
}

/* ===== MODIFIED RESPONSIVE STYLES START HERE ===== */

/* Hide App Store link in app-info on desktop (it's shown in app-actions instead) */
.app-info .download-link {
  display: none;
}

/* Responsive design for tablets and smaller devices */
@media (max-width: 768px) {
  .page-heading {
    font-size: 2rem;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
  }

  .projects-grid {
    padding: 0 1rem;
    gap: 1.5rem; /* More spacing between cards on project page */
  }

  .homepage-apps {
    padding: 0 1rem;
    gap: 0.5rem; /* Keep tight spacing on homepage */
  }

  /* Card layout for mobile - horizontal: Icon left, App name + Link right */
  .project-card,
  .app-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    max-width: none;
    margin: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
  }

  /* Remove card styling for project page on mobile */
  .projects-page .app-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0.75rem 0;
  }

  /* Icon styles - left side */
  .project-icon,
  .app-icon {
    width: 60px;
    height: 60px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .project-icon img,
  .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Right side container - holds app name and download link */
  .project-info,
  .app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
  }

  /* Hide description on mobile for cleaner look */
  .project-description,
  .app-description {
    display: none;
  }

  /* Title styles - left aligned */
  .project-title,
  .app-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.2;
    text-align: left;
  }

  /* Hide View Details button on mobile */
  .project-link-btn,
  .app-link-btn {
    display: none;
  }

  /* Download link - show directly in app-info section below app name */
  .download-link {
    display: block;
  }

  /* Show App Store link in app-info on mobile */
  .app-info .download-link {
    display: block;
    text-align: left;
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0;
    margin-top: 0.25rem;
  }

  .download-link:hover {
    color: #007AFF;
  }

  /* Hide the actions wrapper on mobile since download link is in app-info */
  .project-actions,
  .app-actions {
    display: none;
  }

  /* Show download link directly in app-info section */
  .project-download,
  .app-download {
    display: block;
    text-align: left;
    margin: 0;
    margin-top: 0.25rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .page-heading {
    font-size: 1.75rem;
  }

  .project-card,
  .app-card {
    padding: 0.8rem;
    gap: 0.75rem;
  }

  .project-icon,
  .app-icon {
    width: 50px;
    height: 50px;
  }

  .project-title,
  .app-title {
    font-size: 1rem;
  }
  
  .download-link {
    font-size: 0.75rem;
  }
}
