@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --text-primary: #000000;
  --text-secondary: #4a4a4a;
  --text-light: #8a8a8a;
  --background: #ffffff;
  --surface: #f5f5f5;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-hover: rgba(0, 0, 0, 0.1);
}

/* Projects Page Layout */
.projects-page {
  padding-top: 100px;
  min-height: 100vh;
  background: var(--background);
}

/* Header Section */
.projects-header {
  text-align: center;
  padding: 4rem 0;
  background: var(--background);
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.back-button {
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--background);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0;
  font-weight: 400;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-back:hover {
  background: var(--text-primary);
  color: var(--background);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--background);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 0;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text-primary);
  color: var(--background);
  border-color: var(--text-primary);
}

/* Projects Grid */
.projects-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

/* Project Card */
.project-card {
  background: var(--background);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--shadow-hover);
  border-color: var(--text-primary);
}

.project-card.hidden {
  display: none;
}

/* Project Image */
.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.02);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--background);
  color: var(--text-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

/* Project Content */
.project-content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.project-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 300;
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
  font-weight: 300;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  background: var(--background);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  background: var(--text-primary);
  color: var(--background);
  border-color: var(--text-primary);
}

/* Project Features */
.project-features {
  margin-bottom: 1.5rem;
}

.project-features h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.project-features h4 i {
  color: var(--text-secondary);
}

.project-features ul {
  list-style: none;
  padding: 0;
}

.project-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 300;
}

.project-features li i {
  color: var(--text-primary);
  font-size: 0.7rem;
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--text-primary);
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--background);
}

.btn-primary:hover {
  background: var(--background);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px var(--shadow);
}

.btn-secondary {
  background: var(--background);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--background);
  transform: translateY(-2px);
}

/* Project Details */
.project-details {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  animation: slideDown 0.3s ease-out;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.detail-section h5 i {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.85rem;
  font-weight: 300;
}

/* CTA Section */
.cta-section {
  margin: 5rem 0;
  padding: 0 2rem;
}

.cta-card {
  background: var(--text-primary);
  color: var(--background);
  padding: 4rem;
  border-radius: 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: none;
  border: 1px solid var(--text-primary);
  position: relative;
  overflow: hidden;
}

.cta-card > * {
  position: relative;
  z-index: 2;
}

.cta-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.cta-card h2 i {
  font-size: 1.8rem;
}

.cta-card p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
  font-weight: 300;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  background: var(--background);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid var(--background);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--background);
  border-color: var(--background);
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
  .projects-header {
    padding: 5rem 0;
  }
  
  .page-title {
    font-size: 4rem;
  }
  
  .page-subtitle {
    font-size: 1.2rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
  }
  
  .project-content {
    padding: 2rem;
  }
  
  .project-header h2 {
    font-size: 1.5rem;
  }
  
  .cta-card {
    padding: 5rem;
  }
  
  .cta-card h2 {
    font-size: 2.2rem;
  }
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .projects-page {
    padding-top: 80px;
  }
  
  .projects-header {
    padding: 3rem 0;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  
  .project-content {
    padding: 2rem;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .project-actions {
    flex-direction: column;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .cta-card {
    padding: 3rem;
    margin: 0 1.5rem;
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .projects-header {
    padding: 2rem 0;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 0.95rem;
  }
  
  .projects-grid {
    padding: 0 1rem;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-header h2 {
    font-size: 1.5rem;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tech-stack {
    gap: 0.3rem;
  }
  
  .tech-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 200px;
    justify-content: center;
  }
  
  .cta-card {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .cta-card h2 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-back {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}
