* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0E1325;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background - Optimized */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(249, 168, 38, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(249, 168, 38, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(249, 168, 38, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 30s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #F9A826;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

.logo {
    font-size: 1rem;
    font-weight: 800;
    color: #0E1325;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.9;
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links a {
    color: #0E1325;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #0E1325;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #0E1325;
    cursor: pointer;
    z-index: 1001;
}

/* Timeline Header - Optimized */
.timeline-header {
    text-align: center;
    padding: 160px 20px 60px;
    position: relative;
    background: linear-gradient(180deg, #0E1325 0%, #1a2344 100%);
    overflow: hidden;
}

.timeline-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle, rgba(249, 168, 38, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
    opacity: 0.3;
    will-change: transform;
}

.timeline-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4em;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 3px;
    animation: fadeInDown 1s ease;
    position: relative;
}

.timeline-header h1 .gold {
    color: #F9A826;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline Container */
.timeline-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px 120px 140px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Timeline Line - Optimized */
.timeline-line {
    position: fixed;
    left: 90px;
    top: 0;
    width: 4px;
    height: 100vh;
    background: rgba(249, 168, 38, 0.15);
    z-index: 0;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #F9A826, #ffd700);
    box-shadow: 0 0 15px rgba(249, 168, 38, 0.4);
    will-change: height;
}

/* Timeline Section - Optimized */
.timeline-section {
    position: relative;
    margin-bottom: 140px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding-left: 80px;
    will-change: opacity, transform;
}

.timeline-section.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Timeline Dot - Optimized */
.timeline-dot {
    position: absolute;
    left: -9px;
    top: 30px;
    width: 24px;
    height: 24px;
    background: #0E1325;
    border: 4px solid rgba(249, 168, 38, 0.3);
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    will-change: transform;
}

.timeline-section.visible .timeline-dot {
    background: linear-gradient(135deg, #F9A826, #ffd700);
    border-color: #F9A826;
    box-shadow: 0 0 0 8px rgba(249, 168, 38, 0.15);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.timeline-dot:hover {
    transform: scale(1.4);
}

nav .nav-links .language-switcher .lang-divider,
.nav-links .language-switcher .lang-divider {
    color: #0E1325 !important;
}

/* Content Box - Optimized */
.content-box {
    background: linear-gradient(145deg, rgba(26, 32, 56, 0.8), rgba(15, 20, 33, 0.9));
    padding: 45px;
    border-radius: 20px;
    border: 2px solid rgba(249, 168, 38, 0.2);
    border-left: 5px solid #F9A826;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0%;
    background: linear-gradient(180deg, #F9A826, #ffd700);
    transition: height 0.6s ease;
}

.timeline-section.visible .content-box::before {
    height: 100%;
}

.content-box:hover {
    transform: translateX(15px) translateY(-5px);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.7);
    border-color: rgba(249, 168, 38, 0.5);
}

/* Phase */
.phase {
    font-size: 0.95em;
    font-weight: 700;
    color: #F9A826;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.phase::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #F9A826, #ffd700);
    transition: width 0.6s ease 0.3s;
}

.timeline-section.visible .phase::after {
    width: 100%;
}

/* Year */
.year {
    font-size: 2.5em;
    font-weight: 700;
    color: #F9A826;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Title */
.title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

/* Description */
.description {
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05em;
}

/* Highlight - Optimized */
.highlight {
    background: rgba(249, 168, 38, 0.25);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    color: #F9A826;
    border: 1px solid rgba(249, 168, 38, 0.3);
    will-change: transform;
}

.highlight:hover {
    background: rgba(249, 168, 38, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 168, 38, 0.3);
}

/* Stats - Optimized */
.stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(249, 168, 38, 0.12);
    padding: 20px 30px;
    border-radius: 12px;
    border: 2px solid rgba(249, 168, 38, 0.3);
    border-left: 4px solid #F9A826;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    box-shadow: 0 4px 20px rgba(249, 168, 38, 0.2);
    will-change: opacity, transform;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(249, 168, 38, 0.3);
    border-color: #F9A826;
}

.timeline-section.visible .stat-item {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:nth-child(1) {
    transition-delay: 0.5s;
}

.stat-item:nth-child(2) {
    transition-delay: 0.6s;
}

.stat-item:nth-child(3) {
    transition-delay: 0.7s;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: #F9A826;
}

.stat-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* Scroll Indicator - Optimized */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    background: rgba(26, 32, 56, 0.6);
    padding: 15px 10px;
    border-radius: 30px;
    border: 2px solid rgba(249, 168, 38, 0.3);
}

.scroll-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(249, 168, 38, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    will-change: transform;
}

.scroll-dot.active {
    background: #F9A826;
    transform: scale(1.4);
    box-shadow: 0 0 0 5px rgba(249, 168, 38, 0.2);
}

.scroll-dot:hover {
    background: #F9A826;
    transform: scale(1.3);
}

/* Speed Lines - Optimized */
.speed-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.speed-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(249, 168, 38, 0.2), rgba(249, 168, 38, 0.4), transparent);
    opacity: 0;
    animation: speedLine 2.5s linear infinite;
    border-radius: 2px;
    will-change: transform, opacity;
}

.speed-line:nth-child(1) {
    top: 15%;
    animation-delay: 0s;
}

.speed-line:nth-child(2) {
    top: 35%;
    animation-delay: 0.4s;
}

.speed-line:nth-child(3) {
    top: 55%;
    animation-delay: 0.8s;
}

.speed-line:nth-child(4) {
    top: 75%;
    animation-delay: 1.2s;
}

.speed-line:nth-child(5) {
    top: 85%;
    animation-delay: 1.6s;
}

@keyframes speedLine {
    0% {
        left: -300px;
        width: 0px;
        opacity: 0;
    }

    15% {
        opacity: 0.6;
        width: 200px;
    }

    85% {
        opacity: 0.6;
        width: 200px;
    }

    100% {
        left: 120%;
        width: 0px;
        opacity: 0;
    }
}

/* Progress Percentage - Optimized */
.progress-percentage {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 32, 56, 0.95);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95em;
    z-index: 100;
    border: 2px solid #F9A826;
    box-shadow: 0 6px 30px rgba(249, 168, 38, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-percentage.visible {
    opacity: 1;
}

.progress-bar-fill {
    height: 5px;
    background: linear-gradient(90deg, #F9A826, #ffd700);
    border-radius: 3px;
    margin-top: 10px;
    width: 0%;
    transition: width 0.1s ease;
    will-change: width;
}

/* Section Counter - Optimized */
.section-counter {
    position: absolute;
    top: -20px;
    left: -50px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F9A826, #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    color: #0E1325;
    box-shadow: 0 6px 20px rgba(249, 168, 38, 0.4);
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
    border: 4px solid rgba(26, 32, 56, 0.9);
    will-change: transform, opacity;
}

.section-counter::before {
    content: '🏍️';
    position: absolute;
    font-size: 0.5em;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #0E1325, #1a2344);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid #F9A826;
}

.timeline-section.visible .section-counter {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Content Box Decoration - Optimized */
.content-box::after {
    content: '🏍️';
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 5em;
    opacity: 0.06;
    animation: revEngine 3s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes revEngine {

    0%,
    100% {
        transform: translateX(0px) rotate(0deg);
        opacity: 0.06;
    }

    50% {
        transform: translateX(8px) rotate(3deg);
        opacity: 0.12;
    }
}

.timeline-section:hover .content-box::after {
    opacity: 0.15;
    animation-duration: 1.5s;
}

/* Responsive Design */
@media (max-width: 968px) {
    .timeline-container {
        padding: 80px 20px 100px 80px;
    }

    .timeline-line {
        left: 30px;
    }

    .timeline-dot {
        left: -38px;
    }

    .timeline-section {
        padding-left: 60px;
    }

    .content-box {
        padding: 35px;
    }

    .year {
        font-size: 2em;
    }

    .title {
        font-size: 1.5em;
    }

    .scroll-indicator {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .timeline-header h1 {
        font-size: 2.5em;
    }

    .timeline-container {
        padding: 60px 20px 80px 70px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: -32px;
    }

    .timeline-section {
        padding-left: 50px;
        margin-bottom: 100px;
    }

    .content-box {
        padding: 30px;
    }

    .year {
        font-size: 1.8em;
    }

    .title {
        font-size: 1.3em;
    }

    .scroll-indicator {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(249, 168, 38, 0.98);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 25px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .section-counter {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
        left: -45px;
    }

    .stats {
        gap: 20px;
    }

    .stat-item {
        padding: 18px 24px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 15px 20px;
    }

    .logo {
        font-size: 1rem;
    }

    .timeline-header {
        padding: 140px 15px 50px;
    }

    .timeline-header h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }

    .timeline-container {
        padding: 50px 15px 70px 60px;
    }

    .timeline-line {
        left: 15px;
    }

    .timeline-dot {
        left: -28px;
    }

    .timeline-section {
        padding-left: 40px;
        margin-bottom: 80px;
    }

    .content-box {
        padding: 25px;
    }

    .year {
        font-size: 1.6em;
    }

    .title {
        font-size: 1.2em;
    }

    .description {
        font-size: 0.95em;
    }

    .section-counter {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
        left: -42px;
        top: -18px;
    }

    .section-counter::before {
        width: 24px;
        height: 24px;
        top: -8px;
        right: -8px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        width: 100%;
    }

    .progress-percentage {
        padding: 12px 25px;
        font-size: 0.85em;
    }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    nav {
        padding: 15px 30px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #F9A826;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 25px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip to Content Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #F9A826;
    color: #1a1a1a;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}