/* Animation Hero Widget Styles */

.animation-hero-container {
    position: relative;
    background-color: #000000;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.animation-hero-container[style*="background-attachment: scroll"] {
    background-attachment: scroll;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.animation-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.hero-text-image {
    margin-bottom: 0px!important;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 0;
    bottom: 0;
}

.hero-text-image.image-loaded {
    opacity: 1;
}

.hero-text-image img {
    width: 100%!important;
    max-width: 100%!important;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s ease;
    background-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 30px;
    margin-top: 0;
}

.hero-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-cta-button:hover {
    background-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Animation Classes */
.hero-animated {
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
}

.hero-animated.animate-triggered {
    animation-play-state: running;
}

.fadeIn {
    animation-name: heroFadeIn;
}

.fadeInUp {
    animation-name: heroFadeInUp;
}

.fadeInDown {
    animation-name: heroFadeInDown;
}

.fadeInLeft {
    animation-name: heroFadeInLeft;
}

.fadeInRight {
    animation-name: heroFadeInRight;
}

.zoomIn {
    animation-name: heroZoomIn;
}

.slideInUp {
    animation-name: heroSlideInUp;
}

/* Animation Keyframes */
@keyframes heroFadeIn {
    to {
        opacity: 1;
    }
}

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

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

@keyframes heroFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .animation-hero-content {
        padding: 20px 15px;
    }

    .hero-text-image img {
        width: 70%;
        max-width: 700px;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 28px;
    }

    .hero-cta-button {
        padding: 13px 26px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .animation-hero-container {
        background-attachment: scroll !important;
        min-height: 70vh;
        padding: 40px 15px;
    }

    .animation-hero-content {
        padding: 15px;
    }

    .hero-text-image img {
        width: 80%;
        max-width: 600px;
    }

    .hero-text-image {
        margin-bottom: 25px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hero-cta-button {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .animation-hero-container {
        min-height: 60vh;
        padding: 30px 15px;
    }

    .animation-hero-content {
        padding: 10px;
    }

    .hero-text-image img {
        width: 90%;
        max-width: 400px;
    }

    .hero-text-image {
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .hero-cta-button {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-background-overlay {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    .hero-cta-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-animated {
        animation: none;
        opacity: 1;
    }
    
    .hero-cta-button:hover {
        transform: none;
    }
    
    .animation-hero-container {
        background-attachment: scroll !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hero-subtitle {
        color: #e5e7eb;
    }
}

/* Loading states */
.hero-text-image img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-text-image img.loaded {
    opacity: 1;
}

/* Custom scrollbar */
.animation-hero-container::-webkit-scrollbar {
    width: 6px;
}

.animation-hero-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.animation-hero-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.animation-hero-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Print styles */
@media print {
    .animation-hero-container {
        background-attachment: scroll !important;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .hero-cta-button {
        border: 2px solid #000;
        color: #000 !important;
        background: transparent !important;
    }
}