/* ===== MAIN CONTENT ===== */
.main-content {
  padding-top: 70px; /* Account for fixed navigation */
  min-height: 100vh;
  background: var(--background-primary);
  animation: fadeInUp 1s ease-out;
}

/* ===== PROJECTS HEADER ===== */
.projects-header {
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.projects-title-container {
  display: flex;
  justify-content: center;
  padding: var(--spacing-2xl) 0;
}

.projects-title {
  font-size: var(--font-size-4xl);
  font-weight: 300;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
}

/* ===== PROJECTS SECTIONS ===== */
.projects-section {
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.completed-projects {
  animation-delay: 0.9s;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-color);
}

/* ===== PROJECTS GRID ===== */
.projects-content-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

/* ===== PROJECT CARDS ===== */
.project-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--spacing-xl);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.8s ease-out both;
}

.project-card:nth-child(1) {
  animation-delay: 0.2s;
}

.project-card:nth-child(2) {
  animation-delay: 0.4s;
}

.project-card:nth-child(3) {
  animation-delay: 0.6s;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-header {
  margin-bottom: var(--spacing-lg);
}

.project-title {
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.project-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 200;
  margin: 0;
}

.project-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.project-image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* ===== PLACEHOLDER CARD ===== */
.placeholder-card {
  opacity: 0.7;
  cursor: default;
}

.placeholder-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.placeholder-card:hover::before {
  transform: scaleX(0);
}

.placeholder-card .project-title {
  color: var(--text-muted);
}

.placeholder-card .project-subtitle {
  color: var(--text-muted);
}

.placeholder-image {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--border-color);
}

.placeholder-image svg {
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 150px;
}

/* ===== COMING SOON SECTION ===== */
.coming-soon-section {
  margin-bottom: var(--spacing-3xl);
  animation: fadeInUp 1s ease-out 0.9s both;
}

.coming-soon-container {
  text-align: center;
  padding: var(--spacing-2xl) 0;
}

.coming-soon-text {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--background-secondary);
  margin: 5% auto;
  padding: var(--spacing-2xl);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleIn 0.3s ease-out 0.1s both;
  border: 1px solid var(--border-color);
}

.close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  color: var(--text-muted);
  font-size: var(--font-size-2xl);
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--spacing-xs);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.close:hover,
.close:focus {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-2xl);
  font-weight: 300;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

.modal-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.modal-links a {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--primary-color);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-size: var(--font-size-sm);
  font-weight: 300;
  transition: all var(--transition-normal);
}

.modal-links a:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-xl) 0;
  text-align: center;
  margin-top: var(--spacing-3xl);
}

.footer p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ===== UTILITY CLASSES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .projects-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .projects-content-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-md);
  }
  
  .project-card {
    padding: var(--spacing-lg);
  }
  
  .project-title {
    font-size: var(--font-size-lg);
  }
  
  .coming-soon-text {
    font-size: var(--font-size-xl);
  }
  
  .modal-content {
    margin: 10% auto;
    padding: var(--spacing-xl);
    width: 95%;
  }
  
  .modal-links {
    flex-direction: column;
  }
  
  .modal-links a {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .projects-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .project-card {
    padding: var(--spacing-md);
  }
  
  .project-title {
    font-size: var(--font-size-base);
  }
  
  .coming-soon-text {
    font-size: var(--font-size-lg);
  }
  
  .modal-content {
    margin: 15% auto;
    padding: var(--spacing-lg);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .main-content,
  .projects-header,
  .project-card,
  .coming-soon-section,
  .modal,
  .modal-content {
    animation: none;
  }
  
  .project-card:hover {
    transform: none;
  }
  
  .project-card:hover .project-image img {
    transform: none;
  }
  
  .modal-links a:hover {
    transform: none;
  }
}

/* ===== FOCUS STYLES ===== */
.project-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.modal-links a:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .nav-container,
  .modal {
    display: none;
  }
  
  .main-content {
    padding-top: 0;
  }
  
  .project-card {
    break-inside: avoid;
    border: 1px solid #000;
  }
  
  .project-title {
    color: #000;
  }
  
  .project-subtitle {
    color: #333;
  }
} 