/* components/hero/hero.css */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 1;
    opacity: 0;
    animation: fadeInOverlay 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInOverlay {
    to {
        opacity: 1;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-image.active {
    opacity: 1;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: grayscale(100%) brightness(0.7);
}

.hero-bg-mobile {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px;
}

.hero-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.hero-timeline {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-timeline-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 300px;
    padding: 0 2rem;
}

.hero-timeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 5%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.15) 95%,
        transparent 100%
    );
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    z-index: 1;
    animation: drawLine 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}

@keyframes drawLine {
    to {
        transform: translateY(-50%) scaleX(1);
    }
}

.hero-timeline-item {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-timeline-year {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.08em;
    z-index: 3;
    opacity: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: fadeInYear 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
    transition: all 0.3s ease;
}

.hero-timeline-year:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-timeline-item:nth-child(2) .hero-timeline-year {
    animation-delay: 1.7s;
}

.hero-timeline-item:nth-child(3) .hero-timeline-year {
    animation-delay: 2.0s;
}

.hero-timeline-item:nth-child(4) .hero-timeline-year {
    animation-delay: 2.3s;
}

.hero-timeline-item:nth-child(5) .hero-timeline-year {
    animation-delay: 2.6s;
}

.hero-timeline-item:nth-child(6) .hero-timeline-year {
    animation-delay: 2.9s;
}

@keyframes fadeInYear {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.hero-timeline-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.1)
    );
    z-index: 2;
    opacity: 0;
    animation: drawConnector 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.hero-timeline-item:nth-child(2) .hero-timeline-connector {
    animation-delay: 1.9s;
}

.hero-timeline-item:nth-child(3) .hero-timeline-connector {
    animation-delay: 2.2s;
}

.hero-timeline-item:nth-child(4) .hero-timeline-connector {
    animation-delay: 2.5s;
}

.hero-timeline-item:nth-child(5) .hero-timeline-connector {
    animation-delay: 2.8s;
}

.hero-timeline-item:nth-child(6) .hero-timeline-connector {
    animation-delay: 3.1s;
}

.hero-timeline-item.top .hero-timeline-connector {
    bottom: 50%;
    height: 55px;
    transform-origin: bottom center;
}

.hero-timeline-item.bottom .hero-timeline-connector {
    top: 50%;
    height: 55px;
    transform-origin: top center;
}

@keyframes drawConnector {
    to {
        transform: translateX(-50%) scaleY(1);
        opacity: 1;
    }
}

.hero-timeline-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 250px;
    z-index: 1;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.65), 
        rgba(0, 0, 0, 0.5)
    );
    backdrop-filter: blur(12px);
    padding: 1.4rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.hero-timeline-item:nth-child(2) .hero-timeline-content {
    animation-delay: 2.1s;
}

.hero-timeline-item:nth-child(3) .hero-timeline-content {
    animation-delay: 2.4s;
}

.hero-timeline-item:nth-child(4) .hero-timeline-content {
    animation-delay: 2.7s;
}

.hero-timeline-item:nth-child(5) .hero-timeline-content {
    animation-delay: 3.0s;
}

.hero-timeline-item:nth-child(6) .hero-timeline-content {
    animation-delay: 3.3s;
}

@keyframes slideUp {
    0% {
        transform: translateX(-50%) translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.hero-timeline-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15), 
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.08)
    );
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.hero-timeline-content:hover {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.75), 
        rgba(0, 0, 0, 0.6)
    );
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-timeline-content:hover::before {
    opacity: 1;
}

.hero-timeline-item.top .hero-timeline-content {
    bottom: calc(50% + 65px);
}

.hero-timeline-item.bottom .hero-timeline-content {
    top: calc(50% + 65px);
}

.hero-timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-timeline-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    line-height: 1.6;
}

@media (max-width: 1400px) {
    .hero-timeline-track {
        height: 280px;
    }

    .hero-timeline-year {
        font-size: 1.15rem;
        padding: 0.35rem 0.9rem;
    }

    .hero-timeline-content {
        width: 230px;
        padding: 1.3rem 1.1rem;
    }

    .hero-timeline-item.top .hero-timeline-connector {
        height: 52px;
    }

    .hero-timeline-item.bottom .hero-timeline-connector {
        height: 52px;
    }

    .hero-timeline-item.top .hero-timeline-content {
        bottom: calc(50% + 62px);
    }

    .hero-timeline-item.bottom .hero-timeline-content {
        top: calc(50% + 62px);
    }
}

@media (max-width: 1200px) {
    .hero-timeline-track {
        height: 270px;
    }

    .hero-timeline-year {
        font-size: 1.1rem;
        padding: 0.3rem 0.85rem;
    }

    .hero-timeline-content {
        width: 215px;
        padding: 1.2rem 1rem;
    }

    .hero-timeline-item.top .hero-timeline-connector {
        height: 50px;
    }

    .hero-timeline-item.bottom .hero-timeline-connector {
        height: 50px;
    }

    .hero-timeline-item.top .hero-timeline-content {
        bottom: calc(50% + 60px);
    }

    .hero-timeline-item.bottom .hero-timeline-content {
        top: calc(50% + 60px);
    }

    .hero-timeline-title {
        font-size: 0.9rem;
    }

    .hero-timeline-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-timeline-track {
        height: 260px;
        padding: 0 1rem;
    }

    .hero-timeline-year {
        font-size: 1.05rem;
        padding: 0.3rem 0.8rem;
    }

    .hero-timeline-content {
        width: 200px;
        padding: 1.1rem 0.95rem;
    }

    .hero-timeline-item.top .hero-timeline-connector {
        height: 48px;
    }

    .hero-timeline-item.bottom .hero-timeline-connector {
        height: 48px;
    }

    .hero-timeline-item.top .hero-timeline-content {
        bottom: calc(50% + 58px);
    }

    .hero-timeline-item.bottom .hero-timeline-content {
        top: calc(50% + 58px);
    }

    .hero-timeline-title {
        font-size: 0.88rem;
    }

    .hero-timeline-text {
        font-size: 0.73rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
    }

    .hero-bg-image:not(.hero-bg-mobile) {
        display: none;
    }

    .hero-bg-mobile {
        display: block;
        opacity: 1;
    }

    .hero-bg-mobile img {
        filter: grayscale(100%) brightness(0.7) blur(15px);
        transform: scale(1.1);
        object-position: center;
    }

    .hero-container {
        height: auto;
        min-height: auto;
        padding: 100px 1.5rem 60px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-timeline {
        max-width: 100%;
        padding: 0;
    }

    .hero-timeline-track {
        flex-direction: column;
        height: auto;
        gap: 2.5rem;
        padding: 0 0 0 30px;
        align-items: flex-start;
    }

    .hero-timeline-line {
        display: block;
        top: 0;
        left: 14px;
        right: auto;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, 
            transparent 0%,
            rgba(255, 255, 255, 0.2) 3%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.2) 97%,
            transparent 100%
        );
        transform: translateX(0) scaleY(0);
        transform-origin: top center;
        animation: drawLineVertical 1s ease-out 0.3s forwards;
    }

    @keyframes drawLineVertical {
        to {
            transform: translateX(0) scaleY(1);
        }
    }

    .hero-timeline-item {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        margin: 0;
    }

    .hero-timeline-year {
        position: absolute;
        top: 0;
        left: -16px;
        transform: translateX(-50%) scale(0);
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0.4rem 0.8rem;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.75));
        border: 2px solid rgba(255, 255, 255, 0.25);
        border-radius: 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
        z-index: 10;
        white-space: nowrap;
        animation: popIn 0.5s cubic-bezier(0.34, 1.5, 0.64, 1) forwards;
    }

    .hero-timeline-item:nth-child(1) .hero-timeline-year {
        animation-delay: 0.5s;
    }

    .hero-timeline-item:nth-child(2) .hero-timeline-year {
        animation-delay: 0.65s;
    }

    .hero-timeline-item:nth-child(3) .hero-timeline-year {
        animation-delay: 0.8s;
    }

    .hero-timeline-item:nth-child(4) .hero-timeline-year {
        animation-delay: 0.95s;
    }

    .hero-timeline-item:nth-child(5) .hero-timeline-year {
        animation-delay: 1.1s;
    }

    @keyframes popIn {
        0% {
            transform: translateX(-50%) scale(0);
            opacity: 0;
        }
        60% {
            transform: translateX(-50%) scale(1.15);
        }
        100% {
            transform: translateX(-50%) scale(1);
            opacity: 1;
        }
    }

    .hero-timeline-connector {
        display: none;
    }

    .hero-timeline-content {
        position: relative;
        top: auto;
        bottom: auto;
        left: 45px;
        transform: translateX(20px);
        width: calc(100% - 45px);
        max-width: 100%;
        padding: 1.4rem 1.2rem;
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.8), 
            rgba(0, 0, 0, 0.65)
        );
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        animation: slideInRight 0.6s ease forwards;
    }

    .hero-timeline-item:nth-child(1) .hero-timeline-content {
        animation-delay: 0.8s;
    }

    .hero-timeline-item:nth-child(2) .hero-timeline-content {
        animation-delay: 0.95s;
    }

    .hero-timeline-item:nth-child(3) .hero-timeline-content {
        animation-delay: 1.1s;
    }

    .hero-timeline-item:nth-child(4) .hero-timeline-content {
        animation-delay: 1.25s;
    }

    .hero-timeline-item:nth-child(5) .hero-timeline-content {
        animation-delay: 1.4s;
    }

    @keyframes slideInRight {
        0% {
            transform: translateX(20px);
            opacity: 0;
        }
        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .hero-timeline-content:hover {
        transform: translateX(0) translateY(-4px);
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.9), 
            rgba(0, 0, 0, 0.75)
        );
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
    }

    .hero-timeline-title {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .hero-timeline-text {
        font-size: 0.8rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 90px 1.2rem 50px;
    }

    .hero-timeline-track {
        padding-left: 25px;
        gap: 2.2rem;
    }

    .hero-timeline-line {
        left: 12px;
    }

    .hero-timeline-year {
        left: -13px;
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .hero-timeline-content {
        left: 40px;
        width: calc(100% - 40px);
        padding: 1.2rem 1rem;
    }

    .hero-timeline-title {
        font-size: 0.88rem;
    }

    .hero-timeline-text {
        font-size: 0.76rem;
    }
}

@media (max-width: 380px) {
    .hero-timeline-track {
        padding-left: 22px;
    }

    .hero-timeline-line {
        left: 11px;
    }

    .hero-timeline-year {
        left: -11px;
        font-size: 0.68rem;
        padding: 0.32rem 0.65rem;
    }

    .hero-timeline-content {
        left: 37px;
        width: calc(100% - 37px);
        padding: 1.1rem 0.95rem;
    }

    .hero-timeline-title {
        font-size: 0.85rem;
    }

    .hero-timeline-text {
        font-size: 0.74rem;
    }
}