/* References Page Specific Styles */

/* Reference Card Styles with Scroll Animation */
.reference-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}

.reference-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.reference-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.reference-card.visible:hover {
  transform: translateY(-4px);
}

.reference-image {
  transition: transform 0.3s ease;
}

.reference-card:hover .reference-image {
  transform: scale(1.05);
}

.reference-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.reference-list {
  list-style: none;
  padding: 0;
}

.reference-list li {
  position: relative;
  padding-left: 1.5rem;
}

.reference-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.project-link:hover {
  transform: translateX(4px);
}

/* CTA Section Styles */
.cta-section {
  margin-top: 5rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(31, 42, 97, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  border: 2px solid rgba(31, 42, 97, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(31, 42, 97, 0.3), 0 0 0 0 rgba(255, 107, 53, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(31, 42, 97, 0.4), 0 0 0 8px rgba(255, 107, 53, 0.1);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
}

.cta-button:active {
  transform: translateY(-1px) scale(1);
}

.cta-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

/* Pulse Animation für Aufmerksamkeit */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(31, 42, 97, 0.3), 0 0 0 0 rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(31, 42, 97, 0.3), 0 0 0 8px rgba(255, 107, 53, 0);
  }
}

.cta-button {
  animation: pulse 3s ease-in-out infinite;
}

/* Page Title */
.page-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .reference-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cta-container {
  background: linear-gradient(135deg, rgba(59, 74, 138, 0.15) 0%, rgba(255, 140, 90, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .cta-heading {
  color: #ffffff;
}

[data-theme="dark"] .cta-subtitle {
  color: #e0e0e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .reference-card {
    flex-direction: column;
  }
  
  .reference-image {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  
  .cta-section {
    margin-top: 3rem;
    padding: 0 0.5rem;
  }
  
  .cta-container {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }
  
  .cta-heading {
    font-size: 1.5rem;
  }
  
  .cta-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
  .page-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .reference-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .reference-image {
    max-width: 250px;
  }
  
  .project-title {
    font-size: 1.125rem;
  }
  
  .reference-content p,
  .reference-list li {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .cta-section {
    margin-top: 2.5rem;
  }
  
  .cta-container {
    padding: 1.75rem 1.25rem;
  }
  
  .cta-heading {
    font-size: 1.25rem;
  }
  
  .cta-subtitle {
    font-size: 0.95rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

