/* UK Hero Block Styles */

.uk-hero-block {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Minimum Height Variants */
.uk-hero-block.min-height-full {
    min-height: 100vh;
}

.uk-hero-block.min-height-large {
    min-height: 80vh;
}

.uk-hero-block.min-height-medium {
    min-height: 60vh;
}

.uk-hero-block.min-height-small {
    min-height: 40vh;
}

.uk-hero-block.has-background-image {
    color: #ffffff;
}

.uk-hero-block:not(.has-background-image) {
    background-color: transparent;
    color: #1b365d;
}

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

.uk-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 2rem;
}

.uk-hero-container .container {
    max-width: 1200px;
    margin: 0 auto;
}

.uk-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

/* Intro Text Section */
.uk-hero-intro {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.uk-hero-intro-text {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1B365D;
}

/* Main Title Section */
.uk-hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.uk-hero-main-title {
    color: #fff;
    text-align: center;
    font-family: Usual;
    font-size: 168px;
    font-style: normal;
    font-weight: 700;
    line-height: 152px; /* 90.476% */
    margin: 0;
}

/* Rotating Text Section */
.uk-hero-rotating-text {
    position: relative;
    min-height: 240px;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    text-align: center;
}

.uk-hero-rotating-text div {
    display: none;
    transition: .6s transform, .6s top;
    color: #FD0;
    text-align: center;
    font-size: 232px;
    font-style: normal;
    font-weight: 500;
    line-height: 240px; /* 103.448% */
}

.uk-hero-rotating-text :first-child {
    top: 0px;
    left: 50%;
    transform: translateX(-50%) rotateX(-90deg);
    position: absolute;
    display: block;
}

.uk-hero-rotating-text :nth-child(2) {
    display: block;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.uk-hero-rotating-text .flip-first {
    display: block;
    left: 50%;
    transform: translateX(-50%) rotateX(0deg);
    top: 25px;
}

.uk-hero-rotating-text .flip-second {
    display: block;
    left: 50%;
    transform: translateX(-50%) rotateX(90deg);
    top: 50px;
}

/* Scroll Section */
.uk-hero-scroll-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.uk-hero-scroll-button {
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 0;
    animation: subtleBounce 2s ease-in-out infinite;
}

.uk-hero-scroll-button:hover {
    /* Hover styles can be added here */
}

.uk-hero-scroll-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 220, 0, 0.3);
}

.uk-hero-scroll-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
}

/* Text Color Variants */
.uk-hero-block.text-light {
    color: #ffffff;
}

.uk-hero-block.text-light .uk-hero-intro-text {
    color: #ffffff;
}

.uk-hero-block.text-dark {
    color: #1b365d;
}

.uk-hero-block.text-dark .uk-hero-intro-text {
    color: #1b365d;
}

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

/* Subtle bounce animation for scroll button */
@keyframes subtleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Full Width Breakout for Bootstrap */
.uk-hero-block {
    /* Ensure full width even within Bootstrap containers */
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: none;
}

/* Alternative full-width approach for edge cases */
.uk-hero-block.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Responsive Design */
@media (max-width: 991px) {
    .uk-hero-main-title {
        font-size: 120px;
        line-height: 110px;
    }
    
    .uk-hero-rotating-text div {
        font-size: 180px;
        line-height: 200px;
    }
    
    .uk-hero-rotating-text {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .uk-hero-container {
        padding: 0 1rem;
    }
    
    .uk-hero-content {
        gap: 1.5rem;
    }
    
    .uk-hero-intro-text {
        font-size: 1rem;
    }
    
    .uk-hero-main-title {
        font-size: 90px;
        line-height: 82px;
    }
    
    .uk-hero-rotating-text {
        min-height: 160px;
    }
    
    .uk-hero-rotating-text div {
        font-size: 140px;
        line-height: 160px;
    }
    
    .uk-hero-scroll-image {
        max-width: 100%;
    }
    
    .uk-hero-scroll-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .uk-hero-block {
        min-height: 80vh;
    }
    
    .uk-hero-content {
        gap: 1rem;
    }
    
    .uk-hero-main-title {
        font-size: 72px;
        line-height: 65px;
    }
    
    .uk-hero-rotating-text {
        min-height: 120px;
    }
    
    .uk-hero-rotating-text div {
        font-size: 100px;
        line-height: 120px;
    }
    
    .uk-hero-scroll-section {
        margin-top: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .uk-hero-block {
        border: 2px solid currentColor;
    }
    
    .uk-hero-scroll-button {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .uk-hero-intro,
    .uk-hero-title,
    .uk-hero-rotating-text,
    .uk-hero-scroll-section {
        animation: none;
        opacity: 1;
    }
    
    .uk-hero-scroll-button {
        animation: none;
    }
    
    .uk-hero-rotating-text div {
        transition: none;
    }
}

