/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f5f5f5;
}

main {
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #000 0%, #764ba2 100%);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.back-link:hover {
  transform: translateX(-5px);
}

.gnome-icon-container {
  margin-bottom: 2rem;
}

.gnome-icon-wrapper {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.gnome-icon {
  width: 80px;
  height: 80px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: #667eea;
}

/* Project Overview Section */
.project-overview {
  padding: 5rem 0;
  background: white;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.meta-item h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.meta-item p {
  font-size: 1rem;
  color: #1a1a1a;
  font-weight: 500;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.project-description {
  font-size: 1.125rem;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.tech-stack {
  margin-top: 2rem;
}

.tech-stack h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.badge-blue {
  background: #4a86cf;
}
.badge-purple {
  background: #764ba2;
}
.badge-green {
  background: #57cc99;
}
.badge-coral {
  background: #ff6b6b;
}
.badge-yellow {
  background: #ffd93d;
}
.badge-azure {
  background: #6bcf7f;
}

.project-image {
  position: sticky;
  top: 2rem;
}

.project-image img {
  width: 100%;
  border-radius: 16px;
}

.image-caption {
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  margin-top: 1rem;
  font-style: italic;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #1a1a1a;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.feature-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

/* Installation Section */
.installation-section {
  padding: 5rem 0;
  background: white;
}

.installation-steps {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 16px;
  border-left: 4px solid #667eea;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.step-content p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.step-link img {
  margin-top: 0.5rem;
}

.important-note {
  display: flex;
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: #fff3cd;
  border-radius: 16px;
  border-left: 4px solid #ffc107;
}

.note-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #ffc107;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.note-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.note-content p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

/* Contributing Section */
.contributing-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.contributing-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.lead-text {
  font-size: 1.125rem;
  color: #4a4a4a;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contributing-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.contribution-steps {
  list-style: none;
  counter-reset: step-counter;
  margin-bottom: 2rem;
}

.contribution-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #4a4a4a;
}

.contribution-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: #667eea;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.contribution-steps code {
  background: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: "Courier New", monospace;
}

.commit-rules {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.commit-rules h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.commit-rules ul {
  list-style: none;
  padding-left: 0;
}

.commit-rules li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: #4a4a4a;
}

.commit-rules li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 600;
}

.license-box {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.license-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.license-box p {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.license-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.license-link:hover {
  color: #764ba2;
}

/* Support Section */
.support-section {
  padding: 5rem 0;
  background: white;
}

.support-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.support-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
  fill: white;
}

.support-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.support-content p {
  font-size: 1.125rem;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.support-button {
  display: inline-block;
  transition: transform 0.3s ease;
}

.support-button:hover {
  transform: scale(1.05);
}

.support-button img {
  height: 40px;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-made span {
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-image {
    position: static;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .contributing-content {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .back-link {
    top: 1rem;
    left: 1rem;
    font-size: 0.875rem;
  }

  .step-card {
    flex-direction: column;
    gap: 1rem;
  }

  .important-note {
    flex-direction: column;
    gap: 1rem;
  }
}
