@font-face {
    font-family: 'Roboto';
    src: local('Roboto'),
    url('fonts/roboto-variablefont_wdthwght-webfont.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('fonts/robotocondensed-variablefont_wght-webfont.woff2') format('woff2');
}

body {
    background-color: #121212;
    color: #fff;
    font-family: 'Roboto', 'Arial', sans-serif;
}

@media (max-width: 420px) {
    .xs-hide {
        display: none;
    };
}

.navbar .logo {
    margin-right: 0.8rem;
}
.navbar-brand {
    font-family: 'Roboto Condensed', 'Arial', sans-serif;
}

/* Subtle dark texture background */
.bg-texture {
    background: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
}

/* Vertical alternating timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 50%;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #444;
}

/* Timeline items */
.timeline-item {
    position: relative;
    width: 45%;
    padding: 1rem;
    background: #222;
    border-radius: 8px;
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Dot indicator */
.timeline-item::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: #ff4c4c;
    border-radius: 50%;
    z-index: 2;
}

/* Left items */
.timeline-item.left {
    left: -48%;
}

.timeline-item.left::before {
    right: -38px;
}

/* Right items */
.timeline-item.right {
    left: 4%;
}

.timeline-item.right::before {
    left: -38px;
}

/* Lists */
.timeline-item ul {
    list-style-type: "✅ ";
}
.timeline-item ul li {
    margin-bottom: 0.6rem;
}

/* Mobile-friendly timeline */
@media (max-width: 768px) {
    .timeline {
        padding-left: 0; /* remove half-width alignment */
    }

    .timeline::before {
        left: 20px; /* push the vertical line to the left */
    }

    .timeline-item {
        width: 100%;
        margin-left: 40px; /* leave space for line + dot */
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0 !important; /* reset positioning */
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: -40px; /* position dots on the line */
        right: auto;
    }
}
