/* Custom Styles complementing Tailwind */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 10px;
}

/* Animations mapping for Intersection Observer */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Timeline Custom Styles */
.timeline-line::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #f59e0b;
    top: 0;
    bottom: 0;
    left: 15px; /* Mobile left-aligned by default */
}
@media (min-width: 768px) {
    .timeline-line::before {
        left: 50%;
        transform: translateX(-50%);
    }
}
.timeline-item {
    position: relative;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 9px;
    background-color: #f59e0b;
    border: 3px solid #1e293b;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
@media (min-width: 768px) {
    .timeline-item.left-side::after {
        left: auto;
        right: -7px;
    }
    .timeline-item.right-side::after {
        left: -7px;
    }
}

.dark .timeline-item::after {
    border-color: #0f172a;
}

/* Scroll transitions for the two independent fixed bars */
#top-navbar {
    transition: transform 0.3s ease;
}
#navbar {
    transition: top 0.3s ease, box-shadow 0.3s ease;
}
