
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
}

header {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

header p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

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

.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #3498db;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

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

/* Special grid for Discord category to fit more cards */
.projects-grid:has(.project-card[data-category="discord"]:not(.hidden)) {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}



.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Minimalistic styling for Discord Services cards */
.project-card[data-category="discord"] {
  min-height: 250px;
  max-width: 280px;
  margin: 0 auto;
}

.project-card[data-category="discord"] .project-preview {
  height: 120px;
}

.project-card[data-category="discord"] .project-content {
  padding: 1rem;
}

.project-card[data-category="discord"] .project-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.project-card[data-category="discord"] .project-content p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card[data-category="discord"] .project-links {
  gap: 0.5rem;
}

.project-card[data-category="discord"] .project-link {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.project-preview {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

.preview-overlay {
  display: none;
}

.iframe-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #6c757d;
  font-style: italic;
}

.project-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.project-content p {
  color: #7f8c8d;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tag {
  background: #ecf0f1;
  color: #2c3e50;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.project-link {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  min-width: 80px;
  font-size: 0.9rem;
}

.demo-link {
  background: #3498db;
  color: white;
}

.demo-link:hover {
  background: #2980b9;
}

.like-button {
  background: #e74c3c;
  color: white;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.like-button:hover {
  background: #c0392b;
}



/* Share button in top right corner of project cards */
.project-share-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  z-index: 10;
  transition: all 0.3s ease;
}

.project-share-button:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.project-card {
  position: relative;
}

/* Single project view styles */
.single-project-container {
  max-width: 800px;
  margin: 0 auto;
}

.back-button-container {
  margin-bottom: 2rem;
}

.back-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.single-project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
}

.single-preview {
  height: 400px !important;
}

.single-iframe {
  transform: scale(1) !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: auto !important;
}

.single-content {
  padding: 2rem;
}

.single-content h1 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.single-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.single-links {
  justify-content: center;
  gap: 1rem;
}

.large-link {
  padding: 0.75rem 2rem !important;
  font-size: 1.1rem !important;
  min-width: 150px;
}

/* Share Modal Styles */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.share-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.share-content h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.share-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267b2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.close { background: #95a5a6; }

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  main {
    padding: 0 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
