@import "template.css";

/* Main Layout */
.projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px 0;
}

/* Header Section */
.projects-header {
  text-align: center;
  margin-bottom: 10px;
}

.projects-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
}

body.dark-mode .projects-header h1 {
  color: #fff;
}

.projects-header p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

body.dark-mode .projects-header p {
  color: #b3b3b3;
}

/* Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-span-2 {
    grid-column: span 2;
  }
}

/* Glassmorphism Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 30px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  height: 100%;
}

body.dark-mode .project-card {
  background: rgba(17, 20, 24, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

body.dark-mode .project-card:hover {
  box-shadow: 0 12px 40px rgba(0, 210, 255, 0.15), inset 0 0 20px rgba(0, 210, 255, 0.05);
  border-color: rgba(0, 210, 255, 0.6);
  background: rgba(17, 20, 24, 0.9);
}

/* Card Icons */
.project-icon {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
  display: inline-block;
}

body.dark-mode .project-icon {
  color: #fff;
}

/* Specific icon colors */
.icon-ml { color: #8e44ad; }
body.dark-mode .icon-ml { color: #b77de0; }
.icon-3d { color: #e67e22; }
body.dark-mode .icon-3d { color: #f39c12; }
.icon-c { color: #2980b9; }
body.dark-mode .icon-c { color: #3498db; }

.project-card:hover .project-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Card Content */
.project-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.3;
}

body.dark-mode .project-content h3 {
  color: #fff;
}

.project-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

body.dark-mode .project-content p {
  color: #999;
}

/* Repo Links inside Card */
.repo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.repo-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  padding: 6px 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 15px;
  text-decoration: none;
  background: white;
  transition: all 0.3s ease;
}

body.dark-mode .repo-button {
  color: #fff;
  border-color: rgba(0, 210, 255, 0.2);
  background: rgba(17, 20, 24, 0.8);
}

.repo-button:hover {
  background: #f0f0f0;
  border-color: #333;
  transform: translateY(-2px);
}

body.dark-mode .repo-button:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.5);
}

/* Tech Stack Tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  background: #f0f0f0;
  color: #555;
  border-radius: 20px;
  transition: all 0.3s ease;
}

body.dark-mode .tech-tag {
  background: rgba(0, 210, 255, 0.1);
  color: #80dfff;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.project-card:hover .tech-tag {
  background: #e0e0e0;
  color: #333;
}

body.dark-mode .project-card:hover .tech-tag {
  background: rgba(0, 210, 255, 0.2);
  color: #fff;
  border-color: rgba(0, 210, 255, 0.4);
}