/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ancient-color: #8b4513;
  --mathematical-color: #daa520;
  --data-color: #cd853f;
  --architecture-color: #4682b4;
  --array-color: #9932cc;
  --algorithms-color: #ff6347;
  --parallel-color: #00ced1;
  --future-color: #7fff00;

  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --text-primary: #e8e8e8;
  --text-secondary: #c9c9c9;
  --text-muted: #a0a0a0;
  --accent-gold: #ffd700;
  --accent-orange: #ff6b35;
}

body {
  font-family: "Georgia", serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-text {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo {
    font-size: 1.5rem;
    color: var(--accent-gold);
    animation: logoRotate 4s ease-in-out infinite;
}
@keyframes logoRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}
.time-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
}

.time-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.time-progress {
  width: 100px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.time-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
  transition: width 0.3s ease;
}

/* Background Elements */
.cosmic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 215, 0, 0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 107, 53, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}


.cosmic-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: waveFlow 15s ease-in-out infinite;
}



@keyframes waveFlow {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(2deg);
  }
}



/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  position: relative;
}

/* ARLIZ Header */
.arliz-header {
  text-align: center;
  margin-bottom: 100px;
  animation: fadeInUp 1s ease-out;
}

.arliz-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.arliz-letter {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange), #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin: 0 3px;
  cursor: pointer;
  transform-origin: center bottom;
}

.arliz-letter:hover {
  transform: translateY(-15px) rotate(5deg) scale(1.15);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}
.arliz-letter::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: var(--accent-gold);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--accent-gold) !important;
  min-width: max-content;
}
.arliz-letter:hover::after {
  opacity: 1;
  visibility: visible;
  top: -30px;
  transform: translateX(-50%) translateY(0);
}

.subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 15px;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.timeline-span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  font-size: 1rem;
  color: var(--accent-gold);
}

.timeline-connector {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
  position: relative;
  overflow: hidden;
}

.timeline-connector::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Timeline */
.timeline {
  position: relative;
  margin: 80px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--ancient-color) 0%,
    var(--mathematical-color) 12.5%,
    var(--data-color) 25%,
    var(--architecture-color) 37.5%,
    var(--array-color) 50%,
    var(--algorithms-color) 62.5%,
    var(--parallel-color) 75%,
    var(--future-color) 87.5%,
    var(--future-color) 100%
  );
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.timeline-item {
  position: relative;
  margin: 150px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: calc(50% + 80px);
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: calc(50% + 80px);
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid;
  background: var(--bg-primary);
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.timeline-item[data-era="ancient"] .timeline-dot {
  border-color: var(--ancient-color);
}
.timeline-item[data-era="mathematical"] .timeline-dot {
  border-color: var(--mathematical-color);
}
.timeline-item[data-era="data"] .timeline-dot {
  border-color: var(--data-color);
}
.timeline-item[data-era="architecture"] .timeline-dot {
  border-color: var(--architecture-color);
}
.timeline-item[data-era="array"] .timeline-dot {
  border-color: var(--array-color);
}
.timeline-item[data-era="algorithms"] .timeline-dot {
  border-color: var(--algorithms-color);
}
.timeline-item[data-era="parallel"] .timeline-dot {
  border-color: var(--parallel-color);
}
.timeline-item[data-era="future"] .timeline-dot {
  border-color: var(--future-color);
}

.timeline-dot:hover {
  transform: translateX(-50%) scale(1.5);
  box-shadow: 0 0 30px currentColor;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -30px;
  border-right-color: rgba(255, 255, 255, 0.1);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -30px;
  border-left-color: rgba(255, 255, 255, 0.1);
}

.era-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.era-badge.ancient {
  background: linear-gradient(45deg, var(--ancient-color), #a0522d);
  color: white;
}
.era-badge.mathematical {
  background: linear-gradient(45deg, var(--mathematical-color), #ffd700);
  color: black;
}
.era-badge.data {
  background: linear-gradient(45deg, var(--data-color), #deb887);
  color: black;
}
.era-badge.architecture {
  background: linear-gradient(45deg, var(--architecture-color), #87ceeb);
  color: white;
}
.era-badge.array {
  background: linear-gradient(45deg, var(--array-color), #ba55d3);
  color: white;
}
.era-badge.algorithms {
  background: linear-gradient(45deg, var(--algorithms-color), #ff7f50);
  color: white;
}
.era-badge.parallel {
  background: linear-gradient(45deg, var(--parallel-color), #48d1cc);
  color: black;
}
.era-badge.future {
  background: linear-gradient(45deg, var(--future-color), #adff2f);
  color: black;
}

.part-number {
  display: inline-block;
  background: linear-gradient(45deg, var(--accent-orange), var(--accent-gold));
  color: #000;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.part-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #fff;
}

.timeline-period {
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-weight: bold;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.part-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  gap: 15px;
}

.scroll-line {
  width: 2px;
  height: 200px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-orange));
  transition: height 0.3s ease;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
}

.scroll-dot:hover {
  background: var(--accent-gold);
  transform: scale(1.2);
}

.scroll-dot.active {
  background: var(--accent-gold);
  transform: scale(1.3);
  box-shadow: 0 0 15px var(--accent-gold);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
    margin-right: 20px;
    text-align: left;
    max-width: calc(100vw - 120px);
  }

  .timeline-dot {
    left: 30px;
    transform: translateX(-50%);
  }

  .timeline-content::before {
    left: -30px !important;
    right: auto !important;
    border-right-color: rgba(255, 255, 255, 0.1) !important;
    border-left-color: transparent !important;
  }

  .arliz-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .scroll-indicator {
    display: none;
  }

  .nav-content {
    flex-direction: column;
    gap: 10px;
  }

  .time-indicator {
    order: -1;
  }

  .timeline-span {
    flex-direction: column;
    gap: 10px;
  }

  .timeline-connector {
    width: 50px;
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 100px 15px 40px;
  }

  .timeline-content {
    padding: 25px;
    margin-left: 60px !important;
    margin-right: 15px !important;
    max-width: calc(100vw - 90px) !important;
  }

  .arliz-title {
    font-size: 2rem;
  }

  .part-title {
    font-size: 1.4rem;
  }
}

