@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Rajdhani:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Chakra+Petch:wght@400;display=swap');
@import url('https://fonts.googleapis.com/css?family=Audiowide|Special+Gothic+Condensed+One|Electrolize|Syncopate|Rubik+Distressed|Chelsea+Market|Mynerve|Oxygen|Atkinson+Hyperlegible+Mono|Story+Script|Epunda+Slab|Libertinus+Sans|Alice|Revalia|Alan+Sans|Michroma|Sedgwick+Ave|Winky+Rough|Tagesschrift:wght@400;');

:root {
    --bg-color: #050510;
    --text-color: #d0ffff;
    --accent-color: #4dfbf7;
    --text-shadow-color: #0aaebf;
    --nav-color: #1b263b;
    --link-color: #718ad6;
    --link-color-visited: #b17ad6;
    --border-color: rgba(255, 255, 255, 0.1);
    --circle-color1: rgba(30, 144, 255, 0.1);
    --circle-color2: rgba(60, 244, 175, 0.1);
    --circle-color3: rgba(138, 43, 210, 0.1);
    --panel-bg: rgba(16, 20, 40, 0.8);
    --highlight: #ff48a5;
    --main-font: 'Chakra Petch';
    --year-font: 'Orbitron';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:link {
    color: var(--link-color);
}

a:visited {
    color: var(--link-color-visited);
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, var(--circle-color1) 0%, transparent 40%),
        radial-gradient(circle at 20% 60%, var(--circle-color2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--circle-color3) 0%, transparent 40%);
    color: var(--text-color);
    /*font-family: var(--main-font), sans-serif*/;
    font-family: var(--main-font);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    padding: 3rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, var(--panel-bg), transparent);
    position: relative;
}

h1, h2, h3 {
    font-family: var(--main-font), sans-serif;
    letter-spacing: 2px;
    /*text-transform: uppercase;*/
    text-shadow: 0px 0px 8px var(--text-shadow-color);
}

h1 {
    font-size: 3rem;
    text-shadow: 0 0 15px var(--accent-color);
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    background-color: var(--nav-color);
    position: sticky;
    transition: all 0.5s ease;
    top: -10px;
    z-index: 100;
}
nav:hover{
    top: 0px;
}

.nav-bar {
    display: flex;
    justify-content: center;
}

.disclaimer {
    font-size: 0.9em;
    color: #aaaaaa; /* Slightly dimmer color for disclaimer */
    margin-top: 20px;
    font-style: italic;
}

.dropdown {
    position: relative;
    display: inline-block;
}
.dropbtn {
    background-color: #415a77;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--nav-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown-content a {
    color: #e0e1dd;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #415a77;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown:hover .dropbtn {
    background-color: #778da9;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /*background: radial-gradient(ellipse at bottom, var(--circle-color1) 0%, var(--circle-color3) 100%);*/
    overflow: hidden;
}

#background-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.grid {
    transition: all 0.5s ease;
}

.grid-line {
    stroke: var(--circle-color1);
    stroke-width: 1;
    transition: all 0.5s ease;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.container.bounce-in {
    animation: bounce-in 1.1s both, hover-up-and-down 5s infinite;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-color), var(--highlight));
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.decade {
    margin-bottom: 4rem;
    /* opacity: 0.8;
    transition: opacity 0.3s ease; */
    opacity: 0; /* Start invisible */
    transform: rotateX(90deg) rotateY(90deg) rotateZ(20deg) translateY(100px); /* Start flipped on the Y-axis */
    transform-origin: center bottom; /* Set the rotation axis to the bottom */
    transition: opacity 1s ease, transform 1s ease-out; /* Smooth transition */
}
.decade.visible {
    opacity: 0.8; /* Fully visible */
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(0px); /* Rotate back to normal */
    padding-left: 60px; /* Add padding on the left for the vertical timeline */
}

.decade:hover {
    opacity: 1;
}

.decade-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.decade-year {
    background: var(--panel-bg);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-family: var(--year-font), sans-serif;
    font-size: 1.5rem;
    text-align: center;
    color: var(--accent-color);
    /*color: linear-gradient(90deg, var(--accent-color), var(--text-color));*/
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transition: all 0.3s ease;
}
.decade-year:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

.decade-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding-left: 10%;
    padding-right: 10%;
}

.decade-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--panel-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.decade-nav-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    font-family: var(--year-font), sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-shadow: 0px 0px 12px var(--text-shadow-color);
}

.decade-nav-btn:hover, .decade-nav-btn:focus {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0px 3px 15px var(--accent-color);
    transform: translateY(-3px);
    /*animation: hover-up-and-down-at-base 2s infinite;*/
}

.predictions, .visuals {
    flex: 1;
    min-width: 300px;
    background: var(--panel-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.predictions:hover, .visuals:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.section-title {
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

ul {
    list-style-type: none;
}

.prediction-item {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.prediction-item::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--highlight);
    font-weight: bold;
    font-size: 1.2rem;
}

.image-placeholder {
    /*width: 100%;
    height: 200px;*/
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--main-font), sans-serif;
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: scan 3s linear infinite;
}

.darkened-image{
    filter: brightness(80%);
    width: 30%;
    height: 30%;
}

/* --- Vertical Timeline Navigation Styles --- */
.vertical-timeline-nav {
    position: fixed; /* Stay in place */
    left: 5px; /* Distance from the left edge */
    top: 50%; /* Start at 50% from the top */
    transform: translateY(-50%); /* Shift up by half its height to vertically center */
    height: 80vh; /* Make it take up 80% of the viewport height */
    z-index: 100; /* Make sure it's on top of other content */
    display: flex; /* Use flexbox to position the line and markers */
    align-items: center; /* Vertically align items in the center */
}

.vertical-timeline-nav .timeline-line {
    width: 2px; /* Thickness of the line */
    height: 100%; /* Make the line fill the container height */
    background: linear-gradient(to bottom, var(--panel-bg), var(--link-color)); /* Gradient for the line */
    position: relative; /* Needed for absolute positioning of progress and markers */
    margin-right: 20px; /* Space between the line and the markers/labels */
}

.vertical-timeline-nav .timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Same width as the main line */
    height: 0%; /* Initial height, will be updated by JS */
    background-color: var(--link-color-visited); /* Highlight color for progress */
    box-shadow: 0 0 8px rgba(125, 255, 125, 0.7); /* Glow effect */
    transition: height 0.2s linear; /* Smooth transition for height changes */
}

.vertical-timeline-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute; /* Position relative to the timeline-line */
    top: 0;
    left: 50%; /* Center horizontally relative to the line */
    transform: translateX(-50%); /* Adjust for list width */
    height: 100%; /* Match height of the timeline-line */
    pointer-events: none; /* Don't block clicks on elements behind */
}

.vertical-timeline-nav li {
    position: absolute; /* Crucial for positioning markers based on scroll */
    left: 0; /* Align with the left edge of the UL (which is centered on the line) */
    transform: translate(-50%, -50%); /* Center the marker bubble precisely on the line position */
    /* Note: 'top' position will be set by JavaScript */

    display: flex; /* Use flexbox for marker and text */
    align-items: center; /* Vertically align items */
    pointer-events: auto; /* Re-enable clicks for the list item/link */
}

.vertical-timeline-nav li .label {
  position: absolute; /* Position relative to the LI */
  top: 50%; /* Center vertically */
  left: 10px; /* Position 10px to the right of the LI's left edge (which is offset by -5px from the line center) */
  transform: translateY(-50%); /* Center vertically */
}

.vertical-timeline-nav li::before {
    content: ''; /* The visual marker bubble */
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--link-color); /* Semi-transparent green */
    border: 1px solid var(--link-color);
    border-radius: 50%; /* Make it circular */
    margin-right: 10px; /* Space between bubble and text */
    position: absolute;
    top: 50%; /* Center vertically */
    left: 0px; /* Align with the LI's left edge (which is positioned) */
    transition: all 0.3s ease; /* Smooth transition for size/color changes */
    transform: translate(-50%, -50%); /* Shift left by half its width, up by half its height --> Centers the bubble on the LI's left edge */

    box-shadow: 0 0 5px rgba(125, 255, 125, 0.3);
}

.vertical-timeline-nav li.active::before {
    background-color: var(--link-color-visited); /* Cyan when active */
    border-color: var(--link-color-visited);
    width: 14px; /* Slightly larger */
    height: 14px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.7); /* More intense glow */
}

.vertical-timeline-nav li a {
    font-family: var(--year-font), sans-serif;
    font-size: 0.9em;
    color: var(--link-color); /* Dimmer text by default */
    text-decoration: none;
    white-space: nowrap; /* Prevent wrapping */
     /* Position text to the right of the marker bubble */
    position: relative; /* Needed for positioning */
    left: 5px; /* Adjust spacing from bubble */
    transition: color 0.3s ease;
}

.vertical-timeline-nav li.active a {
    color: var(--link-color-visited); /* Brighter text when active */
    text-shadow: 0 0 5px rgba(224, 224, 224, 0.5);
}
/* --- End Vertical Timeline Navigation Styles --- */

/* width */
::-webkit-scrollbar {
  width: 20px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px var(--nav-color);
  border-radius: 3px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 3px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--nav-color);
}
@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--panel-bg);
    margin-top: 3rem;
    font-size: 0.9rem;
}

@keyframes bounce-in {
  0% {
    transform: translateY(-300px);
    animation-timing-function: ease;
    filter: blur(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    animation-timing-function: ease-out;
    filter: blur(0);
  }
}
@keyframes hover-up-and-down-at-base {
  0% {
    transform: translateY(0px);
    animation-timing-function: ease;
  }
  50% {
    transform: translateY(-3px);
    animation-timing-function: ease;
  }
  100% {
    transform: translateY(0px);
    animation-timing-function: ease;
  }
}
@keyframes hover-up-and-down {
  0% {
    transform: translateY(-8px);
    animation-timing-function: ease;
  }
  50% {
    transform: translateY(8px);
    animation-timing-function: ease;
  }
  100% {
    transform: translateY(-8px);
    animation-timing-function: ease;
  }
}

@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }

    .decade-header {
        justify-content: flex-start;
        padding-left: 3rem;
    }

    .decade-content {
        flex-direction: column;
    }
}