/* Index/Home Page Specific Styles */

/* Hero Section Logo Container with Enhanced Animation */
main .w-52 {
  animation: fadeInScale 1s ease-out;
  position: relative;
}

main .w-52::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
  animation: pulse 3s ease-in-out infinite;
}

/* Logo Image Styling */
main img[alt="Logo Oliver Eickert"] {
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

main .w-52:hover img {
  transform: scale(1.05);
}

/* Hero Section Headline */
main h1 {
  animation: fadeInUp 0.8s ease-out 0.2s both;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] main h1 {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section Description */
main p {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Enhanced CTA Button with Glow Effect */
main a[href="/contact"] {
  animation: fadeInUp 0.8s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
  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);
}

main a[href="/contact"]::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;
}

main a[href="/contact"]:hover::before {
  left: 100%;
}

main a[href="/contact"]: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%);
}

main a[href="/contact"]:active {
  transform: translateY(-1px) scale(1);
}

/* Feature Cards Section */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

.feature-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.8s; }
.feature-card:nth-child(2) { animation-delay: 1s; }
.feature-card:nth-child(3) { animation-delay: 1.2s; }

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

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(10deg) scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section at Bottom */













/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

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

/* Dark Mode Adjustments */
[data-theme="dark"] main {
  background: var(--silver);
}

[data-theme="dark"] .feature-card {
  background: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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




/* Tablet Responsive */
@media (max-width: 1024px) {
  main h1 {
    font-size: 2rem;
  }
  
  main p {
    font-size: 1rem;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  main .w-52 {
    width: 10rem;
    height: 10rem;
  }
  
  main h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  main p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  main a[href="/contact"] {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
  main .w-52 {
    width: 9rem;
    height: 9rem;
    margin-bottom: 2rem;
  }
  
  main h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }
  
  main p {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
  
  main a[href="/contact"] {
    font-size: 0.95rem;
    padding: 0.7rem 1.25rem;
    margin-top: 0.5rem;
  }
  
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
  
  .feature-description {
    font-size: 0.9rem;
  }
}
