/* Projects Page Specific Styles */

body {
  font-size: 18px;
}

h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
}

#search-projects{
  text-align: center;
  margin-bottom: 3rem;
}

#hackathon-projects-head{
  text-align: center;
  margin-bottom: 2.5rem;
}

#spotlight-project,
#hackathon-projects,
#search-projects,
#all-projects {
  margin: 3rem 10rem;
}

.spotlight-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  background-color: #fafafa;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.spotlight-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.spotlight-image {
  flex: 1;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spotlight-container:hover .spotlight-image img {
  transform: scale(1.05);
}

.spotlight-content {
  flex: 1;
  padding: 3rem;
  position: relative;
}

.hackathon-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.hackathon-project {
  background-color: #fafafa;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.hackathon-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.hackathon-project h3 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
}

.hackathon-project p {
  margin-bottom: 2rem;
  flex: 1;
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

.search-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.search-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: #f0f0f0;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.search-btn:hover,
.search-btn.active {
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
  row-gap: 3.5rem;
}

/* Enhanced Project Card Styles */
.project-card {
  background-color: #fafafa;
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
  position: relative;
  cursor: pointer;
}

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

.project-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
}

.project-card p {
  margin-bottom: 2rem;
  flex: 1;
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

/* Button Styling */
.project-card .btn,
.hackathon-project .btn,
.spotlight-content .btn,
.featured-content .btn {
  margin: 0;
  border-radius: 40px;
  border: 1px solid #333;
  padding: 0.8rem 1.8rem;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  box-shadow: none;
  background-color: transparent;
  color: #222;
  text-decoration: none;
  align-self: flex-start;
}

.project-card .btn:hover,
.hackathon-project .btn:hover,
.spotlight-content .btn:hover,
.featured-content .btn:hover {
  background-color: #333;
  color: white;
  transform: translateY(-2px);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tag {
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #ff6e6e;
  color: white;
}

.notag {
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #f5f5f5;
  color: #666;
  border: none;
}

.tag[data-category="AI"] {
  background-color: #ff6e6e; /* Soft red */
}

.tag[data-category="Web"] {
  background-color: #ffec80; /* Soft yellow */
  color: #666;
}

.tag[data-category="App"] {
  background-color: #70db70; /* Soft green */
}

.tag[data-category="Web3"] {
  background-color: #7ab1ff; /* Soft blue */
}

/* New Card Interaction Elements */
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.action-buttons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #555;
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.share-btn:hover {
  color: #000;
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.share-btn i {
  font-size: 1.1rem;
}

.metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #777;
  transition: all 0.2s ease;
}

.metric:hover {
  color: #333;
}

.metric i {
  font-size: 1rem;
}

.impressions-count {
  cursor: pointer;
  transition: all 0.2s ease;
}

.impressions-count:hover {
  color: #333;
}

/* Project Detail Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background-color: #f0f0f0;
  color: #333;
}

.modal-close:hover {
  background-color: #e0e0e0;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.modal-video {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.modal-image {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  max-height: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.modal-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.modal-statistics {
  display: flex;
  gap: 3rem;
  margin: 2rem 0;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
}

.modal-statistic {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.statistic-value {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.statistic-label {
  font-size: 1rem;
  color: #777;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  align-items: center;
}

.modal-project-link {
  padding: 1rem 2.5rem;
  background-color: #333;
  color: white;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.modal-project-link:hover {
  background-color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-share {
  display: flex;
  gap: 1rem;
}

.modal-share button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.modal-share button:hover {
  background-color: #e0e0e0;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.modal-tags {
  margin: 2rem 0;
}

/* Toast notification */
#toast-notification {
  visibility: hidden;
  min-width: 300px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 1001;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#toast-notification.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  #spotlight-project,
  #hackathon-projects,
  #search-projects,
  #all-projects {
    margin: 2rem 5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-container {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .spotlight-image {
    width: 100%;
    min-height: 300px;
  }

  .hackathon-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-content {
    padding: 2rem;
  }
  
  .modal-statistics {
    padding: 1.5rem;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  #spotlight-project,
  #hackathon-projects,
  #search-projects,
  #all-projects {
    margin: 2rem;
  }

  .projects-grid,
  .hackathon-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .search-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .search-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .project-card,
  .hackathon-project {
    padding: 2rem;
  }
  
  .card-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .metrics {
    margin-top: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-statistics {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .modal-share {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  #spotlight-project,
  #hackathon-projects,
  #search-projects,
  #all-projects {
    margin: 1.5rem 1rem;
  }

  .search-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .project-card,
  .hackathon-project {
    padding: 1.5rem;
  }
  
  .spotlight-content {
    padding: 2rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .modal-title {
    font-size: 1.8rem;
  }
  
  .modal-close {
    top: 1rem;
    right: 1rem;
  }
}

#idea-generator-card {
  margin: 4rem 10rem;
}

.card-container {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.card-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  height: 100%;
}

.card-image img {
  width: 100%;
  height: auto;
  max-width: 350px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.card-container:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  flex: 1.5;
  padding: 3rem;
}

.card-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card-content p {
  margin-bottom: 1.5rem;
}

.card-content ul {
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 2rem;
}

.card-content li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.8rem;
}

.card-content li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #70db70;
  font-weight: bold;
}

@media screen and (max-width: 1200px) {
  #idea-generator-card {
    margin: 3rem 5rem;
  }
}

@media screen and (max-width: 768px) {
  #idea-generator-card {
    margin: 2.5rem 2rem;
  }

  .card-container {
    flex-direction: column;
  }

  .card-image {
    width: 100%;
    padding: 2rem;
  }
}

@media screen and (max-width: 480px) {
  #idea-generator-card {
    margin: 2rem 1rem;
  }

  .card-content {
    padding: 1.8rem;
  }

  .card-content h2 {
    font-size: 1.8rem;
  }
}

.featured-projects {
  margin: 4rem 0;
}

.featured-project {
  display: flex;
  align-items: center;
  gap: 3rem;
  background-color: #fafafa;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 3.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.featured-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.featured-project:nth-child(even) {
  flex-direction: row-reverse;
}

.featured-content {
  flex: 1;
  padding: 3.5rem;
  position: relative;
}

.featured-image {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-project:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.featured-content .tags {
  margin-top: 2rem;
}

.view-more-container {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

#view-more-btn {
  background-color: transparent;
  border: 2px solid #333;
  color: #333;
  padding: 1rem 3rem;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

#view-more-btn:hover {
  background-color: #333;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project-card[data-expanded="false"] {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-top: 2rem;
}

/* Add a specific class for when hidden cards become visible */
.project-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media screen and (max-width: 1200px) {
  .featured-project, 
  .featured-project:nth-child(even) {
    flex-direction: column;
    gap: 0;
  }

  .featured-image {
    width: 100%;
    min-height: 300px;
  }
  
  .featured-content {
    padding: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .project-card,
  .hackathon-project {
    padding: 1.8rem;
  }
  
  .featured-content {
    padding: 2rem;
  }
  
  .featured-image {
    min-height: 250px;
  }
}