/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

/* Main layout */
.min-h-screen {
  min-height: 100vh;
}

/* Hero section */
.hero-section {
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, rgba(226, 232, 240, 0.2) 100%);
  backdrop-filter: blur(10px);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0f172a;
}

.hero-highlight {
  color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  opacity: 0.8;
}

/* Navigation */
.project-nav {
  margin-bottom: 1rem;
}

.back-link {
  color: #007bff;
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Projects section */
.projects-section {
  min-height: 70vh;
  background-color: #f8fafc;
  padding: 3rem 2rem;
}

.projects-container {
  max-width: 768px;
  margin: 0 auto;
}

/* Projects grid */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Project folder cards */
.project-folder {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-folder:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-icon {
  font-size: 2rem;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

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

.project-content {
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.project-link {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #3b82f6;
}

.project-description {
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.external-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.external-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.external-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.project-folder:hover .external-icon {
  transform: translate(2px, -2px);
  opacity: 1;
}

.primary-link {
  background: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.primary-link:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
}

/* Project details page */
.project-details {
  max-width: 800px;
  margin: 0 auto;
}

.project-content {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-content h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-links {
  margin-top: 2rem;
  text-align: center;
}

/* No projects state */
.no-projects {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.3);
}

.empty-folder {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-projects p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.projects-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
}

.projects-link:hover {
  background: #3b82f6;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-content {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .projects-section {
    padding: 2rem 1rem;
  }

  .project-folder {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .project-icon {
    font-size: 1.5rem;
  }

  .project-icon-img {
    width: 36px;
    height: 36px;
  }
}

/* Project card icons for index page */
.project-card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-card-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
}
