/* BSH Technologies - Page Entrance Animations */

/* Main page entrance animation */
.main-content {
    opacity: 0;
    transform: translateY(20px);
    animation: pageEntranceFade 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

@keyframes pageEntranceFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for content sections */
.global-headline-div {
    opacity: 0;
    transform: translateY(15px);
    animation: contentFadeIn 0.6s ease-out forwards;
    animation-delay: 0.3s;
}

.full-screen-card,
.default-section .global-wrapper {
    opacity: 0;
    transform: translateY(15px);
    animation: contentFadeIn 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

/* Additional content blocks */
.global-content-div {
    opacity: 0;
    transform: translateY(10px);
    animation: contentFadeIn 0.5s ease-out forwards;
    animation-delay: 0.7s;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form field entrance animations */
.form-item {
    opacity: 0;
    transform: translateY(10px);
    animation: formFieldFadeIn 0.4s ease-out forwards;
}

.form-item:nth-child(1) { animation-delay: 0.8s; }
.form-item:nth-child(2) { animation-delay: 0.9s; }
.form-item:nth-child(3) { animation-delay: 1.0s; }
.form-item:nth-child(4) { animation-delay: 1.1s; }
.form-item:nth-child(5) { animation-delay: 1.2s; }

@keyframes formFieldFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card and section animations */
.pricing-card,
.feature-card,
.service-card,
.blog-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease-out forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.6s; }
.pricing-card:nth-child(2) { animation-delay: 0.7s; }
.pricing-card:nth-child(3) { animation-delay: 0.8s; }

.feature-card:nth-child(1) { animation-delay: 0.6s; }
.feature-card:nth-child(2) { animation-delay: 0.7s; }
.feature-card:nth-child(3) { animation-delay: 0.8s; }
.feature-card:nth-child(4) { animation-delay: 0.9s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header and navigation animations */
.navbar {
    opacity: 0;
    transform: translateY(-10px);
    animation: navbarFadeIn 0.6s ease-out forwards;
    animation-delay: 0s;
}

@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer animation */
.footer {
  opacity: 0;
  transform: translateY(20px);
  animation: footerFadeIn 0.6s ease-out forwards;
}

@keyframes footerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer layout fixes - these will be overridden by inline styles in footer.html */
.footer-inner {
  overflow: visible !important;
}

.footer-column {
  overflow: visible !important;
  min-width: 0 !important;
}

.footer-url {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  max-width: 100% !important;
}

.footer-img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Mobile responsive overrides */
@media (max-width: 767px) {
  .footer-url {
    text-align: center !important;
    font-size: 14px !important;
  }
  
  .footer-headline {
    text-align: center !important;
  }
  
  .footer-column {
    text-align: center !important;
  }
}

@media (max-width: 479px) {
  .footer-url {
    font-size: 13px !important;
  }
  
  .footer-headline {
    font-size: 16px !important;
  }
}

/* Button hover enhancement */
.primary-btn,
.secondary-btn {
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Text elements fade in */
.copytext,
.headline,
.subheadline {
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeIn 0.5s ease-out forwards;
    animation-delay: 0.8s;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image fade in */
img {
    opacity: 0;
    animation: imageFadeIn 0.6s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Accessibility - Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .main-content,
    .global-headline-div,
    .full-screen-card,
    .form-item,
    .navbar,
    .footer,
    .pricing-card,
    .feature-card,
    .service-card,
    .blog-card,
    .copytext,
    .headline,
    .subheadline,
    img {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Performance optimization - Hardware acceleration */
.main-content,
.global-headline-div,
.full-screen-card,
.form-item,
.navbar,
.footer {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content,
    .global-headline-div,
    .full-screen-card {
        animation-duration: 0.6s;
    }
    
    .form-item {
        animation-duration: 0.3s;
    }
    
    .form-item:nth-child(1) { animation-delay: 0.6s; }
    .form-item:nth-child(2) { animation-delay: 0.7s; }
    .form-item:nth-child(3) { animation-delay: 0.8s; }
    .form-item:nth-child(4) { animation-delay: 0.9s; }
    .form-item:nth-child(5) { animation-delay: 1.0s; }
} 