/* Landing Hero CSS - Polish */

.section-hero {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 0;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.hero-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Scroll-based Zoom Out */
.section-hero .container {
    transform-origin: center top;
    animation: hero-zoom-out linear both;
    animation-timeline: scroll(root);
    animation-range: 0vh 100vh;
}

@keyframes hero-zoom-out {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.95);
        opacity: 0;
    }
}



/* Hero Buttons */
.btn-lg {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
}

.icon-right {
    margin-right: 0.5rem;
}

.icon-left {
    margin-left: 0.5rem;
}

/* Navbar Logo Resize */
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Dynamic Description Container (Stacked Grid) */
.dynamic-description-container {
    display: grid;
    grid-template-areas: "stack";
    place-items: start center;
    animation-delay: 0.2s;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    min-height: 5em;
    /* increased slightly */
}

.dynamic-description-container p {
    grid-area: stack;
    opacity: 0;
    transform: translateY(10px);
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    animation: desc-cycle 24s linear infinite;
    /* Updated to 24s */
    width: 100%;
    will-change: transform, opacity;
}

@media (min-width: 768px) {
    .dynamic-description-container p {
        font-size: 1.25rem;
    }
}

/* Synchronized Timings (12 Items * 2s = 24s) */
.dynamic-description-container p:nth-child(1) {
    animation-delay: 0s;
}

.dynamic-description-container p:nth-child(2) {
    animation-delay: 2s;
}

.dynamic-description-container p:nth-child(3) {
    animation-delay: 4s;
}

.dynamic-description-container p:nth-child(4) {
    animation-delay: 6s;
}

.dynamic-description-container p:nth-child(5) {
    animation-delay: 8s;
}

.dynamic-description-container p:nth-child(6) {
    animation-delay: 10s;
}

.dynamic-description-container p:nth-child(7) {
    animation-delay: 12s;
}

.dynamic-description-container p:nth-child(8) {
    animation-delay: 14s;
}

.dynamic-description-container p:nth-child(9) {
    animation-delay: 16s;
}

.dynamic-description-container p:nth-child(10) {
    animation-delay: 18s;
}

.dynamic-description-container p:nth-child(11) {
    animation-delay: 20s;
}

.dynamic-description-container p:nth-child(12) {
    animation-delay: 22s;
}

@keyframes desc-cycle {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    2% {
        opacity: 1;
        transform: translateY(0);
    }

    8% {
        opacity: 1;
        transform: translateY(0);
    }

    10% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Dynamic Word Container */
.dynamic-word-container {
    display: inline-block;
    vertical-align: bottom;
    vertical-align: baseline;
    position: relative;
    width: 8ch;
    /* increased for longer words */
    height: 1.2em;
    overflow: visible;
    text-align: right;
    margin-right: 0.5rem;
}

.dynamic-word-container span {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    white-space: nowrap;
    color: var(--primary);
    font-weight: 700;
    transform: translateY(-20px);
    animation: word-cycle 24s linear infinite;
    /* Updated to 24s */
    will-change: transform, opacity;
}

/* 12 items */
.dynamic-word-container span:nth-child(1) {
    animation-delay: 0s;
}

.dynamic-word-container span:nth-child(2) {
    animation-delay: 2s;
}

.dynamic-word-container span:nth-child(3) {
    animation-delay: 4s;
}

.dynamic-word-container span:nth-child(4) {
    animation-delay: 6s;
}

.dynamic-word-container span:nth-child(5) {
    animation-delay: 8s;
}

.dynamic-word-container span:nth-child(6) {
    animation-delay: 10s;
}

.dynamic-word-container span:nth-child(7) {
    animation-delay: 12s;
}

.dynamic-word-container span:nth-child(8) {
    animation-delay: 14s;
}

.dynamic-word-container span:nth-child(9) {
    animation-delay: 16s;
}

.dynamic-word-container span:nth-child(10) {
    animation-delay: 18s;
}

.dynamic-word-container span:nth-child(11) {
    animation-delay: 20s;
}

.dynamic-word-container span:nth-child(12) {
    animation-delay: 22s;
}

@keyframes word-cycle {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    2% {
        opacity: 1;
        transform: translateY(0);
    }

    8% {
        opacity: 1;
        transform: translateY(0);
    }

    10% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Hero Trust Section */
.hero-trust {
    margin-top: 3.5rem;
    animation-delay: 0.5s;
}

.hero-trust-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-trust-text .highlight {
    color: var(--primary);
}

.hero-trust-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0.6;
    flex-wrap: wrap;
    align-items: center;
}

.hero-trust-icons i {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.hero-trust-icons i:hover {
    color: var(--text-muted);
}