::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#home-timeline-container {
    position: relative;
}

.timeline-heartbeat {
    position: absolute;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: 10;
}

.timeline-heartbeat.active {
    color: #E53E3E;
    filter: drop-shadow(0 0 15px rgba(229, 62, 62, 0.9));
    transform: translate(-50%, -50%) scale(1.3);
}

.timeline-stat-dot {
    position: absolute;
    left: 16px;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.5s ease;
}

.timeline-stat-dot.active {
    box-shadow: 0 0 25px rgba(229, 62, 62, 1) !important;
    border-color: rgba(229, 62, 62, 1) !important;
    transform: translateX(-50%) scale(1.15);
}

@media (min-width: 640px) {

    .timeline-stat-dot {
        left: 32px;
    }
}

@media (min-width: 1024px) {

    .timeline-stat-dot {
        left: 48px;
    }
}

@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-40px, 30px) rotate(-8deg);
    }

    66% {
        transform: translate(40px, -40px) rotate(8deg);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

.animate-float-1 {
    animation: float-1 20s ease-in-out infinite;
}

.animate-float-2 {
    animation: float-2 25s ease-in-out infinite;
}

.animate-float-3 {
    animation: float-3 18s ease-in-out infinite;
}

@keyframes logo-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-scroll-container {
    display: flex;
    width: max-content;
    animation: logo-scroll 40s linear infinite;
}

.logo-scroll-container:hover {
    animation-play-state: paused;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .logo-group {
        gap: 8rem;
        padding: 0 4rem;
    }
}

.logo-item {
    filter: brightness(0) invert(1);
    height: 2rem;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: block;
}

@media (min-width: 768px) {
    .logo-item {
        height: 2.75rem;
        max-width: 180px;
    }
}

.logo-item:hover {
    opacity: 1;
}

#histoire .max-w-7xl,
.timeline-stat-dot,
#histoire .grid {
    position: relative;
    z-index: 10;
}

/* History Timeline Styles */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

@media (min-width: 768px) {
    .timeline-container {
        padding-left: 0;
    }
}

.timeline-line-bg {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
}

.timeline-line-progress {
    position: absolute;
    left: 24px;
    top: 0;
    width: 2px;
    background: linear-gradient(to bottom, #E53E3E, #FB923C, #FDBA74);
    box-shadow: 0 0 15px rgba(229, 62, 62, 0.5);
    border-radius: 1px;
    z-index: 5;
    transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 768px) {

    .timeline-line-bg,
    .timeline-line-progress {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    z-index: 20;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.timeline-item>div:last-child {
    opacity: 0.15;
    transition: opacity 0.8s ease;
}

.timeline-item.active {
    transform: translateY(0);
}

.timeline-item.active>div:last-child {
    opacity: 1;
}

.timeline-dot {
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: #212028;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.timeline-item.active .timeline-dot {
    border-color: #E53E3E !important;
    background: #E53E3E !important;
    box-shadow: 0 0 20px rgba(229, 62, 62, 0.6);
    transform: scale(1.2) !important;
}

@media (max-width: 767px) {
    .timeline-item.active .timeline-dot {
        transform: scale(1.1) !important;
    }
}

.timeline-dot-inner {
    transition: all 0.4s ease;
    background-color: white;
}

.timeline-item.active .timeline-dot-inner {
    background-color: white;
    transform: scale(0.8);
}